summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Implement compile time thread lock debug.John Birrell1998-06-092-4/+4
| | | | Notes: svn path=/head/; revision=36808
* Rename fstat as _thread_sys_fstat if being built into libc_r.John Birrell1998-06-091-1/+5
| | | | Notes: svn path=/head/; revision=36807
* Implement thread support for libc_r. Make the lseek syscall directlyJohn Birrell1998-06-091-2/+7
| | | | | | | to avoid recursive locking. Notes: svn path=/head/; revision=36806
* Implement compile time debug mode for thread locks.John Birrell1998-06-093-11/+11
| | | | Notes: svn path=/head/; revision=36805
* Add support for thread lock debug. No impact of the malloc code.John Birrell1998-06-091-4/+4
| | | | Notes: svn path=/head/; revision=36804
* Implement compile time debug support for spinlocks.John Birrell1998-06-091-5/+24
| | | | | | | | | Simplify the atomic lock prototype, removing the lock value. Delete the unlock prototypes that are not required. Notes: svn path=/head/; revision=36803
* Delete the atomic unlock function since it is no longer required.John Birrell1998-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). Notes: svn path=/head/; revision=36802
* Atomic lock asm code for the alpha version of libc_r.John Birrell1998-06-092-0/+114
| | | | Notes: svn path=/head/; revision=36801
* Quick fixes for the mtree bootstrap:Bruce Evans1998-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. Notes: svn path=/head/; revision=36800
* $@ is deprecated, use longer forms of single char macrosWarner Losh1998-06-093-10/+9
| | | | Notes: svn path=/head/; revision=36799
* $@ deprecated, use long form.Warner Losh1998-06-091-34/+34
| | | | | | | PR: conf/3273 Notes: svn path=/head/; revision=36798
* If we get back too much data to fit in result, return NULL. This avoidsWarner Losh1998-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 Notes: svn path=/head/; revision=36797
* Use correct size for readlink buffer. This is the size of theWarner Losh1998-06-091-2/+2
| | | | | | | | | buffer -1 since readlink adds its own NUL to the end. Inspired by: Similar changes in OpenBSD Notes: svn path=/head/; revision=36796
* use strncpy correctlyWarner Losh1998-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 Notes: svn path=/head/; revision=36795
* o be careful about buffer overflowsWarner Losh1998-06-091-5/+7
| | | | | | | | | o Use snprintf rather than sprintf This is only lightly tested. Notes: svn path=/head/; revision=36794
* Remove unused strvisx.Warner Losh1998-06-091-10/+2
| | | | Notes: svn path=/head/; revision=36793
* Don't assume that hp->h_lenght == 4. Be conservative in its use.Warner Losh1998-06-096-31/+45
| | | | | | | Submitted by: J. Assange a long time ago. Notes: svn path=/head/; revision=36792
* o Use snprintf rather than sprintf.Warner Losh1998-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. Notes: svn path=/head/; revision=36791
* Use mkstemp rather than mktemp for yacc's temp files. This change was madeWarner Losh1998-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. Notes: svn path=/head/; revision=36790
* o Use snprintf rather than sprintfWarner Losh1998-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 Notes: svn path=/head/; revision=36789
* o Use snprintf over sprintf.Warner Losh1998-06-092-13/+17
| | | | | | | | | | o Use strncpy correctly. o Use enough buffer for line. Inspired by or Obtained from: Similar changes in OpenBSD Notes: svn path=/head/; revision=36788
* Make sure we pass the length - 1 to readlink, since it adds its ownWarner Losh1998-06-092-4/+4
| | | | | | | | | NUL at the end of the path. Inspired by: OpenBSD's changes in this area by theo de raadt Notes: svn path=/head/; revision=36787
* $@ is deprecated, use ${.TARGET} instead. Ditto for other single characterWarner Losh1998-06-094-9/+9
| | | | | | | | $n. PR: conf/3273 Notes: svn path=/head/; revision=36786
* Make sure we don't overflow the path buffer. Exit if we do.Warner Losh1998-06-091-2/+4
| | | | | | | Obtained from or inspired by: A similar change in OpenBSD by theo Notes: svn path=/head/; revision=36785
* Make sure we pass the length - 1 to readlink, since it adds its ownWarner Losh1998-06-093-10/+8
| | | | | | | | NUL at the end of the path. Inspired by: OpenBSD's changes in this area by theo de raadt Notes: svn path=/head/; revision=36784
* Updated generated files.Bruce Evans1998-06-096-34/+3
| | | | Notes: svn path=/head/; revision=36783
* Don't generate COMPAT_43 cruft if there are no COMPAT_43 syscalls.Bruce Evans1998-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. Notes: svn path=/head/; revision=36782
* Include "opt_compat.h" explicitly instead of depending onBruce Evans1998-06-092-4/+4
| | | | | | | | | | makesyscalls.sh generating it as pollution. Don't attempt to separate the includes by newlines. makesyscalls.sh just ignores newlines. Notes: svn path=/head/; revision=36781
* Fixed `make depend', which I broke here about a month ago by movingBruce Evans1998-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. Notes: svn path=/head/; revision=36780
* The version of the softdep changes in FreeBSD broke theJulian Elischer1998-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> Notes: svn path=/head/; revision=36779
* - Added entry for Xircon CreditCard Modem.Nate Williams1998-06-082-2/+16
| | | | | | | Submitted by: "Mike Del" <repenting@hotmail.com> Notes: svn path=/head/; revision=36778
* My previous change could conceivably succeed at removing CHROOTDIR.John Polstra1998-06-081-2/+2
| | | | | | | Ignore errors from the chflags command that follows it, just in case. Notes: svn path=/head/; revision=36777
* Don't let ifunit() modify the string passed as an argument.Julian Elischer1998-06-081-16/+26
| | | | | | | it may be in the text segment and write protected. Notes: svn path=/head/; revision=36775
* Correct ``set server'' usage and add mention that ``set ns'' changedBrian Somers1998-06-082-4/+5
| | | | | | | | in README.changes. Suggested by: stuart henderson <stuart@internationalschool.co.uk> Notes: svn path=/head/; revision=36774
* Remove some junk left over from a previous commit.John Dyson1998-06-082-12/+2
| | | | | | | Submitted by: phk Notes: svn path=/head/; revision=36773
* Print the write counts if they are nonzero even if we're mountedBruce Evans1998-06-082-8/+6
| | | | | | | | | readonly, since they tell us about previous write activity. Use the correct format to print the write counts. Notes: svn path=/head/; revision=36772
* Updated generated files.Bruce Evans1998-06-088-807/+807
| | | | Notes: svn path=/head/; revision=36771
* Fixed some style bugs in output (missing tabs and unparenthesized macros).Bruce Evans1998-06-081-31/+30
| | | | | | | Fixed some style bugs in source (mostly, superfluous backslashes). Notes: svn path=/head/; revision=36770
* Add LIB_SPEC (same as on i386) so that gcc knows about libc_r.John Birrell1998-06-081-0/+4
| | | | Notes: svn path=/head/; revision=36769
* Fixed pedantic semantics errors (bitfields not of type int, signed intBruce Evans1998-06-0820-184/+184
| | | | | | | | | | 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)). Notes: svn path=/head/; revision=36767
* Fix more of my DDB breakage.Doug Rabson1998-06-082-6/+6
| | | | Notes: svn path=/head/; revision=36766
* Fix a typo which prevented i386 elf from working at all (including LinuxDoug Rabson1998-06-081-2/+2
| | | | | | | emulated elf binaries). Notes: svn path=/head/; revision=36765
* Correct even more ioctl breakage :(Søren Schmidt1998-06-089-9/+9
| | | | | | | | Doesn't people check their code before committing anymore, it could at least compile ???? Notes: svn path=/head/; revision=36764
* Sync with sys/i386/isa/clock.c revision 1.123.KATO Takenori1998-06-083-3/+9
| | | | Notes: svn path=/head/; revision=36763
* Merge 64bit portability fixes from sys/i386 stuff.KATO Takenori1998-06-0814-37/+37
| | | | Notes: svn path=/head/; revision=36762
* Fixed pedantic semantics errors (bitfields not of type int, signed intBruce Evans1998-06-081-39/+39
| | | | | | | | or unsigned int (don't do this in one case where it would change the object file)). Notes: svn path=/head/; revision=36761
* Make DDB work again after I broke it :-(.Doug Rabson1998-06-083-6/+6
| | | | Notes: svn path=/head/; revision=36760
* Add rcsid, remove unused #includes. Use err(3).Philippe Charnier1998-06-081-22/+22
| | | | Notes: svn path=/head/; revision=36758
* Fix spelling in printf().Joseph Koshy1998-06-082-4/+4
| | | | Notes: svn path=/head/; revision=36757
* Use warnx()+fprintf() to handle multi-line messages. Correct K&R support andPhilippe Charnier1998-06-082-24/+20
| | | | | | | | KNF continuation indent rule. Requested by: Bruce. Notes: svn path=/head/; revision=36756