17 Commits (53337c81d40b90d3f8daab92c8419522d3a1c0fc)

Author SHA1 Message Date
Stefan Bühler bc6b256c34 [core] use readdir instead of readdir_r
readdir_r is deprecated in glibc due to serious memory handling issues
in the API: one cannot pass the size of the allocated dirent.

glibc authors claims readdir is thread-safe in modern implementations,
and expect POSIX to require it in a future version.

No way to check whether readdir is thread-safe though :(

("thread-safe" in this context means different directory streams, which
is good enough.)

Also remove li_dirent_buf_size.

Change-Id: Ia5eae3327e97dc4b0751fb2604ea21c0ce09a5f9
6 years ago
Stefan Bühler f527a16138 [debug] provide more unique event names for waitqueues
Change-Id: Iddf9e10b3902fbfe4fa7e97b7a172018d0d70b54
8 years ago
Stefan Bühler 17a5168793 [core] convert all assert() to LI_FORCE_ASSERT(), and support writing backtraces on fatal errors with libunwind 9 years ago
Stefan Bühler cfd8955008 [common] implement libev wrapper
* need a way to mark a watcher as "don't keep the loop alive"
10 years ago
Stefan Bühler be65208143 waitqueue: modify callback 13 years ago
Stefan Bühler 1c3d3c287f [core]: add tasklet pools to workers and use them for stat-cache 13 years ago
Thomas Porzelt c8663ffda9 [core] Allow disabling of stat cache through stat_cache.ttl 0; 13 years ago
Stefan Bühler 25222e9b1c stat-cache: Fix segfault 13 years ago
Stefan Bühler 405c6b26f4 Part 2: [lua]: Add 'add_file' and 'add_temp_file' method for chunkqueue; 'add' only accepts simple strings now 13 years ago
Stefan Bühler 48aac3ab07 [stat-cache] Provide blocking cached stat 13 years ago
Stefan Bühler 619a2d6582 stat-cache: close file if fstat fails 14 years ago
Thomas Porzelt e6c50c644b [core] Retry open() in stat_cache in case of EINTR 14 years ago
Stefan Bühler a151eeac2f Prefix li_ cleanup, verified with nm -g --defined-only 14 years ago
Stefan Bühler df207beb6b stat cache: Alloc dirlist entry array only if stat was successful 14 years ago
Stefan Bühler 4653900eca Fix stat-cache ref counting 14 years ago
Stefan Bühler 594987c29e Add li_ev_safe_ref_and_stop macro and use it 14 years ago
Stefan Bühler 540ff7db02 Split sources into subdirs 14 years ago