summaryrefslogtreecommitdiff
path: root/sys/compat
AgeCommit message (Collapse)Author
2009-10-28Add compat errno mappings for the ENOTSUP errno addition.Jonathan Gray
ok deraadt@
2009-09-05Fix various cases of stackgap_alloc() size arguments not being computedMiod Vallat
correctly, usually yielding the right value on 32 bit machines because sizeof int == sizeof pointer.
2009-07-09Remove the VREF() macro and replaces all instances with a call to verf(),Thordur I. Bjornsson
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.
2009-06-01Move ibcs2_sendsig into compat. Quit poluting machdep.Tobias Weingartner
Ok guenther@
2009-03-05Make ELF platforms generate ELF core dumps. Somewhat based on code fromMark Kettenis
NetBSD. ok kurt@, drahn@, miod@
2009-02-19sys/types.h or sys/param.h MUST BE FIRSTTheo de Raadt
2009-01-29Switch struct stat's timespec members to the names standardized inPhilip Guenthe
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@
2009-01-07Fix an occurance of __attribute which should have been __attribute__Jonathan Gray
by converting the entire line to __packed. ok kettenis@
2008-11-01change all callers of enterpgrp() to pre-allocate a pgrp or session ifTheo de Raadt
it might be needed later -- before calling pfind(), so that enterpgrp() can operate without sleeping ok tedu
2008-09-23Fix uninitialized value.Miod Vallat
2008-09-19Fix a bunch of problems and races with posix file locking.Artur Grabowski
- file descriptor table becomes the owner of the lock instead of the proc. - When grabbing the lock, we check if the fd hasn't changed under our feet, this is more or less impossible to solve without a hack like this. I've banged my head against the wall, I figured out a solution, but implementing it correctly would cost me 12 gray hairs. Screw it, this is ugly, but it works. - Wait until usecount drains before releasing the posix lock in closef. - Add missing FREF/FRELE to sys_flock - keep the pid in the flock struct instead of abusing the fact that we used to use the proc as the lock owner. Pointed out by and discussed with Al Viro, big thanks. miod@ ok
2008-08-19When failing to acquire the vnode lock in readdir_with_callback(), don'tPedro Martelletto
try to release it before returning, okay fgsch@ and tedu@.
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-06-12Be more permissive and try to run non-branded non-static binaries if we canMiod Vallat
find their interpreter, as the linux ld.so name is unique and not likely to be found in another /emul/foo hierarchy; allows Opera to run again. Noticed by sturm@
2008-06-12Do not attempt to recognize foreign ELF binaries if emulation is disabled;Miod Vallat
also recognize modern Linux binaries without branding, but with a ``GNU'' ABI note.
2008-06-10Allow linux binaries to call setsockopt(,TCPNODELAY,) on a AF_LOCALMatthieu Herrb
socket, since some of them do that. ok deraadt@, henning@.
2008-05-01spl0() is not your friend, use splx() instead.Miod Vallat
2008-04-12bring in changes as found in libossaudioJacob Meuser
ok ratchov@, brad@ a while ago (except SETTRIGGER parts, which changed recently in libossaudio)
2008-03-16Widen some struct statfs fields to support large filesystem stataOtto Moerbeek
and add some to be able to support statvfs(2). Do the compat dance to provide backward compatibility. ok thib@ miod@
2008-03-09use the right capitalization for platform namesIgor Sobrado
ok jsing@
2008-01-05regenMiod Vallat
2008-01-05Mark vadvise(2) as obsolete and remove its implementation, so instead ofMiod Vallat
returning EINVAL, you'll get ENOSYS. No serious code has used this system call in at least fifteen years. The libc stub will be removed at the next major crank time. ok henning@ deraadt@ krw@ toby@
2007-11-28delete the compat_09_sys_uname code hereTheo de Raadt
2007-11-28syncTheo de Raadt
2007-11-28COMPAT_09 uname is only used by freebsd compat, so move it to the right placeTheo de Raadt
2007-11-28compat_25_sys_omsync is unusedTheo de Raadt
2007-11-27Missed those because they are in a weird place.Artur Grabowski
2007-11-27regenArtur Grabowski
2007-11-25Get rid of the kernel 'libcompat' framework, and instead use conf/files toTheo de Raadt
decide which files must be pulled into the kernel. Also conditionalize the pulling of those files based on the COMPAT_* options.
2007-11-02replace ctob/btoc with ptoa/atop (plus the usual round_page() where needed)Martin Reindl
2007-10-30MALLOC/FREE -> malloc/freeCharles Longeau
These are the latest ones needed to build a kernel (on amd64) without the MALLOC/FREE definitions in src/sys/sys/malloc.h ok krw@
2007-10-30- replace the remaining MALLOC/FREE -> malloc/free in sys/compatGilles Chehade
ok krw@, ok pyr@
2007-10-27Make sure the compat errno mapping arrays go up to ELAST, and correctlyMiod Vallat
translate the errnos added over the last few releases.
2007-10-20enuf -> enoughMiod Vallat
2007-10-01more btoc -> atopMartin Reindl
2007-09-22replace even more ctob and btoc with ptoa and atop respectively plusMartin Reindl
uvm_extern.h where needed
2007-09-15replace ctob and btoc with ptoa and atop respectivelyMartin Reindl
help and ok miod@ thib@
2007-09-01replace the machine dependant bytes-to-clicks macro by the MI ptoa()Martin Reindl
version for i386 more architectures and ctob() replacement is being worked on prodded by and ok miod
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
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
2007-06-06put IPX in the unsupported boatHenning Brauer
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-05-29adapt from netbsd:Nikolay Sturm
fold sys_shmat1() back into sys_shmat(), instead add flag for shmget(2) to specify that later shmat(2) for the shared memory segment should succeed even if the segment would be marked removed; use this to implement the Linux-compatible semantics of shmat(2) this fixes current opera with shm ok millert
2007-05-29byebyeTed Unangst
2007-05-29regenTed Unangst
2007-05-29linux_getcwd is the same as the system one.Ted Unangst
discovered/ok beck
2007-05-28Maintaining a broken compatibility layer for a broken OS is not a productiveBob Beck
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others in the hackathon room.
2007-04-05regenTed Unangst
2007-04-05freebsd added some MAP_NOCORE flag. we don't like it, so mask it out.Ted Unangst
started by claudio. ok deraadt millert
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
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
2007-02-06Use atomic.h operation for manipulating p_siglist in struct proc. SolvesArtur Grabowski
the problem with lost signals in MP kernels. miod@, kettenis@ ok