1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00
freebsd/usr.bin
Joerg Wunsch d7a28702a3 Make window(1) actually work again. It has been broken for quite some
time now.

For whatever reason, the kernel seems to have generated SIGIOs
previously without an initial fcntl(...,F_SETOWN), but does no longer.
This caused window(1) to wait indefinitely for input.

Also, undo rev 1.3 of wwspawn.c, it was not well-thought, and
apparently not even tested at all.  The blindly (even in a nonsensical
place like the comment on top of the function) applied replacement of
vfork() by fork() totally ignored that window(1) *does* abuse the
feature of vfork() where a modification of the parent's address space
is possible (in this case, to notify the parent of an erred exec*).
Also, with vfork(), it is guaranteed that the parent is only woken up
after the exec*() happened, where the replacement by fork() made the
parent to almost always become runnable again before the child, in
which case the parent simply told `subprocess died'.  Unfortunately,
working around _this_ seems to be a lot more of redesign work compared
to little gained value, so i think relying on the specifics of vfork()
is the simpler way.

Submitted by:	Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
1999-03-02 19:08:09 +00:00
..
apply Merge from OpenBSD up to rev 1.7 (matches NetBSD rev 1.4): 1999-02-12 15:06:55 +00:00
ar Eliminate compiler warnings from -Wall 1998-12-06 07:36:44 +00:00
at Clean up some .Os macro uses: quotes are not needed, multiple arguments 1999-02-15 08:34:14 +00:00
banner Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
basename Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
biff Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
brandelf Added "SVR4" as an acceptable brand 1999-01-30 06:16:48 +00:00
c89
calendar Fixed gratuitous unformatting in rev.1.8. 1998-10-22 18:17:30 +00:00
cap_mkdb Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
chat Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
checknr Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
chflags Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
chkey Fixed missing DPADD. 1997-12-16 14:42:08 +00:00
chpass Close PR #10264. Don't bail directly out of passwd/chpass in my_yp_match(). 1999-03-01 16:11:13 +00:00
cksum Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
cmp Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
col Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
colcrt Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
colldef Fix disorder introduced by me in the Euro part 2 locale commit. 1999-03-01 06:05:58 +00:00
colrm Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
column Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
comm Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
compile_et Unbreak K&R support, and generate code that works in K&R C as well as 1998-12-18 14:29:51 +00:00
compress Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
cpp
ctags Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
cut Back out the NetBSD .Nm changes - we don't have the required 1999-02-12 13:24:45 +00:00
dig Update for bind-8 1998-05-03 05:16:58 +00:00
dirname Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
dnsquery Update for bind-8 1998-05-03 05:16:58 +00:00
doscmd Use `${CC} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl...' instead of 1999-02-17 13:48:07 +00:00
du Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
ee Typo. 1999-01-15 02:38:33 +00:00
enigma Typo. 1999-01-28 19:22:22 +00:00
env Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
error Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
expand Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
f2c Update to the most recent version. Among other things, this also solves 1999-02-03 17:23:49 +00:00
false
fetch Improve error message wording when attempting to link to a non-existent 1999-03-02 04:14:33 +00:00
file Add Hitachi SH-3, SH-4, ARM, PPC, 68k PA-ARCH and a few others to PE 1999-01-09 00:43:27 +00:00
file2c
find Typo - "the -delete primary do not.." -> "the -delete primary does not.." 1998-12-31 16:21:51 +00:00
finger fix 8bit clean issue 1998-08-07 16:21:09 +00:00
fmt
fold
fpr
from
fsplit .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
fstat Fixed printf format errors. 1998-07-06 21:01:54 +00:00
ftp Better error checking. 1998-12-09 20:49:20 +00:00
gcore Fix errors detected by -Wformat. 1998-11-01 06:35:36 +00:00
gencat Updated gencat(1) page from T. Lambert: 1998-11-18 04:30:53 +00:00
gensetdefs Fixed 7 style bugs. The contents of such a simple Makefile is entirely 1998-10-14 10:21:10 +00:00
getopt
global Fixed breakage of `make checkdpadd' in previous commit. 1999-01-19 00:23:25 +00:00
gprof Make profiling work for ELF. gprof now autodetects the format of 1998-09-07 23:32:00 +00:00
gprof4 Make profiling work for ELF. gprof now autodetects the format of 1998-09-07 23:32:00 +00:00
head fread() returns 0 on eof or error, not EOF. This fixes the following 1998-10-09 10:33:46 +00:00
hexdump PR: bin/9016 1998-12-13 06:40:18 +00:00
host Update for bind-8 1998-05-03 05:16:58 +00:00
id Add "-P" display the id as a password file entry. 1998-08-21 06:47:58 +00:00
indent PR: 7583 1998-10-18 04:46:24 +00:00
ipcrm
ipcs .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
join
jot Random data is no longer based on the time of day, rather the random 1998-01-24 03:32:33 +00:00
kdump Generate code to interpret ioctl numbers for all ioctls defined in 1998-10-16 15:33:17 +00:00
key The elf build wants to link against libcrypt. 1998-08-31 00:42:21 +00:00
keyinfo Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
keyinit Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
keylogin Fixed DPADD. 1997-12-16 17:37:23 +00:00
keylogout Add rcsid, remove unused #includes, change exit(-1). 1998-01-14 07:14:11 +00:00
killall Added myself as maintainer. 1999-02-09 17:23:03 +00:00
ktrace Delete truss manpage link. We have now a real truss command. 1997-12-06 23:40:13 +00:00
kzip Use -aout for kernels right now. This will have to be changed back if 1998-09-14 11:32:52 +00:00
lam
last Reviewed by: Peter Hawkins <thepish@FreeBSD.org> 1998-05-28 00:58:29 +00:00
lastcomm
ldd Make ldd work on alpha. 1998-09-16 09:31:48 +00:00
leave Don't let secs variable wrap if <= 2. 1998-04-14 00:23:54 +00:00
lex Backed out "fix for PR 7575". It was bogus. 1998-10-01 19:40:27 +00:00
limits Removed occurrences of consecutive repeated words (such as "the the"). 1999-02-12 02:12:08 +00:00
locate fix PRUNEPATHS assignment 1999-02-28 20:40:19 +00:00
lock Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
lockf Add a "-k" option, to specify that the lock file should be kept 1998-07-08 05:29:05 +00:00
logger
login Added xref to nologin(5) 1999-02-01 21:04:15 +00:00
logname
look Support multiple databases. For example 1998-08-31 16:38:23 +00:00
lorder Removed explict PATH which tended to cause the *wrong* path to be used 1998-08-15 07:10:21 +00:00
lsvfs Fixed anachronisms (nuked vfs type number; don't give a 1/6-baked list 1998-08-29 13:53:22 +00:00
m4 Change the wording to reflect that only the first character of the two 1998-12-13 23:15:50 +00:00
mail Allocate aligned memory according to sizeof(char *). 1999-01-13 10:37:22 +00:00
make Make MACHINE_ARCH sensitive to the environment, as well as using the 1999-03-01 06:01:05 +00:00
makewhatis
mesg
minigzip Add SEE ALSO section including ref to gzip. Add .An. 1998-01-05 07:14:54 +00:00
mk_cmds Added y.tab.h to SRCS. This should have been used to get dependencies 1998-05-05 13:16:35 +00:00
mkdep Remove -n for ignoring system headers. Instead add finer grain shell 1998-09-13 09:39:39 +00:00
mkfifo
mklocale Added support for DIS 8859-15 based locales using patch 1998-12-14 02:59:15 +00:00
mkstr Add #include <string.h> to get prototypes. 1998-02-20 04:48:37 +00:00
mktemp Sort cross references. 1998-08-31 16:41:09 +00:00
modstat .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
more Ignore (effectively) SIGTSTP if we're already in the process of tstoping. 1998-08-03 03:11:09 +00:00
msgs Revert "POSIX saved uids change". seteuid(2) is not POSIX, and 1998-07-14 19:07:30 +00:00
mt Print actual density code as well as string for density- I dunno about others, 1999-03-02 06:27:59 +00:00
ncal fix ncal.1 grammar 1998-04-26 06:21:29 +00:00
netstat Fix off-by-one error. 1999-02-16 19:05:09 +00:00
newkey Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
nfsstat Backout out previous commit. The bug was in the kernel. 1998-10-25 10:59:44 +00:00
nice .Nm nice -> .Nm. 1998-03-23 07:45:40 +00:00
nm Install the legacy man file in section 1aout. 1998-09-07 06:01:37 +00:00
nohup
objformat Link objformat statically by default. This makes it possible to 1998-11-01 02:37:40 +00:00
opieinfo
opiekey
opiepasswd
pagesize
passwd Ignore errors from chflags. This makes it possible to make installworld 1999-02-14 13:56:15 +00:00
paste Add #include <stdlib.h> to get prototype for malloc(). Without this, 1998-02-20 04:21:46 +00:00
pr Don't assume that time_t is long. 1998-06-29 17:06:00 +00:00
printenv
printf Fixed warnx format errors in printf and csh, and snprintf format errors 1998-12-07 12:14:04 +00:00
quota Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
ranlib Don't build or install ${MAN1}. It's just a copy of ${MAN1aout} and 1998-10-10 12:48:48 +00:00
rdist Fix formatting bug. 1998-10-15 05:04:28 +00:00
renice
rev
rlogin Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:47:57 +00:00
rpcgen Backed out previous commit. The bug was in rev.1.49 of src/Makefile.inc1, 1999-01-04 12:36:23 +00:00
rpcinfo #include <arpa/inet.h> 1998-06-12 12:37:15 +00:00
rs Add #include <string.h> to get prototypes. 1998-02-20 04:48:37 +00:00
rsh Don't use an arbitrary hardcoded value for nfds in select() calls. 1999-02-10 18:08:51 +00:00
rup PR: bin/6193 1998-04-01 21:34:10 +00:00
ruptime
rusers
rwall PR: bin/8680 1998-12-13 03:44:19 +00:00
rwho Fixed typo. 1998-12-20 02:52:30 +00:00
sasc Removed all `vector xxxintr' specifications. Interrupt handlers are now 1998-10-22 15:53:06 +00:00
script Mention default time between output flushes in manual page. 1998-09-29 01:49:49 +00:00
sed Fix a new bug introduced by the previous bug fix 1998-12-08 21:29:22 +00:00
shar
showmount
size Install the legacy man file in section 1aout. 1998-09-07 06:01:37 +00:00
soelim
split Print usage via fprintf(stderr, ..) instead of errx() to avoid progname prefix. 1999-02-05 00:42:14 +00:00
strings Install the legacy man file in section 1aout. 1998-09-07 06:01:37 +00:00
strip Install the legacy man file in section 1aout. 1998-09-07 06:01:37 +00:00
su Add JKH's auth.conf parser to turn on/off Kerberos in userland 1998-10-09 20:14:48 +00:00
symorder
systat Include discrete ozfod as well as ozfod/zfod percentage. 1999-02-08 02:39:45 +00:00
tail Fixed printf format errors. 1998-07-06 21:01:54 +00:00
talk Remove couple of 'extern int errno'. (They turned to something funny when 1999-02-14 22:22:54 +00:00
tconv change `ingored'' to `ignored'' in two places. I noticed this typo 1997-12-08 21:36:25 +00:00
tcopy Update tcopy for CAM. (/dev/rst0 -> /dev/rsa0) 1998-11-16 00:05:46 +00:00
tee
telnet Add "-N" option to supress reverse name lookup. 1998-12-14 22:40:39 +00:00
tftp Rename a function name so that it doesn't conflict with a future system call. 1998-10-30 16:17:50 +00:00
time Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
tip Some 64bit portability fixes. 1998-10-03 11:01:39 +00:00
tn3270 Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
top Don't dump core when p_stat is not in the expected range. This is 1999-02-06 16:58:50 +00:00
touch Merge from 2_2 man page change. 1999-01-05 10:13:54 +00:00
tput
tr Submitted by: Joachim Kuebart, thanks. 1997-10-12 09:52:49 +00:00
true
truss Flush the output file before exiting; short-lived programs don't even fill 1998-12-21 06:34:50 +00:00
tset
tsort
tty
ul
uname Fixed printf format errors. 1998-07-06 21:01:54 +00:00
unexpand Add #include <string.h> to get prototypes. 1998-02-20 04:33:03 +00:00
unifdef
uniq Localize it 1998-03-08 20:56:43 +00:00
units Install using ${INSTALL}, not using `install'. 1998-09-20 21:38:12 +00:00
unvis
users
uudecode Allow spaces in the filename to be decoded to. 1998-05-25 06:27:09 +00:00
uuencode Add two new options: 1998-01-25 19:26:05 +00:00
vacation Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
vgrind Change the name of a variable from _start to s_start. On alpha there 1998-05-15 09:26:28 +00:00
vi The perlinterp option builds and works, but I'm not so sure how it'll go 1998-12-16 04:02:56 +00:00
vis
vmstat Fixed bitrot in usage message and disordering of options in previous commit. 1999-02-15 14:15:28 +00:00
w Fix the annoying bug introduced in rev 1.18 that caused each line to be 1999-01-10 15:28:37 +00:00
wall PR: bin/8680 1998-12-13 03:42:51 +00:00
wc
what Make compatible with standard what command: 1998-05-04 22:26:56 +00:00
whereis Also look in /usr/src/contrib. 1998-10-04 10:33:37 +00:00
which Added myself as maintainer. 1999-02-09 17:23:03 +00:00
who Back out Steve's fix, as this was already fixed by me in revision 1.6 1998-05-25 12:04:47 +00:00
whois Add -R for .RU domains 1999-02-02 01:49:14 +00:00
window Make window(1) actually work again. It has been broken for quite some 1999-03-02 19:08:09 +00:00
write
xargs Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
xinstall Free memory from setmode. 1998-12-16 04:51:27 +00:00
xlint Use __XSTRING() from cdefs.h instead of rolling my own. 1999-01-25 11:25:24 +00:00
xstr
yacc "19%02", tm.year -> "%d", tm.year+1900 1999-01-18 22:42:05 +00:00
yes
ypcat .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ypmatch .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ypwhich #include <arpa/inet.h> 1998-06-12 13:04:59 +00:00
Makefile Re-enable doscmd build. 1999-02-16 17:57:25 +00:00
Makefile.inc