summaryrefslogtreecommitdiffstats
path: root/sys/svr4
Commit message (Collapse)AuthorAgeFilesLines
* 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 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
* 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
|
* useracc() the prequel:phk1999-10-292-2/+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.
* 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
* Removal of sys/device.hn_hibma1999-10-051-1/+0
| | | | | | | | | | | | | - Move intrhook stuff into kernel.h - Remove all occurrences of #device <device.h> - Add kernel.h were necessary (nowhere) - delete device.h This file contained the structures for cfdata (old style config) and is no longer used. It was included by most drivers. It confuses the remote debugger as the definition of 'struct device' in device.h is found before the one in bus_private.h.
* Oops. That'll teach me to commit without testing. I either replacedpeter1999-10-011-1/+1
| | | | | one trigraph with another, or completely missed the point. Kill it for real this time.
* Zap a trigraph (???)peter1999-10-011-1/+1
|
* sigset_t change (part 4 of 5)marcel1999-09-294-67/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- The compatibility code and/or emulators have been updated: iBCS2 now mostly uses the older syscalls. SVR4 now properly handles all signals. This has been achieved by using the new sigset_t throughout the emulator. The Linuxulator has been severely updated. Internally the new Linux sigset_t is made the default. These are then mapped to and from the new FreeBSD sigset_t. Also, rt_sigsuspend has been implemented in the Linuxulator. Implementing this syscall basicly caused all this sigset_t changing in the first place and the syscall has been used throughout the change as a means for testing. It basicly is too much work to undo the implementation so that it can later be added again. A special note on the use of sv_sigtbl and sv_sigsize in struct sysentvec: Every signal larger than sv_sigsize is not translated and is passed on to the signal handler unmodified. Signals in the range 1 upto and including sv_sigsize are translated. The rationale is that only the system defined signals need to be translated. The emulators also have been updated so that the translation tables are only indexed for valid (system defined) signals. This change also fixes the translation bug already in the SVR4 emulator.
* This is what was "fdfix2.patch," a fix for fd sharing. It's prettygreen1999-09-196-33/+21
| | | | | | | | | | | | | | | | | far-reaching in fd-land, so you'll want to consult the code for changes. The biggest change is that now, you don't use fp->f_ops->fo_foo(fp, bar) but instead fo_foo(fp, bar), which increments and decrements the fp refcount upon entry and exit. Two new calls, fhold() and fdrop(), are provided. Each does what it seems like it should, and if fdrop() brings the refcount to zero, the fd is freed as well. Thanks to peter ("to hell with it, it looks ok to me.") for his review. Thanks to msmith for keeping me from putting locks everywhere :) Reviewed by: peter
* Add MAINTAINER linenewton1999-09-011-0/+2
|
* $Id$ -> $FreeBSD$peter1999-08-2852-52/+52
|
* Simplify the handling of VCHR and VBLK vnodes using the new dev_t:phk1999-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make the alias list a SLIST. Drop the "fast recycling" optimization of vnodes (including the returning of a prexisting but stale vnode from checkalias). It doesn't buy us anything now that we don't hardlimit vnodes anymore. Rename checkalias2() and checkalias() to addalias() and addaliasu() - which takes dev_t and udev_t arg respectively. Make the revoke syscalls use vcount() instead of VALIASED. Remove VALIASED flag, we don't need it now and it is faster to traverse the much shorter lists than to maintain the flag. vfs_mountedon() can check the dev_t directly, all the vnodes point to the same one. Print the devicename in specfs/vprint(). Remove a couple of stale LFS vnode flags. Remove unimplemented/unused LK_DRAINED;
* Avoid possible panic by checking for EFAULT from copyinstr() duringnewton1999-08-141-5/+12
| | | | | | pathname translation. Submitted by: green
* Previous commit also removed some 'const' qualifiers on args fornewton1999-07-301-1/+1
| | | | svr4_sys_sendto() which probably shouldn't have been 'const'.
* Previous commit also finished cleaning up some dev_t -> udev_t transformationsnewton1999-07-305-5/+5
| | | | | | related to the commit for rev 1.3 of svr4_stat.c. svr4_sysvec.c also received a copyright message (which is why it grew by 28 lines).
* Fix svr4_sys_poll(); SysV STREAMS produce return values from poll() whichnewton1999-07-301-6/+2
| | | | | BSD sockets don't. Guess at a correct emulation for those values (it seems to work for telnet, ftp and friends)
* Add $Id$ tagsnewton1999-07-3048-23/+140
|
* Hmm - How did *that* get in there?newton1999-07-301-0/+0
|
* Fix panic caused when *stat64() family of syscalls try to fill-innewton1999-07-303-46/+28
| | | | | | | their svr4_stat64 structures with old dev_t values instead of udev_t's. Panic was caused when major() and minor() were called with args which weren't pointers. The panic was probably introduced in rev 1.51 of kern_conf.c
* Rename struct members sa_siginfo. POSIX reserves identifiers startingcracauer1999-07-062-22/+22
| | | | | | | with sa_ when <signal.h> is included. They would conflict with the upcoming SA_SIGINFO implementation. Reviewed by: BDE
* sys/buf.h needs to have included sys/systm.h for spl prototypes.green1999-07-031-1/+1
|
* Ack! I deleted "struct", not "const".. Oh boy...peter1999-05-101-1/+1
| | | | Submitted by: jkh
* Fix a couple of warnings and some bitrot in comments.peter1999-05-091-3/+1
|
* Suser() simplification:phk1999-04-273-4/+4
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Well folks, this is it - The second stage of the removal for build supportpeter1999-04-171-1/+1
| | | | for LKM's..
* Image activators use EXEC_SET(), not TEXT_SET(). (The first is a macropeter1999-04-171-1/+1
| | | | wrapper for DECLARE_MODULE(), the second is a linker set declaration)
* svr4 emulator will refuse to unload itself if it is currently in use.newton1999-02-041-8/+8
|
* Acquiesce to proc.h for declarations of M_ZOMBIE, M_SUBPROC (and reordernewton1999-02-011-4/+1
| | | | | | includes so proc.h knows the right type for 'em). Suggested by: bde
* Oops - Ripped out a bit of debugging code which will stop certain bitsnewton1999-01-301-1/+1
| | | | of networking from working for people without DEC Tulip ethernet cards.
* Emulator KLD for SysVR4 executables grabbed from NetBSD.newton1999-01-3057-0/+14053
See http://www.freebsd.org/~newton/freebsd-svr4 for limitations, capabilities, history and TO-DO list.
OpenPOWER on IntegriCloud