ndhc/ncmlib
Nicholas J. Kain 7ab11e8295 Add strnkcpy() and strnkcat(). These are similar to strlcpy and strlcat,
but simply return a bool indicating whether the destination received
a truncated copy of the source (true if truncation occurs else false).

The change in return value semantics allows these functions to stop
scanning the source string early when truncation occurs, stopping the
program from scanning a possibly arbitrary-length source string.

I rarely use these return values in my own programs, so it won't be
very hard to bulk convert with no risk of regressions.

Further, the different namespace allows me to not depend on the presence
or absence of strlc(py|at) in the standard libraries.
2013-05-06 07:06:33 -04:00
..
cap.c Move set_cap() to ncmlib/cap.[ch]. 2010-11-12 09:04:43 -05:00
cap.h Move set_cap() to ncmlib/cap.[ch]. 2010-11-12 09:04:43 -05:00
chroot.c Add strnkcpy() and strnkcat(). These are similar to strlcpy and strlcat, 2013-05-06 07:06:33 -04:00
chroot.h Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
CMakeLists.txt Use the new libc_random_u32() in ncmlib to replace random_xid(). 2011-06-27 15:07:00 -04:00
defines.h Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
io.c Fix a bug in safe_read() that would cause short reads on an async socket 2011-06-10 13:53:05 -04:00
io.h Use the new libc_random_u32() in ncmlib to replace random_xid(). 2011-06-27 15:07:00 -04:00
log.c Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
log.h Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
malloc.c Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
malloc.h Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
pidfile.c Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
pidfile.h Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
random.c Use the new libc_random_u32() in ncmlib to replace random_xid(). 2011-06-27 15:07:00 -04:00
random.h Use the new libc_random_u32() in ncmlib to replace random_xid(). 2011-06-27 15:07:00 -04:00
seccomp-bpf.h Enforce seccomp syscall restrictions when kernel support exists. 2012-07-20 07:05:56 -04:00
signals.c Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
signals.h Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00
strl.c Add strnkcpy() and strnkcat(). These are similar to strlcpy and strlcat, 2013-05-06 07:06:33 -04:00
strl.h Add strnkcpy() and strnkcat(). These are similar to strlcpy and strlcat, 2013-05-06 07:06:33 -04:00
strlist.c Add strnkcpy() and strnkcat(). These are similar to strlcpy and strlcat, 2013-05-06 07:06:33 -04:00
strlist.h Somehow not all of ncmlib was version controlled. Fix. 2010-11-12 18:46:45 -05:00