Commit Graph

1570 Commits

Author SHA1 Message Date
christos c4f1bab08e Make the usage consistant and document it:
if the path was given in a user buffer, return the new path in
a user buffer.
if the path was given in a kernel buffer, allocate a new kernel buffer
to return the new path; the caller is responsible for freeing the buffer
if we fail always set the new path to NULL.
This usage broke when I adde the /../ shortcut. Noted by cgd.
1999-04-27 11:36:47 +00:00
cgd f355b96b7a note that this document is now out of date 1999-04-27 06:39:49 +00:00
cgd 7e3ad9e963 evil hack to work around non-fixed mmap requests 1999-04-27 06:37:12 +00:00
cgd 6ef8f59ae6 dynamic executable/loader handling, done right 1999-04-27 05:38:08 +00:00
cgd 743038a6cb clean up for ecoff_machdep.h changes, look for the loader 1999-04-27 03:19:44 +00:00
cgd fe6198f6e2 do special OSF/1-specific ECOFF recognition (not yet complete), and
implement a copyargs function to do special argument copying for
emulated processes.
1999-04-27 01:45:03 +00:00
cgd bd33916784 exec internals have been moved (and improved) to osf1_exec.c. Not much
there yet, but more to come.
1999-04-26 18:34:05 +00:00
cgd bd947212ac major(), minor(), and makedev() 1999-04-26 06:10:36 +00:00
cgd 9524149336 use fcntl() flags from osf1.h, map all of them 1999-04-26 05:57:53 +00:00
cgd 1904f78fb5 fcntl() flags 1999-04-26 05:56:34 +00:00
cgd 6d24aedc2c table-based translation of sigaction and sigaltstack flags 1999-04-26 05:35:08 +00:00
cgd 635a7843a1 copyright notice 1999-04-26 05:32:18 +00:00
cgd 6dbaac99f9 slight cleanup of spacing 1999-04-26 04:29:43 +00:00
cgd 35a22b65fc rlimit stuff 1999-04-26 03:30:48 +00:00
cgd 646c8f519a resource limit definitions 1999-04-26 03:29:05 +00:00
cgd 5d3c1d0c49 use osf1.h definitions and some table-based flag translation 1999-04-26 03:10:58 +00:00
cgd 32c9cd9866 exec and mount structs/defns, and some cleanup 1999-04-26 03:07:40 +00:00
cgd 445556f304 add a section of OSF/1 types, and add many more OSF/1 structures and
definitions.
1999-04-26 01:24:26 +00:00
cgd 1d0207c926 const-ify flags translation tables.
kill some cruft, and move various flags and structure definitions into
  osf1.h (not done yet).
Do a better job of translating fcntl(), and translate flags in sento()
  emulation.
1999-04-26 01:23:01 +00:00
cgd 196564f8e3 remove some structs and def'ns; they're moving to osf1.h 1999-04-26 01:22:18 +00:00
cgd 637226f0ad pull in osf1.h 1999-04-26 01:21:43 +00:00
cgd ad10b95967 translate EAGAIN/EWOULDBLOCK properly 1999-04-26 01:16:04 +00:00
simonb 8a8e8d144f Shut 'gcc -Wuninitialized' up. 1999-04-25 02:42:01 +00:00
eeh 96b63fc788 Don't defopt COMPAT_NETBSD32 here; it's done in sys/conf/files. 1999-04-24 19:17:33 +00:00
cgd 45a020863e substantial cleanup, including:
* do more flags conversions, using the table driven converter.
* check for alternate (emulation) path in lots more places.
1999-04-24 07:23:54 +00:00
cgd ed106195ea cleanup: kill syscall args comments 1999-04-24 07:13:23 +00:00
cgd d081124ca2 cleanup: nuke register 1999-04-24 07:09:49 +00:00
cgd d7c211e583 cleanup: kill syscall args comments 1999-04-24 07:06:35 +00:00
cgd dd4d52e331 slight hdr inclusion cleanup, get ioctl-related def'ns from osf1.h 1999-04-24 06:59:11 +00:00
cgd 8b1bcd5e9c pull in osf1.h, not osf1_errno.h 1999-04-24 06:58:26 +00:00
cgd 2fc0019c7a Collected OSF/1 definitions and structures, sorted by OSF/1 header.
Error numbers (errno.h) aren't here, since they're likely to change
(additions) more often.
1999-04-24 06:56:25 +00:00
cgd 5b217baeb1 implement a simple function, emul_flags_translate() to do table-based
flags translation.
1999-04-24 02:56:06 +00:00
cgd f023a00cd1 clean up multiple inclusion protection def'ns 1999-04-23 18:01:05 +00:00
cgd 1c19c07f42 clean up multiple inclusion protection def'ns and whitespace 1999-04-23 18:00:34 +00:00
cgd cc6809bffa regen for 'const poisoning for strings, and minor cleanup' 1999-04-23 06:20:33 +00:00
cgd c95f8f86c1 const poisoning for strings, and minor cleanup 1999-04-23 06:19:51 +00:00
cgd c470144d55 use the errno mapping array 1999-04-23 06:15:35 +00:00
cgd 8ca456cbb3 add osf1_errno.c 1999-04-23 06:07:55 +00:00
cgd f0f87c5554 finish updating this for signal changes, as was started in the
mis-labeled ("const poisoning"?!??!) rev 1.6.
1999-04-23 05:56:28 +00:00
cgd f33ddea5c4 add an OSF1_CHECK_ALT_CREAT, similar to OSF1_CHECK_ALT_EXIST 1999-04-23 05:55:13 +00:00
cgd 4a84f3545a OSF/1 errno definitions, and a NetBSD -> OSF/1 errno mapping table. 1999-04-23 05:37:41 +00:00
cgd f12f795592 a quick hack to make generating errno conversion tables from our and other
systems' headers a bit easier.  leaves much to be desired, but it's better
than nothing.
1999-04-23 05:31:33 +00:00
kleink ed74932033 Add COMPAT_SVR4 for m68k. 1999-04-19 21:22:56 +00:00
kleink 6a9c669828 Move linux_reenter_syscall() to a common location and rename it to
reenter_syscall() - it's going to be shared with COMPAT_SVR4 and soon be
used by native code.
1999-04-19 20:58:37 +00:00
mrg 7007bb40d6 fix errors in the copyright on this. 1999-04-14 02:50:38 +00:00
augustss 1ea49a1848 Make copyright conform. 1999-04-13 20:31:32 +00:00
tv 724f072dde Nuke my copyrights and/or assign them to TNF where appropriate. 1999-04-06 02:55:24 +00:00
drochner 74768f75f4 remove unneeded <vm/*> includes 1999-04-01 18:37:33 +00:00
tron ab9ea90a8e Regen. 1999-03-30 07:37:58 +00:00
tron b46e8732dd Add poll() emulation. 1999-03-30 07:29:05 +00:00
abs bb2d7dd6dc Regenerate (with poll()) 1999-03-30 02:25:32 +00:00
abs 9c2ef08c3e Since NetBSD has poll(), use it.
Linux oracle install now gets far enough that I want our DBA around to
see if we can finish the job.
1999-03-30 02:22:49 +00:00
wrstuden eb10774f2b Explicitly mask mode returned in old stat structure to 16 bits. Also correct
comment (we're converting from a new to an old struct stat).
1999-03-30 00:13:57 +00:00
sommerfe 3e341c9af5 sync with regular syscalls.master: Add getcwd, fchroot, and tweak __getlogin 1999-03-28 21:56:56 +00:00
tron 82f6a3397b Regen. 1999-03-27 01:15:58 +00:00
tron 5b98b641a8 Add emulation for Linux "getcwd" syscall. 1999-03-27 01:10:56 +00:00
eeh 69d1f9d0d3 COMPAT_SPARC32 -> COMPAT_NETBSD32 1999-03-26 04:29:20 +00:00
mrg 54ab2e1e54 clean and up make compile 1999-03-25 17:49:43 +00:00
mrg c3b0d25b27 SPARC32->NETBSD32 1999-03-25 16:58:39 +00:00
mrg 8df6f0c629 regen 1999-03-25 16:32:27 +00:00
mrg 6f5ceb781e include the MD header. 1999-03-25 16:27:56 +00:00
mrg a5867d9385 move sparc32 to netbsd32; split out MD part (signal handling) (mostly via repository copy, rename and perl -pi :-) 1999-03-25 16:22:49 +00:00
mrg 8f32e2fbc8 regen 1999-03-25 15:51:50 +00:00
mrg 7f7d23b4a6 formatting nits 1999-03-25 15:34:37 +00:00
mrg ad412a0e07 make this match the main syscalls.master a bit better. 1999-03-25 15:33:48 +00:00
sommerfe 280a842850 commit fix to PR7072: emulate linux non-blocking connect behavior more correctly 1999-03-25 04:26:45 +00:00
mrg d2397ac5f7 completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
kleink 6558e04aea Translate _PC_FILESIZEBITS. 1999-03-23 14:57:00 +00:00
itohy e4d7e0a023 Update to OSF/1 V4. 1999-03-23 09:19:25 +00:00
thorpej 9d49c8139a Regen; pread(2) and pwrite(2). 1999-03-23 03:01:48 +00:00
thorpej e8a3256e7f Add support for emulating the Linux pread(2) and pwrite(2) system calls;
just call the native NetBSD versions.

PR #7202, Jaromir Dolecek <dolecek@ics.muni.cz>.
1999-03-23 03:00:51 +00:00
sommerfe 166f97ecf3 Use regular system fchroot, now that we have it. 1999-03-22 17:30:37 +00:00
sommerfe 5effda814f Use standard system fchroot instead of emulation-specific copy. 1999-03-22 17:28:21 +00:00
thorpej 8712c97205 Don't do pathname translation for file creation. The real intent here is
just for lookups of existing files.  From Matthew Green <mrg@netbsd.org>.
1999-03-15 23:50:07 +00:00
itohy cfcb284c09 cachectl -> cachectl1 1999-03-02 18:22:29 +00:00
pk 523f9ad292 Don't try to translate the mount point, to avoid e.g. mounting
the /usr filesystem on /emul/aout/usr.
1999-02-28 18:46:13 +00:00
thorpej 0f7073ded3 If we match, and we're COMPAT_AOUT, use the a.out compat syscall switch,
not the "stock" one.
1999-02-20 23:25:55 +00:00
christos 3029ee19e3 Hmm, I forgot to add that.. 1999-02-15 08:48:20 +00:00
christos 5e44086190 Provide a way for compat programs to specify files in the normal tree.
We do this using a trick similar to mach's /../; if a path is given as
/..<absolute-path-name>, then we return <absolute-path-name>
1999-02-14 14:32:02 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
christos 18f4839c63 Gen 1999-02-11 09:43:53 +00:00
christos 5cc7b4c557 A.out compatibility mode; basically /emul/aout/ checking for syscalls
that use pathnames.
1999-02-11 09:41:34 +00:00
itohy da0a919754 Regen. 1999-02-10 10:38:15 +00:00
itohy 5af2655c9d const mania 1999-02-10 10:36:26 +00:00
christos 03ff6653d6 Regen 1999-02-09 20:48:20 +00:00
christos 8087b4fda3 const poisoning and CHECK_ALT_CREAT fixes. 1999-02-09 20:46:41 +00:00
christos ec4586b831 Regen 1999-02-09 20:46:40 +00:00
christos dcee031682 const poisoning and CHECK_ALT_CREAT fixes. 1999-02-09 20:46:40 +00:00
christos c3ae7cb2a9 Regen 1999-02-09 20:38:38 +00:00
christos c8216580df const poisoning. 1999-02-09 20:37:19 +00:00
christos 8024779058 const poisoning 1999-02-09 20:37:00 +00:00
christos bcca34b4fa Regen. 1999-02-09 20:36:17 +00:00
christos 090a9bebbc const poisoning. 1999-02-09 20:34:16 +00:00
christos 908adf3eef Regen 1999-02-09 20:31:43 +00:00
christos a30a9f3d94 const poisoning and CHECK_ALT_CREAT fixes. 1999-02-09 20:30:38 +00:00
christos 49692434d8 Const poisoning and CHECK_ALT_CREAT fixes 1999-02-09 20:29:24 +00:00
christos f3be801e5c Regen 1999-02-09 20:26:55 +00:00
christos 415ae8f732 const poisoning 1999-02-09 20:21:18 +00:00
christos 743761347e PR/6962: Paul Shupak: FreeBSD-3.0 additions
- const poisoning
1999-02-09 20:19:13 +00:00
christos 90fd1df29a PR/6962: Paul Shupak: ELF Freebsd support 1999-02-09 20:17:50 +00:00
christos fd74051670 char * and char ** -> const char * and const char ** 1999-02-09 20:16:08 +00:00
kleink 764fdafc63 Only declare the uc_pad member if SVR4_UC_MACHINE_PAD is defined. 1999-01-26 18:41:03 +00:00
christos b02601323e Fix idiotic errors in I_SETSIG:
1. the mask is passed by value, not by reference
2. compare the rest of the mask bits not the valid ones
3. return 0, not the current fd's flags.

Now appletviewer works on an inet display. It will not work
with :0 because /tmp/.X11-pipe/X0 is a named pipe, not a
socket like our /tmp/.X11-unix/X0. Maybe I'll kludge svr4_sys_open
to return an fd to a unix socket when someone attempts to call
open on a unix socket.
1999-01-23 23:44:08 +00:00
christos 7983ffaeef Don't play silly games with O_NON_BLOCK vs O_NDELAY.
Add O_RSYNC and O_DSYNC
1999-01-23 23:38:02 +00:00
christos 1bdb52515d - Make the pad field machine dependent (argh!)
- Add protototypes for the mi and md get/setcontext functions.
1999-01-21 23:22:35 +00:00
christos b52c37957d Handle the mi portion of the *context system call here. Changes from previous
version:
1. The stack_t returned before was SS_DISABLED; now we enable the stack
   and return a 16K stack which is 16K under the current stack pointer.
   This seems to be what solaris does.
2. Preserve uc_link.
1999-01-21 23:20:43 +00:00
christos 1ac6ce917e Add prototype for svr4_sendsig. 1999-01-21 23:17:19 +00:00
christos e6f6898376 Include the right headers to find svr4_sendsig. 1999-01-21 23:16:43 +00:00
kleink 5eb233ddd5 Return the machine's ISA for SI_ARCHITECTURE. 1999-01-20 22:09:17 +00:00
jtk 77b1ebc172 fix gcc complaint about assignment in truth value 1999-01-14 15:00:38 +00:00
sommerfe 465d57ee26 Commit fix from PR1623 1999-01-13 23:41:29 +00:00
kleink 4ff7b1f346 Add symbolic names for the sys_context() subcodes. 1999-01-12 02:09:18 +00:00
kleink bb6c814341 If a null pointer argument is passed to setcontext(), exit the process; it
would appear that overloading the argument this way is used by SVR4 to `fall
off' the main context (uc_link being NULL) after a function set up using
makecontext() returns.
1999-01-12 00:16:40 +00:00
tron f7f56f986f Revert last changes:
Because "linux_ipccall.h" cannot be included before "sys/shm.h" and
"sys/shm.h" needs to be included after "opt_sysv.h" include "opt_sysv.h"
in "linux_ipccall.c" again.
1999-01-10 15:05:36 +00:00
augustss 0d32a9a78b Fix more `void *' arithmetic. 1999-01-08 19:22:34 +00:00
kleink 5f79ea56a1 Rearrange the emulation-specific setregs() entry to set up the FPU control
word *after* calling the native setregs(), which would clobber it again.
1999-01-08 11:59:38 +00:00
erh 5c1e9076ad Make consistent: si_ -> lsi_ 1999-01-03 05:34:39 +00:00
erh b19295f334 Speed up compilation by #include-ing C files from common into one file. 1999-01-03 05:29:31 +00:00
erh d9a22c586a Undo previous: Put back opt_sysv.h 1999-01-03 05:18:01 +00:00
erh f1a0e1b396 Avoid name clash with standard si_{uid,pid} fields. 1999-01-03 04:53:59 +00:00
erh 5422cb89d9 Moved sysv opt include to header file. 1999-01-03 04:30:56 +00:00
erh 4289065a1b Moved opt include to header file. 1999-01-03 03:54:45 +00:00
erh 41590f69e2 Grab the sysv options. 1999-01-03 03:52:22 +00:00
drochner 63d673f477 g/c SA_USERTRAMP (ok'd by pk) 1998-12-21 10:34:59 +00:00
drochner 8b9671f0f5 get "opt_compat_xxx.h" includes out of <sys/signal.h> 1998-12-19 16:27:09 +00:00
drochner ba4af3c3de regen 1998-12-18 18:59:06 +00:00
drochner b71f154130 remove compat_xxx dependencies where they don't belong 1998-12-18 18:49:59 +00:00
drochner 52c16cf83a get "opt_compat_svr4.h" out of <sys/conf.h> 1998-12-18 16:55:39 +00:00
drochner 9d0b08a2b5 OMPAT_xxx option review: add missing opt_compat_sunos.h 1998-12-18 15:08:21 +00:00
drochner c22ef79250 solve the COMPAT_OLDSOCK/MSG_COMPAT problem differently:
The source files which need MSG_COMPAT define COMPAT_OLDSOCK.
1998-12-18 13:18:42 +00:00
mrg 776ca9e185 back out previous; it breaks when MSG_COMPAT is not defined (no compatibility modules) 1998-12-18 13:00:33 +00:00
christos 1dd3565a09 Fix a long standing bug in wait(2) where the signal was left untranslated,
and defensively code the signal translation.
1998-12-16 10:36:50 +00:00
christos f9ac5ff367 more defensive signal conversion, and fix a malloc sizeof(int) to sizeof(int *). 1998-12-16 10:21:50 +00:00
itohy 0c080222db Added linux compat support on m68k ports. 1998-12-15 19:31:30 +00:00
itohy e0f218ab08 Generated from syscalls.master. 1998-12-15 19:28:31 +00:00
itohy 0176ca73ed Initial support of Linux/m68k compatibility. 1998-12-15 19:25:40 +00:00
augustss 57186cce33 Slight code rearrangement and more defensive tests for the sequencer device. 1998-12-15 10:32:16 +00:00
mycroft 4a40350c5d Nuke some #ifdefs that no longer work with COMPAT_43 defopted. 1998-12-14 13:03:19 +00:00
christos 49be13158d Make gerlimit(RLIM_NOFILE, rlp), return rlp->rlim_max == maxfiles, not
RLIM_INFINITY like we do. Java uses rlim_max to allocate a data structure
per file descriptor.
what we do is bogus anyway, because:

    setrlimit(RLIM_NOFILE, {RLIM_INFINITY, RLIM_INFINITY}}

sets the limit to { maxfiles, maxfiles }

I undestand that this is so that if we change maxfiles via sysctl, processes
can still use the new maximum, but it is probably more appropriate to return
the current value of maxfiles (and maxproc) at every getrlimit call, even
if the current value for either is RLIM_INFINITY.

Anyway, java now works on the the sparc, on the i386 loses on setcontext().
1998-12-13 18:00:52 +00:00
christos f0c7751046 Regen 1998-12-10 17:13:06 +00:00
christos 35af069802 defopt COMPAT_43 1998-12-10 17:07:04 +00:00
christos 879032f748 fix systeminfo. We return ipc86 for the i386, SUNW,SPARCstation-10 for
sparc, and unknown for the rest. Also make sure that the string is terminated
properly and the length is returned as the specification calls. Maybe sometime
we can read the prom on the sparc and return the actual model.
1998-12-10 17:06:13 +00:00
christos b0b86b5b7f Defopt COMPAT_43 1998-12-10 17:03:19 +00:00
erh efe6591d21 Whoops, _NSIG->LINUX__NSIG. 1998-12-10 00:31:50 +00:00
erh f7373c1eba Add mmap header. 1998-12-08 21:02:18 +00:00
erh cdc6431c25 At least make this compile. Add linux compat version of auxillary data eventually to be used to make the emulation work correctly. 1998-12-08 21:00:11 +00:00
christos 02e50c5ac1 Clarify some signed/unsigned confusion with resource limit setting.
Still don't understand you some old binaries try to use 5 for vmem
instead of 6.
1998-11-30 15:46:33 +00:00
christos dd597a541c regen 1998-11-28 21:53:33 +00:00
christos 298d9e0d50 Deal with {get,set}rlimit{,64} properly, respecting the RLIM_INFINITY,
RLIM_SAVED_MAX, and RLIM_SAVED_CUR values. We should fix our own implementation
to do this and use unsigned numbers for rlim_t as solaris does.
1998-11-28 21:53:02 +00:00
christos d7846c84e1 Conflict resolution. 1998-11-27 18:33:21 +00:00
christos f8c52e6cf3 use a symbolic constant instead of just 0 1998-11-27 18:32:09 +00:00
christos 786b3a2c22 regen 1998-11-27 15:22:44 +00:00
christos 87308428af take a stab at implementing resolvepath(2) 1998-11-27 15:08:50 +00:00
christos 48a6904248 fix renamed constant 1998-11-26 18:58:50 +00:00
christos 6167bac14c No functional changes. Added Mark Newton's suggested fixes, but since I have
not tested them they are #ifdef'ed notyet.
1998-11-25 15:48:35 +00:00
christos fc1519f1c9 Add a few more constants. 1998-11-25 15:47:51 +00:00
mrg 993fb9ff04 add some missing comment ends. 1998-11-24 13:18:42 +00:00
drochner c48ea35c91 include missing SYSV option header - PR kern/6479 by Urban Boquist 1998-11-22 15:00:47 +00:00
frueauf b6576d4d72 fix typo: nativ_to_hpux_errno -> native_to_hpux_errno. 1998-11-09 15:35:16 +00:00
erh bda913305b Make sure the interpreter string is long enough to check against. 1998-11-05 22:19:25 +00:00
frueauf 03c64513e6 hpux_error.c got removed, add hpux_errno.c instead. 1998-11-05 12:42:46 +00:00
sommerfe 6f6b09a92a s/SunOS/Ultrix/ in comment 1998-10-26 18:31:01 +00:00
mrg 70961a3e4c mark native_to_svr4_errno as extern (avoids compiler warning). 1998-10-24 19:35:36 +00:00
christos e5d2a186e0 Finish Eric's changes. 1998-10-24 19:04:19 +00:00
christos 7d7a80a8fd Allow kdump to compile again. 1998-10-24 19:03:53 +00:00
mjacob 3de1dbaf24 add missing include that defined native_to_ibcs2_errno 1998-10-23 19:45:59 +00:00
mjacob 150020cdf2 add missing include that defined native_to_svr4_errno 1998-10-23 19:36:03 +00:00
veego 4c127bdcd4 Include linux_errno.h to fix the recent error->errno losage. 1998-10-23 10:54:58 +00:00
erh 813dd6128b Rename svr4_error to native_to_svr4_errno. 1998-10-23 04:06:00 +00:00
erh 177a7fac85 Moved to svr4_errno.c,v 1998-10-23 04:02:18 +00:00
erh 436999b6cd Moved from svr4_error.c,v 1998-10-23 04:02:17 +00:00
erh 907ec5233d linux_error.c moved to linux_errno.c 1998-10-23 03:56:22 +00:00
erh 8b351f0104 Change linux_error to native_to_linux_errno. Add some (unrelated) debugging printfs. 1998-10-23 03:53:18 +00:00
erh 76aa1f4bcf Moved to linux_errno.c,v 1998-10-23 03:46:25 +00:00
erh a766015254 Moved from linux_error.c,v 1998-10-23 03:45:37 +00:00
erh 36d1163663 Move ibcs2_error.c back to ibcs2_errno.c. Old name was more descriptive. Make it more so and use "native_to_ibcs2_errno". 1998-10-23 03:22:59 +00:00
erh dd1e5f373e Define LINUX_GCC_SIGNATURE. 1998-10-22 18:13:02 +00:00
matt 3ad026ac87 vax -> __vax__ (and mips to __mips__ in ultrix_misc.c) 1998-10-20 01:46:27 +00:00
tron eb17acb9b3 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:43:58 +00:00
tron f8bd8df018 Regen. 1998-10-19 22:43:25 +00:00
tron 597d72777a Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:43:00 +00:00
tron 79239684ae Regen. 1998-10-19 22:41:06 +00:00
tron 8eca167a73 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:40:29 +00:00
tron 7453aacea0 Regen. 1998-10-19 22:39:49 +00:00
tron 120e9f4e91 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:37:53 +00:00
tron c716a334aa Regen. 1998-10-19 22:36:29 +00:00
tron 6d456ade27 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:34:49 +00:00
tron 3c8085dd6e Regen. 1998-10-19 22:32:51 +00:00
tron e8603a0b66 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:31:50 +00:00
tron 3461a6eb39 Regen. 1998-10-19 22:28:16 +00:00
tron ccb04baa10 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:26:39 +00:00
tron 76a0f5408b Regen. 1998-10-19 22:25:55 +00:00
tron c71ccab136 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:21:19 +00:00
christos c2339a1799 Make error array look like ibcs2, svr4, and linux 1998-10-18 17:00:32 +00:00
christos e26890e06b Rename ibcs2_errno.c -> ibcs2_error.c to match with linux and svr4 1998-10-18 16:59:14 +00:00
erh edeeb71bd8 Add the sigaction call. 1998-10-07 23:48:04 +00:00
erh 00a3eb89be This is used on the alpha. It is called osf_sigaction under linux because of the format of the sigaction structure but it acts the same. 1998-10-07 23:47:44 +00:00
erh 7d45dcb522 Kill the linux_old*.h includes (which are only used in the corresponding linux_old*.c). Add linux_siginfo.h. 1998-10-07 23:11:13 +00:00
erh ecdbc1172b Regen. 1998-10-07 23:08:26 +00:00
erh 358899800e Change sys_mmap to NOARGS. (args defined in linux_sys_mmap.h). Typo: siginfo_t->linux_siginfo_t. 1998-10-07 23:07:30 +00:00
erh 1a89cf484f Move linux_sys_mmap declarations to linux_mmap.h Make sure oldmmap.c includes oldmmap.h. 1998-10-07 23:06:17 +00:00
erh 8ce2ceae35 Fix typos. 1998-10-07 23:05:09 +00:00
erh a956aca8aa This needs its defines. 1998-10-07 22:58:19 +00:00
erh 47a9e7f352 Fix typos. 1998-10-07 22:50:42 +00:00
erh baf6c8420d Fix types. Kill old declarations. 1998-10-07 22:45:51 +00:00
erh c7176f00e4 The siginfo include line is not needed here anymore. 1998-10-07 22:17:57 +00:00
erh 3bd73b1ef1 Add prototype for linux_sigprocmask1(). 1998-10-07 22:13:39 +00:00
erh ddbb7b3349 sigprocmask (non-rt) version doesn't exist on alpha. rename it to sigprocmask1 for use in linux_sys_sigprocmask and linux_sys_rt_sigprocmask. 1998-10-07 22:12:48 +00:00
erh 30f959e6c6 sigprocmask (non-rt version) doesn't exist on alpha. Add it here. 1998-10-07 22:11:16 +00:00
erh 15eaa765b7 Files moved. Change the paths here. 1998-10-07 20:50:44 +00:00
thorpej 53b61ccd14 Avoid a compiler warning. 1998-10-06 08:51:14 +00:00
christos 9ec65653f5 unobfuscate: !strncmp() != 0 -> strncmp() == 0 1998-10-04 16:51:18 +00:00
christos 18632b9779 Regen. 1998-10-04 16:22:47 +00:00
christos 9fabaa0ca6 Add a few more unimplemented syscall name placeholders. 1998-10-04 16:21:58 +00:00
christos 227ea85cf0 Don't return EINVAL when nset is NULL in sigprocmask and the command is
invalid.
1998-10-04 16:21:13 +00:00
christos c413c43664 add hasremotelocks, but no support yet. 1998-10-04 16:20:16 +00:00
christos 0c025c7e61 fix fdup2 implementation; it passes the file descriptor itself, not a pointer
to it in arg.
1998-10-04 16:19:50 +00:00
veego 952dd0f6bc There is no need to include ../linux/linux_ioctl.h. 1998-10-04 11:25:28 +00:00
fvdl 26c9084f20 Fix pointer fuckup that made getdents() stop working. 1998-10-04 10:17:54 +00:00
fvdl 19f71dc8ff Fix wrong strncmp test. 1998-10-04 09:40:09 +00:00
fvdl 8096c25afc Assign my copyright to TNF. Merge with others were appropriate.
Regen syscall files after script change.
1998-10-04 00:02:23 +00:00
christos 6524452816 Fix confusion about about service types (from FreeBSD). Now dns resolution
works.
1998-10-03 22:03:07 +00:00
christos 913cee1069 Merge in lite2 changes, and fix a typo that caused pool memory corruption. 1998-10-03 21:29:07 +00:00
christos accc6fd407 Fix bug in TIOCLGET 1998-10-03 21:22:57 +00:00
christos 155e9efe9c Don't install includes 1998-10-03 20:30:50 +00:00
christos af8c2a82b9 Remove this file. 1998-10-03 20:30:37 +00:00
christos 96dc2f3c56 Remove stray debugging printfs 1998-10-03 20:28:03 +00:00
christos 5f13e45116 Forgot those two. 1998-10-03 20:20:04 +00:00
christos 908291d2fe Attempt to fix the mess. 1998-10-03 20:17:36 +00:00
christos e00e31dcab Integrated in common. 1998-10-03 20:02:26 +00:00
eeh 0a89614e93 Fixup big-endian syscall args. 1998-10-03 19:45:37 +00:00
eeh fc6c67ff5d Fixup big-endian syscall args. 1998-10-03 19:33:32 +00:00
eeh 1281be6b0e Fix big-endian syscall args. 1998-10-03 19:31:24 +00:00
christos 49b61257dc Moved via repository copy. 1998-10-03 18:50:20 +00:00
christos 5bc85e96b4 Moved via repository copy 1998-10-03 18:47:24 +00:00
christos a7ed63d0ee moved via repository copy. 1998-10-03 18:45:22 +00:00
christos 6e98c7aef2 Moved via repository copy 1998-10-03 18:44:32 +00:00
christos 6e31782a3f moved via repository copy. 1998-10-03 18:43:28 +00:00
drochner 304929e7ff regen 1998-10-03 16:15:39 +00:00
drochner 720885a1e9 Use a private implementation of sys_sigvec(). Ultrix uses an sv_flags bit
unknown to NetBSD and sigaction1() does (now?) complain about it.
1998-10-03 16:13:20 +00:00
fvdl 192330fdc1 Assign to TNF completely. 1998-10-03 15:48:38 +00:00
drochner 6b079d1e82 repair signal handling:
-use own sigcode since the native one uses a sigreturn syscall not present
 in Ultrix
-route sigreturn to compat_13_sigreturn
1998-10-02 18:53:23 +00:00
christos af5667d954 We have SA_NOCLDWAIT now, and for SA_SIGINFO, we ignore the bit, but we
always construct siginfo_t and pass it to the handler. So kill the printfs..
1998-10-02 11:54:16 +00:00
christos 4a904760a4 the pool boy forgot to convert this to use pool stuff. Goodbye long uptime! 1998-10-01 19:26:30 +00:00
perry 036f631693 shut up egcs complaints by adding braces 1998-10-01 18:58:28 +00:00
perry 4a2f07c9cd shut up egcs complaints about braces 1998-10-01 18:57:05 +00:00
perry 5535f2a14b Add braces to shut up egcs 1998-10-01 18:53:37 +00:00
christos 627091bd84 Provide a suitable default so that kdump compiles on architectures
not supported yet.
1998-10-01 18:23:37 +00:00
erh 270a2b8bc4 Enable linux for includes and syscall building. 1998-10-01 16:23:25 +00:00
eeh 0aa87c38cc Overhaul. Now will run simple things like /bin/sh and /bin/echo. 1998-10-01 14:27:56 +00:00
thorpej 6a7b0ca257 Adapt to signal changes. 1998-10-01 06:35:09 +00:00
erh fd21ba4d9b Add info on things left to do. 1998-10-01 04:27:33 +00:00
erh 5199a97864 Add the architechture-wise multiplexing header files. These are the files that should be included by anything that needs a linux compat header. These will then include the appropriate architechture dependent and common header file(s). 1998-10-01 04:20:16 +00:00
erh 4dc8295a26 Enable "includes" and "all"(=makesyscalls.sh) targets for alpha, common and i386. 1998-10-01 04:16:33 +00:00
erh 5dbbd9e2d1 Architechture-wise multiplexer for linux_syscalls.c. This exists because kdump, et al. include this file. 1998-10-01 04:13:25 +00:00
erh df1521ebe1 Modified to reflect new file layout. arch/<arch>/conf/files.<arch> should include this file and the appropriate compat/linux/<arch>/files.linux_<arch> file. 1998-10-01 04:11:26 +00:00
erh 9eef4e2e35 Kinda moved to compat/linux/Makefile.sc. 1998-10-01 04:08:38 +00:00
erh 19e9e9c2ef These syscall table files have been regenerated in compat/linux/i386. 1998-10-01 04:07:34 +00:00
erh d70c9cdbc9 Wheeee!: 8-way split of compat/linux/linux_misc.c into common code and multi-architechture functions. 1998-10-01 04:05:54 +00:00
erh c0a539a588 Define structures needed for these functions. 1998-10-01 04:00:20 +00:00
erh 46f5ff0021 Move compat/linux/linux_util.h to common. 1998-10-01 03:54:36 +00:00
erh 29217a6082 Move compat/linux/linux_sockio.h to common. 1998-10-01 03:53:00 +00:00
erh fe99a5c47e Add a couple function prototypes from linux_misc.c. 1998-10-01 03:49:59 +00:00
erh b64f5d3b1a Move IPC headers to common. The msg, sem and shm files, in addition to other common structures and to avoid creating several more machine dependent header files, include the syscall arguments for several system calls which don't exist on all architechtures. 1998-10-01 03:48:31 +00:00
erh e6ad366c04 Moved from compat/linux/linux_dirent.h to common. 1998-10-01 03:37:51 +00:00
erh e6a3796d67 Moved from compat/linux/linux_termios.c to common. 1998-10-01 03:36:27 +00:00
erh 658c307a1a Move compat/linux/linux_socketcall.h to multiarch. Defines for the socketcall multiplexer. 1998-10-01 03:34:50 +00:00
erh 81cc399a4d Split linux/compat/linux_socket.c into common and multi-architechture parts. linux_socketcall.c contains the socketcall multiplexer. 1998-10-01 03:33:17 +00:00
erh 4ab27f44f9 Move linux/compat/linux_ipccall.h to multiarch. Defines for the IPC multiplexerand associated functions. 1998-10-01 03:29:45 +00:00
erh d4649701f2 Split compat/linux/linux_ipc.c into common and multi-architechture parts. The IPC multiplexer and associated functions are now in linux_ipccall.c 1998-10-01 03:27:38 +00:00
thorpej 370d14060a Adapt to signal changes. 1998-10-01 03:26:18 +00:00
erh f7ec994736 Move compat/linux/linux_ioctl.c to common. 1998-10-01 03:24:28 +00:00
erh 0060940d40 Split compat/linux/linux_file.c into common and multi-architechture parts. 1998-10-01 03:22:11 +00:00
erh f7ac1bd375 Split compat/linux/linux_exec.c into common, elf and a.out parts. 1998-10-01 03:11:33 +00:00
erh 5b06d1ed0b Move compat/linux/linux_error.c to common. 1998-10-01 02:32:24 +00:00
erh a20d9dce3e Moved compat/linux/linux_cdrom to common. 1998-10-01 02:30:36 +00:00
erh fcaf5df8c2 Split compat/linux/linux_signal.c into i386, common and multi-architecture parts. 1998-10-01 02:27:33 +00:00
erh 7588fef564 Moved here from arch/i386/include/linux_machdep.h. 1998-10-01 02:22:01 +00:00
erh ecb2c14c6e Moved here from arch/i386/i386/linux_machdep.c. 1998-10-01 02:17:31 +00:00
erh 2637ab656d Move compat/linux/linux_exec.h to common. 1998-10-01 02:11:00 +00:00
erh 0b412af4e1 Add linux i386 machine type. 1998-10-01 02:09:12 +00:00
erh 39fa21b763 Regen. 1998-10-01 02:05:32 +00:00
erh 14b1e271b5 Move compat/linux/syscalls.master to i386. Add a few syscalls while I'm here. 1998-10-01 02:03:17 +00:00
erh 9c4b9e9840 Split compat/linux/linux_termios.h into i386 and common parts. 1998-10-01 01:52:58 +00:00
erh 5139d084ba Split compat/linux/linux_ioctl.h into i386 and common parts. 1998-10-01 01:33:03 +00:00
erh ecdc99eb5f Split linux_types.h into i386, common and multi-architechture parts. 1998-10-01 01:31:10 +00:00
erh 79905dc1f3 Split linux_socket.h into i386 and common parts. 1998-10-01 01:19:07 +00:00
erh 45c3ba3edb Split linux_fcntl.h into i386 and common parts. 1998-10-01 01:16:42 +00:00
erh a3f5b4f0e7 Split compat/linux/linux_errno.h into i386 and common parts. 1998-10-01 01:03:37 +00:00
erh a7f2aff0a7 Split compat/linux/linux_signal.h into i386 and common parts. 1998-10-01 00:57:29 +00:00
erh b8454a0669 Split compat/linux/linux_mmap.h into i386 and common parts. 1998-10-01 00:53:44 +00:00
erh 948d228b24 Moved from compat/linux. 1998-10-01 00:42:01 +00:00
erh 18c41cce3e Moved to compat/linux/i386. 1998-10-01 00:37:53 +00:00
erh 72041f8e72 Alpha version of the linux compat machdep signal and machdep ioctl stuff. 1998-10-01 00:34:22 +00:00
erh b513364563 Alpha specific version of sys_pipe and signal translation array. 1998-10-01 00:32:27 +00:00
erh 1a0a0103aa New list of files for the i386. 1998-10-01 00:29:11 +00:00
erh 293ccb5512 New makefiles for includes, syscall gen. 1998-10-01 00:28:33 +00:00
erh ad1f9288a2 Stubs for future development of linux compat architechtures. 1998-09-30 21:55:57 +00:00
erh cb71edeaa4 Common makefile to process syscalls.master files. 1998-09-30 21:38:46 +00:00
erh a919a6b4a8 New header files for Linux compat on the Alpha. 1998-09-30 21:36:23 +00:00
erh 69ebd14bba Generate. 1998-09-30 21:34:32 +00:00
erh 847d4565e9 Initial support for linux compat on the alpha. Not quite working. 1998-09-30 18:01:53 +00:00
tv b8aba69399 Bracket stray printf()s by #ifdef DEBUG. 1998-09-29 14:15:49 +00:00
drochner bdecb86492 regen 1998-09-26 16:29:13 +00:00
drochner eb9936b47a Make Ultrix emulation private functions for sigreturn and sigsuspend
because the NetBSD implementation differs now.
1998-09-26 16:24:14 +00:00
drochner 61af1b2158 Update for sigmask changes. 1998-09-26 15:32:26 +00:00
pk 99cd371c60 Fix copyout() argument switch. 1998-09-14 21:05:46 +00:00
pk b1a2d338c9 Fix copyout() arguments. 1998-09-14 21:03:59 +00:00
pk 9949f7d556 regen. 1998-09-13 22:29:06 +00:00
pk c7971c960e Signal compat: sunos sigset_t conversions;
new sunos_sigvec() & sunos_sigpending()
1998-09-13 22:28:16 +00:00
pk 459204606f Everyone uses sunos_sendsig(). 1998-09-13 21:05:35 +00:00
pk 06612cb9f8 Since the last signal restructuring the sparc also has an sunos_sendsig(). 1998-09-13 20:20:48 +00:00
thorpej 274c8c5f24 Put the prototypes for native_sig*_to_sig*() in one place. 1998-09-13 01:41:16 +00:00
mycroft 584cc642fc Regen. 1998-09-12 10:33:26 +00:00
mycroft 89ea1fcbdd Version sys_sigreturn, to avoid breaking programs that use it explicitly. 1998-09-12 00:47:12 +00:00
mycroft 5978dc4801 Regen. 1998-09-12 00:10:33 +00:00
mycroft a641f893ab Rename ___posix calls in the syscall list. 1998-09-12 00:10:06 +00:00
mycroft f384c47bc7 Regen. 1998-09-11 23:13:32 +00:00
mycroft fb526e055c Substantial signal handling changes:
* 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-11 12:50:05 +00:00
mycroft 11ac489856 Stylistic change. 1998-09-11 12:34:46 +00:00
eeh 44725836bc Add some copyin()/copyout()s. These need to be done but there are more
annoying issues, so I'll just check in this snapshot.
1998-09-11 00:01:57 +00:00
eeh eb1f80313d Use correct 32-bit signal trampoline code in the emul. 1998-09-10 23:55:15 +00:00
thorpej a6c6b5a26b Cosmetic changes. 1998-09-09 23:46:31 +00:00
thorpej 5ff9df860c If we don't find a valid magic, return ENOEXEC, not EINVAL. 1998-09-09 23:37:27 +00:00
thorpej 0d779b28ba If we succeed in preparing the exec package, set the package's emulation
to emul_sparc32.
1998-09-09 23:36:15 +00:00
thorpej 7377cf7f4d MID_MACHINE -> MID_SPARC 1998-09-09 10:29:18 +00:00
rvb 26b955eec7 ufs_readdir no longer checks if vp->v_type != VDIR so
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-09-08 20:02:51 +00:00
eeh 0a6f6c904d Need to make sure high bits of addresses are zeroed out. 1998-09-07 01:38:03 +00:00
eeh 269f667cb0 Copyout 32-bit args. 1998-09-06 04:34:49 +00:00
lukem c9db84ecc9 distclean is a synonym for cleandir 1998-09-05 15:15:14 +00:00
christos 8fb507a3b7 Assign copyright to TNF. 1998-09-05 14:50:25 +00:00
christos e1f16dd0c9 Assign copyrights to TNF; tv has copyrights on the remaining files...
It would be nice if he changed them (hint, hint)
1998-09-04 19:54:37 +00:00
eeh 26d2d906c7 Some more 64-bit cleanup. Now everything compiles. 1998-08-30 15:32:16 +00:00
eeh d581aadc3e Some more 64-bit-ification. 1998-08-29 18:16:56 +00:00
mrg edda33e00c move <vm/vm_swap.h> to <sys/swap.h>. <vm/vm_swap.h> still works for now (goes away later) 1998-08-29 17:01:14 +00:00
christos 667541561d Try to implement I_GETSIG to make netscape work again (untested) 1998-08-27 07:04:31 +00:00
mrg 1f9d0626af regen. 1998-08-26 13:46:56 +00:00
mrg fa380eed0f make oreboot work. 1998-08-26 13:42:50 +00:00
mrg c757d26220 use right syscalls. add converters for timespec and semid_ds 1998-08-26 13:42:22 +00:00
mrg 25f5eb1d01 fake sendsig for now.. 1998-08-26 13:38:32 +00:00
mrg 62ba41606d use right syscalls 1998-08-26 13:38:21 +00:00
mrg d3aee6e637 regen 1998-08-26 10:24:11 +00:00
mrg 3ba6ab0970 add a 32-bit compatibility module for the sparc64 port, so it can run NetBSD/sparc binaries with a LP64 kernel. 1998-08-26 10:20:33 +00:00
mrg 0d6736494d change sunos compat structure members from long to int so they stay the same on sparc64 1998-08-22 17:41:43 +00:00
ragge fc2106d632 VAX 1k page size compatibility executable handling. 1998-08-21 13:25:47 +00:00
thorpej ff266f0937 Add some braces to make egcs happy. 1998-08-18 18:23:07 +00:00
mycroft 6d3d8a1350 Make copyright notices with my name consistent. 1998-08-15 03:02:31 +00:00
eeh a2dd74ed79 Merge paddr_t changes into the main branch. 1998-08-13 02:10:37 +00:00
perry e1601dc2ca bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-09 20:36:58 +00:00
mrg fe3c14b64d use __sparc__ not sparc 1998-08-09 03:12:39 +00:00
kleink 86233eeede Regen again, to indicate which master revision these were generated from. 1998-08-07 17:21:35 +00:00
augustss 48bae9ee88 Add MIDI support. The MIDI devices can be accessed as ``raw'' through
the /dev/rmidiN devices, or with a sequencer interface via /dev/music.
So far the only supported MIDI device is the MPU401 port on SoundBlaster
(and only on SB on isapnp, since we do not have locators with multiple
values yet).
1998-08-07 00:00:55 +00:00
mrg 7ba85a8779 if syscall_debug & compat_sunos, include sunos_syscalls.c 1998-08-06 02:58:44 +00:00
perry f15ade7552 enable nanosleep in linux emul, per pr-5906 from Soren S. Jorvang 1998-08-05 00:44:32 +00:00
kleink c6ef57702d UIO_MAXIOV -> IOV_MAX 1998-08-04 12:19:15 +00:00
kleink 3d9b4a4320 Fix two off-by-one bugs, both present in each recvmsg(2) and sendmsg(2):
* the first one would cause an unnecessary malloc() of iovec storage for
  a msg_iovlen of UIO_SMALLIOV although the required amount of memory has
  been allocated on the stack.
* the second one would cause a recvmsg() or sendmsg() with a msg_iovlen of
  UIO_MAXIOV to fail with EMSGSIZE, which is also a violation of XNS5.
1998-08-03 15:15:58 +00:00
kleink af261318d9 Now that we have it, add a conversion for _PC_SYNC_IO. 1998-08-03 14:23:30 +00:00
thorpej 0e28b643e9 Use a pool for proc structures. 1998-08-02 04:41:32 +00:00
thorpej 37b70b3064 Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,
to match the new uio_resid type.
1998-07-28 21:39:54 +00:00
lukem 786b86d71b use AF_LOCAL instead of AF_UNIX 1998-07-18 05:04:35 +00:00
thorpej 35bb79bc83 Oops, fix typo, pointed out by Urban Boquist <boquist@cs.chalmers.se>. 1998-07-07 00:40:27 +00:00
jonathan d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
mhitch 3950d164c0 Add missing include of "opt_nfsserver.h". 1998-07-03 20:03:04 +00:00
thorpej 33f066d24c Implement the shrinking and no-change bits of the Linux mremap(2) system
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-07-02 23:26:58 +00:00
thorpej 469eb58301 Fix pread64/pwrite64 wrt. argument translation. 1998-07-02 02:20:21 +00:00
thorpej dd0758a46a Oops, fix a couple of brain-o's. 1998-07-01 01:23:25 +00:00
thorpej b413670e49 Regen. 1998-07-01 00:41:55 +00:00
thorpej f76a7b5d83 Add a bunch more system calls from Digital UNIX 4.0D. 1998-07-01 00:41:36 +00:00
thorpej 576184d528 Put pread64() and pwrite64() back in here, but just call the native
NetBSD system call with no argument translation.
1998-06-30 23:34:05 +00:00
thorpej c21db87c09 Regen. 1998-06-30 23:32:07 +00:00
thorpej 641ea73301 Revert the last change; it had a side-effect that I didn't think about. 1998-06-30 23:31:28 +00:00
thorpej f8fe385b78 Rewrite svr4_sys_pread() and svr4_sys_pwrite() in terms of the native
NetBSD pread(2) and pwrite(2).  These still require indirection because
the arguments need to be converted to the correct types.

Delete svr4_sys_pread64() and svr4_sys_pwrite64(), since the arguments
for these calls do not need conversion, and the syscall switch calls
the native NetBSD system calls directly.
1998-06-30 19:42:56 +00:00
thorpej e05b7cc70b Regen: syscalls.master changed to reflect native pread/pwrite. 1998-06-30 19:40:55 +00:00
thorpej cf54391ad7 Now that NetBSD has pread(2) and pwrite(2), we no longer need to indirect
through SVR4 emulation layers to handle SVR4's pread64(2) and pwrite64(2),
since NetBSD's arguments are the same as the SVR4 64-bit system call
arguments.
1998-06-30 19:40:13 +00:00
scottb fe00c5db7f fix typo that broke directory read emulation. 1998-06-28 01:20:06 +00:00
hannken 6f6901bd1a Include NFSSERVER option header opt_nfsserver.h. 1998-06-26 10:13:14 +00:00
thorpej 8aee7782f5 defopt COMPAT_SUNOS 1998-06-25 23:40:33 +00:00
thorpej 21592147a1 defopt COMPAT_ULTRIX 1998-06-25 23:27:56 +00:00
thorpej bb13cd15fb Regen: defopt NFSSERVER 1998-06-25 22:20:04 +00:00
thorpej 5b34683734 defopt NFSSERVER 1998-06-25 22:19:50 +00:00
thorpej 5dc3448163 Regen: defopt NFSSERVER 1998-06-25 22:19:33 +00:00
thorpej bff28c879a defopt NFSSERVER 1998-06-25 22:19:12 +00:00
thorpej 227197f1ef Regen: defopt NFSSERVER 1998-06-25 22:18:53 +00:00
thorpej 6b781d156f defopt NFSSERVER 1998-06-25 22:17:36 +00:00
thorpej 971b8956ef defopt KTRACE 1998-06-25 21:18:11 +00:00
thorpej b13482a5ce Regen: defopt KTRACE 1998-06-25 21:17:56 +00:00
thorpej 808867c7cf defopt KTRACE 1998-06-25 21:17:15 +00:00
sommerfe becaafeea0 defopt for options FIFO 1998-06-22 22:00:59 +00:00
mrg cbffcd18f0 use <dev/sun/disklabel.h> for new (old) compat ioctls: DKIOCGGEOM, DKIOCINFO and DKIOCGPART 1998-06-20 03:43:49 +00:00
drochner 81fd096b37 Since wscons can support VT_xxx ioctl()s, enable them if NWSDISPLAY > 0.
Implement KDGKBTYPE and KDGKBENT, this will make X servers happy.
1998-06-11 22:26:13 +00:00
augustss 9af4656838 Fix off by 1 error 1998-05-25 17:13:43 +00:00
chs 75a77b5286 regen 1998-05-20 16:35:19 +00:00
chs 20a0fa6146 make this compile again. 1998-05-20 16:34:29 +00:00
kleink 687ea7404c Fix some arithmetics lossage on typeless pointers. 1998-05-08 16:55:15 +00:00
christos 3f0a958f6d regen. 1998-05-02 18:14:56 +00:00
christos f6cd9bf78b PR/5350: Minoura Makoto: add issetugid() syscall. (with fixes from me) 1998-05-02 18:14:06 +00:00
kleink d40e7c810b Make adding new source files easier and enhance readability by ordering SRCS
items by (Net)BSD version first, then alphabetically.
1998-04-28 16:27:51 +00:00
mycroft 487d1fa05e Fix typo in utime(). 1998-03-24 09:47:30 +00:00
mycroft aa1112aed5 SETFRAGMENT ignores the high bit. 1998-03-19 06:53:28 +00:00
thorpej 8118bb3984 Make this compile again in light of Lite2. 1998-03-05 22:51:35 +00:00