Age | Commit message (Collapse) | Author | |
---|---|---|---|
2002-02-23 | If the allocator has the PA_WANT flag set, return whole pages immediately. | Artur Grabowski | |
2002-02-23 | Fix up some functions. Don't have static all over the place | Artur Grabowski | |
and don't static inline big functions that are called multiple times and are not time critical. | |||
2002-02-22 | EA sync | Dale Rahn | |
2002-02-22 | Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@ | Dale Rahn | |
2002-02-22 | include a siginfo_t with ktrace PSIG information, so that kdump can print | Theo de Raadt | |
fault addresses and other information. (a small bug exists: in some signal delivery cases, two PSIG records may be inserted, because postsig() is unaware a PSIG record has already been placed. but this small bug can stay since the siginfo_t information helps us find and fix other bugs) | |||
2002-02-22 | Fix stack sharing in FORK_VMNOSTACK. | Artur Grabowski | |
Don't assume that the stack is on the top of user address space. And don't assume that the stack grows down. | |||
2002-02-21 | Fix /tmp races. | Miod Vallat | |
This requires the use of a gcc'ism on the cc commandline, though. | |||
2002-02-19 | Heh. Don't assume that sizeof(void *) > sizeof(int). | Artur Grabowski | |
2002-02-19 | Missing FRELE in error case. ok provos@ | Thomas Nordin | |
2002-02-18 | fix issue on LP64 BE arch's w/ fcntl's F_GETOWN | Eric Jackson | |
pointed out by der Mouse <mouse@Rodents.Montreal.QC.CA> | |||
2002-02-18 | Don't do unnecessary normalization. ok art@ | Thomas Nordin | |
2002-02-17 | Patch from Daniel Lucq <daniel@lucq.org> | Mats O Jansson | |
The patch allows you to change the value of NMBCLUSTERS, BUFCACHEPERCENT and NKMEMPAGES using the config command, instead of recompiling the kernel. This is the kernel part of the patch. I have compiled it on i386, sparc64, alpha and macppc. -moj ok art@ maja@ | |||
2002-02-17 | ICANON is a t_lflag, not t_iflag; neelnatu@yahoo.com | Theo de Raadt | |
2002-02-17 | Repeat. But this time get the math right and avoid sleeping forever. | Artur Grabowski | |
2002-02-17 | Enable stackgap_random. Set it initially to 1k. | Artur Grabowski | |
2002-02-16 | Simplify pid selection algorithm. ok art@ deraadt@ | Thomas Nordin | |
2002-02-15 | Improve comment. ok art@ | Thomas Nordin | |
2002-02-15 | undo latest commit for now, it breaks nanosleep | Peter Valchev | |
2002-02-15 | Make rescheduling to a later time faster. ok art@ | Thomas Nordin | |
2002-02-15 | Don't get confused in nanosleep(2) when the time changes. | Artur Grabowski | |
There is no need to use 'time' when we can use 'mono_time'. (oh and now it's faster too) | |||
2002-02-15 | Add a tvtohz function. Like hzto, but doesn't subtract the current time. | Artur Grabowski | |
2002-02-14 | No more RFORK_FDSAHRE option, always allow FORK_SHAREFILES. | Artur Grabowski | |
2002-02-13 | More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl ↵ | Artur Grabowski | |
functions in sys/compat are left. | |||
2002-02-12 | More FREF/FRELE protection. This time all users of getvnode. | Artur Grabowski | |
2002-02-12 | malloc_roundup to calculate allocation size malloc will use; from netbsd; | Niels Provos | |
okay art@ | |||
2002-02-12 | Fix my total blackout of the brain. | Artur Grabowski | |
I rearrange half of this function to properly handle unlocking in one error case, then I forget to handle that error case. I even had a regression test written for this! In other words: fix accept(2) to unlock when it runs out of fds. | |||
2002-02-12 | Fix all users of getsock to use FREF/FRELE properly. | Artur Grabowski | |
2002-02-11 | Big fixup of fd passing. It now works, even on sparc64. | Artur Grabowski | |
Some parts from NetBSD, but with big modifications. | |||
2002-02-11 | In {send,recv}msg allow zero sized message. We can have control data. | Artur Grabowski | |
2002-02-09 | Protect the whole sys_fnctl with one big FREF/FRELE pair. | Artur Grabowski | |
2002-02-08 | Require a FREFd file in dofilewrite{,v}. | Artur Grabowski | |
2002-02-08 | require a FREFd fp in dofilereadv. Fix some comments. | Artur Grabowski | |
2002-02-08 | simplify sys_pread a bit. | Artur Grabowski | |
2002-02-08 | Add a comment about an obscure behavior in dup2(2). | Artur Grabowski | |
2002-02-08 | Add a slightly redundant arg to finishdup that's the struct file * | Artur Grabowski | |
present on the 'old' descriptor. It's not really necessary because we can easily find it with 'fp = p->p_fd->fd_ofiles[old];', but this allows us to require that the fp is FREFed without violating all rules of good taste and all callers have to do fd_getfile on it anyway (to detect larval and closing files. FREF the fp in all callers. | |||
2002-02-08 | No more need for ffree. Since it's hard to use it safely, remove it. | Artur Grabowski | |
2002-02-08 | - Rename FILE_{,UN}USE to FREF and FRELE. USE is a bad verb and we don't have | Artur Grabowski | |
the same semantics as NetBSD anyway, so it's good to avoid name collissions. - Always fdremove before freeing the file, not the other way around. - falloc FREFs the file. - have FILE_SET_MATURE FRELE the file (It feels like a good ortogonality to falloc FREFing the file). - Use closef as much as possible instead of ffree in error paths of falloc:ing functions. closef is much more careful with the fd and can deal with the fd being forcibly closed by dup2. Also try to avoid manually calling *fo_close when closef can do that for us (this makes some error paths mroe complicated (sys_socketpair and sys_pipe), but others become simpler (sys_open)). | |||
2002-02-05 | Zero-ize ext even if it has a free method defined. | Angelos D. Keromytis | |
2002-02-05 | Do range check on SO_LINGER, closes pr#2375. art@ ok | Thomas Nordin | |
2002-02-05 | panic if a read-only mbuf is given to m_zero() --- from art@openbsd.org | Angelos D. Keromytis | |
2002-02-05 | Fix m_zero() yet again -- yesterday's fix wasn't sufficient. | Angelos D. Keromytis | |
2002-02-05 | Add counting of temporary references to a struct file (as opposed to references | Artur Grabowski | |
from fd tables and other long-lived objects). This is to avoid races between using a file descriptor and having another process (with shared fd table) close it. We use a separate refence count so that error values from close(2) will be correctly returned to the caller of close(2). The macros for those reference counts are FILE_USE(fp) and FILE_UNUSE(fp). Make sure that the cases where closef can be called "incorrectly" (most notably dup2(2)) are handled. Right now only callers of closef (and {,p}read) use FILE_{,UN}USE correctly, more fixes incoming soon. | |||
2002-02-05 | Workaround for VM_MAXUSER_ADDRESS not being page aligned on sparc64. | Artur Grabowski | |
2002-02-04 | Also, cleanup any external buffers first (paranoid). | Angelos D. Keromytis | |
2002-02-04 | Revision 1.37 was borked... This time, fix the casts and address the | Jason Wright | |
void * arithmetic problem correctly in m_zero() | |||
2002-02-04 | Cleanup mountroot-related definitions. | Miod Vallat | |
2002-02-04 | Add some comments documenting why we use fd_ofiles instead | Artur Grabowski | |
of fd_getfile in some places. Also, get rid of the check for old == new in dupfdopen and document why the semantics of fd_getfile make it unnecessary. | |||
2002-02-04 | Don't ffree the newly allocated file before calling dupfdopen. | Artur Grabowski | |
In some cases that could cause dupfdopen->fd_getfile to access freed memory setting fd_ofiles[fd] to NULL is not a solution because that would cause a race condition. Free the new file after dupfdopen and use closef (because it will be necessary in the future. XXX - consider more cleanup of the code around dupfdopen. | |||
2002-02-02 | Reorganize sys_fcntl to make future changes easier. | Artur Grabowski | |
2002-02-02 | Be more consistent about using fd_getfile where it matters. | Artur Grabowski | |