summaryrefslogtreecommitdiff
path: root/sys/compat/linux
AgeCommit message (Collapse)Author
2007-11-27regenArtur Grabowski
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-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-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
2006-10-08Pass linux_sys_waitpid() on to linux_sys_wait4() in order to properlyNikolay Sturm
check and translate options. from netbsd ok deraadt, kettenis
2006-09-25Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which lead to surprising results. Spotted by from Paul Stoeber, more to come. ok miod@
2006-04-28Instrumentation for an in-kernel getcwd() implementation.Pedro Martelletto
Not yet activated. Diff by marius@ long ago, from NetBSD. Okay miod@ and krw@.
2006-03-05Use more queue macros rather than doing it by hand; ok otto@ krw@Miod Vallat
2006-01-19redo (w/ proper changes everywhere ;):Michael Shalayeff
take interp[MAXPATHLEN] off the stack. from mickey, ok otto while here, switch above from malloc to pool, remove stupid casts tedu@ miod@ ok
2005-12-30Missing or incorrect header sizes bounds check; ``looks ok'' mickey@Miod Vallat
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for aTodd C. Miller
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-06-18Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@Todd C. Miller
2005-06-07remove CCITT handlingHenning Brauer
2005-05-26RIP stackable filesystems, ok marius@ tedu@, discussed with deraadt@Pedro Martelletto
2005-05-19__unused is used nowMichael Shalayeff
2005-02-17miscellaneous typo fixes:Jean-Francois Brousseau
- sturct -> struct (spotted by pedro) - elimination of consecutive 'the' words ok jmc@, henning@, krw@, robert@, some whining by jolan@
2004-11-23Create the init process earlier, before the root filesystem is mounted,Miod Vallat
and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
2004-10-27regenNiklas Hallqvist
2004-10-27Add support for sys_setre[ug]id, ok deraadt@Niklas Hallqvist
2004-08-03the rest of the '#if DIAGNOSTIC' -> '#ifdef DIAGNOSTIC' in the kernel; ok miod@Todd T. Fries
2004-07-09regenTodd C. Miller
2004-07-09Rename ostat -> stat43 to disambiguate from upcoming struct stat changes.Todd C. Miller
Idea from NetBSD, OK deraadt@
2004-07-08we don't care about copyout's success. add a comment to appease sturm@Ted Unangst
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
2004-06-22Replace a whole bunch of scary uses of strncpy() with strlcpy() andJean-Francois Brousseau
use compat-specific MAXNAMLEN values where appropriate ok millert@, pedro@
2004-06-13debranch SMP, have funNiklas Hallqvist
2004-05-28regenTed Unangst
2004-05-28ACCOUNTING is optional. found by mpech. ok deraadtTed Unangst
2004-04-25fix typos/spelling in comments, from pedro martellettoJolan Luff
2004-04-15rework access to emulations slightly in an effort to both merge andTed Unangst
separate exec format from emulation. consistent naming of freebsd emuls. not much in the way of functional changes yet. testing and ok deraadt@ and others along the way.
2004-04-05syncTed Unangst
2004-04-05madvise works fine without translation, from Sam Smith.Ted Unangst
2003-12-02Count from now, not from the epoch, to arm alarm.Thomas Nordin
2003-11-25Make SIOCGIFHWADDR work. ok mickey@Thomas Nordin
2003-10-12Linux shmat allows lookup of segments that are marked as removed soTodd C. Miller
our Linux compat should too. From marius aamodt eriksen
2003-09-04syncTed Unangst
2003-09-04dummy xattr syscalls. ok deraadt@Ted Unangst
2003-09-01regen.Federico G. Schwindt
2003-09-01set fadvise64 as dummy. some binaries compiled with a recent glibcFederico G. Schwindt
seems to require it; henning ok.
2003-08-21emulation is now controlled by sysctl. changes:Ted Unangst
add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
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@
2003-08-15regen.Federico G. Schwindt