Commit Graph

1284 Commits

Author SHA1 Message Date
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