Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Add a timeval_positive helper function that doesn't get confused when
tv_usec is set to 0 (regardless of the value of tv_sec). Use it wherever
possible, and also attempt to reason through our other time value comparison
points to ensure all values are being handled correctly, especially those
that result in a zero in a field or a zero difference.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
And add a clear macro that saves a bit of verbosity.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
memcpy is faster with larger blocks; strcpy is faster for smaller.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|
|
* Play around with strdup() since it isn't actually part of ISO C.
* Get code to compile under c89, c99, and gnu99
* Rework open_listener() to use getaddrinfo()
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
|