summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Create a save TMPDIR using `mktemp -d'.wosch1998-06-181-2/+7
|
* Remove compile time dependency on ARG_MAX.jkoshy1998-06-171-3/+5
| | | | | | | | This fix only removes the dependency on compile time constants. The code has other (old) problems that need to be addressed. PR: 1791 Reviewed-by: bde, tegge
* sprintf -> snprintf to avoid potential buffer overflow.steve1998-06-146-21/+27
| | | | | PR: 6907 Submitted by: Archie Cobbs <archie@whistle.com>
* Correct the description of the last four fields.steve1998-06-131-3/+3
| | | | | PR: 6926 Submitted by: Josh Gilliam <josh@quick.net>
* Make -V expand it's arguments. This means that instead of 'make -V OBJS'peter1998-06-131-6/+8
| | | | | printing something useless (to a shell) like: ${SRCS:N*.h:R:S/$/.o/g} it will instead print the actual ${OBJS} value.
* "./strip maybe_stripped" doesn't work too well if maybe_stripped is anpeter1998-06-121-1/+1
| | | | elf executable..
* The doscmd build process and doscmd.kernel loader is very a.out specificpeter1998-06-121-2/+5
| | | | and doesn't fly too well on in an elf enviroment yet.
* #include <arpa/inet.h>peter1998-06-122-2/+4
|
* Add -DFREEBSD_AOUT to CFLAGS to ensure we get the correct definitionspeter1998-06-121-2/+2
| | | | from <link.h>
* #include <arpa/inet.h>peter1998-06-121-3/+5
| | | | Also, use real struct in_addr rather than u_long.
* #include <arpa/inet.h>peter1998-06-122-4/+3
|
* #include <arpa/inet.h>peter1998-06-121-3/+2
|
* Local filesystems are ufs not ffsache1998-06-111-2/+2
| | | | Submitted by: "D. Rock" <rock@cs.uni-sb.de>
* Submitted by: Peter Hawkins thepish@freebsd.orgthepish1998-06-111-1/+1
| | | | Small man page fix (missing ']' in [:alpha:] example)
* Spelling fixes.phk1998-06-101-1/+1
| | | | | | PR: 6903 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
* fchflags(8) -> fchflags(2)peter1998-06-101-3/+3
| | | | | | Submitted by: Kenneth Merry <ken@plutotech.com> Also, while here, mention that other FS's don't do flags.
* sizeof(foo - 1) isn't the same as sizeof(foo) - 1.imp1998-06-091-3/+3
| | | | Pointed out by: Theo De Raadt.
* Remove unused strvisx.imp1998-06-091-10/+2
|
* Don't assume that hp->h_lenght == 4. Be conservative in its use.imp1998-06-096-31/+45
| | | | Submitted by: J. Assange a long time ago.
* o Use snprintf rather than sprintf.imp1998-06-093-11/+12
| | | | | | o Revert gid to caller before a shell so we can run setgid. o minor style nits to make bruce happy :-) o use strncpy correctly.
* Use mkstemp rather than mktemp for yacc's temp files. This change was madeimp1998-06-091-7/+20
| | | | | to OpenBSD a long time ago and to my tree shortly thereafter. I think theo made this change, or one similar to it, but I could be wrong.
* o Use snprintf rather than sprintfimp1998-06-098-23/+32
| | | | | | | | | | | o Add more checks for buffer overflows o Use snprintf rather than strcat/cpy and have better checks for max length exceeded. Most of these changes are not exploitable buffer overruns, but it never hurts to be safe. Inspired by and obtained from: OpenBSD
* o Use snprintf over sprintf.imp1998-06-092-13/+17
| | | | | | | o Use strncpy correctly. o Use enough buffer for line. Inspired by or Obtained from: Similar changes in OpenBSD
* Make sure we pass the length - 1 to readlink, since it adds its ownimp1998-06-092-4/+4
| | | | | | NUL at the end of the path. Inspired by: OpenBSD's changes in this area by theo de raadt
* $@ is deprecated, use ${.TARGET} instead. Ditto for other single characterimp1998-06-094-9/+9
| | | | | $n. PR: conf/3273
* Reword to remove confusion between su(1)'s "-c" option and that of the shelljkoshy1998-06-081-9/+16
| | | | | | being invoked. Add example that clarifies usage of "-c". PR: 6859
* PR: docs/5628thepish1998-06-061-1/+1
| | | | | Submitted by: MITSUNAGA Noriaki mitchy@er.ams.eng.osaka-u.ac.jp Correct formatting error in display of the "-i size" option description section.
* Fix a bunch of spelling errors.steve1998-06-044-9/+9
| | | | | PR: 6856 Submitted by: Josh Gilliam <josh@quick.net>
* Don't forget to pretend that `make -n -jN' makes the targets that itbde1998-06-041-1/+2
| | | | | | | | | | | | | | | | | | | | | says it pretends to make. This bug was apparently harmless except for normal cases involving .ORDER statements when it made debugging of -jN using -n very confusing. E.g., for: .ORDER: beforedepend .depend depend: beforedepend .depend where beforedepend depends on something so that it is not initially up to date, `make [-n] -j2 depend' causes `make' to wait for itself to make beforedepend. This works fine without -n. The job to make beforedepend has normally been started, and beforedepend is marked as made when the job completes. However, with -n, the pseudo-job for making beforedepend has normally completed, and in any case there was no chance of beforedepend being marked as made. `make' actually exited almost immediately with status 0 instead of waiting forever.
* Spelling corrections.jkoshy1998-06-031-3/+3
| | | | | PR: 6829 Submitted by: Josh Gilliam <josh@quick.net>
* PR: bin/6828thepish1998-06-021-30/+53
| | | | | | | Submitted by: njs3@doc.ic.ac.uk Obtained from: NetBSD Implement embedded variable expansion
* Treat an EOPNOTSUPP from fchflags() as a non-fatal case. Only warn aboutpeter1998-06-022-10/+25
| | | | | | | | | | | | | | it if flags were explicitly specified on the command line. Do not warn if we were merely trying to preserve flags or remove UF_NODUMP. NFS does not support flags. I'm not sure that this is ideal, but it should do for now. Installing a plain file onto a NFS server must work, we used to silently ignore the attempt. Doing a binary install looses the flags anyway since cpio doens't preserve them with the cdrom/network images. XXX make world should not use flags or chown/chgrp in the obj/tmp area. This is based on a suggestion from Ken Merry <ken@plutotech.com>.
* Look for kzhead.o and kztail.o in /usr/lib/aout.jhay1998-06-011-3/+3
|
* SUBDIR += lddpeter1998-06-011-2/+2
|
* ldd standalone build, after repository copy.peter1998-06-011-2/+1
|
* Trim a domain part for wtmp as same as showed by "netstat -r".amurai1998-06-011-1/+5
| | | | | | | | | | | | | 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>
* Fixed double slashes in pathnames.bde1998-05-311-3/+3
|
* objformat is part of the i386 mid life identity crisis. On alpha, thingsjb1998-05-311-5/+4
| | | | are in their normal places, so objformat isn't required.
* Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.phk1998-05-281-3/+3
| | | | | | | | | | | | | | | | | | | | Clean up (or if antipodic: down) some of the msgbuf stuff. Use an inline function rather than a macro for timecounter delta. Maintain process "on-cpu" time as 64 bits of microseconds to avoid needless second rollover overhead. Avoid calling microuptime the second time in mi_switch() if we do not pass through _idle in cpu_switch() This should reduce our context-switch overhead a bit, in particular on pre-P5 and SMP systems. WARNING: Programs which muck about with struct proc in userland will have to be fixed. Reviewed, but found imperfect by: bde
* Reviewed by: Peter Hawkins <thepish@FreeBSD.org>danny1998-05-282-18/+47
| | | | Add s and w flags to show duration in or with seconds.
* Correctly display the interrupt counts.jhay1998-05-271-1/+6
| | | | Reviewed with optimizations by: Tor Egge <tegge>
* Convert to more canonical format.. It seems that both Soren and I werepeter1998-05-271-8/+8
| | | | working on this in parallel.. :-(
* Compile & use objformat as it was intended to, I have no idea whysos1998-05-272-18/+11
| | | | that failed for me before :(
* ELF preparation step 2:sos1998-05-262-11/+11
| | | | | | | | | | | | | | Move a.out libraries to /usr/lib/aout to make space for ELF libs. Make rtld usr /usr/lib/aout as default library path. Make ldconfig reject /usr/lib as an a.out library path. Fix various Makefiles for LIBDIR!=/usr/lib breakage. This will after a make world & reboot give a system that no longer uses /usr/lib/*, infact one could remove all the old libraries there, they are not used anymore. We are getting close to an ELF make world, but I'll let this all settle for a week or two...
* Get owner/group/modes rightsos1998-05-261-9/+11
|
* Oops, remember CFLAGS...sos1998-05-261-8/+6
| | | | Also compile directly to the target on install.
* PR: 1904danny1998-05-261-1/+6
| | | | Abort if given uname is > MAXLOGNAME-1
* "EOF of file..." is written to stderr and not stdout.steve1998-05-261-2/+2
| | | | PR: 6756
* ELF preparation step 1:sos1998-05-257-4/+10
| | | | | | | | | | | | | | | Move our old a.out utils to /usr/libexec/aout. Enable binutils and put the utils in /usr/libexec/elf Enable objformat, a little helper program that calls the right utils based on /etc/objformat and $OBJFORMAT. This will enable the ELF generating tools. Remember that this is only step one, the system is still compiled and run in a.out format ONLY. Problem left to solve: The BSD manpages wins over the GNU equivalents as the are installed last. We need to distinguish between the manpages somehow...
* Only compile on install.sos1998-05-251-0/+3
|
OpenPOWER on IntegriCloud