christos
7b9289ca62
fix standalone
2017-01-14 04:54:42 +00:00
christos
2663d7ef18
fix standalone
2017-01-14 04:53:25 +00:00
kamil
14d6312469
Add new tests eventmask[34] in t_ptrace_wait{,3,4,6,id,pid}
...
eventmask3:
Verify that PTRACE_VFORK in EVENT_MASK is preserved
eventmask4:
Verify that PTRACE_VFORK_DONE in EVENT_MASK is preserved
Currently eventmask3 is failing and marked with PR kern/51630
Sponsored by <The NetBSD Foundation>
2017-01-14 04:37:55 +00:00
pgoyette
ea3582b27e
Set FILESBUILD=yes to actually run the creation script for the file.
...
Should fix the build by creating a file which install can then find.
2017-01-14 03:59:58 +00:00
christos
8787f9ad9e
fix rump
2017-01-14 03:35:21 +00:00
christos
53daaf6b96
fix weak symbols. More work needs to be done for memcpy/strlen etc.
2017-01-14 03:00:13 +00:00
christos
0f986ca219
add new test file
2017-01-14 01:44:13 +00:00
kamil
89ada74077
Update TODO.ptrace
...
Removed:
- evaluate equivalent for PTRACE_O_TRACECLONE from Linux
clone(2)-like calls are traced with PTRACE_FORK, PTRACE_VFORK and
PTRACE_VFORK_DONE. VFORK ones block parent till termination or execve(2) of
its child.
Added:
- add proper implementation of PTRACE_VFORK for vfork(2)-like events
Currently PTRACE_VFORK is a stub.
Sponsored by <The NetBSD Foundation>
2017-01-14 01:36:28 +00:00
christos
0ac9d4eb29
better name
2017-01-14 01:33:32 +00:00
christos
01f670b7f6
expose more for _KMEMUSER
2017-01-14 01:02:08 +00:00
christos
31ed49d544
don't do _KERNEL; hides bswap stuff.
2017-01-14 01:01:48 +00:00
christos
6a94a0768f
PR/51832: Ngie Cooper:
...
- limit memory to 64M
- error msg fixes
- includes fixes
2017-01-14 00:50:56 +00:00
christos
1edda79a21
fix types.
2017-01-14 00:35:37 +00:00
christos
81da05f641
Do things in a less intrusive way.
2017-01-14 00:33:19 +00:00
kamil
4e100202af
Document PTRACE_VFORK and PTRACE_VFORK_DONE in ptrace(2)
...
PTRACE_VFORK - report vfork(2)-like operations and trace child
PTRACE_VFORK_DONE - report unblocking the parent after vfork(2)-like call
Note that PTRACE_VFORK is currently unimplemented and returns ENOTSUP.
Sponsored by <The NetBSD Foundation>
2017-01-14 00:02:40 +00:00
kamil
f985a0fb79
Add new entry for ptrace(2)
...
Added:
ptrace(2): Add new options in EVENT_MASK: PTRACE_VFORK and
PTRACE_VFORK_DONE
2017-01-13 23:29:10 +00:00
kamil
c35cdcf1bb
Update t_ptrace_wait* tests for added support for PTRACE_VFORK{,_DONE}
...
PTRACE_VFORK and PTRACE_VFORK_DONE are now parts of <sys/ptrace.h>.
PTRACE_VFORK tests are still failing as the support for it is currently
a stub.
Sponsored by <The NetBSD Foundation>
2017-01-13 23:22:12 +00:00
kamil
c18b2e9358
Welcome to NetBSD 7.99.59 - PTRACE_VFORK and PTRACE_VFORK_DONE in ptrace(2)
...
Sponsored by <The NetBSD Foundation>
2017-01-13 23:05:24 +00:00
kamil
0e96af0f53
Add support for PTRACE_VFORK_DONE and stub for PTRACE_VFORK in ptrace(2)
...
PTRACE_VFORK is supposed to be used to track vfork(2)-like events, when
parent gives birth to new process child and stops till it exits or calls
exec().
Currently PTRACE_VFORK is a stub.
PTRACE_VFORK_DONE is notification to notify a debugger that a parent has
resumed after vfork(2)-like action.
PTRACE_VFORK_DONE throws SIGTRAP with TRAP_CHLD.
Sponsored by <The NetBSD Foundation>
2017-01-13 23:00:35 +00:00
christos
b5b137cbee
fix typo
2017-01-13 22:46:43 +00:00
christos
1544402a99
no namlen on linux
2017-01-13 22:45:15 +00:00
christos
a2e94ed719
use bdp, to avoid compiler warning.
2017-01-13 22:29:59 +00:00
macallan
4b66d9e2f9
add SX_STBM ( STore Byte Masked ) instruction
2017-01-13 21:49:46 +00:00
christos
c54cb81102
Don't play with "../.." in includes for h_macros.h; deal with it centrally.
...
Minor fixes.
2017-01-13 21:30:39 +00:00
christos
6e9c6546e8
PR/51859: Ngie Cooper: use closefrom/restore RLIMIT_NOFILE when done
2017-01-13 21:19:45 +00:00
christos
9398a6c8c6
PR/51861: Ngie Cooper: Sprinkle __unused, mark __dead, _exit().
2017-01-13 21:18:33 +00:00
christos
f3f1ae73bf
PR/51862: Ngie Cooper: don't leak buf
2017-01-13 21:16:38 +00:00
christos
1b5bdd34e2
PR/51860: Ngie Cooper: don't leak fd
2017-01-13 21:15:57 +00:00
christos
f4c1dfe02d
PR/51857: Ngie Cooper: mark signo __unused for -Wunused
2017-01-13 21:15:14 +00:00
agc
a5445b4eea
also terminate 2 other statements properly
2017-01-13 21:09:12 +00:00
christos
968eee5d0b
convert strcpy to a bounded copy to avoid compiler warnings, although the
...
reclen test prevents overflow.
2017-01-13 21:02:05 +00:00
agc
56556fc2dc
terminate the statement properly
2017-01-13 21:00:59 +00:00
christos
d352a1f1ba
convert strcpy to a bounded copy to avoid compiler warnings, although the
...
reclen test prevents overflow.
2017-01-13 20:58:59 +00:00
christos
35c57c2fc8
PR/51858: Ngie Cooper: don't leak buf
2017-01-13 20:46:15 +00:00
christos
93538aec95
PR/51856: Ngie Cooper: add limits.h for INT_MAX
2017-01-13 20:44:45 +00:00
christos
26e010503c
PR/51847: Ngie Cooper: More error checks, add __unused
2017-01-13 20:44:10 +00:00
christos
666a964a93
PR/51855: Ngie Cooper: fix leaks
2017-01-13 20:43:11 +00:00
christos
86d82e08a1
PR/51853: Ngie Cooper: add limits.h for MAXPATHLEN in FreeBSD
2017-01-13 20:42:36 +00:00
christos
10ef6baaf5
PR/51854: Ngie Cooper: sys/socket.h include and check result from socket(2)
2017-01-13 20:41:50 +00:00
christos
cee075369e
PR/51851: Ngie Cooper: add stdbool.h #include for false/true
2017-01-13 20:31:53 +00:00
christos
faab7dc2ec
PR/51852: Ngie Cooper: mark signo __unused
2017-01-13 20:31:06 +00:00
christos
fb2eabe89d
convert strcpy to a bounded copy to avoid compiler warnings, although the
...
reclen test prevents overflow.
2017-01-13 20:24:37 +00:00
christos
bf323d9fd1
PR/51849: Ngie Cooper: headers portability fixes
2017-01-13 20:10:57 +00:00
christos
180ffa9edb
PR/51850: Ngie Cooper: add sys/socket.h for socket(2) and don't leak fds
2017-01-13 20:09:48 +00:00
christos
57ddf889e1
PR/51848: Ngie Cooper: tests/lib/libc/sys/t_sigaction: mark variables __unused
...
XXX: h_macros.h needs to be fixed differently.
2017-01-13 20:08:38 +00:00
christos
4cc87d7ee2
PP/51845: Ngie Cooper: need <netinet/in.h> for htonl etc and fix socket leak
2017-01-13 20:06:50 +00:00
christos
26785dc779
PR/51846: Ngie Cooper: closefrom(3) instead of fcntl(3, F_CLOSEM)
...
for portability
2017-01-13 20:04:52 +00:00
christos
af06389089
PR/51844: Ngie Cooper: use root-owned file created during build instead of
...
/usr/bin/fpr
2017-01-13 20:03:51 +00:00
christos
223f5b4030
this was fine before...
2017-01-13 19:53:10 +00:00
christos
d0d6e976d7
PR/51843: Ngie Cooper: don't leak file descriptor
2017-01-13 19:34:19 +00:00