Commit Graph

24326 Commits

Author SHA1 Message Date
phk
af0a87037f Add a __getcwd() syscall. This is intentionally undocumented, but all
it does is to try to figure the pwd out from the vfs namecache, and
return a reversed string to it.  libc:getcwd() is responsible for
flipping it back.
1997-09-14 16:51:31 +00:00
kato
556eb0c8d2 Synchronize with sys/i386/isa/mse.c, pcaudio.c, sio.c and syscons.c
revisions 1.34, 1.37, 1.181 and 1.232, respectively.
1997-09-14 16:27:37 +00:00
wosch
065fabcf29 Add some UUCP manpages. 1997-09-14 13:04:26 +00:00
jkh
c04eb51c35 DTRT with ${viddev} in the same way as the other vidcontrol entries.
Reminded by:	bde
1997-09-14 12:16:36 +00:00
peter
d877743579 Bruce wants the warning. 1997-09-14 11:28:30 +00:00
peter
76f7ee50c6 Call poll(2) from within the resolver but adapt to older kernels without it
if necessary.  This removes the need to malloc large fd_set's for selecting
on high fd's (larger than FD_SETSIZE at libc compile time).

The syscall adaptive stuff only happens on the very first call.  SIGSYS
is masked, and if the call to poll fails with ENOSYS, then we use select
for the life of the program.  If poll does not fail with ENOSYS, then we
always use poll and skip the once-off signal masking gunk.

This may be overkill, but it saved my neck a few times while working on
multiple different sets of kernel sources, some with poll, some without.
1997-09-14 09:44:34 +00:00
peter
c771c1467b When calling strip, temporarily close the file, call strip and then
reopen it after strip has finished.  This makes it work when
/usr/bin/strip replaces the file rather than doing an in-place edit
(such as the binutils-2.8 strip, which is a variation of objcopy).
This is necessary if install(1) and strip(1) are going to cooperate
on an ELF system.
1997-09-14 08:21:44 +00:00
peter
5fa4ebb1ac Some updates for 3.0: mention changes for poll(2), issetugid(2),
async IO, getsid(2), setpgid(2), nanosleep(2), signanosleep(2),
fixes to sleep(3) and usleep(3), the a.out in-kernel linker.
1997-09-14 07:31:12 +00:00
joerg
1d71c0cf14 Explain a little more about the piping feature.
PR:		4122
1997-09-14 06:55:15 +00:00
peter
ec85e9e432 A poll(2) manpage.
Obtained from: NetBSD
1997-09-14 05:44:35 +00:00
peter
bbd51b4612 oops, I accidently committed a version without INFTIM at the last moment.
I'm not sure that this is the right place to put it, it is 'supposed' to
live in stropts.h.
1997-09-14 05:38:03 +00:00
jkh
607688ffd6 XFree86 3.3.1 updates
Document new media flag in lieu of links.
1997-09-14 04:18:42 +00:00
peter
03477138d2 SYSV has both <poll.h> and <sys/poll.h>. (poll.h merely #includes
sys/poll.h).  Just provide a link, it's close enough. :-)  In an ideal
world the prototype for poll() would be in <poll.h> but some code seems
to expect it in <sys/poll.h>, so we can't win there.
1997-09-14 03:32:44 +00:00
peter
f78cbfbddd Generate poll syscall stub 1997-09-14 03:29:55 +00:00
peter
58767db594 Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
peter
3697457647 Update select -> poll.
I am not particularly happy with this stuff, I have no way to test it.
1997-09-14 03:12:54 +00:00
peter
47e0f3fbb0 Update network code to use poll support. 1997-09-14 03:10:42 +00:00
peter
7c387f7a76 Update select -> poll 1997-09-14 03:09:01 +00:00
peter
e1b4556caa select -> poll
Obtained from: NetBSD (I think)
1997-09-14 03:03:05 +00:00
peter
f58ce107d9 select -> poll
flag missing vnode op table entries
1997-09-14 03:00:44 +00:00
peter
43726a5e93 Convert select -> poll.
Delete 'always succeed' select/poll handlers, replaced with generic call.
Flag missing vnode op table entries.
1997-09-14 02:58:12 +00:00
peter
4b72bdbcec Various select -> poll changes 1997-09-14 02:52:18 +00:00
peter
df63afc00e vn_select -> vn_poll 1997-09-14 02:51:16 +00:00
peter
8fcd066693 Zap nxselect and noselect. 1997-09-14 02:50:28 +00:00
peter
eff1f0c126 Provide a 'return true' poll vnode op rather than duplicating the
'do nothing' case all over the various filesystems.
1997-09-14 02:49:06 +00:00
peter
dd70398ee0 Extend select hook to support poll 1997-09-14 02:46:44 +00:00
peter
5220ee18ec Implement the poll backend for the pipe file type. 1997-09-14 02:43:25 +00:00
peter
1a4ccc0e8c Convert select handler to poll style 1997-09-14 02:42:03 +00:00
peter
de2420e1e9 Extend to use poll backend. If memory serves correctly, most of this was
adapted from NetBSD..  However, there are some differences in the tty
system that are big enough to cause their code to not fit comfortably.

Obtained from:  NetBSD (I think)
1997-09-14 02:40:46 +00:00
peter
b6dbb1c5c2 Change VOP_SELECT to VOP_POLL 1997-09-14 02:35:25 +00:00
peter
3f17d9aea8 Extend select backend for sockets to work with a poll interface (more
detail is passed back and forwards).  This mostly came from NetBSD, except
that our interfaces have changed a lot and this funciton is in a different
part of the kernel.

Obtained from: NetBSD
1997-09-14 02:34:14 +00:00
peter
88c12081c5 Implement poll(2). This is mostly taken from the NetBSD implementation
(from some time ago) but with a few tweaks along the way.

Obtained from: NetBSD
1997-09-14 02:30:32 +00:00
peter
efda3d4c5f Update interfaces for poll() 1997-09-14 02:25:41 +00:00
peter
d29e461584 Regenerate (added poll etc) 1997-09-14 02:23:46 +00:00
peter
260b6f5fe5 Activate poll(2) syscall 1997-09-14 02:22:05 +00:00
peter
c5e0574cec Add sys/poll.h 1997-09-14 02:20:56 +00:00
kato
d6f180f62f Synchronize with sys/i386/isa/wd.c revision 1.138. 1997-09-14 01:44:17 +00:00
wosch
28d092afb2 Add some UUCP manpages. 1997-09-13 21:44:49 +00:00
brian
d559c5385b Change the not-specified-default for inetd & cron
to "enabled".  This will avoid breaking things for
idiots like me who update /etc/rc without paying
attention and updating rc.conf too.
1997-09-13 21:07:12 +00:00
joerg
b63a4eba31 Mention SA_NOCLDWAIT as a new feature. 1997-09-13 19:45:51 +00:00
joerg
3fcf2a64b4 Document SA_NOCLDWAIT.
Make all the SA_* flags go into a tagged list, to improve readability.
1997-09-13 19:43:24 +00:00
joerg
906bfde06d Implement SA_NOCLDWAIT.
The implementation is done (unlike what i've originally been
contemplating) by reparenting kids of processes that have the
appropriate bit set to PID 1, and let PID 1 handle the zombie.  This
is far less problematical than what would seem to be ``doing it
right'', for a number of reasons.

Of our currently shipping PID-1-intended programs, 50 % fail the above
assumption. ;-)  (Read this: sysinstall doesn't do it right.  This is
no problem as long as no program called by sysinstall actually uses
SA_NOCLDWAIT.)

ToDo:		. clarify the correct SA_* flag inheritance, compared
		  to other systems,
		. decide whether the compat cruft (osigvec(9)) should
		  deal with new system additions or not,
		. merge OpenBSD's SA_SIGINFO implementation. ;)
Reviewed by:	bde
1997-09-13 19:42:29 +00:00
jkh
1484dfe948 MF22: If moused started, also enable it for console vty.
PR:		4525
1997-09-13 18:03:41 +00:00
max
5e0cc0c20e Typo. 1997-09-13 17:55:43 +00:00
wosch
dd4c3f256d PR: docs/3979
better wording

Submitted by: Tim Vanderhoek <hoek@hwcn.org>, Gary Howland <gary@hotlava.net>
1997-09-13 17:52:36 +00:00
wosch
c1d96fea56 PR: docs/4347
Makefile doesn't support cleandepend
Submitted by: wlr@furball.wellsfargo.com
1997-09-13 17:49:21 +00:00
wosch
9da070fe78 PR: docs/4383
su manpage ambiguous regarding command prompt

Submitted by: sheldonh@iafrica.com
1997-09-13 17:44:20 +00:00
wosch
54d8c50f0f 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
joerg
954dd8c56b Revert the logic behind my last change, and use a function called
`is_physical_memory()' now for the decision whether to dump some
region of memory or not.

Suggested by:	davidg
1997-09-13 16:12:15 +00:00
wosch
07b6e5147d spelling corrections.
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00