summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_pipe.c
AgeCommit message (Collapse)Author
2008-06-18Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.tsutsui
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-12-20Convert all the system call entry points from:dsl
int foo(struct lwp *l, void *v, register_t *retval) to: int foo(struct lwp *l, const struct foo_args *uap, register_t *retval) Fixup compat code to not write into 'uap' and (in some cases) to actually pass a correctly formatted 'uap' structure with the right name to the next routine. A few 'compat' routines that just call standard ones have been deleted. All the 'compat' code compiles (along with the kernels required to test build it). 98% done by automated scripts.
2007-12-08ANSIfy most of the function definitions in sys/compat (but not ndis).dsl
All by the magic of sed ...
2007-10-19Add compat_linux and exec_linux_elf lkm support for amd64:njoly
- Add needed COMPAT_OSSAUDIO to GENERIC. - Add missing includes needed by linux_syscallargs.h. - Add lkm building.
2007-02-09Merge newlock2 to head.ad
2005-12-11merge ktrace-lwp.christos
2005-11-05Fix a messed up patchmanu
2005-11-04register_t is not an int on amd64manu
2005-10-31Fix pipe linux emulation on amd64manu
2003-01-18Merge the nathanw_sa branch.thorpej
2001-11-13add RCSIDs (including regeneration of files as appropriate)lukem
2000-06-29remove include of <vm/vm.h>mrg
2000-06-26remove redundant vm includes.mrg
1998-10-04Assign my copyright to TNF. Merge with others were appropriate.fvdl
Regen syscall files after script change.
1998-10-03Attempt to fix the mess.christos
1998-10-01Wheeee!: 8-way split of compat/linux/linux_misc.c into common code and ↵erh
multi-architechture functions.
1998-09-11Substantial signal handling changes:mycroft
* Increase the size of sigset_t to accomodate 128 signals -- adding new versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and sys_sigsuspend() to handle the changed arguments. * Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(), sys_sigpending() and sys_sigsuspend() into separate functions, and call them from all the emulations rather than hard-coding everything. (Avoids uses the stackgap crap for these system calls.) * Add a new flag (p_checksig) to indicate that a process may have signals pending and userret() needs to do the full (slow) check. * Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE. * Correct emulation bugs with restoring SS_ONSTACK. * Make the signal mask in the sigcontext always use the emulated mask format. * Store signals internally in sigaction structures, rather than maintaining a bunch of little sigsets for each SA_* bit. * Keep track of where we put the signal trampoline, rather than figuring it out in *_sendsig(). * Issue a warning when a non-emulated sigaction bit is observed. * Add missing emulated signals, and a native SIGPWR (currently not used). * Implement the `not reset when caught' semantics for relevant signals. Note: Only code touched by the i386 port has been modified. Other ports and emulations need to be updated.
1998-09-08ufs_readdir no longer checks if vp->v_type != VDIR sorvb
the individual emulated readdirs must check. Since netbsd and freebsd return EINVAL for the error and I don't know what the other platforms do, return EINVAL for them too.
1998-08-18Add some braces to make egcs happy.thorpej
1998-07-07Oops, fix typo, pointed out by Urban Boquist <boquist@cs.chalmers.se>.thorpej
1998-07-02Implement the shrinking and no-change bits of the Linux mremap(2) systemthorpej
call, provided by Urban Boquist <boquist@cs.chalmers.se> in PR #5693. Add a comment about how one might implement the growing bit of mremap(2).
1998-03-24Fix typo in utime().mycroft
1998-03-03Only free cookiebuf when sure that the vop actually allocated it.fvdl
1998-03-01Merge with Lite2 + local changesfvdl
1998-02-20Linux's getsid(2) does in fact return a pid, not a pointer.mycroft
1998-02-14Add a comment clearly describing that Linux's getsid(2) differs fromthorpej
the XPG4.2 definition in that it returns the kernel virtual address of the session structure, rather than the process group ID of the session leader.
1997-10-21msync -> __msync13fvdl
1997-10-10Fix braino in my interpretation of the eof flag to VOP_READDIR.fvdl
1997-10-10Emulate mremap(2) by returning ENOMEM for now. This should be sufficient formycroft
realloc(3) and other uses. From Matthias Scheler in PR 3920.
1997-10-10Signal error when getting a 64 bit offset cookie that can't be storedfvdl
in 32 bits. Provide an error message to the user, and return EINVAL. Also, pay attention to the EOF flag from VOP_READDIR. Correct a misspell in a panic message.
1997-08-04Fix "missing entries" bug when reading large directories: When reading abouyer
directory and running out of space in the dest buffer, off should point to the current entry (which was not saved) and not to the next. I discovered this bug using linux and SunOS emulation over NFS, but seems to affect other emulations as well.
1997-07-27Changes to the sudio system:augustss
- It is now possible to handle devices that want "looping" DMA, e.g. the SoundBlaster correctly. The WSS and SB drivers use this. To do this several new methods were introduced in audio_hw_if. - Different silence handling (forced by previous change). - The audio driver can now be mmap()-ed, but due to problems in the VM system only for writing for now. - The OSS (Linux) audio emulation takes advantage of some of the new features.
1997-04-07Add Linux nice() syscall.augustss
1996-08-10sys/dir.h -> sys/dirent.hmycroft
1996-06-23Catch up with setre[ug]id() changes.mycroft
1996-05-20Update list of Linux syscalls and implement the ones that are likely to befvdl
used and doable.
1996-04-04- Prototyping changeschristos
- Fix bug that gcc -Wall found in linux_sys_getpgid()
1996-04-03Add explicit return types.mycroft
1995-12-18msync, readv and writev were recently added to the Linux kernel; add themfvdl
to the emulation as well.
1995-12-09We don't need a private version of fork() here any more.mycroft
1995-10-09Use cookies for directory offset, mostly from Greg Hudson.mycroft
1995-10-07Prefix names of system call implementation functions with `sys_'.mycroft
1995-09-19Make system calls conform to a standard prototype and bring thosethorpej
prototypes into scope.
1995-09-13Update offset elsewhere in linux_getdents(); still emulate a bug infvdl
Linux, but avoid endless loops.
1995-09-07Fix some bugs & typing problems.fvdl
1995-08-23Emulate some syscalls that appear in Linux 1.3: a select() with normal args,fvdl
getdents() and flock().
1995-08-21Check for status NULL argument in wait4 and waitpid. From PR #1392fvdl
by Thomas EberHardt.
1995-08-21Implement the old and older uname(2) calls.mycroft
1995-08-16If updating the timeval would make it negative, zero it instead.mycroft