Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

349 lines
14 KiB

  1. 0.32:
  2. remove OpenBSD #warning (obsd maintainer says no longer needed)
  3. move headers to <libowfat/> upon install
  4. fix fmt_ip6 (Erwin Hoffmann)
  5. add MSG_ZEROCOPY support (only used for buffers >8k)
  6. use write in buffer_put for a slight perf improvement
  7. add experimental iom API for multithreaded I/O multiplexing (in io.h)
  8. 0.31:
  9. special case buffer_get_token with token length 1 through memccpy (almost 4x speedup)
  10. test for pread and use it instead of lseek+read in cdb and io_mmapwritefile
  11. add mmap_readat (like mmap_read but open by fd, not by name)
  12. add fmt_iso8601 and scan_iso8601 (time_t -> "2014-05-27T19:22:16Z")
  13. add fmt_netstring and scan_netstring (http://cr.yp.to/proto/netstrings.txt)
  14. add (fmt|scan)_varint and (fmt|scan)_pb_* (binary marshaling ala protocol buffers)
  15. 0.30:
  16. add compiletimeassert.h
  17. add haveuint128.h
  18. byte.h now defines UNALIGNED_ACCESS_OK on x86
  19. add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring
  20. change buffer to have a destructor function pointer
  21. SECURITY: fmt_strn would write one byte too many (returned right length though, so usually not a problem as that byte would be overwritten with \0 by the caller anyway)
  22. fmt_pad and fmt_fill fail more gracefully when srclen > maxlen
  23. You can now say $ make WERROR=-Werror (compiling t.c may fail but that's strictly speaking not part of the library)
  24. scan_html now decodes HTML entities based on the actual w3c list (from entities.json, say gmake update to fetch the current version)
  25. added fmt_escapechar* to fmt.h (implement various escaping mechanisms also found in textcode but for a single char not a whole string, and they always escape, not just when they think it's needed)
  26. scan_ushort was supposed to abort early and return 5 when attempting to parse "65536", because the result does not fit. It did not. Now it does.
  27. scan_*long, scan_*int, scan_*short now properly abort if the number would not fit
  28. SECURITY: check for integer overflow in stralloc_ready
  29. switch io_fds from array to newly implemented (hopefully thread-safe) iarray
  30. switch epoll from level triggering to edge triggering
  31. introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz)
  32. fix buffer_get
  33. add fmt_html_tagarg, fmt_xml, scan_html_tagarg
  34. add socket_fastopen, socket_fastopen_connect4, socket_fastopen_connect6 and socket_quickack
  35. on Linux, in iob_send, if MSG_MORE is defined, and the request type
  36. lends itself to it, used sendto/sendmsg with MSG_MORE instead of
  37. TCP_CORK (saves two syscalls)
  38. add io_fd_flags so the caller can tell io_fd whether the socket is blocking
  39. (saves one fcntl syscall)
  40. more constness for stralloc and buffer
  41. mmap_read/mmap_shared on zero length files no longer fail but return a
  42. zero length buffer
  43. if SOCK_NONBLOCK is defined, use it instead of socket+fcntl
  44. ... but if errno==EINVAL still fall back to socket+fcntl (Robert Henney)
  45. SECURITY: fix botched integer overflow handling logic in stralloc_ready (Giorgio)
  46. add critbit
  47. 0.29:
  48. save 8 bytes in taia.h for 64-bit systems
  49. add buffer_tosa (buffer writing to auto-growing stralloc)
  50. add iarray
  51. support SCTP in addition to TCP
  52. fix io_receivefd so the incoming buffer is only 1 byte; io_passfd
  53. sends only one byte, so we might receive (and discard) other data if
  54. we try to read more (Stefan Bühler, from the lightttpd project)
  55. add io_fd_canwrite (like io_fd but assume the fd is writable)
  56. save a few syscalls here and there
  57. add awesome hack in isset.h (comex, Linus Torvalds)
  58. add byte_equal_notimingattack
  59. 0.28:
  60. add uint64 pack and unpack routines
  61. fix subtle typo in sub_of (David Sirovsky)
  62. work around gcc bugs
  63. 0.27:
  64. add fmt_strm
  65. add iob_addbuf_munmap
  66. add socket_deferaccept
  67. catch one more case in umult64 (Tomi Jylhä-Ollila)
  68. 0.26:
  69. fix really pathological case where io_timeouted would never
  70. start over from the beginning because always new accept()ed
  71. connections came in and got newer, higher descriptors since the last
  72. io_timeouted loop. (Dirk Engling)
  73. add some int overflow check macros to rangecheck.h
  74. fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov)
  75. use inttypes.h to declare ints in uint*.h
  76. escape more in fmt_ldapescape
  77. try to catch malicious input in textcode fmt_* functions
  78. fmt_xlonglong was utterly broken (Johannes Vetter)
  79. 0.25:
  80. array_allocate no longer truncates the array
  81. array_get now not only checks whether the element fits in the
  82. allocates space, it also needs to be in the initialized space.
  83. add -D_REENTRANT to CFLAGS so libowfat can be used in multi-threaded
  84. programs
  85. further Windoze support (test/io5.c works, gatling still doesn't)
  86. This is just to get gatling to work, I may remove it again after
  87. that.
  88. implement Nikola's idea to remove limit number of strings in errmsg
  89. add taia_half
  90. add cdb
  91. add rangecheck.h
  92. add io_block
  93. make socket_(tc|ud)p[46] actually return non-blocking sockets as
  94. documented (Richard Lyons)
  95. fix for NetBSD 3.0 (Their /sys/types.h actually does not define u_char
  96. unless you #define _NETBSD_SOURCE, and then their CMSG_* macros use
  97. it. This is horrible even by OpenBSD standards)
  98. remove support for ip6.int (it's no longer delegated)
  99. add asm versions of imult64 and umult64 for x86_64
  100. (22 cycles -> 12 cycles on my Athlon 64)
  101. use size_t and ssize_t instead of unsigned long et al
  102. add iob_bytesleft
  103. don't leak memory in test/httpd
  104. 0.24:
  105. fix scan_to_sa (Tim Lorenz)
  106. turns out we can not do file descriptor passing on OpenBSD
  107. if _XOPEN_SOURCE is defined, which is needed for Solaris.
  108. OpenBSD sucks. I checked in a _really_ kludge now. Please do not
  109. use OpenBSD if you have a choice. Or Solaris, for that matter.
  110. turns out the imult routines (which I never used) were incorrect.
  111. Noted by Matthew Dempsky
  112. open_* from open.h now open in large file mode
  113. 0.23:
  114. also recognize EPFNOSUPPORT as EAFNOSUPPORT (groan)
  115. fix a few man pages
  116. optimize fmt_base64 (Dan Gundlach)
  117. gcc 4 cleanups (mostly unsigned char* vs char*)
  118. fix scan_xlong, scan_xlonglong and scan_8long
  119. remove a few gcc 4 warnings
  120. work around freebsd 5.4 brokenness (if you don't have IPv6 in the
  121. kernel, socket(PF_INET6,SOCK_STREAM,0) returns EPROTONOSUPPORT
  122. instead of EPFNOSUPPORT, which basically says "yeah, I know IPv6,
  123. but TCP? never heard of it")
  124. remove even more warnings
  125. 64-bit cleanliness issue with auto-NULL-appending macros
  126. IRIX compatibility (yuck!)
  127. 0.22:
  128. uh, the scope_id detection #defined the wrong constant. libowfat
  129. always thought there was no scope_id. Oops.
  130. #include <unistd.h> in io/io_sendfile.c (broken OpenBSD, thx Rob)
  131. add scan_urlencoded2 (like scan_urlencoded but will not convert '+' to
  132. ' '; needed for web servers, so they can serve libstdc++.tar.gz)
  133. fix iob_write to handle failure properly
  134. document that the iob_write callback should limit itself
  135. fix mmap_shared
  136. add iob_free, add man pages for iob_free and iob_reset
  137. fix descriptor leak in iob_addfile_close if the range was 0 (oops)
  138. 0.21:
  139. errno cleanup and man page updates (Rolf Eike Beer)
  140. implement iob_prefetch with madvise MADV_WILLNEED if it's defined
  141. extend API To read line/token to stralloc to allow clearing the
  142. stralloc first.
  143. add stralloc_zero to clear a stralloc
  144. add buffer_putsflush
  145. add stralloc_catm and stralloc_copym
  146. add buffer_putm and buffer_putmflush
  147. cleanups in stralloc and buffer:
  148. int -> long for sizes
  149. char -> unsigned char for strings
  150. buffer_getline is now a function, not a macro
  151. add iob_write (send io batch through callback, e.g. for SSL)
  152. add errmsg_info and errmsg_infosys to write to stdout instead
  153. epoll fix (how could this ever work?)
  154. 0.20:
  155. add errmsg API
  156. work around broken Linux sendfile API (offset 64-bit but count 32-bit)
  157. add io_appendfile, io_readwritefile
  158. support ip6.arpa in addition to ip6.int in dns_name (adds one
  159. parameter to dns_name6_domain and two constants in dns.h)
  160. Solaris compatibility for io_passfd and io_receivefd
  161. 0.19.2:
  162. for some reason, a botched dependency slipped in the the Makefile
  163. 0.19.1:
  164. oops, I botched havealloca.h, which was not generated but static
  165. Now it is generated.
  166. 0.19:
  167. add io_socketpair
  168. add io_passfd and io_receivefd (and test/fdpassing.c)
  169. io_trywrite and io_waitwrite not ignore SIGPIPE
  170. add man pages for libio, safemult
  171. fix possible signal race in io_tryread and io_trywrite (Scott Lamb)
  172. fix byte_rchr return value (Marcus Winkler)
  173. fix bug in mmap code path of io_sendfile (David Leadbeater)
  174. 0.18:
  175. make libowfat compile on BSD again (sorry, and thanks to everyone who
  176. sent me a patch :-D)
  177. add iob_addfile_close, needed for gatling 0.5+
  178. add test/client and test/server, two simple TCP shell interfaces
  179. 0.17:
  180. add Linux SIGIO support to IO
  181. expand IO api to be able to cope with edge triggered event
  182. notification: introduce io_eagain
  183. the integer scan routines should only write *dest if they actually
  184. scanned something
  185. io_sendfile and iob_send should return -1 to -3 just like io_trywrite
  186. make io_waituntil actually take an "until", not a "how long"
  187. turns out that BSD kqueue is actually Free/OpenBSD kqueue -- NetBSD
  188. doesn't have it. That means I'll need some adaptive two-threads-
  189. running-poll approach to get C10k type scalability on NetBSD :-(
  190. turns out that BSD sendfile is actually FreeBSD sendfile -- neither
  191. OpenBSD nor NetBSD have it (as of 3.4 and 1.6.1). That means I'll
  192. need to try using mmap on OpenBSD and NetBSD to get zero-copy TCP.
  193. guard against same event being signalled twice (confused our list
  194. handling)
  195. add support for Solaris /dev/poll
  196. add lose32 support (broken, please don't use!)
  197. head -1 -> head -n 1
  198. apending 0 bytes to an empty array would fail it
  199. remove socket_sendfile now that we have io_sendfile
  200. break out alloca #include dependency into havealloca.h
  201. support HP-UX sendfile64 (thanks to Rolf Eike Beer)
  202. support Solaris sendfile64
  203. support MacOS X sendfile (and comment it out again, the headers
  204. declare it but it's not actually there) (thanks to Bernhard Schmidt)
  205. support AIX 5 (thanks to Lutz Chwala and Arthur Erhardt)
  206. fix ip6_fmt (martin paljak)
  207. 0.16:
  208. add buffer_fromsa (make buffer from stralloc)
  209. add API for integer multiply with overflow detection
  210. change length counters from int to long for 64-bit platforms
  211. add array API from http://cr.yp.to/lib/array.html
  212. oops, had a declaration and man page for taia_addsec but not the
  213. function itself
  214. add buffer functions to write strerror(errno)
  215. add io API supporting poll, epoll and kqueue
  216. remove obsolete "extern" from header files
  217. add iob API to send several buffers and files in one batch
  218. 0.15:
  219. man page update (document stralloc return values)
  220. add stralloc_chop and stralloc_chomp
  221. add buffer_putsa, buffer_get_token_sa and buffer_getline_sa
  222. extended uudecode test. See comment at top for details.
  223. fix #include in ndelay*.3 (Hynek Schlawack)
  224. add stralloc_diff and stralloc_diffs (my invention)
  225. scan_ip6 returned 1 for "::" (Uwe Ohse)
  226. add el-cheapo MIME decoding to test/uudecode
  227. make install forgot to install ndelay.h
  228. fix typos in several man pages (Hynek Schlawack)
  229. add stralloc versions of textcode API (Kai Ruemmler)
  230. add html to textcode ('<' to '&lt;' etc)
  231. add fmt_human and fmt_humank (format numbers ala ls -H/-h)
  232. add fmt_httpdate and scan_httpdate
  233. fix typo breaking buffer_GETC in buffer (Marcus Winkler)
  234. fix typo breaking fmt_long for dest==NULL
  235. add fmt_*longlong()
  236. add range check to scan_ulong, scan_ulonglong, scan_uint and
  237. scan_ushort
  238. extended socket API; you can now pass NULL for results you don't want
  239. rename Makefile to GNUmakefile; create Makefile target
  240. add buffer_get_token_pred and buffer_get_token_sa_pred
  241. 0.14:
  242. avoid bus errors in byte_copy
  243. byte_rchr was completely broken
  244. add case, iopause, tai, taia, openreadclose and ipv6-enhanced dns
  245. 0.13:
  246. fixed several bugs in test/uudecode.c
  247. add uninstall target
  248. add uint16_read API like the uint32_read one
  249. add buffer_putnlflush
  250. lots of general clean-ups from Jukka Zitting:
  251. add FMT_LONG to fmt.h (FMT_ULONG plus 1 for sign)
  252. fmt_strn did not work for out==NULL
  253. fix inconsistencies in man pages
  254. make scan_urlencode do the '+' -> ' ' transformation
  255. 0.12:
  256. add textcode api for uuencode/uudecode, base64, quoted printable,
  257. url-encoding and yenc.
  258. 0.11:
  259. fix fmt_long (didn't count the '-'), which in turn broke
  260. buffer_putlong
  261. referenced wrong include file in stralloc_ready and stralloc_readyplus
  262. man page.
  263. 0.10:
  264. add comment to stralloc.h that explains the structure (Markus Brischke)
  265. fix socket routines (two cut-and-paste errors)
  266. 0.9:
  267. fmt_str did not check for out==NULL! Thanks, Uwe Ohse.
  268. Updated to buffer to fix read buffers. Thanks, David Lichteblau.
  269. Oops! byte_copy had a trivial and dumb typo in it that I'm unsure how
  270. I could have missed it.
  271. add mmap man pages.
  272. update and add socket man pages.
  273. don't include str.h from fmt.h
  274. document error signalling for the mmap functions.
  275. 0.8:
  276. BSD compatibility.
  277. fix mmap_shared.
  278. ranlib.
  279. s/EPROTO/EPROTONOSUPPORT/.
  280. 0.7:
  281. add buffer_putspace
  282. fix b0read prototype in buffer/buffer_0*
  283. scan_ip6 will not transparently scan IPv4 addresses and save them as
  284. v4-mapped addresses (::ffff:127.0.0.1).
  285. byte_copy was sped up (but made larger in the process)
  286. 0.6:
  287. changed name to libowfat.
  288. fixed fmt_ulong (did not output 0 correctly).
  289. added buffer.
  290. extended buffer API to include buffer_putulong() and friends.
  291. oops, the read buffering was completely broken!
  292. add mmap library (idea from Ingo Oeser)
  293. 0.5:
  294. made subdirectories for the different libraries.
  295. moved the sources into the corresponding subdirectory.
  296. imported my man pages from libdjb.
  297. removed fmt_int.c and fmt_uint.c (they are macros in fmt.h).
  298. corrected comment in open.h for open_excl.
  299. wrote new man pages for fmt_double, scan_double, the sign fmt_ and
  300. scan_ routines, the whitespace and charset scan_ routines, and the
  301. str and stralloc routines.
  302. 0.4:
  303. implemented stralloc.
  304. 0.3:
  305. implemented uint16, uint32 and uint64. The header files try to
  306. define shortcut endianness conversion routines that do not convert
  307. anything.
  308. implemented open (I hope I got open_excl right, I couldn't find an
  309. implementationen).
  310. 0.2:
  311. implemented the scan, fmt and str interfaces.
  312. added adapted fmt_double and scan_double from diet libc.
  313. 0.1:
  314. initial release.
  315. implemented the byte interface.