summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Retire this ancient version of rdist.obrien2000-12-0712-4409/+0
|
* Change the spelling of `.' to `.' from .OBJDIR since `.' really is whereobrien2000-12-052-2/+2
| | | | generated files land. Also give precedence to generated files.
* remove struct mount from useland visibilityalfred2000-12-041-1/+1
|
* Remove register keyword usage with prejudice.asmodai2000-12-034-16/+16
| | | | | Modern compilers are smarter when it comes to allocating register usage.
* There's also no point in #typedef'ing void/char pointers. Accordingly,will2000-12-0236-512/+472
| | | | | | rip out ClientData/Address pointers and use standard types. Obtained from: OpenBSD
* Use a size_t instead of an int.asmodai2000-12-021-1/+1
|
* Correct int/long type mismatch in the proper place this time. freevnodesgallatin2000-12-021-2/+2
| | | | | | | | | | | and numvnodes are longs in the kernel. They should remain longs in systat, what really needs to change is that they should be using SYSCTL_LONG rather than SYSCTL_INT. I also changed wantfreevnodes to SYSCTL_LONG because I happened to notice it. I wish there was a way to find all of these automatically.. Pointed out by: bde
* Properly constify some static arrays.asmodai2000-12-024-3/+17
| | | | Also #if out some sccsid's and add rcsid's.
* There's no reason to use fancy forms of NULL. Replace all instanceswill2000-12-0238-238/+224
| | | | | | of NIL, NILLST, NILLGNODE, etc. with NULL. Obtained from: OpenBSD
* fix another int/long type mismatch. This one was causing pigs togallatin2000-12-011-1/+1
| | | | die with an fpe on alpha because fscale wasn't properly initted
* fix int/long type mismatches found on alphagallatin2000-12-011-4/+4
|
* Grrr... GCC 2.95.2 and 2.96 just will not agree what the default includeobrien2000-12-011-1/+1
| | | | search paths are. So add the requirements of both. :-(
* The GCC 2.96 snapshots have slightly different rules for finding includeobrien2000-12-012-2/+2
| | | | | | | files. Mostly -I${.CURDIR} was needed -- especially for YACC generated files as the new cpp does not look in the ultimate source file (ie, the .y file)'s directory as told by the "#line" directive. Some were misspellings of "-I${.CURDIR}" as "-I.".
* o Make comment match reality, synch code with comment.rwatson2000-11-301-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | o In practice: the comment indicates that all but umask and environmental variables of the users login class are applied when su occurs, unless -m is used to specify a class. This was incorrect; in practice, the uid, gids, resources, and priority were set, and then resources and priority were selectively removed. This meant that some aspects of the user context were not set, including handling of login events (wtmp, utmp), as well as the path specified in login.conf. o I changed it so that the behavior is the same, but instead, LOGIN_SETALL is used, and appropriate flags are removed, including the LOGIN_SETLOGIN and LOGIN_SETPATH entries that were implicitly not present before. I also updated the comment to reflect reality, selecting reality as the "correct" behavior. o This has the practical benefit that as new LOGIN_SET* flags are introduced, they are supported by su unless specifically disabled. For example, of a LOGIN_SETLABEL flag is introduced to support MAC labels determined by the user's login class, then su no longer has to be modified. o It might be desirable to have su use LOGIN_SETPATH depending on its command line parameters, as it might or might not be considered part of the "environment". Obtained from: TrustedBSD Project
* Format string paranoia. This should avoid potential buffer overflows fromwill2000-11-303-13/+29
| | | | | | user input (in its ever-broadening definition). Obtained from: NetBSD
* If the transfer timed out, but we don't know how large the file is supposeddes2000-11-301-1/+10
| | | | to be, assume it was truncated.
* Make use of the full screen width to display p_comm rather than assuming ajhb2000-11-291-3/+6
| | | | hardcoded screen width of 80 chars.
* Display the name of the mutex we are blocked on in the state field. Tojhb2000-11-291-0/+6
| | | | | | | differentiate mutex names from wait channel names, prefix mutex names with an asterisk. Submitted by: Dan Nelson <dnelson@emsphone.com>
* Xref make.conf(5), and point to /usr/share/doc/psd/12.make for thenik2000-11-291-1/+4
| | | | tutorial paper.
* Eliminate groff(1) warnings.ru2000-11-291-27/+28
|
* Eliminate groff(1) warnings caused by vgrind(1).ru2000-11-291-4/+6
|
* Fix a typo and a punctuation mistake, the two of which conspiredsheldonh2000-11-291-2/+2
| | | | against the reader.
* Add LIBCRYPT to DPADD.marcel2000-11-281-1/+1
| | | | Implied by: bde
* Format string auditingkris2000-11-271-2/+2
|
* *** empty log message ***kris2000-11-271-1/+1
|
* Constifykris2000-11-271-1/+1
|
* Fix format string warnings.kris2000-11-271-1/+1
| | | | | Submitted by: nra Obtained from: NetBSD
* Cleanup this code a bit by attempting to sync it up with NetBSD andkris2000-11-262-26/+33
| | | | | | with each other. Reviewed by: markm, dwmalone
* Use the vendor's manpages (which are in old -man format) rather thanobrien2000-11-263-631/+16
| | | | our modified one based on a much older version of the vendor's manpage.
* Correct definition of MAXHOSTNAMELEN in ifdef'ed code.kris2000-11-261-1/+1
| | | | | Submitted by: Edwin Groothuis <mavetju@chello.nl> PR: bin/22787
* Constifykris2000-11-263-2/+2
|
* vsprintf() -> vsnprintf()kris2000-11-261-1/+1
|
* o Make systat/vmstat.c use sysctl() to retrieve cp_time, bufspace,rwatson2000-11-251-29/+50
| | | | | | | | | | maxvnodes, numvnodes, freevnodes, nchstats, and numdirtybuffers. o Make the hw.ncpu error checking code a little more rigorous by sanity checking the returned data size. o Didn't fix machine-dependent non-sysctl-exported variables: intrnames, eintrnames, intrcnt, eintrcnt, as these variables are defined and exported from machine-dependent kernel code in assembly. This should probably be fixed somehow.
* o make systat/pigs.c use syctl() to retrieve cp_time, fscale, and ccpurwatson2000-11-251-27/+32
| | | | instead of using kmem.
* o Make systat/iostat.c use sysctl() to retrieve cp_time instead ofrwatson2000-11-251-23/+9
| | | | kmem.
* o Make systat use sysctl() to retrieve hz and stathz, instead ofrwatson2000-11-251-19/+14
| | | | using kmem.
* Reimplement the groff(1) warnings elimination fixes in a better way.ru2000-11-242-10/+5
|
* [rsh.1] Document the `-4' and `-6' options.jkoshy2000-11-242-2/+6
| | | | [rsh.c] Make usage message match the code.
* [rlogin.1] Document the `-4' and `-6' options. Correct a typo.jkoshy2000-11-242-3/+7
| | | | [rlogin.c] Make the usage message match the code.
* Eliminate groff(1) warnings.ru2000-11-232-2/+20
|
* kenv(1) first appeared in FreeBSD 4.1.1, not FreeBSD 5.0.ben2000-11-231-1/+1
| | | | | PR: 23020 Submitted by: Simon Dick <simond@irrelevant.org>
* Use correct macro for path namephantom2000-11-221-1/+1
| | | | PR: docs/13218
* Create temporary files in a secure directory, instead of using multiplekris2000-11-222-7/+9
| | | | | | | filenames based on a single invocation of mktemp() in /tmp, which is easily predictable after the first one. Audited by: markm
* mdoc(7) police: do not split author names in the AUTHORS section.ru2000-11-227-2/+9
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-20138-476/+482
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Add -lcrypt. This fixes cross-building.marcel2000-11-201-1/+1
|
* Unlink the temporary file immediately so it is removed on exit.kris2000-11-191-19/+15
| | | | Obtained from: OpenBSD
* Fix a buffer overflow from a long local hostname.kris2000-11-191-2/+2
| | | | Obtained from: OpenBSD
* Add/fix the ability to split a file larger than 2 gigabytes.jwd2000-11-191-4/+6
| | | | | | | | Added $FreeBSD tag (in the way the already present sccsid is done). I've been told the rcsid stuff may be of dubious value so I'm curious to know if folks (still) use it. Submitted by: Brad Chisholm <blc@bsdwins.com>
OpenPOWER on IntegriCloud