summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove all the compat svr4 filestedu2011-07-0456-13553/+0
|
* move the specfs code to a place people can see it; ok guenther thib krwderaadt2011-07-041-3/+2
|
* Revert the sigacts diff: NFS can apparently retain pointers to processesguenther2011-04-181-2/+2
| | | | | | until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
* Correct the sharing of the signal handling state: stuff that shouldguenther2011-04-151-2/+2
| | | | | | | | | | | | be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
* add a BRKSIZ define and use it for the heap gap constant, decouplingtedu2010-12-151-3/+3
| | | | heap gap from max data size. nothing else changes yet. ok deraadt
* Correct the links between threads, processes, pgrps, and sessions,guenther2010-07-262-21/+24
| | | | | | | | | so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots
* Fix previous. s/sfs->f_typename/bfs->fs_typename andthib2010-05-251-3/+3
| | | | | | add a missing ')'. i386 can now build kernels.
* Zero out svr4_statvfs and svr4_statvfs64 before using and copy themillert2010-05-251-7/+7
| | | | correct number of bytes into f_fstr. OK kettenis@ deraadt@ nicm@
* s/i386/__i386__/, no binary change.kettenis2010-04-281-2/+2
|
* svr4_sys_waitsys() was seemingly implemented by copying sys_wait4()guenther2009-12-201-20/+3
| | | | | | | | | and hacking on it. Since then, some of the details of finishing a wait have changed (p_exitsig handling), so factor out the common bit into into proc_finish_wait() and have both sys_wait4() and svr4_sys_waitsys() call that to kill the divergence. "looks good" deraadt@
* Add entries in compat signal mapping arrays for SIGTHR.jsg2009-12-091-2/+3
| | | | | | | | Prompted by parfait noticing overflows in ibcs2/svr4 which are now changed to being NSIG sized like the others as suggested by tedu. ok tedu@ miod@ guenther@
* Add compat errno mappings for the ENOTSUP errno addition.jsg2009-10-281-2/+3
| | | | ok deraadt@
* Remove the VREF() macro and replaces all instances with a call to verf(),thib2009-07-091-2/+2
| | | | | | | | | | | which is exactly what the macro does. Macro's that are nothing more then: #define FUNCTION(arg) function(arg) are almost always pointless and should go away. OK blambert@ Agreed by many.
* Make ELF platforms generate ELF core dumps. Somewhat based on code fromkettenis2009-03-051-1/+3
| | | | | | NetBSD. ok kurt@, drahn@, miod@
* Switch struct stat's timespec members to the names standardized inguenther2009-01-291-10/+10
| | | | | | | | POSIX 1003.1-2008, with compatibility macros for the names used in previous version of OpenBSD. Update all the references in the kernel to use the new, standard member names. ok'ed by miod@, otto@; ports build test by naddy@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-262-16/+2
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Do not attempt to recognize foreign ELF binaries if emulation is disabled;miod2008-06-121-1/+4
| | | | | also recognize modern Linux binaries without branding, but with a ``GNU'' ABI note.
* spl0() is not your friend, use splx() instead.miod2008-05-011-3/+4
|
* regenart2007-11-274-257/+257
|
* Make sure the compat errno mapping arrays go up to ELAST, and correctlymiod2007-10-271-2/+12
| | | | translate the errnos added over the last few releases.
* more btoc -> atopmartin2007-10-011-3/+3
|
* replace the machine dependant bytes-to-clicks macro by the MI ptoa()martin2007-09-011-4/+4
| | | | | | | | version for i386 more architectures and ctob() replacement is being worked on prodded by and ok miod
* now that all partition size/offsets are potentially 64-bit, change thederaadt2007-06-061-2/+2
| | | | | | | type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
* Since p_flag is often manipulated in interrupts and without biglockart2007-03-151-2/+2
| | | | | | | | | | | | it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
* Compile if no option SYSVMSG.miod2006-05-231-1/+3
|
* Use more queue macros rather than doing it by hand; ok otto@ krw@miod2006-03-053-12/+11
|
* redo (w/ proper changes everywhere ;):mickey2006-01-191-2/+2
| | | | | | take interp[MAXPATHLEN] off the stack. from mickey, ok otto while here, switch above from malloc to pool, remove stupid casts tedu@ miod@ ok
* Move contents of sys/select.h to sys/selinfo.h in preparation for amillert2005-11-212-4/+4
| | | | | userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
* malloc svr4_utsname struct as needed instead of on stack; ok millertderaadt2005-08-071-11/+14
|
* Replace a whole bunch of scary uses of strncpy() with strlcpy() andjfb2004-06-223-17/+10
| | | | | | use compat-specific MAXNAMLEN values where appropriate ok millert@, pedro@
* check for too-small length in stream debug codeavsm2003-11-231-1/+4
| | | | discussed with grange@ tedu@
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-231-2/+2
| | | | | | | now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-152-5/+5
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* string cleaning; ok art teduderaadt2003-05-071-19/+19
|
* regen now that setreuid/setregid have moved out of compat and into kernmillert2003-01-304-16/+16
|
* Bring back setreuid(2) and setregid(2) as first class syscallsmillert2003-01-301-3/+3
| | | | | | | (but still implemented via setres[ug]id(2)). Basically this just moves them from COMPAT_43 into kern_prot.c. Also fixes a typo in my old implementation. The userland portion will follow in a few days. deraadt@ OK
* Remove fetch(9) and store(9) functions from the kernel, and replace the fewmiod2003-01-091-2/+4
| | | | | | remaining instances of them with appropriate copy(9) usage. ok art@, tested on all arches unless my memory is non-ECC
* maintain refcnt correctly, ok art@niklas2002-11-061-2/+3
|
* Cleanup change. Since almost all callers (except one) of getvnode did a FREFart2002-08-231-4/+2
| | | | | | | on the returned file, do the FREF inside getvnode so that people can't get away with avoiding FREF and FRELE. Eyeballed by various people.
* syncnordin2002-07-064-31/+8
|
* Remove kernel support for NTP. ok deraadt@ and tholo@nordin2002-07-061-6/+1
|
* unfudge size_t vs. unsigned int parameters.espie2002-04-251-2/+3
|
* remove ambiguity in version,ostype,osversion,osrelease and their constanity, they are and declarre 'em accordingly also removing private externies of thosemickey2002-03-141-6/+6
|
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-3/+3
|
* First round of __P removal in sysmillert2002-03-1420-332/+332
|
* More FREF/FRELE fixespvalchev2002-02-141-35/+58
|
* More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl functions in sys/compat are left.art2002-02-133-16/+25
|
* test before commitderaadt2002-02-121-2/+2
|
* More FREF/FRELE protection. This time all users of getvnode.art2002-02-121-7/+17
|
* Opps. unbreak.art2002-02-081-2/+2
|