summaryrefslogtreecommitdiff
path: root/lib/libutil
AgeCommit message (Collapse)Author
2012-10-22struct buf -> ibuf; from Sunil NimmagaddaJason McIntyre
2012-09-09Use "unsigned int" instead of BSD "u_int" in <util.h> so that it canMatthew Dempsky
be included in source files that specify POSIX source. libutil isn't a standard POSIX library, but no need to be gratuitously incompatible. Fixes x11/st. ok tedu, guenther, kettenis
2012-09-07various fixes;Jason McIntyre
2012-09-06Move the commented out test program in pkcs5_pbkdf2.c into a properMatthew Dempsky
regress test.
2012-09-06some better phrasing, mostly via jsingTed Unangst
2012-09-06move pkcs5_pbkdf5 function to libutil so everybody can play with itTed Unangst
ok deraadt jsing matthew
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.Okan Demirmen
ok guenther@
2012-07-09ANSIfy forkpty, add missing $OpenBSD$ in duid.c, style (no arg names) inNicholas Marriott
util.h. ok guenther
2012-06-15update return values for ibuf_write and msgbuf_writeJonathan Matthew
ok gilles@
2012-06-04crank minor, since a symbol was addedTheo de Raadt
2012-06-02in imsg_read() avoid calling recvmsg() if we detect that we will be shortGilles Chehade
on descriptors, this can be achieved thanks to the new getdtablecount() system call. application may provide a reserve count to ensure that the recvmsg() call is not called when they don't have enough descriptors to work properly. change the API so that transient errors that can be retried immediately are retried within the function right away, whereas transient errors for which the application may want to take action will set errno to EAGAIN. ok deraadt@ and henning@
2012-04-26Drop support from openpty() for 8+ year old kernels that don't supportMatthew Dempsky
/dev/ptm. Users are strongly encouraged to upgrade to a more recent release if they haven't already. ok deraadt
2011-06-30Do not mask errno if we fail to open /dev/diskmap. Also, fall throughJoel Sing
rather than returning so that realname still gets assigned. ok millert@ deraadt@ thib@
2011-06-23s/ands/and/, from Tobias UlmerStuart Henderson
2011-03-05Correct msgbuf_write() example. OK jmc@ and nicm@Claudio Jeker
2011-01-03Update to better describe reality, i.e. disklabel(8) UID usage.Kenneth R Westerback
ok jmc@ jsing@
2010-12-22Do not attempt to prepend /dev/ to path if it already contains a slash.Todd C. Miller
OK jsing@
2010-12-21Always return a pointer to the static buffer in realpath, even ifTodd C. Miller
path and realpath are the same. This matches the manual and avoids a bogus cast to non-const. OK jsing@, previous version OK kettenis@
2010-12-17opendev() path argument should be const. OK deraadt@Todd C. Miller
2010-11-17Document isduid(3).Joel Sing
Tweaks from jmc@ ok jmc@ krw@
2010-11-16Crank minor due to the addition of isduid().Joel Sing
2010-11-15Teach readlabelfs() how to handle DUIDs.Joel Sing
ok krw@
2010-11-15Factor out DUID identification code so that it can easily be reused.Joel Sing
ok krw@
2010-10-31imsg.h requires sys/uio.h, ok deraadtNicholas Marriott
2010-06-28add missing headers needed for close() and ioctl().Charles Longeau
ok krw@ millert@
2010-06-23Protect against multiple inclusion, from Christiano F. Haesbaert.Nicholas Marriott
ok deraadt@
2010-06-18If a request to opendev(3) is given in the form of a disklabel UID,Joel Sing
open /dev/diskmap and perform a DIOCMAP ioctl in order to open the actual device. As a result, all programs which make use of opendev(3) can now operate with disklabel UIDs. Feedback from millert@ ok millert@ krw@ thib@
2010-05-28typo; Ian McWilliamStuart Henderson
2010-05-26Move imsg into libutil and add a man page.Nicholas Marriott
Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt
2010-04-01WARNINGS -> CAVEATS, and a little neccessary cleanup;Jason McIntyre
2009-10-28Do not need -DLIBC_SCCS anymoreTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-09-29remove unsupported LIBRARY section; from Alan R. S. BuenoJason McIntyre
2009-08-01Use STD*_FILENO instead of 0-2. OK henning@ djm@ gilles@ dhill@Todd C. Miller
2009-06-20use llabs instead of the home-grown version; and some comment changesMartynas Venckus
ok ian@, millert@
2008-07-29example code fix from Will Maier; ok ottoJason McIntyre
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2007-11-19copy in FILES from pw_lock.3 to vipw.8: as nick points out, it should atJason McIntyre
least document /etc/ptmp; while i'm at it, might as well tidy it up and make it consistent across these pages;
2007-09-09comment inside commentTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-16Make it clear, that the line returned does not have aMoritz Jodeit
trailing newline in contrast to fgetln(3). ok ray@ jmc@ millert@
2007-03-20remove some bogus *p from charles longeauTed Unangst
ok deraadt millert
2007-02-06fix some dodgy displays;Jason McIntyre
2006-12-20Don't use err as labels or variables, especially since we includeRay Lai
err.h. OK moritz@ and jaredy@.
2006-12-17Always write errno on pw_lock failure so it can be relied on.Ray Lai
Mention errno, pw_file, and pw_init in pw_lock man page. OK jmc@, otto@, millert@, and deraadt@.
2006-10-02Fix off by one comparison. FSMAXTYPES is the last valid index intoKenneth R Westerback
fstypesnames[], but that entry is NULL. The last valid file system name is at fstypesnames[FSMAXTYPES-1]. Encountered and diagnosed by pedro@. ok pedro@ deraadt@
2006-06-14Nuke only two uses of OPENDEV_DRCT in tree. Nuke OPENDEV_DRCT. LongKenneth R Westerback
marked obsolete since the opendev() behaviour it turned on is now the default. 'it can go' deraadt@ 'no API of mine has ever made it into a standard' downsj@
2006-04-02getting to the bottom of the issues. sprinkle a few casts that willTheo de Raadt
actually help us find bugs later (with lint, not cc), if they get introduced
2006-03-30casts that cannot cause breakage in the futureTheo de Raadt
2006-03-30change internal login_protect() API to use mode_t like it shouldTheo de Raadt