summaryrefslogtreecommitdiffstats
path: root/lib/libutil (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* comment inside commentderaadt2007-09-091-2/+2
|
* convert to new .Dd format;jmc2007-05-3115-30/+30
|
* Make it clear, that the line returned does not have amoritz2007-05-161-3/+3
| | | | | | trailing newline in contrast to fgetln(3). ok ray@ jmc@ millert@
* remove some bogus *p from charles longeautedu2007-03-201-4/+4
| | | | ok deraadt millert
* fix some dodgy displays;jmc2007-02-061-3/+2
|
* Don't use err as labels or variables, especially since we includeray2006-12-201-7/+7
| | | | | | err.h. OK moritz@ and jaredy@.
* Always write errno on pw_lock failure so it can be relied on.ray2006-12-172-5/+29
| | | | | | Mention errno, pw_file, and pw_init in pw_lock man page. OK jmc@, otto@, millert@, and deraadt@.
* Fix off by one comparison. FSMAXTYPES is the last valid index intokrw2006-10-021-2/+2
| | | | | | | | | 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@
* 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@
* getting to the bottom of the issues. sprinkle a few casts that willderaadt2006-04-023-6/+6
| | | | | actually help us find bugs later (with lint, not cc), if they get introduced
* casts that cannot cause breakage in the futurederaadt2006-03-301-4/+4
|
* change internal login_protect() API to use mode_t like it shouldderaadt2006-03-301-4/+4
|
* please lint (without making anything else worse)deraadt2006-03-301-4/+4
|
* spaces, and a off_t typecast to please lintderaadt2005-11-281-7/+7
|
* use WANTLINT= (on all architectures)deraadt2005-11-241-1/+2
|
* library routines should not be checking for NULL pointers passed in,deraadt2005-10-194-27/+5
| | | | | | and then setting errno to EFAULT. that is balony programming! they should keep stumbling along to purposely create a crash, so that the programmer stops doing that kind of stupid crap. ok otto
* add uu_lock_txfr to .Nm list;jmc2005-10-121-2/+3
|
* scrape $Id$ tags.espie2005-08-0211-60/+11
| | | | okay deraadt@, millert@, krw@
* O_EXLOCK stuff was introduced in June 1997, and backed out again injmc2005-07-291-5/+3
| | | | | | | | | | | | November of that year; however, the corresponding man changes were never backed out. do that now, reversing -r1.3 of this file; original pr and diff from peter philipp (this commit closes pr #4309); i chose to revert -r1.3 rather than accept the new wording from peter; thanks jaredy@ for tracking all this down, and supplying the ok...
* 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@.