PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/common/libowfat/CHANGES

http://github.com/kennyb/awake-in-tenerife
#! | 281 lines | 253 code | 28 blank | 0 comment | 0 complexity | 66e9fbdf6c9cb508e96815777913765e MD5 | raw file
Possible License(s): GPL-2.0
  1. 0.27:
  2. add fmt_strm
  3. add iob_addbuf_munmap
  4. add socket_deferaccept
  5. catch one more case in umult64 (Tomi Jylh?-Ollila)
  6. 0.26:
  7. fix really pathological case where io_timeouted would never
  8. start over from the beginning because always new accept()ed
  9. connections came in and got newer, higher descriptors since the last
  10. io_timeouted loop. (Dirk Engling)
  11. add some int overflow check macros to rangecheck.h
  12. fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov)
  13. use inttypes.h to declare ints in uint*.h
  14. escape more in fmt_ldapescape
  15. try to catch malicious input in textcode fmt_* functions
  16. fmt_xlonglong was utterly broken (Johannes Vetter)
  17. 0.25:
  18. array_allocate no longer truncates the array
  19. array_get now not only checks whether the element fits in the
  20. allocates space, it also needs to be in the initialized space.
  21. add -D_REENTRANT to CFLAGS so libowfat can be used in multi-threaded
  22. programs
  23. further Windoze support (test/io5.c works, gatling still doesn't)
  24. This is just to get gatling to work, I may remove it again after
  25. that.
  26. implement Nikola's idea to remove limit number of strings in errmsg
  27. add taia_half
  28. add cdb
  29. add rangecheck.h
  30. add io_block
  31. make socket_(tc|ud)p[46] actually return non-blocking sockets as
  32. documented (Richard Lyons)
  33. fix for NetBSD 3.0 (Their /sys/types.h actually does not define u_char
  34. unless you #define _NETBSD_SOURCE, and then their CMSG_* macros use
  35. it. This is horrible even by OpenBSD standards)
  36. remove support for ip6.int (it's no longer delegated)
  37. add asm versions of imult64 and umult64 for x86_64
  38. (22 cycles -> 12 cycles on my Athlon 64)
  39. use size_t and ssize_t instead of unsigned long et al
  40. add iob_bytesleft
  41. don't leak memory in test/httpd
  42. 0.24:
  43. fix scan_to_sa (Tim Lorenz)
  44. turns out we can not do file descriptor passing on OpenBSD
  45. if _XOPEN_SOURCE is defined, which is needed for Solaris.
  46. OpenBSD sucks. I checked in a _really_ kludge now. Please do not
  47. use OpenBSD if you have a choice. Or Solaris, for that matter.
  48. turns out the imult routines (which I never used) were incorrect.
  49. Noted by Matthew Dempsky
  50. open_* from open.h now open in large file mode
  51. 0.23:
  52. also recognize EPFNOSUPPORT as EAFNOSUPPORT (groan)
  53. fix a few man pages
  54. optimize fmt_base64 (Dan Gundlach)
  55. gcc 4 cleanups (mostly unsigned char* vs char*)
  56. fix scan_xlong, scan_xlonglong and scan_8long
  57. remove a few gcc 4 warnings
  58. work around freebsd 5.4 brokenness (if you don't have IPv6 in the
  59. kernel, socket(PF_INET6,SOCK_STREAM,0) returns EPROTONOSUPPORT
  60. instead of EPFNOSUPPORT, which basically says "yeah, I know IPv6,
  61. but TCP? never heard of it")
  62. remove even more warnings
  63. 64-bit cleanliness issue with auto-NULL-appending macros
  64. IRIX compatibility (yuck!)
  65. 0.22:
  66. uh, the scope_id detection #defined the wrong constant. libowfat
  67. always thought there was no scope_id. Oops.
  68. #include <unistd.h> in io/io_sendfile.c (broken OpenBSD, thx Rob)
  69. add scan_urlencoded2 (like scan_urlencoded but will not convert '+' to
  70. ' '; needed for web servers, so they can serve libstdc++.tar.gz)
  71. fix iob_write to handle failure properly
  72. document that the iob_write callback should limit itself
  73. fix mmap_shared
  74. add iob_free, add man pages for iob_free and iob_reset
  75. fix descriptor leak in iob_addfile_close if the range was 0 (oops)
  76. 0.21:
  77. errno cleanup and man page updates (Rolf Eike Beer)
  78. implement iob_prefetch with madvise MADV_WILLNEED if it's defined
  79. extend API To read line/token to stralloc to allow clearing the
  80. stralloc first.
  81. add stralloc_zero to clear a stralloc
  82. add buffer_putsflush
  83. add stralloc_catm and stralloc_copym
  84. add buffer_putm and buffer_putmflush
  85. cleanups in stralloc and buffer:
  86. int -> long for sizes
  87. char -> unsigned char for strings
  88. buffer_getline is now a function, not a macro
  89. add iob_write (send io batch through callback, e.g. for SSL)
  90. add errmsg_info and errmsg_infosys to write to stdout instead
  91. epoll fix (how could this ever work?)
  92. 0.20:
  93. add errmsg API
  94. work around broken Linux sendfile API (offset 64-bit but count 32-bit)
  95. add io_appendfile, io_readwritefile
  96. support ip6.arpa in addition to ip6.int in dns_name (adds one
  97. parameter to dns_name6_domain and two constants in dns.h)
  98. Solaris compatibility for io_passfd and io_receivefd
  99. 0.19.2:
  100. for some reason, a botched dependency slipped in the the Makefile
  101. 0.19.1:
  102. oops, I botched havealloca.h, which was not generated but static
  103. Now it is generated.
  104. 0.19:
  105. add io_socketpair
  106. add io_passfd and io_receivefd (and test/fdpassing.c)
  107. io_trywrite and io_waitwrite not ignore SIGPIPE
  108. add man pages for libio, safemult
  109. fix possible signal race in io_tryread and io_trywrite (Scott Lamb)
  110. fix byte_rchr return value (Marcus Winkler)
  111. fix bug in mmap code path of io_sendfile (David Leadbeater)
  112. 0.18:
  113. make libowfat compile on BSD again (sorry, and thanks to everyone who
  114. sent me a patch :-D)
  115. add iob_addfile_close, needed for gatling 0.5+
  116. add test/client and test/server, two simple TCP shell interfaces
  117. 0.17:
  118. add Linux SIGIO support to IO
  119. expand IO api to be able to cope with edge triggered event
  120. notification: introduce io_eagain
  121. the integer scan routines should only write *dest if they actually
  122. scanned something
  123. io_sendfile and iob_send should return -1 to -3 just like io_trywrite
  124. make io_waituntil actually take an "until", not a "how long"
  125. turns out that BSD kqueue is actually Free/OpenBSD kqueue -- NetBSD
  126. doesn't have it. That means I'll need some adaptive two-threads-
  127. running-poll approach to get C10k type scalability on NetBSD :-(
  128. turns out that BSD sendfile is actually FreeBSD sendfile -- neither
  129. OpenBSD nor NetBSD have it (as of 3.4 and 1.6.1). That means I'll
  130. need to try using mmap on OpenBSD and NetBSD to get zero-copy TCP.
  131. guard against same event being signalled twice (confused our list
  132. handling)
  133. add support for Solaris /dev/poll
  134. add lose32 support (broken, please don't use!)
  135. head -1 -> head -n 1
  136. apending 0 bytes to an empty array would fail it
  137. remove socket_sendfile now that we have io_sendfile
  138. break out alloca #include dependency into havealloca.h
  139. support HP-UX sendfile64 (thanks to Rolf Eike Beer)
  140. support Solaris sendfile64
  141. support MacOS X sendfile (and comment it out again, the headers
  142. declare it but it's not actually there) (thanks to Bernhard Schmidt)
  143. support AIX 5 (thanks to Lutz Chwala and Arthur Erhardt)
  144. fix ip6_fmt (martin paljak)
  145. 0.16:
  146. add buffer_fromsa (make buffer from stralloc)
  147. add API for integer multiply with overflow detection
  148. change length counters from int to long for 64-bit platforms
  149. add array API from http://cr.yp.to/lib/array.html
  150. oops, had a declaration and man page for taia_addsec but not the
  151. function itself
  152. add buffer functions to write strerror(errno)
  153. add io API supporting poll, epoll and kqueue
  154. remove obsolete "extern" from header files
  155. add iob API to send several buffers and files in one batch
  156. 0.15:
  157. man page update (document stralloc return values)
  158. add stralloc_chop and stralloc_chomp
  159. add buffer_putsa, buffer_get_token_sa and buffer_getline_sa
  160. extended uudecode test. See comment at top for details.
  161. fix #include in ndelay*.3 (Hynek Schlawack)
  162. add stralloc_diff and stralloc_diffs (my invention)
  163. scan_ip6 returned 1 for "::" (Uwe Ohse)
  164. add el-cheapo MIME decoding to test/uudecode
  165. make install forgot to install ndelay.h
  166. fix typos in several man pages (Hynek Schlawack)
  167. add stralloc versions of textcode API (Kai Ruemmler)
  168. add html to textcode ('<' to '&lt;' etc)
  169. add fmt_human and fmt_humank (format numbers ala ls -H/-h)
  170. add fmt_httpdate and scan_httpdate
  171. fix typo breaking buffer_GETC in buffer (Marcus Winkler)
  172. fix typo breaking fmt_long for dest==NULL
  173. add fmt_*longlong()
  174. add range check to scan_ulong, scan_ulonglong, scan_uint and
  175. scan_ushort
  176. extended socket API; you can now pass NULL for results you don't want
  177. rename Makefile to GNUmakefile; create Makefile target
  178. add buffer_get_token_pred and buffer_get_token_sa_pred
  179. 0.14:
  180. avoid bus errors in byte_copy
  181. byte_rchr was completely broken
  182. add case, iopause, tai, taia, openreadclose and ipv6-enhanced dns
  183. 0.13:
  184. fixed several bugs in test/uudecode.c
  185. add uninstall target
  186. add uint16_read API like the uint32_read one
  187. add buffer_putnlflush
  188. lots of general clean-ups from Jukka Zitting:
  189. add FMT_LONG to fmt.h (FMT_ULONG plus 1 for sign)
  190. fmt_strn did not work for out==NULL
  191. fix inconsistencies in man pages
  192. make scan_urlencode do the '+' -> ' ' transformation
  193. 0.12:
  194. add textcode api for uuencode/uudecode, base64, quoted printable,
  195. url-encoding and yenc.
  196. 0.11:
  197. fix fmt_long (didn't count the '-'), which in turn broke
  198. buffer_putlong
  199. referenced wrong include file in stralloc_ready and stralloc_readyplus
  200. man page.
  201. 0.10:
  202. add comment to stralloc.h that explains the structure (Markus Brischke)
  203. fix socket routines (two cut-and-paste errors)
  204. 0.9:
  205. fmt_str did not check for out==NULL! Thanks, Uwe Ohse.
  206. Updated to buffer to fix read buffers. Thanks, David Lichteblau.
  207. Oops! byte_copy had a trivial and dumb typo in it that I'm unsure how
  208. I could have missed it.
  209. add mmap man pages.
  210. update and add socket man pages.
  211. don't include str.h from fmt.h
  212. document error signalling for the mmap functions.
  213. 0.8:
  214. BSD compatibility.
  215. fix mmap_shared.
  216. ranlib.
  217. s/EPROTO/EPROTONOSUPPORT/.
  218. 0.7:
  219. add buffer_putspace
  220. fix b0read prototype in buffer/buffer_0*
  221. scan_ip6 will not transparently scan IPv4 addresses and save them as
  222. v4-mapped addresses (::ffff:127.0.0.1).
  223. byte_copy was sped up (but made larger in the process)
  224. 0.6:
  225. changed name to libowfat.
  226. fixed fmt_ulong (did not output 0 correctly).
  227. added buffer.
  228. extended buffer API to include buffer_putulong() and friends.
  229. oops, the read buffering was completely broken!
  230. add mmap library (idea from Ingo Oeser)
  231. 0.5:
  232. made subdirectories for the different libraries.
  233. moved the sources into the corresponding subdirectory.
  234. imported my man pages from libdjb.
  235. removed fmt_int.c and fmt_uint.c (they are macros in fmt.h).
  236. corrected comment in open.h for open_excl.
  237. wrote new man pages for fmt_double, scan_double, the sign fmt_ and
  238. scan_ routines, the whitespace and charset scan_ routines, and the
  239. str and stralloc routines.
  240. 0.4:
  241. implemented stralloc.
  242. 0.3:
  243. implemented uint16, uint32 and uint64. The header files try to
  244. define shortcut endianness conversion routines that do not convert
  245. anything.
  246. implemented open (I hope I got open_excl right, I couldn't find an
  247. implementationen).
  248. 0.2:
  249. implemented the scan, fmt and str interfaces.
  250. added adapted fmt_double and scan_double from diet libc.
  251. 0.1:
  252. initial release.
  253. implemented the byte interface.