]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
26 years agoReplace 'sleep()' with 'tsleep()'
Julian Elischer [Wed, 10 Jun 1998 22:02:14 +0000 (22:02 +0000)]
Replace 'sleep()' with 'tsleep()'
Accidentally imported from Kirk's codebase.

Pointed out by: various.

26 years agoMake these files compile.
Doug Rabson [Wed, 10 Jun 1998 21:21:31 +0000 (21:21 +0000)]
Make these files compile.

26 years agoAdd my own copyright to this file. In this case not even the comments
Doug Rabson [Wed, 10 Jun 1998 20:48:03 +0000 (20:48 +0000)]
Add my own copyright to this file.  In this case not even the comments
resemble the NetBSD source so the NetBSD copyright has been removed.

26 years agoFix for "live inode" panic.
Julian Elischer [Wed, 10 Jun 1998 20:45:46 +0000 (20:45 +0000)]
Fix for "live inode" panic.
Submitted by: Kirk McKusick <mckusick@McKusick.COM>
Reviewed by: yeah right...

26 years agoAdd my own copyright to this file. The only remnants of NetBSD code here
Doug Rabson [Wed, 10 Jun 1998 20:40:59 +0000 (20:40 +0000)]
Add my own copyright to this file.  The only remnants of NetBSD code here
are in the comments.  As such the NetBSD copyright is included to protect
the valuable intellectual copyright included in those comments.

26 years agoAdd yet another copyright. If some CVS wizard feels like nuking the versions
Doug Rabson [Wed, 10 Jun 1998 20:35:10 +0000 (20:35 +0000)]
Add yet another copyright.  If some CVS wizard feels like nuking the versions
that so offend Jason Thorpe then they can.

26 years agoFix mangled Id keyword.
Doug Rabson [Wed, 10 Jun 1998 20:13:32 +0000 (20:13 +0000)]
Fix mangled Id keyword.

26 years agoAdd Id keyword.
Doug Rabson [Wed, 10 Jun 1998 20:11:16 +0000 (20:11 +0000)]
Add Id keyword.

26 years agoRemove buggy debugging code.
Julian Elischer [Wed, 10 Jun 1998 20:03:16 +0000 (20:03 +0000)]
Remove buggy debugging code.

26 years agoAdd missing copyrights. Thanks to Jason Thorpe for politely noting the
Doug Rabson [Wed, 10 Jun 1998 19:59:41 +0000 (19:59 +0000)]
Add missing copyrights.  Thanks to Jason Thorpe for politely noting the
mistake...

26 years agoENOPNOTSUPP --> EOPNOTSUPP
Alexander Langer [Wed, 10 Jun 1998 19:56:06 +0000 (19:56 +0000)]
ENOPNOTSUPP --> EOPNOTSUPP

PR: 6906
Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>

26 years agoBack out John's changes 1.45 -> 1.46
Julian Elischer [Wed, 10 Jun 1998 19:27:56 +0000 (19:27 +0000)]
Back out John's changes 1.45 -> 1.46
Kirk confirms that the original semantic was what he wanted...
(well, a very slight difference)
May fix "dangling deps" panic with soft updates.

26 years agoSubmitted by: Kirk McKusick <mckusick@McKusick.COM>
Julian Elischer [Wed, 10 Jun 1998 18:13:19 +0000 (18:13 +0000)]
Submitted by: Kirk McKusick <mckusick@McKusick.COM>

Fix for potential hang when trying to reboot the system or
to forcibly unmount a soft update enabled filesystem.
FreeBSD already handled the reboot case differently, this is however a better
fix.

26 years agoI accidentally committed the wrong file, sorry.
Doug Rabson [Wed, 10 Jun 1998 17:54:37 +0000 (17:54 +0000)]
I accidentally committed the wrong file, sorry.

26 years agoMove ftok() from libcompat to libc, so that it can be closer to its
John Polstra [Wed, 10 Jun 1998 16:20:21 +0000 (16:20 +0000)]
Move ftok() from libcompat to libc, so that it can be closer to its
friend shmget().

PR: closes misc/6763

26 years agoBack out previous change. This behavior is at least completely
Dmitrij Tejblum [Wed, 10 Jun 1998 13:46:46 +0000 (13:46 +0000)]
Back out previous change. This behavior is at least completely
"susv2"-compliant.

26 years agoWhen system act as IPX router (sysctl -w net.ipx.ipx.ipxforwarding=1,
Poul-Henning Kamp [Wed, 10 Jun 1998 12:52:11 +0000 (12:52 +0000)]
When system act as IPX router (sysctl -w net.ipx.ipx.ipxforwarding=1,
running IPXRouted -s) between IPX configured interfaces, it generate
syslog messages "ipx_ctlinput: cmd 15." even if kernel compiled with
IPXPRINTFS=0 and IPX_ERRPRINTFS=0 options.

PR: 6875
Reviewed by: phk
Submitted by: Vladimir A. Jakovenko <vovik@ntu-kpi.kiev.ua>

26 years agoCorrect name and number for sxdc modules
Poul-Henning Kamp [Wed, 10 Jun 1998 12:49:54 +0000 (12:49 +0000)]
Correct name and number for sxdc modules
PR: 6891
Reviewed by: phk
Submitted by: Nick Sayer <nsayer@quack.kfu.com>

26 years agoFix grammar, "null" -> "NUL"
Daniel O'Callaghan [Wed, 10 Jun 1998 12:37:45 +0000 (12:37 +0000)]
Fix grammar, "null" -> "NUL"

26 years agoSpelling fixes.
Poul-Henning Kamp [Wed, 10 Jun 1998 12:34:27 +0000 (12:34 +0000)]
Spelling fixes.

PR: 6903
Reviewed by: phk
Submitted by: Josh Gilliam <josh@quick.net>

26 years agoSpellint fixes.
Poul-Henning Kamp [Wed, 10 Jun 1998 12:33:41 +0000 (12:33 +0000)]
Spellint fixes.

PR: 6903 (not the contrib bits).
Reviewed by: phk
Submitted by: Josh Gillam <josh@quick.net>

26 years agoAlso return EOPNOTSUPP rather than EINVAL for not supported owner and group
Dmitrij Tejblum [Wed, 10 Jun 1998 11:36:01 +0000 (11:36 +0000)]
Also return EOPNOTSUPP rather than EINVAL for not supported owner and group
changes.

26 years agoAdd initial support for the FreeBSD/alpha kernel. This is very much a
Doug Rabson [Wed, 10 Jun 1998 10:57:29 +0000 (10:57 +0000)]
Add initial support for the FreeBSD/alpha kernel.  This is very much a
work in progress and has never booted a real machine.  Initial
development and testing was done using SimOS (see
http://simos.stanford.edu for details).  On the SimOS simulator, this
port successfully reaches single-user mode and has been tested with
loads as high as one copy of /bin/ls :-).

Obtained from: partly from NetBSD/alpha

26 years ago64bit fixes: don't cast pointers to int.
Doug Rabson [Wed, 10 Jun 1998 10:31:08 +0000 (10:31 +0000)]
64bit fixes: don't cast pointers to int.

26 years ago64bit fixes: don't cast p->p_retval to an int*.
Doug Rabson [Wed, 10 Jun 1998 10:30:23 +0000 (10:30 +0000)]
64bit fixes: don't cast p->p_retval to an int*.

26 years ago64bit fixes: use u_long not int for ioctl command.
Doug Rabson [Wed, 10 Jun 1998 10:29:31 +0000 (10:29 +0000)]
64bit fixes: use u_long not int for ioctl command.

26 years ago64bit fixes: use size_t not u_int for sizes.
Doug Rabson [Wed, 10 Jun 1998 10:28:29 +0000 (10:28 +0000)]
64bit fixes: use size_t not u_int for sizes.

26 years ago64bit fixes: p->p_retval is a register_t[] not an int[].
Doug Rabson [Wed, 10 Jun 1998 10:27:43 +0000 (10:27 +0000)]
64bit fixes: p->p_retval is a register_t[] not an int[].

26 years agoSync with sys/i386/isa/clock.c revision 1.124.
KATO Takenori [Wed, 10 Jun 1998 08:25:23 +0000 (08:25 +0000)]
Sync with sys/i386/isa/clock.c revision 1.124.

26 years agofchflags(8) -> fchflags(2)
Peter Wemm [Wed, 10 Jun 1998 07:17:59 +0000 (07:17 +0000)]
fchflags(8) -> fchflags(2)
Submitted by:  Kenneth Merry <ken@plutotech.com>

Also, while here, mention that other FS's don't do flags.

26 years agoThere is no need to make nochange imply ignore as well.
Peter Wemm [Wed, 10 Jun 1998 06:45:08 +0000 (06:45 +0000)]
There is no need to make nochange imply ignore as well.

Suggested by: bde

26 years agoDon't silently accept attempts to change flags where they are not
Peter Wemm [Wed, 10 Jun 1998 06:34:57 +0000 (06:34 +0000)]
Don't silently accept attempts to change flags where they are not
supported.

26 years agoReturn EOPNOTSUPP rather than EINVAL for flags that are not supported.
Peter Wemm [Wed, 10 Jun 1998 06:30:31 +0000 (06:30 +0000)]
Return EOPNOTSUPP rather than EINVAL for flags that are not supported.

26 years agoDon't attempt to change owner/mode/flags that don't need to changed.
Peter Wemm [Wed, 10 Jun 1998 06:29:23 +0000 (06:29 +0000)]
Don't attempt to change owner/mode/flags that don't need to changed.
This should calm down attempts to `cp -p' to a nfs mount or some other
filesystem that doesn't accept flags or all combinations of flags.
It will warn if it fails to change flags though.

26 years agoAllow syslogd to separate out kernel log messages with a known
Julian Elischer [Wed, 10 Jun 1998 04:34:56 +0000 (04:34 +0000)]
Allow syslogd to separate out kernel log messages with a known
category.
e.g. separate out ipfw entries to a separate file.

Reviewed by: (briefly) phk
Submitted by: archie@whistle.com
Obtained from: Whistle source tree

26 years agoThis is a null commit to log the fact that I have done a repository
John Polstra [Wed, 10 Jun 1998 04:24:21 +0000 (04:24 +0000)]
This is a null commit to log the fact that I have done a repository
copy to bring these files into libc from libcompat.  I will enable
them and kill off the libcompat versions on the main branch soon.

PR: step one toward closing misc/6763

26 years agoStop including COMPAT_21 unconditionally for X now; that kludge hasn't
Jordan K. Hubbard [Wed, 10 Jun 1998 01:15:46 +0000 (01:15 +0000)]
Stop including COMPAT_21 unconditionally for X now; that kludge hasn't
been necessary for awhile.

26 years agoQuieten gcc 2.8.1
Brian Somers [Wed, 10 Jun 1998 00:26:19 +0000 (00:26 +0000)]
Quieten gcc 2.8.1

26 years agoCast pid_t to int for sprintf.
Brian Somers [Wed, 10 Jun 1998 00:16:28 +0000 (00:16 +0000)]
Cast pid_t to int for sprintf.
Pointed out by: Charlie Sorsby <crs@hgo.net>

26 years agoFix a couple of warnings noted with -Wall on FreeBSD-2.1.5.
Brian Somers [Wed, 10 Jun 1998 00:16:07 +0000 (00:16 +0000)]
Fix a couple of warnings noted with -Wall on FreeBSD-2.1.5.
Pointed out by: Charlie Sorsby <crs@hgo.net>

26 years agoAdd a commented out CFLAGS entry that can be uncommented to compile thread
John Birrell [Tue, 9 Jun 1998 23:25:13 +0000 (23:25 +0000)]
Add a commented out CFLAGS entry that can be uncommented to compile thread
lock debug into libc_r. I don't know if this is the best place to document
this, but at least it is recorded somewhere. 8-)

26 years agoImplement compile time debug support instead of tracking file name and
John Birrell [Tue, 9 Jun 1998 23:21:05 +0000 (23:21 +0000)]
Implement compile time debug support instead of tracking file name and
line number every time a file descriptor is locked.

This looks like a big change but it isn't. It should reduce the size
of libc_r and make it run slightly faster.

26 years agoAdd compile time debug instead of doing this all the time. Reduce the
John Birrell [Tue, 9 Jun 1998 23:16:53 +0000 (23:16 +0000)]
Add compile time debug instead of doing this all the time. Reduce the
time that a thread keeps the file descriptor table locked. In particular,
perform malloc/free calls outside the lock and handle the situation
where two threads can race to initialise the table entry for the same
file descriptor.

26 years agoAdd support for compile time debug. This is enabled if libc_r is built
John Birrell [Tue, 9 Jun 1998 23:13:10 +0000 (23:13 +0000)]
Add support for compile time debug. This is enabled if libc_r is built
with -D_LOCK_DEBUG. This adds the file name and line number to each lock
call and these are stored in the spinlock structure. When using debug
mode, the lock function will check if the thread is trying to lock
something it has already locked. This is not supposed to happen because
the lock will be freed too early.

Without lock debug, libc_r should be smaller and slightly faster.

26 years agoPOSIX says that pthread_exit() is not allowed to be called from a
John Birrell [Tue, 9 Jun 1998 23:08:41 +0000 (23:08 +0000)]
POSIX says that pthread_exit() is not allowed to be called from a
cleanup destructor, so trap this case to prevent me from being being
burnt again by applications that try to do this. With this change, an
application (like one using a mis-configured ACE) will exit the process
after displaying a message quoting the POSIX section that the application
has violated.

26 years agoAdd compile time thread lock debug support.
John Birrell [Tue, 9 Jun 1998 23:02:43 +0000 (23:02 +0000)]
Add compile time thread lock debug support.

Add a thread specific flag to trap the case where pthread_exit() is
called from a destructor in violation of the Posix standard.

26 years agoRemove __NETBSD_SYSCALLS from CFLAGS now that it is set in sys.mk.
John Birrell [Tue, 9 Jun 1998 22:59:16 +0000 (22:59 +0000)]
Remove __NETBSD_SYSCALLS from CFLAGS now that it is set in sys.mk.

26 years agoRename calls when building libc_r.
John Birrell [Tue, 9 Jun 1998 22:57:34 +0000 (22:57 +0000)]
Rename calls when building libc_r.

26 years agoMake this thread-safe in both libc as well as libc_r.
John Birrell [Tue, 9 Jun 1998 22:56:24 +0000 (22:56 +0000)]
Make this thread-safe in both libc as well as libc_r.

26 years agoRename when building libc_r.
John Birrell [Tue, 9 Jun 1998 22:45:39 +0000 (22:45 +0000)]
Rename when building libc_r.

26 years agoAdd rename support for libc_r.
John Birrell [Tue, 9 Jun 1998 22:43:34 +0000 (22:43 +0000)]
Add rename support for libc_r.

26 years agoFix usage string
Andrey A. Chernov [Tue, 9 Jun 1998 20:19:59 +0000 (20:19 +0000)]
Fix usage string

26 years agoShow the time that we reached maximum throughput.
Brian Somers [Tue, 9 Jun 1998 18:49:10 +0000 (18:49 +0000)]
Show the time that we reached maximum throughput.
Submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>

26 years agoIndicate optional signal number field
Andrey A. Chernov [Tue, 9 Jun 1998 18:26:16 +0000 (18:26 +0000)]
Indicate optional signal number field

26 years agoAdd optional config file field: signal number to send (defaulted to HUP)
Andrey A. Chernov [Tue, 9 Jun 1998 18:24:04 +0000 (18:24 +0000)]
Add optional config file field: signal number to send (defaulted to HUP)
F.e. apache restarts less agressively  on USR1 then on HUP

26 years agoFix potential resource leak: when call to des_crypt_1() fails, remember
Bill Paul [Tue, 9 Jun 1998 17:38:33 +0000 (17:38 +0000)]
Fix potential resource leak: when call to des_crypt_1() fails, remember
to destroy the RPC CLIENT handle before returning.

26 years agosizeof(foo - 1) isn't the same as sizeof(foo) - 1.
Warner Losh [Tue, 9 Jun 1998 14:51:05 +0000 (14:51 +0000)]
sizeof(foo - 1) isn't the same as sizeof(foo) - 1.

Pointed out by: Theo De Raadt.

26 years agoAdd (mostly stub) alpha support. Incidentally, it doesn't build on stable
Doug Rabson [Tue, 9 Jun 1998 14:02:08 +0000 (14:02 +0000)]
Add (mostly stub) alpha support.  Incidentally, it doesn't build on stable
unless I manually construct y.tab.h.  Is this normal?

26 years agoPrint correct error message if we copy an unreadable directory.
Dmitrij Tejblum [Tue, 9 Jun 1998 13:42:51 +0000 (13:42 +0000)]
Print correct error message if we copy an unreadable directory.

26 years agoFix typo in a comment.
Dmitrij Tejblum [Tue, 9 Jun 1998 13:20:29 +0000 (13:20 +0000)]
Fix typo in a comment.

26 years agoAdd a tc_ prefix to struct timecounter members.
Poul-Henning Kamp [Tue, 9 Jun 1998 13:10:54 +0000 (13:10 +0000)]
Add a tc_ prefix to struct timecounter members.

Urged by: bde

26 years agoPass lists of possible root devices and their names up to the
Bruce Evans [Tue, 9 Jun 1998 12:52:35 +0000 (12:52 +0000)]
Pass lists of possible root devices and their names up to the
machine-independent code and try mounting the devices in the
lists instead of guessing alternative root devices in a machine-
dependent way.

autoconf.c:
Reject preposterous slice numbers instead of silently converting
them to COMPATIBILITY_SLICE.

Don't forget to force slice = COMPATIBILITY_SLICE in the floppy
device name.

Eliminated most magic numbers and magic device names in setroot().

Fixed dozens of style bugs.

vfs_conf.c:
Put the actual root device name instead of "root_device" in the
mount struct if the actual name is available.  This is useful after
booting with -s.  If it were set in all cases then it could be used
to do mount(8)'s ROOTSLICE_HUNT and fsck(8)'s hotroot guess better.

26 years agoImplement compile time thread lock debug.
John Birrell [Tue, 9 Jun 1998 08:37:35 +0000 (08:37 +0000)]
Implement compile time thread lock debug.

26 years agoRename fstat as _thread_sys_fstat if being built into libc_r.
John Birrell [Tue, 9 Jun 1998 08:35:42 +0000 (08:35 +0000)]
Rename fstat as _thread_sys_fstat if being built into libc_r.

26 years agoImplement thread support for libc_r. Make the lseek syscall directly
John Birrell [Tue, 9 Jun 1998 08:34:35 +0000 (08:34 +0000)]
Implement thread support for libc_r. Make the lseek syscall directly
to avoid recursive locking.

26 years agoImplement compile time debug mode for thread locks.
John Birrell [Tue, 9 Jun 1998 08:32:23 +0000 (08:32 +0000)]
Implement compile time debug mode for thread locks.

26 years agoAdd support for thread lock debug. No impact of the malloc code.
John Birrell [Tue, 9 Jun 1998 08:30:32 +0000 (08:30 +0000)]
Add support for thread lock debug. No impact of the malloc code.

26 years agoImplement compile time debug support for spinlocks.
John Birrell [Tue, 9 Jun 1998 08:28:49 +0000 (08:28 +0000)]
Implement compile time debug support for spinlocks.

Simplify the atomic lock prototype, removing the lock value.

Delete the unlock prototypes that are not required.

26 years agoDelete the atomic unlock function since it is no longer required.
John Birrell [Tue, 9 Jun 1998 08:25:41 +0000 (08:25 +0000)]
Delete the atomic unlock function since it is no longer required.

Simplify the atomic lock to just write a value of 1 to the lock instead
of taking the value passed by the caller (which just confused things).

26 years agoAtomic lock asm code for the alpha version of libc_r.
John Birrell [Tue, 9 Jun 1998 08:21:55 +0000 (08:21 +0000)]
Atomic lock asm code for the alpha version of libc_r.

26 years agoQuick fixes for the mtree bootstrap:
Bruce Evans [Tue, 9 Jun 1998 07:19:13 +0000 (07:19 +0000)]
Quick fixes for the mtree bootstrap:
- don't announce `mtree' as `mtools'.
- don't install to ${DESTDIR}/usr/sbin (which often doesn't exist if
  DESTDIR is set and may be read-only if DESTDIR is not set).
- install to (${WORLDTMP}/usr/sbin so that the new mtree is actually
  in $PATH if DESTDIR is set.
- don't use the host make or the host sys.mk.  This is probably
  unimportant.
- use a temporary obj dir like the one for `make'.  This was mainly
  necessary because I forgot to remove the MAKEOBJDIRPREFIX unsetting
  which was just a bug for mtree.  A non-quick fix would handle mtree
  more like a bootstrap tool (the only additional complications are to
  create ${BINDIR} and avoid excessive cleaning).  Except a non-quick
  fix would change much more.

26 years ago$@ is deprecated, use longer forms of single char macros
Warner Losh [Tue, 9 Jun 1998 05:36:48 +0000 (05:36 +0000)]
$@ is deprecated, use longer forms of single char macros

26 years ago$@ deprecated, use long form.
Warner Losh [Tue, 9 Jun 1998 05:14:43 +0000 (05:14 +0000)]
$@ deprecated, use long form.
PR: conf/3273

26 years agoIf we get back too much data to fit in result, return NULL. This avoids
Warner Losh [Tue, 9 Jun 1998 05:06:27 +0000 (05:06 +0000)]
If we get back too much data to fit in result, return NULL.  This avoids
a buffer overflow, but might negatively impact those hosts who have
enough aliases to fill MAXHOSTNAMELEN * 2 characters in them.

Good candidate for merging back into -stable.  Lightly tested by me, but
it came from OpenBSD a while ago.

Obtained from: OpenBSD

26 years agoUse correct size for readlink buffer. This is the size of the
Warner Losh [Tue, 9 Jun 1998 05:02:29 +0000 (05:02 +0000)]
Use correct size for readlink buffer.  This is the size of the
buffer -1 since readlink adds its own NUL to the end.

Inspired by: Similar changes in OpenBSD

26 years agouse strncpy correctly
Warner Losh [Tue, 9 Jun 1998 05:01:38 +0000 (05:01 +0000)]
use strncpy correctly
use strncat correctly
check buffer size in graph_name
Change paths from /tmp to /var/run for server sockets

This has been building in my tree for ages, but has remained lightly
tested.
Reviewed by: jkh ages ago

26 years agoo be careful about buffer overflows
Warner Losh [Tue, 9 Jun 1998 04:58:36 +0000 (04:58 +0000)]
o be careful about buffer overflows
o Use snprintf rather than sprintf

This is only lightly tested.

26 years agoRemove unused strvisx.
Warner Losh [Tue, 9 Jun 1998 04:35:20 +0000 (04:35 +0000)]
Remove unused strvisx.

26 years agoDon't assume that hp->h_lenght == 4. Be conservative in its use.
Warner Losh [Tue, 9 Jun 1998 04:31:02 +0000 (04:31 +0000)]
Don't assume that hp->h_lenght == 4.  Be conservative in its use.
Submitted by:  J. Assange a long time ago.

26 years agoo Use snprintf rather than sprintf.
Warner Losh [Tue, 9 Jun 1998 04:28:05 +0000 (04:28 +0000)]
o Use snprintf rather than sprintf.
o Revert gid to caller before a shell so we can run setgid.
o minor style nits to make bruce happy :-)
o use strncpy correctly.

26 years agoUse mkstemp rather than mktemp for yacc's temp files. This change was made
Warner Losh [Tue, 9 Jun 1998 04:20:51 +0000 (04:20 +0000)]
Use mkstemp rather than mktemp for yacc's temp files.  This change was made
to OpenBSD a long time ago and to my tree shortly thereafter.  I think theo
made this change, or one similar to it, but I could be wrong.

26 years agoo Use snprintf rather than sprintf
Warner Losh [Tue, 9 Jun 1998 04:17:29 +0000 (04:17 +0000)]
o Use snprintf rather than sprintf
o Add more checks for buffer overflows
o Use snprintf rather than strcat/cpy and have better checks for max
  length exceeded.

Most of these changes are not exploitable buffer overruns, but it never
hurts to be safe.

Inspired by and obtained from: OpenBSD

26 years agoo Use snprintf over sprintf.
Warner Losh [Tue, 9 Jun 1998 04:13:03 +0000 (04:13 +0000)]
o Use snprintf over sprintf.
o Use strncpy correctly.
o Use enough buffer for line.

Inspired by or Obtained from: Similar changes in OpenBSD

26 years agoMake sure we pass the length - 1 to readlink, since it adds its own
Warner Losh [Tue, 9 Jun 1998 04:10:08 +0000 (04:10 +0000)]
Make sure we pass the length - 1 to readlink, since it adds its own
NUL at the end of the path.

Inspired by: OpenBSD's changes in this area by theo de raadt

26 years ago$@ is deprecated, use ${.TARGET} instead. Ditto for other single character
Warner Losh [Tue, 9 Jun 1998 04:07:23 +0000 (04:07 +0000)]
$@ is deprecated, use ${.TARGET} instead.  Ditto for other single character
$n.
PR:  conf/3273

26 years agoMake sure we don't overflow the path buffer. Exit if we do.
Warner Losh [Tue, 9 Jun 1998 03:39:38 +0000 (03:39 +0000)]
Make sure we don't overflow the path buffer.  Exit if we do.
Obtained from or inspired by: A similar change in OpenBSD by theo

26 years agoMake sure we pass the length - 1 to readlink, since it adds its own
Warner Losh [Tue, 9 Jun 1998 03:38:43 +0000 (03:38 +0000)]
Make sure we pass the length - 1 to readlink, since it adds its own
NUL at the end of the path.
Inspired by: OpenBSD's changes in this area by theo de raadt

26 years agoUpdated generated files.
Bruce Evans [Tue, 9 Jun 1998 03:36:59 +0000 (03:36 +0000)]
Updated generated files.

26 years agoDon't generate COMPAT_43 cruft if there are no COMPAT_43 syscalls.
Bruce Evans [Tue, 9 Jun 1998 03:32:05 +0000 (03:32 +0000)]
Don't generate COMPAT_43 cruft if there are no COMPAT_43 syscalls.
In particular, don't generate an include of "opt_compat.h" if it
wouldn't affect anything we create.  This will fix recent breakage
of the ibcs2 LKM.  The ibcs2 syscall files were not regenerated
properly, so the LKM didn't break immediately when we started
generating this extraneous include.

26 years agoInclude "opt_compat.h" explicitly instead of depending on
Bruce Evans [Tue, 9 Jun 1998 03:28:14 +0000 (03:28 +0000)]
Include "opt_compat.h" explicitly instead of depending on
makesyscalls.sh generating it as pollution.

Don't attempt to separate the includes by newlines.  makesyscalls.sh
just ignores newlines.

26 years agoFixed `make depend', which I broke here about a month ago by moving
Bruce Evans [Tue, 9 Jun 1998 02:55:40 +0000 (02:55 +0000)]
Fixed `make depend', which I broke here about a month ago by moving
the null default for `depend' from bsd.dep.mk to bsd.obj.mk.
bsd.kmod.mk included these files in a bad order, so it picked up
the null default.

26 years agoThe version of the softdep changes in FreeBSD broke the
Julian Elischer [Mon, 8 Jun 1998 23:55:33 +0000 (23:55 +0000)]
The version of the softdep changes in FreeBSD broke the
(doingdirectory && !newparent) case of ufs_rename().
rename("D1/X/", "D2/Y/") gives a wrong link count for D2.

Submitted by: Bruce Evans <bde@zeta.org.au>
Reviewed by: Kirk McKusick <mckusick@McKusick.COM>

26 years ago- Added entry for Xircon CreditCard Modem.
Nate Williams [Mon, 8 Jun 1998 21:10:41 +0000 (21:10 +0000)]
- Added entry for Xircon CreditCard Modem.

Submitted by:  "Mike Del" <repenting@hotmail.com>

26 years agoMy previous change could conceivably succeed at removing CHROOTDIR.
John Polstra [Mon, 8 Jun 1998 20:58:02 +0000 (20:58 +0000)]
My previous change could conceivably succeed at removing CHROOTDIR.
Ignore errors from the chflags command that follows it, just in case.

26 years agoDon't let ifunit() modify the string passed as an argument.
Julian Elischer [Mon, 8 Jun 1998 20:33:29 +0000 (20:33 +0000)]
Don't let ifunit() modify the string passed as an argument.
it may be in the text segment and write protected.

26 years agoCorrect ``set server'' usage and add mention that ``set ns'' changed
Brian Somers [Mon, 8 Jun 1998 20:23:44 +0000 (20:23 +0000)]
Correct ``set server'' usage and add mention that ``set ns'' changed
in README.changes.
Suggested by: stuart henderson <stuart@internationalschool.co.uk>

26 years agoRemove some junk left over from a previous commit.
John Dyson [Mon, 8 Jun 1998 18:18:28 +0000 (18:18 +0000)]
Remove some junk left over from a previous commit.
Submitted by: phk

26 years agoPrint the write counts if they are nonzero even if we're mounted
Bruce Evans [Mon, 8 Jun 1998 14:08:54 +0000 (14:08 +0000)]
Print the write counts if they are nonzero even if we're mounted
readonly, since they tell us about previous write activity.

Use the correct format to print the write counts.

26 years agoUpdated generated files.
Bruce Evans [Mon, 8 Jun 1998 11:08:35 +0000 (11:08 +0000)]
Updated generated files.

26 years agoFixed some style bugs in output (missing tabs and unparenthesized macros).
Bruce Evans [Mon, 8 Jun 1998 11:02:00 +0000 (11:02 +0000)]
Fixed some style bugs in output (missing tabs and unparenthesized macros).

Fixed some style bugs in source (mostly, superfluous backslashes).