sommerfeld
6b88a0fc51
Emulation stackgap sanity checks, based partly on fixes from
...
FreeBSD-SA00:42.
Change stackgap_alloc to bounds-check the allocation vs. the stack
gap, returning NULL if there isn't room for the allocation.
Change emul_find() to check for a NULL return from stackgap_alloc()
and convert that into ENAMETOOLONG.
Reorder various emulation syscalls so that all *_CHECK_ALT_{EXIST,CREAT}
calls (which turn into emul_find() under the covers come *after* small,
fixed-size stackgap_alloc() calls.
Clean up ibcs2 {get,set}groups.
2000-08-29 14:33:25 +00:00
matt
4e1f5ebf66
When reading dir entry by dir entry, we need to pad out the receive buffer
...
to at least a block to make ufs_readdir happy.
2000-08-23 21:11:47 +00:00
cgd
0199b04bef
update for changed makesyscalls.master
2000-08-18 19:35:15 +00:00
cgd
3af42e5211
update for changed makesyscalls.sh
2000-08-18 19:26:56 +00:00
matt
8666ad87ba
Fix read problem on directories on UFS.
2000-08-18 17:38:33 +00:00
matt
693b01e5da
Fix IBCS2_S_IFWGRP
2000-08-17 15:16:01 +00:00
matt
52a3078697
fix some size_t/int confusion.
2000-08-11 22:21:41 +00:00
matt
66617b2137
Add ibcs2_sys_gtty.
2000-08-11 22:20:10 +00:00
matt
ef5099c8d8
Use size_t appropriately.
2000-08-11 22:19:29 +00:00
matt
e4dc804075
Regen.
2000-08-11 22:17:58 +00:00
matt
4153441571
add ibcs2_sys_gtty
2000-08-11 22:14:07 +00:00
mrg
13f211c52e
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
2000-06-28 15:39:24 +00:00
matt
3c173d4927
If we loaded an nmagic on a subpage boundary, adjust epp->ep_d{addr,size} so
...
that they start on a page boundary. This is needed so that obreak(2) works
properly.
2000-06-28 00:14:44 +00:00
mrg
89d0a3e519
remove redundant vm includes.
2000-06-26 14:38:50 +00:00
matt
3a447126e3
simply the abutting text/data case.
2000-06-23 22:03:22 +00:00
matt
a0cf752d0c
For omagic & nmagic, add bss size into data magic (needed for brk to work
...
right). Deal with the case that the data segment might fit into all the
trailing part of last text page.
2000-06-21 06:40:04 +00:00
matt
15511d1dcc
Move COFF_LDPGSZ to ibcs2_machdep.h. Fix nmagic loader to deal with
...
subpage mappings.
2000-06-21 05:45:15 +00:00
matt
aef5a7aa9a
Allow dynamic twiddling of debug messages.
...
Fix printf problem when printing debug messages.
fix coff shlib loading. Add a few sanity checks.
2000-06-16 01:56:36 +00:00
mycroft
e9deffe0bf
Move a bunch of the COFF definitions into exec_coff.h, so they can be used by
...
other code. XXX Not tested on SH3 yet.
2000-06-04 16:23:59 +00:00
chs
a6d33cc1f2
add a new function vn_marktext() for exec code to let others know
...
that the vnode is now being used as process text.
2000-04-11 04:37:47 +00:00
augustss
a82aeb5508
Kill register declarations.
2000-03-30 11:24:16 +00:00
simonb
2f1fef39b3
Centralise the declarations of cpu_model, machine, machine_arch,
...
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-28 23:57:24 +00:00
kleink
230876cf26
Merge parts of chs-ubc2 into the trunk:
...
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
make them type-generic, which is necessary i.e. to operate on file offsets
without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
integral type (paddr_t, vaddr_t).
Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
matt
74ca33774a
only include i386/include/reg.h on i386.
2000-02-27 17:30:10 +00:00
matt
897c73a03a
Fix wait case for VAX SVR3.
2000-01-13 06:33:29 +00:00
matt
a0bcad1505
move to ibcs2_sysi86 to arch/i386/i386/ibcs2_machdep.c.
...
XXX -- still need to properly MI the waitsys code.
2000-01-10 03:16:25 +00:00
matt
8e42885010
Clean things up. Only include the ELF EXEC iff EXEC_ELF32 is already
...
asserted.
XXX -- this should mutate into kern/exec_coff someday with a cpu_coff_hooks
ala ecoff support.
2000-01-10 03:14:56 +00:00
matt
47b5b640a7
Regen.
2000-01-10 03:12:19 +00:00
matt
61783809dc
rename ibcs2_sysi86 to ibcs2_sysmachine (since ibcs2 now runs on other
...
things than i386).
2000-01-10 03:10:15 +00:00
kleink
522cbf0248
Update to match new SVR4-style definition names in <sys/exec_elf.h>.
1999-10-25 13:55:06 +00:00
thorpej
2c358fca82
Update for new msgctl()/semctl()/shmctl() calls.
1999-08-25 04:52:06 +00:00
thorpej
e3669c3393
Add "use counting" to file entries. When closing a file, and it's reference
...
count is 0, wait for use count to drain before finishing the close.
This is necessary in order for multiple processes to safely share file
descriptor tables.
1999-05-05 20:01:01 +00:00
cgd
af8a9059d3
compute the value to be used for e_arglen via howmany(value, sizeof (char *)),
...
rather than just "value / sizeof (char *)". While in these cases the latter
works as well, the former's a better example for other uses to copy (since
it handles the non-integral multiple case correctly).
1999-04-30 23:07:01 +00:00
christos
03ff6653d6
Regen
1999-02-09 20:48:20 +00:00
christos
415ae8f732
const poisoning
1999-02-09 20:21:18 +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
augustss
0d32a9a78b
Fix more `void *' arithmetic.
1999-01-08 19:22:34 +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
christos
f0c7751046
Regen
1998-12-10 17:13:06 +00:00
christos
b0b86b5b7f
Defopt COMPAT_43
1998-12-10 17:03:19 +00:00
mjacob
3de1dbaf24
add missing include that defined native_to_ibcs2_errno
1998-10-23 19:45:59 +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
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
christos
e26890e06b
Rename ibcs2_errno.c -> ibcs2_error.c to match with linux and svr4
1998-10-18 16:59:14 +00:00
eeh
fc6c67ff5d
Fixup big-endian syscall args.
1998-10-03 19:33:32 +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