summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add (mostly stub) alpha support. Incidentally, it doesn't build on stabledfr1998-06-096-4/+125
| | | | unless I manually construct y.tab.h. Is this normal?
* Print correct error message if we copy an unreadable directory.dt1998-06-091-1/+2
|
* Fix typo in a comment.dt1998-06-092-4/+4
|
* Add a tc_ prefix to struct timecounter members.phk1998-06-0913-254/+262
| | | | Urged by: bde
* Pass lists of possible root devices and their names up to thebde1998-06-095-121/+155
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Implement compile time thread lock debug.jb1998-06-092-4/+4
|
* Rename fstat as _thread_sys_fstat if being built into libc_r.jb1998-06-091-1/+5
|
* Implement thread support for libc_r. Make the lseek syscall directlyjb1998-06-091-2/+7
| | | | to avoid recursive locking.
* Implement compile time debug mode for thread locks.jb1998-06-093-11/+11
|
* Add support for thread lock debug. No impact of the malloc code.jb1998-06-091-4/+4
|
* Implement compile time debug support for spinlocks.jb1998-06-091-5/+24
| | | | | | Simplify the atomic lock prototype, removing the lock value. Delete the unlock prototypes that are not required.
* Delete the atomic unlock function since it is no longer required.jb1998-06-093-45/+15
| | | | | 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).
* Atomic lock asm code for the alpha version of libc_r.jb1998-06-092-0/+114
|
* Quick fixes for the mtree bootstrap:bde1998-06-091-5/+6
| | | | | | | | | | | | | | | | - 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.
* $@ is deprecated, use longer forms of single char macrosimp1998-06-093-10/+9
|
* $@ deprecated, use long form.imp1998-06-091-34/+34
| | | | PR: conf/3273
* If we get back too much data to fit in result, return NULL. This avoidsimp1998-06-091-1/+5
| | | | | | | | | | 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
* Use correct size for readlink buffer. This is the size of theimp1998-06-091-2/+2
| | | | | | buffer -1 since readlink adds its own NUL to the end. Inspired by: Similar changes in OpenBSD
* use strncpy correctlyimp1998-06-097-24/+42
| | | | | | | | | | 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
* o be careful about buffer overflowsimp1998-06-091-5/+7
| | | | | | o Use snprintf rather than sprintf This is only lightly tested.
* Remove unused strvisx.imp1998-06-091-10/+2
|
* Don't assume that hp->h_lenght == 4. Be conservative in its use.imp1998-06-096-31/+45
| | | | Submitted by: J. Assange a long time ago.
* o Use snprintf rather than sprintf.imp1998-06-093-11/+12
| | | | | | 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.
* Use mkstemp rather than mktemp for yacc's temp files. This change was madeimp1998-06-091-7/+20
| | | | | 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.
* o Use snprintf rather than sprintfimp1998-06-098-23/+32
| | | | | | | | | | | 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
* o Use snprintf over sprintf.imp1998-06-092-13/+17
| | | | | | | o Use strncpy correctly. o Use enough buffer for line. Inspired by or Obtained from: Similar changes in OpenBSD
* Make sure we pass the length - 1 to readlink, since it adds its ownimp1998-06-092-4/+4
| | | | | | NUL at the end of the path. Inspired by: OpenBSD's changes in this area by theo de raadt
* $@ is deprecated, use ${.TARGET} instead. Ditto for other single characterimp1998-06-094-9/+9
| | | | | $n. PR: conf/3273
* Make sure we don't overflow the path buffer. Exit if we do.imp1998-06-091-2/+4
| | | | Obtained from or inspired by: A similar change in OpenBSD by theo
* Make sure we pass the length - 1 to readlink, since it adds its ownimp1998-06-093-10/+8
| | | | | NUL at the end of the path. Inspired by: OpenBSD's changes in this area by theo de raadt
* Updated generated files.bde1998-06-096-34/+3
|
* Don't generate COMPAT_43 cruft if there are no COMPAT_43 syscalls.bde1998-06-091-12/+18
| | | | | | | | 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.
* Include "opt_compat.h" explicitly instead of depending onbde1998-06-092-4/+4
| | | | | | | makesyscalls.sh generating it as pollution. Don't attempt to separate the includes by newlines. makesyscalls.sh just ignores newlines.
* Fixed `make depend', which I broke here about a month ago by movingbde1998-06-092-4/+6
| | | | | | 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.
* The version of the softdep changes in FreeBSD broke thejulian1998-06-081-4/+7
| | | | | | | | (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>
* - Added entry for Xircon CreditCard Modem.nate1998-06-082-2/+16
| | | | Submitted by: "Mike Del" <repenting@hotmail.com>
* My previous change could conceivably succeed at removing CHROOTDIR.jdp1998-06-081-2/+2
| | | | Ignore errors from the chflags command that follows it, just in case.
* Don't let ifunit() modify the string passed as an argument.julian1998-06-081-16/+26
| | | | it may be in the text segment and write protected.
* Correct ``set server'' usage and add mention that ``set ns'' changedbrian1998-06-082-4/+5
| | | | | in README.changes. Suggested by: stuart henderson <stuart@internationalschool.co.uk>
* Remove some junk left over from a previous commit.dyson1998-06-082-12/+2
| | | | Submitted by: phk
* Print the write counts if they are nonzero even if we're mountedbde1998-06-082-8/+6
| | | | | | readonly, since they tell us about previous write activity. Use the correct format to print the write counts.
* Updated generated files.bde1998-06-088-807/+807
|
* Fixed some style bugs in output (missing tabs and unparenthesized macros).bde1998-06-081-31/+30
| | | | Fixed some style bugs in source (mostly, superfluous backslashes).
* Add LIB_SPEC (same as on i386) so that gcc knows about libc_r.jb1998-06-081-0/+4
|
* Fixed pedantic semantics errors (bitfields not of type int, signed intbde1998-06-0821-187/+187
| | | | | | | or unsigned int (this doesn't change the struct layout, size or alignment in any of the files changed in this commit, at least for gcc on i386's. Using bitfields of type u_char may affect size and alignment but not packing)).
* Fix more of my DDB breakage.dfr1998-06-082-6/+6
|
* Fix a typo which prevented i386 elf from working at all (including Linuxdfr1998-06-081-2/+2
| | | | emulated elf binaries).
* Correct even more ioctl breakage :(sos1998-06-089-9/+9
| | | | | Doesn't people check their code before committing anymore, it could at least compile ????
* Sync with sys/i386/isa/clock.c revision 1.123.kato1998-06-083-3/+9
|
* Merge 64bit portability fixes from sys/i386 stuff.kato1998-06-0814-37/+37
|
OpenPOWER on IntegriCloud