summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Call pam_setcred.nectar2001-01-231-0/+4
| | | | Reviewed by: markm, months ago
* Add mibs to hold the number of forks since boot. New mibs are:ume2001-01-231-0/+8
| | | | | | | | | | | | | | vm.stats.vm.v_forks vm.stats.vm.v_vforks vm.stats.vm.v_rforks vm.stats.vm.v_kthreads vm.stats.vm.v_forkpages vm.stats.vm.v_vforkpages vm.stats.vm.v_rforkpages vm.stats.vm.v_kthreadpages Submitted by: Paul Herman <pherman@frenchfries.net> Reviewed by: alfred
* Add the -empty flag, from OpenBSD. It returns true if the directorypeter2001-01-235-2/+49
| | | | | | | | | | | is empty. There doesn't appear to be another easy way to do this. mobile# mkdir foo mobile# mkdir foo/bar mobile# mkdir bar mobile# find . -empty ./foo/bar ./bar
* Document that the -z option is equivalent to 'sysctl vm.zone'.des2001-01-231-1/+5
|
* Use the vm.zone sysctl rather that grope through the zone allocator'sdes2001-01-231-52/+15
| | | | internal data structures.
* Update vm zone list traversal for changes made to kernel. Note that thismjacob2001-01-231-2/+6
| | | | | | is ultimately silly because no locks are held in user space while traversing the list via kvm_reads... really, this should use the sysctl interface which *is* protected by a lock in the kernel.
* Fix numerous style(9) bugs: Put #define's before declarations; sort thewill2001-01-211-12/+11
| | | | | | | | | declarations & their arguments; use only one tab after types; restore the type of argv to sync with src tree style; sort new variables under main(); fix continuation indents; remove extra blank line before free()'s. Still to do: fix snprintf() handling as nectar & bde suggested to me. Submitted by: bde
* Fix style(9) bug; use ISDOT[DOT,]() macro available in util.c by movingwill2001-01-213-11/+9
| | | | | | | it to make.h so both dir.c and util.c can use it, although bde didn't particularly like this part of the idea, IMO it's cleaner than it was. Submitted by: bde
* Print out resid portion of MTIOCGET returned data.mjacob2001-01-211-3/+4
|
* Fix typo: -c -> -tache2001-01-211-1/+1
|
* Make "killall -t p0" really works.ache2001-01-211-1/+2
| | | | Old code works only if at least one process name additionly specified.
* Check strdup() return valuesjedgar2001-01-201-4/+8
| | | | Reviewed by: kris
* Minor grammar nit.ben2001-01-161-1/+1
| | | | | PR: 23742 Submitted by: Rich Morin <rdm@cfcl.com>
* man(7) -> mdoc(7).ru2001-01-161-165/+135
|
* mdoc(7) police: fixed broken references.ru2001-01-163-4/+2
|
* Correct spelling of millennium.dwmalone2001-01-161-1/+1
| | | | | PR: 24369 Submitted by: Tony Finch <dot@dotat.at>
* Prepare for mdoc(7)NG.ru2001-01-1612-14/+14
|
* mdoc(7) police: fix the weird construct.ru2001-01-151-2/+8
|
* The patch for the new calendar contained spaces instead of tabs.dwmalone2001-01-151-184/+184
| | | | I only noticed when I went to check that it worked OK in RELENG_3.
* /usr/libexec/cpp -> /usr/bin/cppache2001-01-131-1/+1
| | | | because of new rename to /usr/libexec/cpp0
* Have rpcgen actually tell us what cpp it is looking for (as it would if weobrien2001-01-101-1/+1
| | | | were SVR%).
* Use /usr/bin/cpp as on NetBSD, not /usr/libexec/cpp.obrien2001-01-091-3/+1
|
* Off by one error in reading mmap data.wosch2001-01-061-1/+2
| | | | Submitted by: Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>
* Reinstate revision 1.11:will2001-01-051-37/+62
| | | | | | | | | | | | | | | | | | | | | | BDECFLAGS; ANSIfy; use EXEC instead of "exec " where appropriate; use proper types (size_t, int); use proper variable names for certain things; get rid of static 'cache' style stuff by moving and sanitizing the original SHELL checking code to main(), this also makes it easier to free() the string; rename file-scope system() to exec_shell(); use snprintf() everywhere instead of sprintf(); actually remember to free() other malloc()'d char pointers in main(). I left out the -s option in this revision along with getusershell() checking because of objections made by Warner Losh <imp> and Garrett Wollman <wollman>. I agreed with their assertions that such code was unnecessary in a program like this. I dare people to make this coredump now. Some suggestions: nectar (snprintf() truncate checking) Reviewed by: markm, eivind, jedgar Tortured by: examples in apply(1), fuzz(1), and a lot of random ideas I came up with
* Back out last commit; it had string function mistakes. I will fix thiswill2001-01-042-47/+23
| | | | | | and make sure it works next time. Submitted by: markm, jhb
* Document new -s option: pass a shell to apply(1) when the desired shellwill2001-01-041-0/+7
| | | | isn't found in /etc/shells.
* BDECFLAGS; de-__P()-ify, ANSIfy, use snprintf() instead of sprintf(),will2001-01-041-23/+40
| | | | | | | | | | | | | | especially on strings passed from argv; rename system() to exec_shell(), and make it static; use strlcpy() and make sure it works; use proper type (size_t) to be passed to malloc()/realloc(). Use getusershell() to make sure the SHELL environment variable passed is safe to use. Add new option -s to allow anal users to pass things like perl; this option is here along with getusershell() checking since the such checking is only intended to affect things like suidperl that might call apply(1). Reviewed by: markm, jhb, C. Stephen Gunn <csg@waterspout.com>
* Update for 2001.dwmalone2001-01-041-138/+186
| | | | | PR: 23456 Submitted by: jgrosch@mooseriver.com
* .publickey -> .pubkey to match other finger daemons.des2001-01-043-4/+4
| | | | Suggested by: assar
* Use a slightly better documented way of calculating easter anddwmalone2001-01-022-61/+38
| | | | | | | include a reference to the Calendar FAQ. Also make argument parsing a little more robust. PR: 23881
* Oops, I'm such an idiot. For reasons I don't really agree with,mjacob2000-12-311-1/+1
| | | | | | | | | all devices are by default known by their 'cooked' name, so my change was wrong. I thought it was a hangover from old 'block tape device' support which hasn't worked (if it ever did) since v6/PWB. So, the default tape name is now the same as Linux. Far out, man....
* The default is /dev/nrsa0 (now), not /dev/nsa0.mjacob2000-12-311-1/+1
|
* My bad, committed the submitted patch rather than the fixed patch.phk2000-12-301-2/+3
|
* Use macro API to <sys/queue.h>phk2000-12-303-18/+17
| | | | | Submitted by: "Jason" <jsmethers@pdq.net> Reviewed by: phk
* Use macro API to <sys/queue.h>phk2000-12-301-31/+16
| | | | | Submitted by: "Jason" <jsmethers@pdq.net> Reviewed by: phk
* Use macro API to <sys/queue.h>phk2000-12-301-1/+1
| | | | | Submitted by: "Jason" <jsmethers@pdq.net> Reviewed by: /sbin/md5
* Add support for a .publickey file.des2000-12-293-4/+9
| | | | | Submitted by: Svein Skogen <tds@nsn.no> Reviewed by: brian, ru
* Used macro-API to <sys/queue.h>.phk2000-12-291-13/+13
| | | | Submitted by: ben
* Prepare for mdoc(7)NG.ru2000-12-279-25/+19
|
* Fix for the case where the first two entries returned by readdir() arewill2000-12-261-6/+12
| | | | | | | | | | | | actually NOT '.' and '..'. Apparently this isn't the case when accessing a directory via XFS over NFS on SGI systems. Since I don't have access to an environment like that, this will sit out in -current for at least six weeks. However, the patch proposed by the submitter seems acceptable, so I've decided to commit it to the tree, in the hope that it will solve some problems without bringing up others. PR: 23300 Submitted by: Jim Pirzyk <Jim.Pirzyk@disney.com>
* Use the real user ID so non-root users can kill setuid processesps2000-12-251-1/+1
| | | | | | | they started. PR: 23356 Submitted by: Maxim Konovalov <maxim@macomnet.ru>
* Don't abuse the SCCS `@(#)' for RCS.obrien2000-12-256-6/+6
| | | | Requested by: bde
* As far as I can tell, you have never been able to use 'ab' as a unitdwmalone2000-12-241-1/+1
| | | | name if 'a' and 'b' are unit names. You can use 'a b' though.
* Warn if the size of the remote file isn't known.des2000-12-221-2/+11
| | | | | | | If the -R option was specified, don't truncate the local file even if its mtime is incorrect. PR: bin/23719
* Hostnames are case-insensitivebrian2000-12-221-1/+2
|
* Fix printf(1) for cases where a long string with no format specifiers isben2000-12-211-4/+16
| | | | | | followed by a %d (probably others too) format specifier. Reviewed by: audit
* If the utmp login time is greater than the tty atime, use it to calculatebrian2000-12-212-2/+14
| | | | | | | | | the idle time instead of the atime. This makes entries for people that have logged in but done nothing else show up correctly. Reviewed by: markk@knigma.org
* Prepare for mdoc(7)NG.ru2000-12-1955-211/+259
|
* mdoc(7) police: document IPv6 options in the SYNOPSIS.ru2000-12-181-1/+1
|
* o Fix up includes which built due to excessive nested including in therwatson2000-12-171-6/+5
| | | | | | | | | base system, but not in BruceBSD. o Fix up style violations of various sorts. o Remove redundant normalization of hertz variable, as the sysctl handler does this work (unlike when kread was used). Submitted by: bde
OpenPOWER on IntegriCloud