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.
 
 
 
 

333 lines
14 KiB

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