Mike Barcroft
cb263c3594
Use POSIX macros for wait(2)-style status information instead of the
...
deprecated 4.2/4.3BSD wait union. Fix some nearby pid_t/int
confusion.
2002-06-03 23:13:11 +00:00
Philippe Charnier
e8937ba009
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
Mark Murray
e35f9517d6
Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.
2002-02-08 23:07:37 +00:00
Bruce Evans
b84c8f34fd
Fixed bitrot in DPADD in rev.1.8.
2001-12-29 14:03:03 +00:00
Mark Murray
6f223d2222
Temporarily "protect" this against the coming WARNS=2 default as it
...
is "hard to fix" (meaning I will come back to fix it if nobody gets
there first).
2001-12-11 22:33:11 +00:00
Bill Fumerola
5b3f2c13a2
use openpty() instead of rolling a custom function (which didn't support
...
the full range of ptys anyways)
2001-09-28 22:46:13 +00:00
Ruslan Ermilov
c4d9468ea0
mdoc(7) police:
...
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
Bruce Evans
13c05935fa
Removed garbage "CFLAGS+= -I.". This finishes backing out rev.1.4.
2001-07-30 11:08:11 +00:00
Sheldon Hearn
e1b4d8d074
Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
...
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.
Submitted by: David Hill <david@phobia.ms>
2001-07-26 11:02:39 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Ruslan Ermilov
625003720a
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
David E. O'Brien
2f8b721157
Fix the rcsid's.
2001-05-17 09:38:49 +00:00
Eric Melville
1a125da03a
Include a missing header, and change a mktemp(3), mkdir(2) sequence to
...
mkdtemp(3).
Approved by: murray
2001-03-29 20:33:57 +00:00
Ruslan Ermilov
dc12be5258
MAN[1-9] -> MAN.
2001-03-27 10:52:19 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
9b88faecd3
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
Ruslan Ermilov
8fe908ef0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
David E. O'Brien
d75c9e3a48
string.h has been repo copied to mystring.h
2000-10-30 10:04:56 +00:00
David E. O'Brien
9e1ade7750
While I'm here and got caught by it, add FreeBSD IDs so the next guy
...
won't have trouble committing his bits.
2000-10-26 10:07:20 +00:00
David E. O'Brien
e218b63212
Having a local `string.h' is just asking for trouble. As is having a
...
`struct string'. Rename the struct and effectively rename the header
to `mystring.h'
2000-10-26 10:00:52 +00:00
David E. O'Brien
cc66bbda3c
Use the pathnames from pathnames.h rather than hardcoding them here.
...
Add RCSIDs.
2000-10-26 09:52:06 +00:00
Brian Somers
fe4f4f067a
Include sys/types.h
2000-10-16 08:28:50 +00:00
Warner Losh
0e7f0658ee
#include <errno.h> where needed. Kill extern int errno;.
...
Minor warnings in tip corrected.
2000-04-14 06:39:19 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Nik Clayton
3be5f1f5ce
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:24:20 +00:00
Joerg Wunsch
0f9ae8e234
Fix the style of my previous commit.
...
Submitted by: The Style Police[tm]
1999-03-03 14:02:50 +00:00
Joerg Wunsch
569b765ba9
Increase the vector that's used to look for free pty's. We go through
...
/dev/ttypv right now, but window(1) was only looking up to ttypf,
causing an `Out of pseudo-terminals' when i just tried on freefall.
1999-03-03 12:08:49 +00:00
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
Dag-Erling Smørgrav
202bab3944
One vfork() changed to fork(); one execl() changed to execv(). The
...
latter isn't actually called as far as I can see since FreeBSD uses
termcap and not terminfo.
1998-10-13 15:14:37 +00:00
Doug Rabson
f1598784ae
Use <signal.h> instead of <sys/signal.h>.
1998-08-05 09:01:29 +00:00
Joerg Wunsch
6738ac4ff3
Define '\t' as a printable character, so it can be displayed on the
...
screen. isprint(3) doesn't do this, but isprt() apparently expected
this to be the case.
1998-04-20 13:37:29 +00:00
John Birrell
f2af83ab9e
Change a (defaulted) int arg to a long so that a cast from a pointer
...
doesn't throw anything away. I don't want to re-code the app, just
port it!
1998-02-20 19:59:59 +00:00
John Birrell
9ddaa53328
Add #include <string.h> to get prototypes. Note that this program
...
also has a local "string.h" which is included too.
1998-02-20 19:56:01 +00:00
John Birrell
e4fcd28b7f
Add #include <string.h> to get prototypes.
1998-02-20 19:53:12 +00:00
John Birrell
58a76373c2
Add #include <stdlib.h> to get prototypes.
1998-02-20 19:50:10 +00:00
Warner Losh
545b0f4db7
Wait for job to finish and exit if exec fails.
...
Obtained from: OpenBSD (Theo de Raadt)
1998-01-07 00:05:20 +00:00
Joerg Wunsch
dc6393aa53
Make window(1) honor the LC_CTYPE setting.
...
While i was at it, don't export \E[OA style cursor key strings into the
TERMCAP variable since window's emulation doesn't support it. Instead,
convert to \E[[A etc.
1997-11-05 20:20:17 +00:00
Philippe Charnier
552f27d60f
Cosmetic in usage string.
1997-08-26 11:17:16 +00:00
Mike Pritchard
906c1e27fc
Correct some man page cross references and file location references.
1996-04-07 00:06:21 +00:00
Mike Pritchard
7c87ef470d
Correct some manual page cross reference errors. E.g. su is a section
...
one man page, not section eight. This is the first round of such changes
and only fixes man pages in manual section one.
1996-02-02 00:26:12 +00:00
Andrey A. Chernov
8992794b01
Remove _set_ospeed, it is done in tgetent
1995-08-05 22:04:23 +00:00
Andrey A. Chernov
3c0ba277d4
Allow it works with non-fixed termios speeds.
...
Replace ospeed switch with new _set_ospeed
1995-08-04 06:54:18 +00:00
Rodney W. Grimes
7799f52a32
Remove trailing whitespace.
1995-05-30 06:41:30 +00:00
Bruce Evans
73d1243fe5
Include <stdlib.h> so that malloc() is declared.
1995-04-02 19:01:07 +00:00
Jordan K. Hubbard
59d7c860ca
Nuke bogus duplicate decls.
1994-12-18 11:59:37 +00:00
Bruce Evans
e9a82e8087
Give up instead of looping endlessly for unknown speeds.
1994-10-30 21:01:04 +00:00
Andrey A. Chernov
ca4a5183dd
More 8bit/ctype fixes, command mode
1994-10-30 04:05:50 +00:00
Andrey A. Chernov
49a7037f5a
Make window 8bit clean and ctype oriented.
...
Fix restart after ^Z hang.
1994-10-30 03:09:58 +00:00
Andrey A. Chernov
434ded340d
Fix hang on exit: needs to restore SIGIO reaction _before_
...
tcsetattr, because tcsetattr cause SIGIO in wakeup
1994-10-30 01:43:09 +00:00
Andrey A. Chernov
f7da7bc717
Remove VMIN_BUG from CFLAGS, add 57600, 115200
1994-10-27 22:52:14 +00:00