sef
bfd5e43c20
Add procctl to the list of programs built.
1997-12-06 04:19:41 +00:00
sef
54294bb9ab
First checkin of the procctl program.
1997-12-06 04:19:09 +00:00
dyson
510c87e6e2
Document the new -f flag.
...
PR: 5196
Submitted by: Matt Dillon <dillon@best.net>
1997-12-05 07:35:31 +00:00
dyson
e09d7daa42
Add an option to building PS, so that the upages are explicitly paged in only
...
for users who are root, or in group wheel. This is useful on large timesharing
systems where a PS command can cause the system to grind to a halt. The
ability to get the information isn't diminished for those who really need the
additional detail (administrators.) Normal users won't see any difference unless
the processes are swapped out. The "really get it mode" is invoked by the
use of an additional flag in the command string "-f". New/old behavior is
selectable with a compile option.
PR: 5196
Submitted by: Matt Dillon <dillon@best.net>
1997-12-05 07:33:40 +00:00
julian
c931d11d3f
Reviewed by: hackers@freebsd.org in general
...
Obtained from: Whistle Communications tree
Add an option to the way UFS works dependent on the SUID bit of directories
This changes makes things a whole lot simpler on systems running as
fileservers for PCs and MACS. to enable the new code you must
1/ enable option SUIDDIR on the kernel.
2/ mount the filesystem with option suiddir.
hopefully this makes it difficult enough for people to
do this accidentally.
see the new chmod(2) man page for detailed info.
1997-11-13 00:28:51 +00:00
jdp
33bb94d305
Document the exit status for a command that was terminated by a
...
signal.
1997-11-12 04:32:50 +00:00
joerg
9f4a5b3950
Sort "sparse" into alphabetical order, since dd's `conv' options need
...
to be sorted. This temporarily broke the "osync" option.
1997-11-11 20:35:29 +00:00
bde
9dbc4bc4ff
Fixed some type and value mismatches. setsignal() returned a bogusly
...
cast value that was always ignored. Rev.1.9 of trap.c made this
more bogus by returning a semantically different value after calling
siginterrupt(). Avoid these problems by not returning a value.
1997-11-10 11:32:24 +00:00
ache
01ee8c1bbd
1) Fix longstanding bug:
...
trap 'echo xxx' 1 2 3 15
read x
is not interrupted by ^C (due to restartable read syscall) and must be
interrupted per POSIX
Worse case:
read -t 5 x
hangs forever after ^C pressed (supposed to timeout after 5 secs)
Fixed by adding siginterrupt(signo, 1) after catch handler installed
2) Do not reinstall sighandler immediately after it is called,
BSD do it for us
1997-11-05 23:33:58 +00:00
helbig
934ccba807
Synchronize usage() and man page.
...
Pointed out by bde.
1997-10-26 10:33:02 +00:00
joerg
aa68663b55
Style police: keep a variable list in alphabetical order, and add
...
pointless paren's to return statements.
Nitpicked by: bde :)
1997-10-13 09:36:05 +00:00
joerg
8eaf7f4121
Make df(1) exit with non-success status if something went wrong.
...
PR: bin/4415
1997-10-12 13:55:43 +00:00
joerg
4841b45bbe
Teach dd(1) about an option to write sparse files. Can be useful for
...
things like diskless clients' swap files etc.
Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many
stylistic changes by me)
1997-10-11 20:09:05 +00:00
eivind
d6e21d08f0
Un-clobber mktemp->mkstemp patch.
1997-10-09 11:05:16 +00:00
eivind
34721f2246
Add <sys/errno.h>
1997-10-09 10:50:54 +00:00
eivind
462d6dd113
make signal handlers errno safe
...
Obtained from: OpenBSD (file rev 1.11) - Theo de Raadt <deraadt@openbsd.org>
1997-10-08 14:47:56 +00:00
eivind
b197c558d0
mktemp -> mkstemp
...
Obtained from: OpenBSD (file rev 1.4 by Theo de Raadt <deraadt@openbsd.org>)
1997-10-08 13:46:39 +00:00
eivind
a63bff464b
make signal handlers errno safe
...
Obtained from: OpenBSD (file rev 1.5) Theo de Raadt <deraadt@openbsd.org>
1997-10-08 12:59:14 +00:00
eivind
8e86c4888a
Slightly improved fix compared to my insiration
...
don't munge argv strings -- copy them first. avoids 'w' showing:
deraadt p8 zeus.theos.com 8:26AM 3 dd if of bs
Obtained from: OpenBSD (file rev 1.3) by Theo de Raadt <deraadt@openbsd.org>
1997-10-08 12:10:33 +00:00
eivind
5e2703d7ee
save errno in sigchld handler
...
Obtained from: Theo deRaadt <theo@openbsd.org> (OpenBSD rev 1.6)
1997-10-07 16:43:16 +00:00
eivind
de07534fa8
vsprintf -> vnsprintf paranoia.
...
Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD rev 1.3)
1997-10-07 16:33:22 +00:00
eivind
5e35aa322b
Don't honor $HOME if >= MAXPATHLEN
...
Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD csh.c rev 1.3 and 1.4)
1997-10-07 16:27:48 +00:00
jkh
418d0a6a92
Changes to support full make parallelism (-j<n>) in the world
...
target.
Reviewed by: <many different folks>
Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
1997-10-05 09:40:24 +00:00
wosch
05cceede38
mv(1) is too silent if used with the option -i. It should
...
print which input mv(1) expect (y/n) and print a warning if the
file was not overwritten.
1997-10-04 13:02:06 +00:00
wosch
78784d5f32
cp(1) is too silent if used with the option -i. It should
...
print which input cp(1) expect (y/n) and print a warning if the
file was not overwritten.
1997-10-03 18:11:14 +00:00
wosch
1568227e02
Change example from US to international standard date notation.
1997-10-03 18:09:17 +00:00
danny
724c03ee75
Back out suppress '\n' mod.
1997-10-03 12:54:30 +00:00
danny
bec2485994
Add the '-s' flag to the usage string.
1997-10-01 05:44:35 +00:00
danny
9bb9e30596
Add the ability to supress the '\n' at the end of the date printed.
1997-10-01 05:24:08 +00:00
joerg
0f45f2fb69
Fix the broken `date HHMM.SS' handling.
...
PR: bin/4661
Submitted by: blank@sliphost37.uni-trier.de (Sascha Blank)
1997-09-30 20:06:15 +00:00
msmith
c0121f12cf
Add the '-t timeout' option to the 'read' builtin. This allows the
...
'read' command to return an error if the user fails to supply any
input withink a given time period. The behaviour of this option is
similar to that of the like-named option in ksh93.
Reviewed by: joerg
1997-09-29 15:15:16 +00:00
wosch
043e6810da
Endless loop.
...
$ touch from to
$ echo -n loop | mv -i from to
overwrite to?
^C
1997-09-28 10:41:40 +00:00
markm
6bef2b9623
Change to use the new KTH Kerberos.
...
Also make -Wall a bit quieter.
1997-09-28 08:32:59 +00:00
charnier
1754071cd4
environmental -> environment.
1997-09-18 06:55:21 +00:00
sef
2e215bb009
Fix sorting of directories when doing '-d'.
...
PR: bin/4558
Submitted by: Keith Bostic
1997-09-18 06:42:27 +00:00
wosch
bb524100fb
PR: docs/4449
...
The -c flag is not documented in the sh(1) manapge.
Submitted by: adrian@virginia.edu
1997-09-13 17:40:00 +00:00
wosch
fde8a8ec46
spelling corrections.
...
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00
jkh
df823fc604
This command doesn't need to be setuid root, it's only asking
...
for potential trouble.
Reviewed by: security officers.
Noted by: OpenBSD
1997-09-12 15:00:06 +00:00
jmg
a4a9abf758
fix misspelling
...
Submitted-by: Josh Gilliam
Closes PR:4427
1997-08-30 11:09:26 +00:00
jmg
9a7e68ee3a
fix misspelling
...
Submitted-by: Josh Gilliam
Closes PR:4425
1997-08-30 11:06:35 +00:00
sos
99b7368a45
Dont have an internal function named "warn" it clashes with libc..
...
Needed for ELF.
1997-08-29 16:12:30 +00:00
bde
c0ad342824
Restored clobbered parts of rev.1.15 (build intermediate object files
...
for tools).
1997-08-25 19:50:01 +00:00
steve
6c92f05ce5
Correct confusing error message when called as 'stty -sane'.
...
PR: bin/3573
1997-08-24 00:26:12 +00:00
jlemon
08d1bb10c8
Disallow empty arguments (eg: '') as process ids.
...
PR: 2631
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1997-08-21 21:34:43 +00:00
jlemon
4113dc3c02
Document correct option in manual page.
...
PR: 3769
Submitted by: johnp@lodgenet.com
1997-08-19 21:52:07 +00:00
jlemon
276d42acd0
Pad the input buffer whenever sync is used, not just if the noerror flag
...
is also set.
Change osync to not to tack on an empty block if the input buffer is null,
or an even multiple of the blocksize.
Also change osync to pad the output with nulls/spaces depending whether
this is a block-oriented conversion or not (same as sync).
PR: 3818
1997-08-19 19:46:18 +00:00
brian
be2b748c02
Hint at how to use TZ.
...
Submitted by: grog@lemis.com
1997-08-18 20:27:17 +00:00
steve
4d76e42e81
Make all status values an integral type and use
...
pid_t when referring to process IDs.
1997-08-18 02:53:20 +00:00
steve
ccbdaeb2aa
Use -I${.CURDIR}/../../sys so that the path is relative
...
to the source code directory.
Submitted by: bde
1997-08-13 17:35:00 +00:00
ache
5f7cf9fa55
Describe signals behaviour now
1997-08-12 21:20:12 +00:00
steve
6f3a8cdf64
Oops, add #include's (forgotten in last commit) to make this
...
compile again.
1997-08-11 02:41:02 +00:00
steve
c0576fc29d
Use -I../../sys instead of -I/sys.
1997-08-11 02:36:09 +00:00
steve
2a27aabc95
Remove #ifdef NEWVM code and remove extra "key.name = p" line.
1997-08-11 02:35:16 +00:00
steve
6cd5fcd54b
Fix seg fault when invalid keywords are used.
...
PR: bin/4253
Submitted by: Jesse Rosenstock <jmr@ugcs.caltech.edu>
1997-08-11 02:29:50 +00:00
brian
0c083de4cc
Remove forgotten debug statement.
1997-08-10 16:37:33 +00:00
brian
e2cda524da
Add "-f fmt date" for specification of the
...
date using strptime(3).
Suggested by: Michael Smith <msmith@atrad.adelaide.edu.au>
Change mm & dd to MM & DD so that they don't
clash with the month.
1997-08-10 16:36:59 +00:00
brian
4f0afc74e1
Change [-DMHW [+|-]val] to [-v [+|-]val[ymwdHM]]
...
Support Hours & Minutes
Add -Wall to Makefile
1997-08-09 22:34:06 +00:00
steve
2ae4bfe0cf
More minor nits (mostly using memove instead of memcpy).
1997-08-08 00:54:05 +00:00
steve
fe3edcd2a1
More $@ -> ${.TARGET} that I missed earlier.
1997-08-08 00:49:25 +00:00
steve
e753f957ea
Observe precedence set by Philippe Charnier when adding an
...
rcsid.
1997-08-07 22:33:01 +00:00
steve
34c71a268a
Observe precedence set by Phillippe Charnier in adding an
...
rcsid.
1997-08-07 22:28:25 +00:00
steve
8eb2ceeba6
Changes include: sccsid -> rcsid, bcopy -> memcpy, don't use the
...
register keyword, and -Wall cleaning.
Obtained from: similar changes in NetBSD
1997-08-07 21:42:17 +00:00
steve
717042838c
Remove remaining Lite1 stuff from the man page and uphold the
...
precedence in changing sccsid to rcsid as set by Phillippe
Charnier in his previous 100 or so commits.
pointed out by: Bruce Evans <bde@zeta.org.au>
1997-08-07 21:37:39 +00:00
steve
792ebc1ba3
sccsid -> rcsid and fix some minor nits.
1997-08-07 21:33:47 +00:00
steve
548d1c0056
Add Bruce's _NEW_VFSCONF flag to make this compile cleanly and
...
sccsid -> rcsid.
1997-08-07 21:31:00 +00:00
steve
f465f4c450
#include <err.h> for err(3) call and replace extern reference to errno
...
with #include <errno.h>.
1997-08-07 15:41:51 +00:00
steve
ab9afdf00d
Remove #if(n)def BSD_4_4_LITE cruft and change sccsid to rcsid.
1997-08-07 15:37:47 +00:00
steve
2eae399bf6
Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.
1997-08-07 15:33:50 +00:00
brian
fdc5ce4a45
Add [-DWMY] flags for date adjustment.
...
Discussed with: freebsd-hackers
1997-08-04 03:37:07 +00:00
peter
3071fee9c6
Fix "lstart". (Displays "19" rather than time)
...
PR: 4206
Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
1997-08-03 08:33:17 +00:00
peter
459ed6dfdb
Kill #ifndef NEWVM etc. It affected a lot of other things besides
...
VM structure (eg: credentials etc) and it's highly unlikely we'll ever
get to see the "tainted" BSD<=4.3 VM code in public use. Although it
indicated the way some things used to be done, it obfuscates things too
much.
1997-08-03 08:25:01 +00:00
bde
dec6f3aeb8
devname.c moved to libc before Lite1 and isn't in ps in Lite2.
1997-07-13 07:43:41 +00:00
bde
f0f4692d65
Bury this properly.
1997-07-01 21:38:49 +00:00
bde
dd35364e4d
This commit was generated by cvs2svn to compensate for changes in r27159,
...
which included commits to RCS files with non-trunk default branches.
1997-07-01 21:34:30 +00:00
bde
28560072c7
Import this unwanted file from Lite-original so that it doesn't
...
get imported with Lite2 (there was only one missing file in src/bin,
other than tags files and obj links).
1997-07-01 21:34:30 +00:00
charnier
46627309b6
Remove lines inside #ifdef 0/#endif.
1997-06-30 11:10:18 +00:00
pst
1b991716a4
NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".
...
NOPIC is used to not generate a shared library, not NOSHARED.
Make NOSHARED advisory where appropriate.
Remove bogus NOSHARED (kbdio).
1997-06-29 06:03:42 +00:00
charnier
a300c51544
Document the use of `ls -lo' to see flags.
...
Obtained from: OpenBSD.
1997-06-24 06:57:11 +00:00
jkh
e5f80c5114
Back out previous fix - this bug's got diplomatic immunity as a registered
...
political issue.
1997-06-19 17:57:06 +00:00
jkh
7f875c5f66
>Number: 3780
...
>Category: bin
>Synopsis: WEXITSTATUS() may return nagative value, which causes sh to generate bad $?
PR: 3780
Submitted by: sanewo@ba2.so-net.or.jp
1997-06-19 15:14:01 +00:00
jdp
49bea63523
Try again to explain the existence of lchown() and the absence of
...
lchmod() and lutimes().
1997-06-19 01:07:05 +00:00
jdp
8ebc7b7d49
Update some text to reflect the fact that symbolic links now have
...
owner and group attributes.
1997-06-14 18:44:03 +00:00
ache
837346c6cf
Now [^abc] means the same as [!abc] like bash and *csh already does
1997-06-06 23:04:33 +00:00
charnier
eb1ddf1705
Typo in usage string. Looks like the man page now.
1997-06-06 06:48:35 +00:00
charnier
958b099adb
Err(3) was locally defined (for portability reasons). Use #ifdef 0/#endif
...
to hide this so libc is kept instead.
1997-06-06 06:46:27 +00:00
charnier
ae739990eb
Correct usage string. Man page don't reflect reality for now.
1997-06-06 06:43:19 +00:00
charnier
ae2a236f86
Cosmetic change in usage string.
1997-06-06 06:40:06 +00:00
charnier
58f66f5d2c
Do not use __progname.
1997-06-06 06:32:09 +00:00
charnier
8f3a4f49b1
Revert part of previous patch: Don't use __progname.
1997-06-04 06:27:30 +00:00
charnier
3c20fa7d91
Revert part of previous patch: Don't use __progname.
1997-06-04 06:21:44 +00:00
charnier
0213963bae
Add xref to lchown(2) and symlink(2).
...
Obtained from: {Net|Open}BSD
1997-06-03 06:27:44 +00:00
charnier
0bb19f3d59
Signal # NSIG (32) is invalid.
...
Obtained from: {Net|Open}BSD
1997-06-03 06:24:50 +00:00
charnier
ce6e94241d
/etc/netstart -> /etc/rc.network
...
Use __progname in usage string. Change usage string to match the man page.
1997-06-03 06:21:45 +00:00
charnier
0d7619c59e
/etc/netstart -> /etc/rc.network
...
Add usage() and use __progname. Change usage string to match man page.
1997-06-03 06:19:04 +00:00
max
0a57ddf89d
Add X-reference to ch(4).
1997-06-02 20:57:52 +00:00
charnier
e43a7ca060
Typo fix.
1997-06-02 06:40:08 +00:00
charnier
d3f2a54d03
Typo (the the -> the).
1997-06-02 06:32:26 +00:00
charnier
961f5b3e1a
Off by 1 adjustment. Properly NUL terminate after strncpy.
...
Obtained from: {Net|Open}BSD
1997-06-02 06:30:06 +00:00
charnier
9b043dcc94
Off by 1 adjustment.
1997-06-02 06:27:00 +00:00
charnier
0d4c498faf
Remove unused variables. Suppress -Wall warnings. Check for potential buffer
...
overflow. Display available command in usage string.
Obtained from: {Net|Open}BSD
1997-06-02 06:25:19 +00:00