summaryrefslogtreecommitdiff
path: root/sys/compat
AgeCommit message (Collapse)Author
2004-07-01add HPUX_SYSCONF_CPUPA20Michael Shalayeff
2004-06-30regenMichael Shalayeff
2004-06-30update from netbsd: use sys_poll() and label some other unimplemented ones; ↵Michael Shalayeff
millert@ ok
2004-06-25typoTheo de Raadt
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-22do not bcopy wrong stuff thereTheo de Raadt
2004-06-21First step towards more sane time handling in the kernel -- this changesThorsten Lockert
things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
2004-06-13debranch SMP, have funNiklas Hallqvist
2004-05-28regenTed Unangst
2004-05-28ACCOUNTING is optional. found by mpech. ok deraadtTed Unangst
2004-05-05make compile peace frienship bubblegumMichael Shalayeff
2004-05-03POSIX says the length parameter for semop(2) and shmget(2) should be size_t.Todd C. Miller
Create new syscalls with the correct parameters and add compat versions for the old ones under COMPAT_35.
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
2004-02-27change amd64's MACHINE_ARCH from x86_64 to amd64. There are many manyTheo de Raadt
reasons for this, quite a few of them technical, and not all of them in response to Intel's broken ia32e crud. The gcc toolchain stays at x86_64 for now.
2004-02-17syncTed Unangst
2004-02-17kqueue works using native callsTed Unangst
once from art@ a while back, again from Jason Ackley <jason@ackley.net>
2004-02-01Trivial touches to compile with gcc 3.Miod Vallat
2004-01-28an amd64 arch support.Michael Shalayeff
hacked by art@ from netbsd sources and then later debugged by me into the shape where it can host itself. no bootloader yet as needs redoing from the recent advanced i386 sources (anyone? ;)
2004-01-14syncTed Unangst
2004-01-14change sigaltstack.ss_size type to size_t. handle syscall fallout.Ted Unangst
add stack_t and ucontext_t typedefs. ok deraadt@
2003-12-19Make sure hpux fcntl() operates on the proper file.Miod Vallat
2003-12-02Count from now, not from the epoch, to arm alarm.Thomas Nordin
2003-11-25Make SIOCGIFHWADDR work. ok mickey@Thomas Nordin
2003-11-23check for too-small length in stream debug codeAnil Madhavapeddy
discussed with grange@ tedu@
2003-11-18path_index isn't used for anything, so comment it out. idea millert@Ted Unangst
2003-11-17add a missing bounds check that allowed a stack overrun. reported byTed Unangst
Georgi Guninski. also prevent an int overflow. ok millert@
2003-11-03verify exec headers before attempting malloc. reported by Georgi Guninski.Ted Unangst
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-10-01out-of-bound memory access. deraadt okJun-ichiro itojun Hagino
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
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
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-24regenTed Unangst
2003-08-24freebsd pread and pwrite are the same as ours. jason + ackley.net says thisTed Unangst
lets him run perforce. ok deraadt@
2003-08-23rename native to aout so we can tell it apart.Ted Unangst
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-16missed suser. thanks naddy@Ted Unangst
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
2003-08-15simplify.Federico G. Schwindt
2003-08-14regen.. again. sorry.Federico G. Schwindt
2003-08-14unbust my previous commit.Federico G. Schwindt
2003-08-14regen.Federico G. Schwindt
2003-08-14add more syscalls. implement exit_group (which is actually an alias forFederico G. Schwindt
sys_exit), needed for newer glibc's binaries. from marius aamodt eriksen <marius at monkey dot org>