summaryrefslogtreecommitdiff
path: root/tools/regression/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Integrate lib/libutil into the build/kyuaEnji Cooper2014-08-1312-1448/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the .t wrappers Rename all of the TAP test applications from test-<test> to <test>_test to match the convention described in the TestSuite wiki page humanize_number_test.c: - Fix -Wformat warnings with counter variables - Fix minor style(9) issues: -- Header sorting -- Variable declaration alignment/sorting in main(..) -- Fit the lines in <80 columns - Fix an off by one index error in the testcase output [*] - Remove unnecessary `extern char * optarg;` (this is already provided by unistd.h) Phabric: D555 Approved by: jmmv (mentor) MFC after: 2 weeks Obtained from: EMC / Isilon Storage Division [*] Submitted by: Casey Peel <cpeel@isilon.com> [*] Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=269904
* don't assert on bad args, instead return an error..John-Mark Gurney2013-10-073-1/+604
| | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=256130
* Add test-pidfile.c and increase warning level.Dag-Erling Smørgrav2009-11-121-2/+2
| | | | Notes: svn path=/head/; revision=199214
* Test cases for pidfile(3) - including two designed to catch issues arisingDag-Erling Smørgrav2009-11-121-0/+280
| | | | | | | from the incorrect use of fcntl(2) instead of flock(2). Notes: svn path=/head/; revision=199213
* Fix warnings and remove one unnecessary use of vfork(). The other couldDag-Erling Smørgrav2009-11-121-9/+3
| | | | | | | also be removed with a little more work. Notes: svn path=/head/; revision=199212
* Fix warningsDag-Erling Smørgrav2009-11-123-7/+9
| | | | Notes: svn path=/head/; revision=199211
* Check fork() return valueDag-Erling Smørgrav2009-11-101-2/+5
| | | | Notes: svn path=/head/; revision=199134
* Update copyright.Dag-Erling Smørgrav2009-10-191-1/+1
| | | | Notes: svn path=/head/; revision=198225
* Remove redundant $FreeBSD$.Dag-Erling Smørgrav2009-10-191-2/+0
| | | | Notes: svn path=/head/; revision=198224
* Check that flopen() can lock against self and that children inherit the lock.Dag-Erling Smørgrav2009-06-061-6/+41
| | | | Notes: svn path=/head/; revision=193592
* #ifdef out the lock-against-self test. I'm not sure it makes sense, andDag-Erling Smørgrav2008-10-201-0/+4
| | | | | | | | | it relies on non-portable flock(2) semantics. Not only is flock(2) not portable, but on some OSes that do have it, it is implemented in terms of fcntl(2) locks, which are per-process rather than per-descriptor. Notes: svn path=/head/; revision=184090
* Add four utility functions related to struct grp processing modeled in-partSean Farley2008-04-233-1/+130
| | | | | | | | | | | | | | | | | | | | | | after similar calls related to struct pwd in libutil/pw_util.c: - gr_equal() Perform a deep comparison of two struct grp's. It does a thorough, yet unoptimized comparison of all the members regardless of order. - gr_make() Create a string (see group(5)) from a struct grp. - gr_dup() Duplicate a struct grp. Returns a value that is a single contiguous block of memory. - gr_scan() Create a struct grp from a string (as produced by gr_make()). MFC after: 3 weeks Notes: svn path=/head/; revision=178431
* Add regression tests for flopen(3).Dag-Erling Smørgrav2007-08-033-1/+189
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=171707
* Add regression tests for trimdomain(3).Brooks Davis2005-10-055-0/+212
Notes: svn path=/head/; revision=150956