summaryrefslogtreecommitdiffstats
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Removed occurrences of consecutive repeated words (such as "the the").alex1999-02-121-2/+2
|
* Declare setproctitle() as printf0-like.bde1998-12-161-2/+2
|
* Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This isbde1998-12-161-8/+7
| | | | | | | | an unimprovement here. I thought it would be an improvement, as in libkvm, but here we can access the strings directly. Use sysctlbyname() instead of sysctl() and trust it to give a nonzero address if it succeeds.
* oops. Fix indentation of the 'for' loop I just added.dillon1998-12-131-18/+18
|
* Handle the race condition where vipw may lock a password file which hasdillon1998-12-131-6/+22
| | | | | just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence.
* Better document the file format, add in support for nested {}'s in multi-linejkh1998-11-222-8/+28
| | | | property values.
* Since vfork() was changed to fork(), we have to pass errno back from thedes1998-10-201-3/+6
| | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu>
* correct prototype.jkh1998-10-141-2/+2
|
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-10-131-3/+3
| | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde
* Now take stdio.h out of files that don't require it.jkh1998-10-099-17/+10
|
* Update docs to match interface change.jkh1998-10-091-4/+4
|
* o move path in libutil.h to paths.hjkh1998-10-093-10/+11
| | | | | o make property_read() take a fd instead to avoid stdio.h mess o update auth to new interface.
* Take the path spec back out.jkh1998-10-091-4/+1
|
* All these have to include stdio.h now.jkh1998-10-094-4/+8
|
* remove stdio.h include; I forgot Bruce's cardinal rule that header filesjkh1998-10-081-2/+1
| | | | | | shouldn't include other ones (which, unfortunately, is also a hellish rule since he broke interfaces like sysctl this way by requiring undocumented header files to be included just in order to be able to use them now - SIGH!).
* Add some rudimentary documentation for my new functions.jkh1998-10-084-2/+182
|
* Correct a build error that got past my build test somehow.jkh1998-10-082-0/+3
|
* Add a simple mechanism for reading property lists from files (whichjkh1998-10-074-2/+300
| | | | | | | I'll convert sysinstall to use shortly) and a simple call which uses this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray handle the format and checkin of the sample auth.conf file. Reviewed by: markm
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-161-2/+2
| | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
* Print uid/gid as u_long per bde suggestionache1998-07-291-5/+5
|
* cast arg to (long) to match formatache1998-07-281-3/+3
|
* Cast pid_t to int for sprintf.brian1998-06-101-2/+2
| | | | Pointed out by: Charlie Sorsby <crs@hgo.net>
* Spelling corrections.jkoshy1998-06-063-10/+10
| | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net>
* Add missing uu_lock_txfr() prototypeache1998-06-051-1/+2
|
* If using NetBSD syscalls the rtprio syscall doesn't exist, so justjb1998-06-031-1/+7
| | | | don't try to use it to set special priorities.
* Trim a domain part for wtmp as same as showed by "netstat -r".amurai1998-06-012-3/+42
| | | | | | | | | | | | | Here is a some example for avoiding a confusion. It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value. 1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw Submitted by: Atsushi Murai <amurai@spec.co.jp>
* Add uu_lock_txfr() to transfer ownership of a successfulbrian1998-05-284-10/+62
| | | | uu_lock() to another process.
* Allow setting of idle or realtime processing priorities persteve1998-05-251-5/+22
| | | | | | | login class. PR: 6636 Submitted by: Jason Young <doogie@forbidden-donut.anet-stl.com>
* Oops, revert part of a diff that wasn't supposed to have been committed.dg1998-04-281-2/+2
|
* Cache the results of the ps_strings sysctl so that it doesn't have to bedg1998-04-281-10/+12
| | | | redone for every call of setproctitle().
* Fixed function types in synopsis.bde1998-03-231-10/+10
| | | | | | Commented out docmentation of nonexistent authenticate() and auth_timesok(). authenticate() seems to be obsolete and auth_timesok() never existed in FreeBSD.
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aqcharnier1998-03-191-3/+3
|
* Change tty-related capability names to match the implementation ("ttys.",fenner1998-02-211-10/+10
| | | | not "tty.").
* MF22: add login_auth.3 to man page list.jkh1998-02-181-2/+2
|
* Correctly document h and m modifiers to the time format.steve1998-02-141-1/+3
| | | | | PR: 5739 Submitted by: Matthew Cashdollar <mattc@rfcnet.com>
* Fixed bitrot in the prototype for logwtmp().bde1998-01-161-2/+2
|
* Make a couple of the stat flags dependent on the sys/stat.h header filejb1998-01-091-1/+9
| | | | | | | | | | | that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture. With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-)
* Make the login_getclassbyname prototype match reality.steve1997-11-051-2/+2
| | | | PR: 4838
* Statisize usage().charnier1997-10-271-1/+4
|
* Remove the claim that UUCP locking were not atomic. It is sincejoerg1997-10-071-13/+1
| | | | revision 1.8 of uucplock.c.
* Add passwd(5) to "SEE ALSO".obrien1997-10-071-1/+2
| | | | | | | ISSUES: An example and better explansion on how to specify a user's login class in /etc/master passwd is needed. (As I don't seem to be specifiying it right, I can't do it).
* Changes to support full make parallelism (-j<n>) in the worldjkh1997-10-051-3/+3
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* Sort cross refereces in section SEE ALSO.wosch1997-09-291-2/+2
|
* Endless loop.wosch1997-09-291-5/+5
| | | | | | | | | | | $ vipw [corrupt a line in editor, exit editor] pwd_mkdb: corrupted entry pwd_mkdb: at line #2 pwd_mkdb: /etc/pw.012585: Inappropriate file type or format re-edit the password file? [y]: n^D^D [hang]
* The parameters to logwtmp should be const char'spst1997-09-042-4/+6
|
* Remove login_progok()brian1997-08-315-103/+5
| | | | Suggested by: guido
* Add full support for determining if a userbrian1997-08-275-5/+101
| | | | is restricted from running a given program.
* Add prog.deny as a list capability forbrian1997-08-261-1/+3
| | | | denying execution of certain programs.
* -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.bde1997-08-261-1/+1
|
* Cosmetic: distinguish in diag message between rebuilding and updatingjoerg1997-08-241-1/+2
| | | | | | | the database. PR: 3397 Submitted by: taob@risc.org (Brian Tao)
OpenPOWER on IntegriCloud