Commit Graph

20751 Commits

Author SHA1 Message Date
dg
b95c5ce578 In accept1(), falloc() is called after the process has awoken, but prior
to removing the connection from the queue. The problem here is that
falloc() may block and this would allow another process to accept the
connection instead. If this happens to leave the queue empty, then the
system will panic with an "accept: nothing queued".

Also changed a wakeup() to a wakeup_one() to avoid the "thundering herd"
problem on new connections in Apache (or any other application that has
multiple processes blocked in accept() for the same socket).
1997-03-31 12:30:01 +00:00
peter
db96cd7074 Code to do lchown(2), copied from chown(2) except it's NOFOLLOW in ND_INIT
instead of FOLLOW.
1997-03-31 12:21:37 +00:00
peter
2f0cc18641 Regenerate 1997-03-31 12:17:45 +00:00
peter
d2e7770901 Reserve 252 (poll, first in OpenBSD)
Reserve 253 (issetugid, as in OpenBSD)
Allocate 254 for lchown(2)
1997-03-31 12:14:48 +00:00
peter
760db2332e Treat symlinks as first class citizens with their own uid/gid rather than
as shadows of their containing directory.  This should solve the problem
of users not being able to delete their symlinks from /tmp once and for
all.

Symlinks do not have modes though, they are accessable to everything that
can read the directory (as before).  They are made to show this fact at
lstat time (they appear as mode 0777 always, since that's how the the
lookup routines in the kernel treat them).

More commits will follow, eg: add a real lchown() syscall and man pages.
1997-03-31 12:02:53 +00:00
dg
1543ecae88 Changed the way that the exec image header is read to be filesystem-
centric rather than VM-centric to fix a problem with errors not being
detectable when the header is read.
Killed exech_map as a result of these changes.
There appears to be no performance difference with this change.
1997-03-31 11:11:26 +00:00
obrien
8a15519b3e This commit was generated by cvs2svn to compensate for changes in r24434,
which included commits to RCS files with non-trunk default branches.
1997-03-31 09:37:59 +00:00
obrien
22bb48addf Virgin import of GNU cpio v2.4.2. 1997-03-31 09:37:59 +00:00
scrappy
6da0b02238 Small formatting change to interval() to align columns so that:
toronto       up  5+18:58,     0 users,  load 0.00, 0.00, 0.00
zeus          up 109+13:53,     0 users,  load 0.55, 0.28, 0.15

looks like:

toronto       up   5+18:58,     0 users,  load 0.00, 0.00, 0.00
zeus          up 109+13:53,     0 users,  load 0.55, 0.28, 0.15
1997-03-31 09:36:59 +00:00
kato
e4999cee16 Synchronize with sys/i386/conf/GENERIC revision 1.89. 1997-03-31 08:27:05 +00:00
scrappy
231d0f1cdb Remove ${MAKEFLAGS} on recommendation by Bruce, mainly because the reason
for adding it was so that -j3 carried through on a make -j3 world, but found
at least one circumstance where it breaks  'make depend'
1997-03-31 05:30:16 +00:00
scrappy
ddb46bb17f Remove MAKEFLAGS example from /etc/make.conf...
Bruce points out that it breaks things if someone doesn't do a 'make depend',
but I just found out that it breaks 'make depend' itself :(
1997-03-31 05:26:39 +00:00
bde
7ee566c897 Fixed wording of previous change.
Obtained from:	fgets.3
Guided by:	ISO C standard
1997-03-31 05:18:27 +00:00
imp
691010efad compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
jb
3d7b78ed8c Added my name/address as requested by Wolfram Schneider. 1997-03-31 04:58:47 +00:00
imp
db8be68e53 Revert my last few changes. They were bogus. Replaced them with
the original text plus a statement saying that if strftime fails,
the results are undefined.

Requested a long time ago by: bde
1997-03-31 04:51:13 +00:00
hanai
0e8cd04444 Catch up with the original. 1997-03-31 02:40:10 +00:00
wosch
758b1dfa68 The Unix system family tree, BSD part. This is a local copy of
http://www.de.freebsd.org/de/ftp/unix-stammbaum
1997-03-31 00:06:03 +00:00
scrappy
f88ab1083b Add/document MAKEFLAGS into /etc/make.conf, using -j3 as example 1997-03-30 23:43:41 +00:00
scrappy
5fddba9b6d Add ${MAKEFLAGS} to ${MAKE} in _SUBDIRUSE so that something like
'make -j3 world' works

Jordan points out that this may not be the only place this is required to be
added, but so far, its the only one I've found to break -j3
1997-03-30 23:39:39 +00:00
ache
d2ba14107c Use srandomdev() now
Add range checking for invalid denominator values
1997-03-30 23:33:29 +00:00
ache
f673899804 Use srandomdev() now
Fix error with begin variable calculation
1997-03-30 23:13:59 +00:00
joerg
29d246343b Implement the `detach' command for remote GDB. It gets you back at DDB. 1997-03-30 16:03:00 +00:00
brian
10839f0219 Move uucplock into libutil and create a manual page. 1997-03-30 12:12:20 +00:00
obrien
4cc24cbbac JKH says:
Change "Found end of tape.  Load next tape ..." messages to say
   "volume" instead of tape.  Running cpio off of /dev/fd0 and having
   it say "give me the next tape" is kind of ludicrous.. :-)
1997-03-30 11:01:43 +00:00
obrien
bee6a370f3 don't lookup rsh(1) at bogus pathnames
Submitted by:	joerg via old gnu/usr.bin/cpio v2.3
1997-03-30 10:56:38 +00:00
obrien
843afab413 Don't set the umask until after we have processed the arguments
and opened the archive file.  This allows "cpio -o -O output_file"
to create the output file with the callers proper umask.
Closed PR# 1391

Add setlocale LC_ALL (from ache).
1997-03-30 10:50:01 +00:00
obrien
f1b5283040 Support dummy lchown() so that cpio understands 4.4 symbolic links. 1997-03-30 10:45:44 +00:00
obrien
8596af284a - Correct the recommended option for "find" from "-depth" to "-d".
- Fix gross spelling and typographical errors pointed out by Keith Bostic.
- Mention -l, --link is only usable with "-p".

Obtained from: old gnu/usr.bin/cpio v2.3.
1997-03-30 10:42:21 +00:00
obrien
3bca94d06e Output a zero rdev except for bdevs, cdevs, fifos and sockets. This
stops regular files with unrepresentable rdevs from being rejected
and makes the output independent of unpreservable metadata.

Don't output a file if the major, minor or totality of its rdev would be
truncated.  Print a message about the skipped files to stderr but don't
report the error in the exit status.  cpio's abysmal error handling doesn't
allow continuing after an error, and the rdev checks had to be misplaced
to avoid the problem of returning an error code from routines that return
void.

Minor numbers are limited to 21 bits in pax's ustar format and to 18
bits in archives created by gnu tar (gnu tar wastes 3 bits for padding).
pax's and cpio's ustar format is incompatible with gnu tar's ustar
format for other reasons (see cpio/README).

Submitted by:	bde via old gnu/usr.bin/cpio v2.3.
1997-03-30 10:34:16 +00:00
obrien
3fecf166e7 Fix typo. 1997-03-30 10:32:26 +00:00
obrien
f02e5d18b0 Add an example README.FreeBSD. The tcl one you tend to refer to since tcl
is the example is quite spartan.

As pointed out by Bruce there are *three* different filenames being used:

	cvs             FREEBSD.README
	groff           FREEBSD-upgrade
	libgmp          FREEBSD-upgrade
	libpcap         FREEBSD-upgrade
	tcpdump         FREEBSD-upgrade
	traceroute      FREEBSD-upgrade
	tcl             README.FreeBSD

The handbook states "README.FreeBSD".  Perhaps this should be changed?
1997-03-30 09:55:11 +00:00
phk
85568f7654 Fix mount call for devfs.
Submitted by:	bde
1997-03-30 09:22:41 +00:00
phk
8a36e4bbb4 Fix embarrasing typo that survived because I applied the wrong patch-
file.
Noticed by:	Eric Jones <ejon@psa.pencom.com>
1997-03-30 09:08:00 +00:00
obrien
5dcdf37754 I goofed, Makefile lchown.c don't belong here. 1997-03-30 08:19:38 +00:00
obrien
6718192ec9 Replace ctime by strftime %c to use national representation.
Use isprint() for Localization.

Submitted by:	ache via gnu/usr.bin/cpio v2.3
1997-03-30 00:23:39 +00:00
obrien
8d4a60ff51 FreeBSD BSD-style Makefile for contributed CPIO source. 1997-03-29 23:11:22 +00:00
obrien
54e8b4d91d Rodney Grimes's dummy lchown() so that cpio understands 4.4 symbolic links.
(taken from old gnu/usr.bin/cpio)

Reviewed by:	phk
1997-03-29 23:10:24 +00:00
obrien
5d450da5b0 Don't need tcexparg.c on FreeBSD. 1997-03-29 23:05:27 +00:00
obrien
ad1858dc05 Don't need tcexparg.c which impliments Unix-style command line wildcards
for Turbo C
1997-03-29 23:04:03 +00:00
obrien
8a5f0f4d0b FreeBSD specific readme for contributed CPIO soruces. 1997-03-29 22:48:41 +00:00
obrien
b3a30fbfec Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
obrien
070358f751 This commit was generated by cvs2svn to compensate for changes in r24398,
which included commits to RCS files with non-trunk default branches.
1997-03-29 22:40:46 +00:00
jdp
680df75eef Fix broken built-in ELF file handling, caused by missing prototypes
and use of off_t.  Correct the types of Elf64_Addr and Elf64_Off.
1997-03-29 22:26:03 +00:00
jdp
bd506a8bef Add the "resvport" option, now that FreeBSD NFS servers require it. 1997-03-29 21:34:00 +00:00
wosch
b94212811b back out rev 1.8 (last minute CDROM releases) 1997-03-29 20:34:40 +00:00
wpaul
b2e5051d34 Fix for PR #3141: check for NULL before strdup()ing pw->pw_class.
(I'm not sure why this happens, though I suspect it may be because
the server is configured with only passwd maps instead of both passwd
and master.passwd maps. This is allowed, but I think in this case
pw_class is left NULL, hence the problem.)

Also applied similar patch to chpass/pw_yp.c just for paranoia's sake.
1997-03-29 20:29:12 +00:00
mpp
3d2a63277b The text describing exit values >1 was formatted incorrectly.
Obtained from: NetBSD-bugs PR# 3406
1997-03-29 20:01:59 +00:00
ache
869ea014d0 Remove orand* code as promised for the next release 1997-03-29 19:55:03 +00:00
jkh
7325fee01e YAMF22 1997-03-29 19:51:48 +00:00