opnsense-src/lib/libutil
John-Mark Gurney 44f01c419d don't assert on bad args, instead return an error..
Since so many programs don't check return value, always NUL terminate
the buf...

fix rounding when using base 1024 (the bug that started it all)...

add a set of test cases so we can make sure that things don't break
in the future...

Thanks to Clifton Royston for testing and the test program...

Approved by:	re (hrs, glebius)
MFC after:	1 week
2013-10-07 22:22:57 +00:00
..
_secure_path.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
_secure_path.c Grammar in a comment. 2004-12-18 12:31:12 +00:00
auth.c Finally nuke auth.conf, nine years after it was deprecated. The only 2012-06-12 17:02:53 +00:00
expand_number.3 Further simplify the code, and update the manpage. 2010-08-15 18:32:06 +00:00
expand_number.c The round of expand_number() cleanups. 2013-08-30 11:21:52 +00:00
flopen.3 Convert files to UTF-8 and add some copyright markers where missing. 2012-01-07 16:13:56 +00:00
flopen.c Revert (once again, and hopefully for the last time) to flock(2) locks. 2009-06-06 18:47:03 +00:00
fparseln.3 Scheduled mdoc(7) sweep. 2005-01-11 20:50:51 +00:00
fparseln.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
gr_util.c commit correct tested fix for gr_util.c 2013-03-09 13:30:06 +00:00
hexdump.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
hexdump.c Merge hexdump(9) to userland as hexdump(3) in libutil. I'm tired of doing 2008-07-01 22:30:57 +00:00
humanize_number.3 don't assert on bad args, instead return an error.. 2013-10-07 22:22:57 +00:00
humanize_number.c don't assert on bad args, instead return an error.. 2013-10-07 22:22:57 +00:00
kinfo_getallproc.3 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
kinfo_getallproc.c - Commit work from libprocstat project. These patches add support for runtime 2011-05-12 10:11:39 +00:00
kinfo_getfile.3 Spelling fixes. 2010-08-03 17:40:09 +00:00
kinfo_getfile.c Include param.h instead of types.h when using user.h. Otherwise there is 2008-12-27 11:12:23 +00:00
kinfo_getproc.3 Fixed documented prototype of kinfo_getproc(3). 2013-03-01 07:39:14 +00:00
kinfo_getproc.c - Commit work from libprocstat project. These patches add support for runtime 2011-05-12 10:11:39 +00:00
kinfo_getvmmap.3 Spelling fixes. 2010-08-03 17:40:09 +00:00
kinfo_getvmmap.c Include param.h instead of types.h when using user.h. Otherwise there is 2008-12-27 11:12:23 +00:00
kld.3 Convert files to UTF-8 and add some copyright markers where missing. 2012-01-07 16:13:56 +00:00
kld.c UTFize my name. 2010-08-22 11:48:32 +00:00
libutil.h Cleanup gr_add() so it does not leak mem 2013-03-07 19:00:00 +00:00
login.conf.5 Switch the default password hash from md5 to sha512. 2012-06-19 14:46:18 +00:00
login_auth.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
login_auth.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
login_cap.3 Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
login_cap.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
login_cap.h Add two new system calls, setloginclass(2) and getloginclass(2). This makes 2011-03-05 12:40:35 +00:00
login_class.3 Add missing resource limits: 2011-03-24 16:06:57 +00:00
login_class.c Fix NULL ptr dereference in setusercontext if pwd is null, 2012-02-09 21:06:47 +00:00
login_crypt.c Const poisoning. 2002-04-08 11:04:56 +00:00
login_ok.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
login_ok.c Fix typo in comment. 2006-01-16 00:28:11 +00:00
login_times.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
login_times.c Fix -Wunsequenced warning 2013-06-29 15:52:48 +00:00
login_tty.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
login_tty.c Fix a regression that was introduced in r191882. 2010-01-17 17:52:35 +00:00
Makefile Document the pw_util(3) functions 2012-10-30 22:18:08 +00:00
pidfile.3 Add a comment to the example that pidfile_* functions can handle pfh being NULL. 2012-02-08 08:49:30 +00:00
pidfile.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
property.3 Finally nuke auth.conf, nine years after it was deprecated. The only 2012-06-12 17:02:53 +00:00
property.c Restore the previous state after a FILL operation in properties_read() 2005-11-28 16:30:16 +00:00
pty.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
pty.c Add missing header. 2008-11-04 13:50:50 +00:00
pw_util.3 Fix typo 2012-11-03 00:30:22 +00:00
pw_util.c Add O_CLOEXEC to flopen 2012-12-27 20:24:44 +00:00
quotafile.3 Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
quotafile.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
realhostname.3 Remove unnecessary includes from these libutil man pages. 2012-01-16 21:25:41 +00:00
realhostname.c Fixing !INET6 builds. 2008-11-25 02:15:09 +00:00
realhostname_sa.3 mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
stub.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
trimdomain.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
trimdomain.c When removing the local domain, only do so when the result will be a 2005-10-05 04:42:20 +00:00
uucplock.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
uucplock.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00