summaryrefslogtreecommitdiffstats
path: root/sys/compat
Commit message (Collapse)AuthorAgeFilesLines
* Back out the previous change to the queue(3) interface.jake2000-05-262-4/+4
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Make exe a symlink.des2000-05-245-23/+71
|
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-232-4/+4
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Regenerated (to fix "created from" lines, and to fix the previousbde2000-05-104-5/+5
| | | | | regeneration which somehow used the wrong syscalls.master file, resulting in unbuildable svr4_sysent.c).
* Fixed the "created from" lines generated from this file. makesyscalls.shbde2000-05-101-6/+6
| | | | | | expects the active id to be on the first line of the specification file. Fixed some nearby gratuitous differences with kern/syscalls.master.
* Regenerated (fixed the calculation of sy_nargs in sysent tables).bde2000-05-092-127/+131
|
* Don't forget to back up svr4_syscallnames.c. Don't depend on side effectsbde2000-05-091-2/+3
| | | | to generate it.
* Fixed the return type and args struct tag for exit(). They were wrong inbde2000-05-091-1/+1
| | | | | all emulators. These entries were unused, so the bug had no effect, but the the args struct tag will be used to calculate sy_nargs correctly.
* Give the "streams" modulea version (1) and depend on it from thegreen2000-05-061-0/+1
| | | | | "svr4elf" module. This unbreaks the SVR4 KLD (which had an undefined function because of thenewly-committed KLD enhancements).
* Add $FreeBSD$peter2000-05-011-0/+1
|
* Remove unneeded #include <vm/vm_zone.h>phk2000-04-305-5/+0
| | | | Generated by: src/tools/tools/kerninclude
* Remove unneeded #include <sys/kernel.h>phk2000-04-292-2/+0
|
* Fix include paths so that this builds correctly.msmith2000-04-215-5/+5
| | | | Submitted by: Mike Pritchard <mpp@mppsystems.com>
* Move the linprocfs bits under the rest of the i386 linux compatibilitymsmith2000-04-206-0/+2064
| | | | code.
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* Remove unneeded <sys/buf.h> includes.phk2000-04-182-2/+0
| | | | | Due to some interesting cpp tricks in lockmgr, the LINT kernel shrinks by 924 bytes.
* Change our ELF binary branding to something more acceptable to the Binutilsobrien2000-04-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maintainers. After we established our branding method of writing upto 8 characters of the OS name into the ELF header in the padding; the Binutils maintainers and/or SCO (as USL) decided that instead the ELF header should grow two new fields -- EI_OSABI and EI_ABIVERSION. Each of these are an 8-bit unsigned integer. SCO has assigned official values for the EI_OSABI field. In addition to this, the Binutils maintainers and NetBSD decided that a better ELF branding method was to include ABI information in a ".note" ELF section. With this set of changes, we will now create ELF binaries branded using both "official" methods. Due to the complexity of adding a section to a binary, binaries branded with ``brandelf'' will only brand using the EI_OSABI method. Also due to the complexity of pulling a section out of an ELF file vs. poking around in the ELF header, our image activator only looks at the EI_OSABI header field. Note that a new kernel can still properly load old binaries except for Linux static binaries branded in our old method. * * For a short period of time, ``ld'' will also brand ELF binaries * using our old method. This is so people can still use kernel.old * with a new world. This support will be removed before 5.0-RELEASE, * and may not last anywhere upto the actual release. My expiration * time for this is about 6mo. *
* Fix some style bugs. The long line is in a chunk of code that'snsayer2000-03-132-16/+16
| | | | | | being rewritten, though. Submitted by: bde
* Fix bug in linux_wait4 and linux_waitpid where garbage in the statusmarcel2000-03-091-0/+2
| | | | | | | | argument could panic the kernel. Submitted by: Ian Dowse <iedowse@maths.tcd.ie> Prompted by: jkh, gallatin Approved by: prompters
* Implement Linux BLKGETSIZE ioctl, and open the door to implementingnsayer2000-03-092-0/+42
| | | | | | other BLK.* ioctls should the desire arize. Approved by: jkh (via dufault)
* Fix accept(2) behavior in that accepted sockets don't inherit themarcel2000-02-281-1/+20
| | | | | | | | | | | | parents flags. Note on the PR: The PR contains another patch that's not being committed without further background information. The PR stays open for now. PR: 16946 (Victor A. Salaman <salaman@teknos.com>) Prompted by: msmith Indirect/implicit approval: jkh (shoot me if I'm wrong :-)
* Avoid passing an uninitialized structure member to the realnsayer2000-02-011-0/+1
| | | | | | | READSUBCHANNEL ioctl. This makes vmware work with SCSI CDROM drives. Approved by: jkh
* Fix handling of svr4_sigsets, which are implemented in SysVR4 as a sequencenewton2000-01-152-15/+51
| | | | | | | | | | | | | | | | | | | | of 4 longs used as a bitmask. sv4r4_sigfillset has been broken for a while, probably since rev 1.5. This patch fixes SVR4_NSIG (i.e.: sets it to the actual number of signals, instead of the number of bits in the mask) because some SysVR4 clients honestly seem to care about whether bits in the signal mask are set for non-existant signals. Additionally, the svr4_sigfillset macro has been replaced by a fully fledged function, because the macro didn't actually work (it returned an all-ones mask, but we don't want that: we want 0's set where FreeBSD doesn't actually have a signal which is the same as an SysVR4 signal, for example). SysVR4 clients can now successfully ignore signals, although catching them remains problematic (see commit log message for rev1.13 of sys/i386/svr4/svr4_machdep.c for more info).
* Remove some all-too-wordy debugging printsnewton2000-01-151-5/+0
|
* Return Linux kernel version 2.2.12 by default. This is in linemarcel2000-01-101-1/+1
| | | | with linux_base-6.1.
* Removed bogus include of opt_global.h. opt_global.h is automaticallybde2000-01-091-1/+0
| | | | | | included in all C files if it makes sense (i.e., for compiling kernels but not for compiling modules), so including it explicitly just complicates module makefiles.
* Convert the filesystem type returned in struct statfs by syscallsmarcel2000-01-081-2/+51
| | | | | | | | linux_statfs and linux_fstatfs. Linux binaries testing this expect the filesystem's magic number and not our vnode's tag. PR: 15425 Tested by: Vladimir N. Silyaev <vsilyaev@mindspring.com>
* Need to #include vm_zone.h to pick up inline definition of zfree() so thatnewton2000-01-031-0/+1
| | | | NDFREE() macro from namei.h will be happy.
* Introduce NDFREE (and remove VOP_ABORTOP)eivind1999-12-155-2/+24
|
* Replace the svr4_sys_getdents64() routine with a port of linux_getdents() --newton1999-12-121-85/+124
| | | | | | | | | | | | differences between the VFS interface between FreeBSD and NetBSD make it easier to pick up the Linux one than to continue development with the NetBSD port. This patch fixes a bug which caused duplicate filenames to be seen by callers to svr4_sys_getdents64(), leading to malformed directory listings from Solaris client programs. Obtained from: The Linuxulator, with a pointer from marcel
* Avoid excessive redundancy in svr4_sys_getmsg() and svr4_sys_putmsg():newton1999-12-121-8/+8
| | | | | | Only look up the provided descriptor in fd_ofiles[] once. Submitted by: Ville-Pertti Keinone <will@iki.fi>
* fd_revoke() shouldn't panic if the descriptor provided is not a file ornewton1999-12-121-9/+2
| | | | | | socket. Return EINVAL instead. Submitted by: Ville-Pertti Keinone <will@iki.fi>
* Remove unused includes.marcel1999-12-101-2/+0
| | | | Found by: phk-scan
* Remove unnecessary includesnewton1999-12-0811-68/+19
| | | | Prodded by: phk
* SVR4 emulator source files now take their compilation options fromnewton1999-12-088-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | opt_global.h and opt_svr4.h, instead of from the command line. This brings them in-line with most of the rest of the kernel. svr4_ioctl.c has also failed to compile with debugging for a while now; fixed by adding systm.h and socketvar. Some svr4 source files are automatically generated from syscalls.master; these have been committed as consequential changes, otherwise everyone will have to "make svr4_sysent.c". Changes: sys/svr4/svr4.h include opt_global.h and opt_svr4.h sys/svr4/svr4_ioctl.c include svr4.h, sys/systm.h and sys/socketvar.h sys/svr4/svr4_ipc.c include svr4.h sys/svr4/svr4_resource.c include svr4.h sys/svr4/svr4_socket.c include svr4.h sys/svr4/svr4_ttold.c include svr4.h sys/svr4/syscalls.master include svr4.h sys/svr4/svr4_syscallnames.c dependent on syscalls.master sys/svr4/svr4_sysent.c dependent on syscalls.master sys/svr4/svr4_syscall.h dependent on syscalls.master sys/svr4/svr4_proto.h dependent on syscalls.master sys/modules/svr4/Makefile create opt_global.h and opt_svr4.h
* Fix LINT breakage.archie1999-12-051-1/+1
|
* Implement pluggable ioctl handlers.marcel1999-12-043-1077/+1713
| | | | | | | | | | | | | | | | | | | | | | | | Other modules can register and unregister ioctl handlers to extend the ioctls known by the Linuxulator. A recent application is the vmware port. The Linuxulator itself uses the new interface to register its handlers as well. Handlers for the following types of ioctls have been defined: cdrom console (=keyboard and VT handling) socket sound termio All ioctl related defines and declarations have been moved to a new file (linux_ioctl.h), except for the pluggable ioctl handler interface definition. While there, cleanup linux.h some more. linux.h and linux_ioctl.[ch] have been made to conform to style(9) as much as possible. Inspired and reviewed by: Vladimir N. Silyaev
* Implement linux_sigaltstack.marcel1999-11-301-11/+47
|
* add linuxulator wrapper for SNDCTL_DSP_GETODELAYalfred1999-11-291-0/+4
|
* Implement linux_ustat.marcel1999-11-271-3/+56
| | | | Reviewed by: bde
* Implement fdatasync in terms of fsync. The regeneration of proto.h,marcel1999-11-261-0/+11
| | | | | syscall.h and sysent.h was probably forgotten after the last change syscalls.master.
* General clean-up of socket.h and associated sources to synchronise upphk1999-11-241-1/+1
| | | | | | | | | | | | with NetBSD and the Single Unix Specification v2. This updates some structures with other, almost equivalent types and effort is under way to get the whole more consistent. Also removes a double definition of INET6 and some other clean-ups. Reviewed by: green, bde, phk Some part obtained from: NetBSD, SUSv2 specification
* s/p_cred->pc_ucred/p_ucred/gphk1999-11-211-1/+1
|
* simplify check for device.phk1999-11-081-1/+1
|
* Use fo_stat() rather than Yet Another duplication of kern_descrip.c's statpeter1999-11-081-15/+1
| | | | code.
* useracc() the prequel:phk1999-10-293-3/+0
| | | | | | | | | | | Merge the contents (less some trivial bordering the silly comments) of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts the #defines for the vm_inherit_t and vm_prot_t types next to their typedefs. This paves the road for the commit to follow shortly: change useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE} as argument.
* Fix the duplicate filenames that are the result of using getdents.marcel1999-10-211-1/+1
| | | | | | | | | | | glibc2 defines struct dirent differently than the Linux kernel does. The getdents function therefore needs to read a heuristically defined number of kernel dirents to satisfy the request. In case where too many kernel dirents have been read, the function lseeks on the directory so that a next call will start with the right dirent. The offset used in lseeking is the offset-field in the last dirent passed to the application. This can only mean that the offset-field holds the offset of the next dirent and not the offset of the dirent itself.
* Remove unnecessary includes.newton1999-10-172-20/+0
| | | | | | | | phk's script walked through .c and .h files, but some of the ones on the list are actually derived from sys/svr4/syscalls.master. Make the necessary changes here and the others will implicitly follow... Submitted by: phk
* Remove unnecessary includes.newton1999-10-1715-55/+4
| | | | Submitted by: phk
* Add a per-signal flag to mark handlers registered with osigaction, so weluoqi1999-10-111-1/+1
| | | | | | | | | | | | | | | can provide the correct context to each signal handler. Fix broken sigsuspend(): don't use p_oldsigmask as a flag, use SAS_OLDMASK as we did before the linuxthreads support merge (submitted by bde). Move ps_sigstk from to p_sigacts to the main proc structure since signal stack should not be shared among threads. Move SAS_OLDMASK and SAS_ALTSTACK flags from sigacts::ps_flags to proc::p_flag. Move PS_NOCLDSTOP and PS_NOCLDWAIT flags from proc::p_flag to procsig::ps_flag. Reviewed by: marcel, jdp, bde
OpenPOWER on IntegriCloud