minix/minix/tests
David van Moolenbroek c38dbb97aa Prepare for switch to native BSD socket API
Currently, the BSD socket API is implemented in libc, translating the
API calls to character driver operations underneath.  This approach
has several issues:

- it is inefficient, as most character driver operations are specific
  to the socket type, thus requiring that each operation start by
  bruteforcing the socket protocol family and type of the given file
  descriptor using several system calls;
- it requires that libc itself be changed every time system support
  for a new protocol is added;
- various parts of the libc implementations violate the asynchronous
  signal safety POSIX requirements.

In order to resolve all these issues at once, the plan is to turn the
BSD socket calls into system calls, thus making the BSD socket API the
"native" ABI, removing the complexity from libc and instead letting
VFS deal with the socket calls.

The overall change is going to break all networking functionality. In
order to smoothen the transition, this patch introduces the fifteen
new BSD socket system calls, and makes libc try these first before
falling back on the old behavior.  For now, the VFS implementations of
the new calls fail such that libc will always use the fallback cases.
Later on, when we introduce the actual implementation of the native
BSD socket calls, all statically linked programs will automatically
use the new ABI, thus limiting actual application breakage.

In other words: by itself, this patch does nothing, except add a bit
of transitional overhead that will disappear in the future.  The
largest part of the patch is concerned with adding full support for
the new BSD socket system calls to trace(1) - this early addition has
the advantage of making system call tracing output of several socket
calls much more readable already.

Both the system call interfaces and the trace(1) support have already
been tested using code that will be committed later on.

Change-Id: I3460812be50c78be662d857f9d3d6840f3ca917f
2016-02-23 14:34:05 +00:00
..
blocktest Fix soft faults in FSes resulting in partial I/O 2016-01-16 14:04:21 +01:00
ddekit merge libminlib with libc 2014-08-28 18:49:19 +02:00
ds merge libminlib with libc 2014-08-28 18:49:19 +02:00
fbdtest Move all services to /service 2014-07-31 16:00:31 +02:00
kernel merge libminlib with libc 2014-08-28 18:49:19 +02:00
safecopy merge libminlib with libc 2014-08-28 18:49:19 +02:00
check-install /usr/tests/minix-posix/check-install 2014-08-13 16:42:57 +02:00
common-socket.c Prepare for switch to native BSD socket API 2016-02-23 14:34:05 +00:00
common-socket.h Add new tests 80 (TCP) and 81 (UDP) 2015-07-08 09:46:56 +02:00
common.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
common.h NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
magic.h New sources layout 2014-07-31 16:00:30 +02:00
Makefile Fix usage of parenthesis in Makefiles 2016-02-07 19:17:44 +01:00
Makefile.inc New sources layout 2014-07-31 16:00:30 +02:00
mod.c New sources layout 2014-07-31 16:00:30 +02:00
run IPC server: major fixes, test set for semaphores 2016-01-16 14:04:11 +01:00
t10a.c New sources layout 2014-07-31 16:00:30 +02:00
t11a.c New sources layout 2014-07-31 16:00:30 +02:00
t11b.c New sources layout 2014-07-31 16:00:30 +02:00
t40a.c New sources layout 2014-07-31 16:00:30 +02:00
t40b.c New sources layout 2014-07-31 16:00:30 +02:00
t40c.c New sources layout 2014-07-31 16:00:30 +02:00
t40d.c New sources layout 2014-07-31 16:00:30 +02:00
t40e.c New sources layout 2014-07-31 16:00:30 +02:00
t40f.c New sources layout 2014-07-31 16:00:30 +02:00
t40g.c New sources layout 2014-07-31 16:00:30 +02:00
t60a.c tests: fixes 2016-01-25 14:26:20 +01:00
t60b.c New sources layout 2014-07-31 16:00:30 +02:00
t67a.c New sources layout 2014-07-31 16:00:30 +02:00
t67b.c New sources layout 2014-07-31 16:00:30 +02:00
t68a.c New sources layout 2014-07-31 16:00:30 +02:00
t68b.c New sources layout 2014-07-31 16:00:30 +02:00
t84_h_nonexec.sh libc: add posix_spawn family of functions 2015-07-28 14:18:03 +00:00
t84_h_spawn.c libc: add posix_spawn family of functions 2015-07-28 14:18:03 +00:00
t84_h_spawnattr.c libc: add posix_spawn family of functions 2015-07-28 14:18:03 +00:00
test1.c New sources layout 2014-07-31 16:00:30 +02:00
test2.c New sources layout 2014-07-31 16:00:30 +02:00
test3.c tests: fixes 2016-01-25 14:26:20 +01:00
test4.c New sources layout 2014-07-31 16:00:30 +02:00
test5.c New sources layout 2014-07-31 16:00:30 +02:00
test6.c New sources layout 2014-07-31 16:00:30 +02:00
test7.c VFS: add support for F_DUPFD_CLOEXEC 2015-07-20 13:55:10 +00:00
test8.c New sources layout 2014-07-31 16:00:30 +02:00
test9.c New sources layout 2014-07-31 16:00:30 +02:00
test10.c New sources layout 2014-07-31 16:00:30 +02:00
test11.c New sources layout 2014-07-31 16:00:30 +02:00
test12.c New sources layout 2014-07-31 16:00:30 +02:00
test13.c New sources layout 2014-07-31 16:00:30 +02:00
test14.c New sources layout 2014-07-31 16:00:30 +02:00
test15.c New sources layout 2014-07-31 16:00:30 +02:00
test16.c New sources layout 2014-07-31 16:00:30 +02:00
test17.c New sources layout 2014-07-31 16:00:30 +02:00
test18.c New sources layout 2014-07-31 16:00:30 +02:00
test19.c New sources layout 2014-07-31 16:00:30 +02:00
test20.c New sources layout 2014-07-31 16:00:30 +02:00
test21.c New sources layout 2014-07-31 16:00:30 +02:00
test22.c New sources layout 2014-07-31 16:00:30 +02:00
test23.c New sources layout 2014-07-31 16:00:30 +02:00
test24.c New sources layout 2014-07-31 16:00:30 +02:00
test25.c New sources layout 2014-07-31 16:00:30 +02:00
test26.c New sources layout 2014-07-31 16:00:30 +02:00
test27.c New sources layout 2014-07-31 16:00:30 +02:00
test28.c New sources layout 2014-07-31 16:00:30 +02:00
test29.c New sources layout 2014-07-31 16:00:30 +02:00
test30.c New sources layout 2014-07-31 16:00:30 +02:00
test31.c New sources layout 2014-07-31 16:00:30 +02:00
test32.c New sources layout 2014-07-31 16:00:30 +02:00
test33.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
test34.c Resolve more warnings 2015-09-23 12:04:58 +00:00
test35.c Resolve more warnings 2015-09-23 12:04:58 +00:00
test36.c New sources layout 2014-07-31 16:00:30 +02:00
test37.c tests: fix clang warnings 2014-09-29 16:16:32 +00:00
test38.c New sources layout 2014-07-31 16:00:30 +02:00
test39.c New sources layout 2014-07-31 16:00:30 +02:00
test40.c New sources layout 2014-07-31 16:00:30 +02:00
test41.c New sources layout 2014-07-31 16:00:30 +02:00
test42.c Resolve more warnings 2015-09-23 12:04:58 +00:00
test43.c New sources layout 2014-07-31 16:00:30 +02:00
test44.c New sources layout 2014-07-31 16:00:30 +02:00
test45.c New sources layout 2014-07-31 16:00:30 +02:00
test45.h New sources layout 2014-07-31 16:00:30 +02:00
test46.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
test47.c New sources layout 2014-07-31 16:00:30 +02:00
test48.c test48: skip some redundant combinations of parameters 2015-07-08 09:32:17 +02:00
test49.c New sources layout 2014-07-31 16:00:30 +02:00
test50.c New sources layout 2014-07-31 16:00:30 +02:00
test51.c tests: fix clang warnings 2014-09-29 16:16:32 +00:00
test52.c New sources layout 2014-07-31 16:00:30 +02:00
test53.c New sources layout 2014-07-31 16:00:30 +02:00
test54.c New sources layout 2014-07-31 16:00:30 +02:00
test55.c New sources layout 2014-07-31 16:00:30 +02:00
test56.c Prepare for switch to native BSD socket API 2016-02-23 14:34:05 +00:00
test57.c New sources layout 2014-07-31 16:00:30 +02:00
test57loop.S New sources layout 2014-07-31 16:00:30 +02:00
test58.c New sources layout 2014-07-31 16:00:30 +02:00
test59.c test59: fix status type for mthread_join call 2014-08-24 09:22:35 +00:00
test60.c New sources layout 2014-07-31 16:00:30 +02:00
test61.c New sources layout 2014-07-31 16:00:30 +02:00
test62.c New sources layout 2014-07-31 16:00:30 +02:00
test63.c New sources layout 2014-07-31 16:00:30 +02:00
test64.c New sources layout 2014-07-31 16:00:30 +02:00
test65.c tests: fixes 2016-01-25 14:26:20 +01:00
test66.c New sources layout 2014-07-31 16:00:30 +02:00
test66expected.h New sources layout 2014-07-31 16:00:30 +02:00
test67.c New sources layout 2014-07-31 16:00:30 +02:00
test68.c VFS: fix error behavior for partial pipe writes 2015-06-05 18:40:57 +00:00
test69.c Resolve more warnings 2015-09-23 12:04:58 +00:00
test70.c Resolve more warnings 2015-09-23 12:04:58 +00:00
test71.c New sources layout 2014-07-31 16:00:30 +02:00
test72.c libminixfs: better support for read errors and EOF 2015-08-14 18:39:26 +00:00
test73.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
test74.c Fix soft faults in FSes resulting in partial I/O 2016-01-16 14:04:21 +01:00
test75.c PM: add support for wait4(2) 2015-09-29 18:15:28 +00:00
test76.c Add PTYFS, Unix98 pseudo terminal support 2015-06-23 17:43:46 +00:00
test77.c Add PTYFS, Unix98 pseudo terminal support 2015-06-23 17:43:46 +00:00
test78.c New sources layout 2014-07-31 16:00:30 +02:00
test79.c New sources layout 2014-07-31 16:00:30 +02:00
test80.c tests: resolve new compiler warnings 2015-07-28 14:18:35 +00:00
test81.c tests: resolve new compiler warnings 2015-07-28 14:18:35 +00:00
test82.c test82: share support functions in common.[ch] for test83 2015-07-22 22:24:22 +02:00
test83.c Resolve more warnings 2015-09-23 12:04:58 +00:00
test84.c libc: add posix_spawn family of functions 2015-07-28 14:18:03 +00:00
test85.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
test86.c VFS: check X bit, not R bit, opening executables 2015-08-31 12:55:55 +00:00
test87.c Add MIB service, sysctl(2) support 2016-01-13 20:32:37 +01:00
test88.c IPC server: major fixes, test set for semaphores 2016-01-16 14:04:11 +01:00
testcache.c New sources layout 2014-07-31 16:00:30 +02:00
testcache.h New sources layout 2014-07-31 16:00:30 +02:00
testinterp.sh New sources layout 2014-07-31 16:00:30 +02:00
testisofs.sh tests: fixes 2016-01-25 14:26:20 +01:00
testkyua.sh New sources layout 2014-07-31 16:00:30 +02:00
testmfs.sh New sources layout 2014-07-31 16:00:30 +02:00
testrelpol.sh tests: extend multicomponent live update test 2015-09-17 14:11:48 +00:00
testsh1.sh Porting uuencode/uudecode from NetBSD 2014-09-08 19:51:28 +02:00
testsh2.sh Import NetBSD sysctl(8) 2016-01-13 20:32:48 +01:00
testvm.c libfsdriver: support mmap on FSes with no device 2014-11-15 11:19:52 +00:00
testvm.conf libminixfs/VM: fix memory-mapped file corruption 2015-08-13 13:46:46 +00:00
testvm.h New sources layout 2014-07-31 16:00:30 +02:00
testvnd.sh Importing bin/sh 2014-08-29 12:56:04 -04:00
tvnd.c New sources layout 2014-07-31 16:00:30 +02:00