Commit Graph

57 Commits (e5865bcc52aed34b47444b1f165ec608aa7ac807)

Author SHA1 Message Date
leitner 695843c79e small buffer optimization
fix botched noipv6 case in buffer_tcp6
leitner 214ad3a92e use gcc magic and a #define to convert buffer_puts to buffer_put if the
string argument length is known at compile time (same for
buffer_putsflush)
leitner ed93e203a1 more constness for stralloc and buffer
leitner 7c5d119f9a fix buffer_get
leitner 8b3eb0be7c documented wrong return type
leitner a544abc39c switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
leitner cf3dc34288 actually increase stralloc.len
leitner 53e2af7389 never close fd 0, 1 or 2 in buffer_close
leitner 4a04c40595 get rid of more -Wconversion warnings
leitner ee4a2c0cdb add man pages for buffer_from*
leitner 24d8e81116 add buffer_fromarray, buffer_frombuf
leitner bb1bebe517 stralloc* not const char*
leitner 1e549e9ee2 add man page
leitner 02818883df add buffer_tosa (buffer writing to auto-growing stralloc)
leitner 3004b518ef switch to size_t and ssize_t
leitner 83bf636b86 add RETURN VALUE section
leitner 25c57a0b1b implement Nikola's idea to remove limit number of strings in errmsg
leitner 636cfb70b0 make sure buffer_get tries to get all the bytes it was asked for
leitner eeffc36387 remove even more warnings
64-bit cleanliness issue with auto-NULL-appending macros
leitner 6196f771cd remove a few gcc 4 warnings
work around freebsd 5.4 brokenness (if you don't have IPv6 in the
    kernel, socket(PF_INET6,SOCK_STREAM,0) returns EPROTONOSUPPORT
    instead of EPFNOSUPPORT, which basically says "yeah, I know IPv6,
    but TCP?  never heard of it")
leitner c874604f12 gcc 4 cleanups (mostly unsigned char* vs char*)
leitner 20c994bf59 fix a few man pages
leitner 9eb09b5bfe add iob_free and man page for iob_reset.
check in some windoze compat crap (still does not compile through for
windoze)
leitner 34df761a0a add buffer_mmapread
leitner b617d63d1e update dependencies
add errmsg_info and msg
leitner 77c5e333db signal EOF properly
leitner b48ce77792 add iob_write (to write an io batch through a callback)
leitner ccba2abe9b add RETURN VALUE to man page
leitner 5eb1cdf888 cleanups in stralloc and buffer:
int -> long for sizes
    char -> unsigned char for strings
leitner 38ef27207a add buffer_putm and buffer_putmflush
leitner 5dfea5617e add buffer_putsaflush
leitner 82b0bb6f39 extend API To read line/token to stralloc to allow clearing the
stralloc first.
  add stralloc_zero to clear a stralloc
leitner 9e598be7e5 add sys/types.h
leitner a6a00edd75 add errmsg API
leitner 82a4ae868d broken lose32 port using mingw (don't use!!!)
initial Solaris /dev/poll port
leitner 63e070c1cb add long long buffer routines
add tai64 and tai6464 typedefs
add error message buffer routines
add io timeout routines
leitner a327b75831 add buffer_fromsa (make virtual buffer from stralloc)
leitner 558c6128fe better and more predication, improved documentation
leitner 053aadde58 add buffer_putsa, buffer_get_token_sa, buffer_getline_sa, stralloc_chomp
and stralloc_chop
leitner 5950f0c5ae add some man pages
leitner ac331f66f6 duh, cut-and-paste error
leitner 75a033e481 add buffer_putnlflush
leitner 12fbaf7c9c make buffer_get_token write \0 to buffer on end of file so it can be
distinguished from a length 0 token.
leitner f6d554da10 Fixed input buffers, thanks to David Lichteblau.
leitner 05b4cf85f7 some constness stuff for buffer_0, an experimental optimization for
byte_copy and add buffer_putspace, a trivial shortcut.
leitner 5fb5d0fac1 duh
leitner 3259605baa test
leitner bb7870034f fix buffer initializer.
sanjiyan 552b13e44e added buffer_2.c... needed it !
leitner 2e578322c9 fixed typos.