summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2001-09-01Add __HAVE_DEVICE_REGISTER to hp300/alpha (sparc64 already had it) andJason Wright
clean up the arch specific #ifdef's in subr_autoconf.c; from NetBSD. (tested by me on alpha/sparc64 and miod on hp300)
2001-08-31implement autoconf mechanism using device_register(); from NetBSD.Jason Wright
2001-08-30Add a simple protection against multiple inclusion of same headers.Miod Vallat
This will be needed very soon.
2001-08-30typo in the comment.Mike Pechkin
2001-08-30Change getnewbuf interface so that getnewbuf always returnGrigoriy Orlov
a new buffer and indicate if it sleep while getting that buffer. This isn't make a much sense, but farther modifications will use it. Work by art@
2001-08-26syncTheo de Raadt
2001-08-26be and le varients of syscallarg; from netbsdTheo de Raadt
2001-08-25It makes more sense to have argc stored as a long on the stack,Artur Grabowski
not int. Shouldn't affect any archs except sparc64 (now one step closer to a working userland).
2001-08-25cleanupArtur Grabowski
2001-08-23We can now move timeout_init into main().Artur Grabowski
2001-08-23Remove even more leftovers from old timeouts.Artur Grabowski
2001-08-23Remove the old timeout legacy code.Miod Vallat
2001-08-19generic soft interrupts for softclock.Artur Grabowski
From NetBSD.
2001-08-18Add a possibility to add a random offset to the stack on exec. This makesArtur Grabowski
it slightly harder to write generic buffer overflows. This doesn't really give any real security, but it raises the bar for script-kiddies and it's really cheap. The range of the random offsets is controlled by the sysctl kern.stackgap_random (must be a power of 2). This is disabled by default right now, but we'll set it to a reasonable value (1024?) soon, after some more testing.
2001-08-17When this code was imported to NetBSD by Jason Thorpe he did a bunch ofArtur Grabowski
useful changes (and a lot of cleanup). Bring in them.
2001-08-12Don't allocate globals in include files, use extern declarations.Todd C. Miller
Move the actual variables into their respective .c files. As a bonus, remove semmap which is not used.
2001-08-12absolutely no need to include vm_parm.h after vm.hMichael Shalayeff
2001-08-11Why is it so popular to include <vm/*.h> everywhere?Artur Grabowski
2001-08-09Unshare signal actions on exec, from NetBSD. While I am here a little KNF ↵Niklas Hallqvist
nit too
2001-08-08__dead not __noreturn__Todd C. Miller
2001-08-07Change tsleep into ltsleep.Artur Grabowski
ltsleep takes an additional argument - a simplelock and unlocks it when it's safe to do so. tsleep now becomes a wrapper around ltsleep. From NetBSD
2001-08-07We now have predict_{true,false}Artur Grabowski
2001-08-06Use pool to allocate extent region descriptors.Artur Grabowski
2001-08-02Sysctl for finding out how many pages there are in kmem_map.Artur Grabowski
2001-08-02(vput): make panic strings actually say vput instead of vreleassar
2001-07-30Add a check for too big e_phnum that could cause us to malloc toArtur Grabowski
much and barf. This should have been merged into this file from exec_elf64.c a long time ago. Looking for volunteers to merge exec_elf.c and exec_elf64.c
2001-07-30Make the e_phnum check slightly cleaner.Artur Grabowski
2001-07-28Allow negative lock length in case of lockf(3). This makes lockf(3)Grigoriy Orlov
compliant to specification. costa@ ok.
2001-07-28Check for negative lock length.Grigoriy Orlov
costa@ ok.
2001-07-27Startup hooks. Can be used for providing root/swap devices from deviceNiklas Hallqvist
systems which want configuration to finish late, like I2O. Implemented via a general hooks mechanism which the shutdown hooks have been converted to use as well. It even has manpages!
2001-07-26Typo.Miod Vallat
2001-07-26Back out changes to symlink and mknod that were not well tested.Todd C. Miller
A simple mknod at causes a kernel panic (uvm_fault).
2001-07-26In extent_destroy, remove the extent from the list ofArtur Grabowski
all extents.
2001-07-26Print "data modified on freelist" sizes in hex.Artur Grabowski
I know at least of two cases where people got confused by this and used the wrong size to the malloc debugger.
2001-07-26Be more careful with ranges.Artur Grabowski
From Heikki Korpela <heko@iki.fi>
2001-07-26change vop_symlink and vop_mknod to return vpp (the created node)assar
refed, so that the caller can actually use it. update callers and file systems that implement these vnode operations ok'd by art
2001-07-25Random cleanups that generate noise in my cvs updates.Artur Grabowski
2001-07-19make number of ptys configurable; deraadt@ okMichael Shalayeff
2001-07-18Typo.Artur Grabowski
Noted by: Heikki Korpela <heko@iki.fi>
2001-07-18Get rid of the PMAP_NEW option by making it mandatory for all archs.Artur Grabowski
The archs that didn't have a proper PMAP_NEW now have a dummy implementation with wrappers around the old functions.
2001-07-17It takes a greek to put buffer overflow and unterminated stringTheo de Raadt
handling into the kernel. Stick with the complicated stuff dude, breaking this simple shit is killing us!
2001-07-17Since normal malloc reports "data modified on free list" withArtur Grabowski
the size we are trying to allocate and not the size of the bucket and malloc_debug is not capable of debugging a prticular bucket, only a size, add a possibility to specify a size range.
2001-07-17use pool allocator for knotes, adapted from lukem@netbsd, okay art@Niels Provos
2001-07-16Ignore O_TRUNC on open() if we are not opening a regular file.Todd C. Miller
csapuntz@ OK'd
2001-07-15(define simple_lock_only_held): add dummy nop macroassar
2001-07-13make kern_msgbuf work for sparc, i thought it worked for me before; from miodMichael Shalayeff
2001-07-09Make quad types on alpha be "long long" not "long". This means thatTodd C. Miller
printf's "%lld" can be used with a quad_t or int64_t without a bogus cast.
2001-07-05Get rid of REAL_CLISTS. It was never implemented and the tentacles areArtur Grabowski
everywhhere.
2001-07-05Get rid of the wrapper macros around extent_alloc*1Artur Grabowski
Pass the right amount of arguments and rename them back to their right names.
2001-07-05It feels a bit pointless to have:Artur Grabowski
#define sonewconn(head, connstatus) sonewconn1((head), (connstatus)) Just wastes preprocessor time.