summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_olduname.c
AgeCommit message (Collapse)Author
2021-09-23add support COMPAT_LINUX for aarch64ryo
2021-09-07sys/compat: Memset zero before copyout.riastradh
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
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-11-08Replace strncpy with strlcpy in compat linux and linux32 uname,njoly
old_uname and oldold_uname syscalls to ensure that all *utsname fields are always NUL terminated.
2007-05-10- linux uname -m on x86 returns i{3,4,5,6}86 make it so.christos
- delete the machine sysctl that never worked, and gc linux_machine.
2007-03-23implement emul.linux.kern.machine, which can be set to "i686", likemrg
some applications seem to want.
2007-02-09Merge newlock2 to head.ad
2006-11-16__unused removal on arguments; approved by core.christos
2006-10-12- sprinkle __unused on function decls.christos
- fix a couple of unused bugs - no more -Wno-unused for i386
2003-01-18Merge the nathanw_sa branch.thorpej
2001-11-13add RCSIDs (including regeneration of files as appropriate)lukem
2000-12-29Hardcode what the linux uname() calls return (Linux 2.2.5 is the currentfvdl
value). A few major applications check for this (like VMware), and there is no other way to trick them. Needs a more generic solution eventually.
2000-06-29remove include of <vm/vm.h>mrg
2000-06-26remove redundant vm includes.mrg
2000-03-28Centralise the declarations of cpu_model, machine, machine_arch,simonb
osrelease, and ostype and remove "extern char foo[];" (for hostname and domainname too). Also delete redunctant decl of boottime in kern_info_43.c.
2000-03-13Fix doubled 'the's in comments.soren
1998-10-07This needs its defines.erh
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-01shut up egcs complaints about bracesperry
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.