summaryrefslogtreecommitdiffstats
path: root/lib/libutil (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix rounding of fractionless numbers. ok tom@ miod@otto2005-03-091-4/+10
|
* Fix sizing of fraction. ok tom@ deraadt@otto2005-03-081-9/+4
|
* use .Pq rather than .Po/.Pc;jmc2005-03-071-3/+3
|
* Make sure we check snprintf return value for failure or truncation beforecloder2005-03-031-9/+10
| | | | | | using it. Make uu_lock_txfr work by properly checking return value from put_pid(). Fix an FD leak on the lockfile in an error path (from FreeBSD with modifications). OK millert@, input from otto@ and Bruno Rohee.
* update FILES;jmc2004-11-251-3/+7
| | | | | | fixes pr #3998; diff from frank denis, though slightly different fix committed; help and ok millert@
* Treat EOF at prompt the same as 'n' instead of looping forever.millert2004-11-041-3/+10
| | | | Noticed by mepch@. OK pedro@ and deraadt@
* label a switch fallthroughderaadt2004-09-181-1/+2
|
* avoid aliasing over library symbolderaadt2004-09-181-5/+5
|
* cast not neededderaadt2004-09-181-3/+3
|
* fix 1099512676352 -> 2.0T; ok miod@otto2004-09-161-3/+3
|
* passwd.conf has been deprecated since login.conf was imported.millert2004-07-134-238/+6
| | | | Today it finally dies. Based on a diff from Gabriel Kihlman.
* errno changes, lib major version bumps, and general flag daymarc2004-07-131-1/+1
| | | | | | | To build you must: cd /usr/src && make obj && make includes cd lib/libc && make depend && make && NOMAN=1 sudo make install cd /usr/src && make build
* knf; otto okderaadt2004-05-2814-117/+77
|
* kill whitespace at eol;jmc2004-04-211-2/+2
|
* Adapt to new pw_copy() API, closes PR 3698.millert2004-04-201-11/+6
|
* Change pw_copy(3) to take a 3rd arguement, the existing passwd entry.millert2004-04-204-13/+49
| | | | | | | 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.
* Crank max ptys to 992. We now have 62 pty/tty pairs for each lettermillert2004-04-111-5/+6
| | | | | | instead of 16. E.g. it is now /dev/{p,t}typ[0-9a-zA-z] instead of just /dev/{p,t}typ[0-9a-f]. This requires that you update MAKEDEV and run: # cd /dev && ./MAKEDEV pty0 && rm -f [pt]ty[rq]*
* typoespie2004-02-211-2/+2
|
* Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGETmillert2004-02-102-4/+60
| | | | | | | | | | | ioctl(2), an unprivileged process may allocate a pty and have its owner and mode set appropriately. This means that programs such as xterm and screen no longer need to be setuid. Programs using the openpty() function require zero changes and will "just work". Designed by beck@ and deraadt@; changes by beck@ with cleanup (and a rewrite of the vnode bits) by art@ and tweaks/bugfixes by me. Tested by many.
* o Do not drop unit when printing -100otto2003-12-271-5/+8
| | | | | | | o Round negative numbers correctly o Do not print fractional valus for byte values ok ian@ henning@
* utilties -> utilities; from Jared Yanovichjmc2003-10-221-2/+2
|
* fix use-after-free for expired passwds; ok deraadt, tdevalmarkus2003-09-021-7/+9
|
* move junk (bad code, terrible APIs) to the only program that uses it;deraadt2003-07-235-1668/+6
| | | | millert ok
* fix function description in SYNOPSIS;jmc2003-07-151-16/+16
|
* ansi and protosderaadt2003-06-261-45/+24
|
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-171-8/+8
| | | | where applicable.
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-031-19/+11
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0212-78/+30
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* - section reorderjmc2003-06-024-36/+36
| | | | - clean up .Xr's
* - typosjmc2003-05-236-47/+50
| | | | - new sentence, new line
* New: fmt_scaled() and scan_scaled() convert to and from "human readable"ian2003-05-155-5/+424
| | | | | | 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@.
* knfderaadt2003-04-021-3/+3
|
* Throw an error if the username field is empty; noticed by mpech@millert2003-04-011-3/+4
|
* more asprintf; millert okderaadt2003-03-301-5/+3
|
* asprintf; millert okderaadt2003-03-301-5/+4
|
* .Xr typos;jmc2003-03-062-6/+6
| | | | ok deraadt@
* Crank all library major numbers. Needed due to the fact that wemillert2002-12-031-2/+2
| | | | | | | | now build libraries with propolice enabled. Without this, existing binaries (such as ports/packages) that link with any system library other than libc will fail with an undefined symbol of "___guard" (__guard on ELF). Pointed out by markus@ and discussed with deraadt@
* Add HISTORY sectionmillert2002-11-241-1/+8
|
* do not export error_tablederaadt2002-08-231-2/+2
|
* mark pw_error() __dead since it exitsmillert2002-07-311-3/+3
|
* %u for uid/gid; millert okderaadt2002-06-271-6/+7
|
* Now that we don't have a trailing newline we need to explicitly checkmillert2002-06-251-3/+4
| | | | that the first char in the line is not NUL after killing comments.
* Use strtok_r() instead of strsep() since the latter treats consecutivemillert2002-06-221-8/+22
| | | | | field separators as empty field. This is not what we want for whitespace-delimited fields.
* login_fbtab(3) fixes:millert2002-06-213-63/+71
| | | | | | | | 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-0913-28/+28
| | | | some brave soul should look at it.
* pid_t cleanupderaadt2002-05-262-7/+7
|
* strlcpy at most 16 characters, so says man pagederaadt2002-05-241-4/+9
|
* strlcpy and KNFderaadt2002-05-241-29/+32
|
* KNFderaadt2002-05-241-4/+4
|
* atexit(3) can fail. handle error accordingly. deraadt okitojun2002-05-221-3/+11
| | | | | XXX libraries should not use atexit(3) from within, as program can terminate with _exit.