summaryrefslogtreecommitdiffstats
path: root/lib/libutil/util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* uucplock(3) is incorrectly named in some places, it is actually uu_lock(3)deraadt2019-08-301-2/+2
| | | | (more unclear is if anything in ports uses this, as our base no longer does)
* Add getptmfd(), fdopenpty(), fdforkpty() functions. These allow programsnicm2017-04-201-1/+5
| | | | | | | | | to separate the open(/dev/ptm) from the ioctl(PTMGET) for privilege separation or pledge(). Based on a diff from reyk@. ok deraadt millert
* Add bcrypt_pbkdf, a password based key derivation function using bcrypt.tedu2013-06-031-3/+5
| | | | | | | Technically, it's a slight variant of bcrypt better suited for use as a pluggable hash with PKCS #5 PBKDF2. ok djm (also tweak pkcs5_pbkdf2() prototype to have consistent types.)
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-2/+1
| | | | ok guenther millert kettenis
* Use "unsigned int" instead of BSD "u_int" in <util.h> so that it canmatthew2012-09-091-2/+2
| | | | | | | | 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
* move pkcs5_pbkdf5 function to libutil so everybody can play with ittedu2012-09-061-1/+4
| | | | ok deraadt jsing matthew
* ANSIfy forkpty, add missing $OpenBSD$ in duid.c, style (no arg names) innicm2012-07-091-10/+9
| | | | | | util.h. ok guenther
* opendev() path argument should be const. OK deraadt@millert2010-12-171-2/+2
|
* Factor out DUID identification code so that it can easily be reused.jsing2010-11-151-1/+2
| | | | ok krw@
* Nuke only two uses of OPENDEV_DRCT in tree. Nuke OPENDEV_DRCT. Longkrw2006-06-141-2/+1
| | | | | | | | | 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@
* passwd.conf has been deprecated since login.conf was imported.millert2004-07-131-2/+1
| | | | Today it finally dies. Based on a diff from Gabriel Kihlman.
* Change pw_copy(3) to take a 3rd arguement, the existing passwd entry.millert2004-04-201-2/+2
| | | | | | | This allows an application to only update a password entry if it is in the state it expects. Additionally, if the old passwd struct is specified the new one may have a different pw_name field since matching is done on the original. Adapted from FreeBSD.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* New: fmt_scaled() and scan_scaled() convert to and from "human readable"ian2003-05-151-1/+8
| | | | | | or scaled numbers. fmt_scaled, and the format, based on Ken Stailey's code for "df -h"; scan_scaled is new. Significantly commented on and reworked by pjanzen@; other comments from millert@. OK pjanzen@.
* login_fbtab(3) fixes:millert2002-06-211-4/+3
| | | | | | | | o make first arg const since we don't modify it o use strsep() instead of strtok() as strtok() changes internal state o add some bounds checking and use strlcat() instead of pointer arithmetic o ANSI function headers Originally based on a patch from Lars J. Buitinck but much modified.
* some -Wall and spaces cleanup, scsi.c left.fgsch2002-06-091-2/+2
| | | | some brave soul should look at it.
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-5/+5
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-30/+30
|
* re-enable pidfile(3). ok millert@jakob2001-09-291-1/+2
|
* zap pidfile from here too, until conflict with kerberosV is fixed ok deraadt@matthieu2001-09-291-2/+1
|
* add pidfile(3) prototypejakob2001-09-281-1/+2
|
* Add new 'secureonly' arg to pw_mkdb() to correspond to pwd_mkdb's new -smillert2001-08-161-2/+2
| | | | flag and crank the library major due to the interface change.
* Get rid of extraneous #includes by using stub struct declarations.millert2001-08-121-19/+27
|
* proto; S@mSmith.netderaadt2001-06-101-2/+4
|
* login_check_expire(3), a helper function for use with BSD authentication.millert2000-11-261-1/+2
| | | | | This lives in libutil because it uses pw_lock(3) and friends. Needs a man page (soon!).
* Add a username argument to pw_mkdb to match 'pwd_mkdb -u username'.millert2000-11-261-2/+2
| | | | Crank the shlib major number due to the interface change.
* Add OPENDEV_BLCKmillert2000-04-301-2/+3
|
* Added fparseln from NetBSD.jakob1999-07-201-1/+12
| | | | ok deraadt@
* Add uu_lock_txfr() for donating locks to another process.brian1998-06-081-1/+3
| | | | Reviewed by: Theo
* Introduce uu_lock(), uu_unlock() and uu_lockerr()bri1997-11-091-1/+13
| | | | | | into libutil. Obtained from: FreeBSD Reviewed by: Theo
* Add support to handle password files in directories other than /etcniklas1997-06-171-1/+3
|
* added password configuration access function, used to determineprovos1997-02-161-1/+2
| | | | password cipher type at the moment
* readlabelfs() takes two arguments now, update prototype, inc major number.downsj1996-12-231-2/+2
|
* Add readlabelfs().downsj1996-12-031-6/+7
|
* login_fbtab() in libutilderaadt1996-07-311-1/+2
|
* util.h: new resting placedownsj1996-06-171-0/+76
opendev.h: ok, so I merged it with util.h opendev.h: use util.h everything else: use "util.h"