diff options
author | unknown <lenz@mysql.com> | 2002-07-15 11:53:05 +0200 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2002-07-15 11:53:05 +0200 |
commit | f4a3e3b911e7eb779fd96096552ad56f7d39dd9d (patch) | |
tree | b1b5360f0e6451d07a550d4f06a48e8efff31fc1 /mit-pthreads/machdep | |
parent | 1e519a7c261b3077b9a1e7d6961a2e18fd57e93c (diff) | |
download | mariadb-git-f4a3e3b911e7eb779fd96096552ad56f7d39dd9d.tar.gz |
- removed the mit-pthreads subdirectory on Monty's request (mit-pthreads
is now available as a separate downloadable tarball instead)
- modified the RPM spec file according to discussions with Monty, Jani,
Heikki and David (corrected build options, updated Packager tag)
BitKeeper/deleted/.del-.cvsignore~a89e3e9e63c5a3bd:
Delete: mit-pthreads/.cvsignore
BitKeeper/deleted/.del-.cvsignore~bf28c9fe60433e24:
Delete: mit-pthreads/bin/.cvsignore
BitKeeper/deleted/.del-.cvsignore~d5cf75745b89100d:
Delete: mit-pthreads/bin/finger/.cvsignore
BitKeeper/deleted/.del-COPYING.GNU~31abf6d2809c1fef:
Delete: mit-pthreads/config/COPYING.GNU
BitKeeper/deleted/.del-COPYRIGHT~7842aebc82116632:
Delete: mit-pthreads/COPYRIGHT
BitKeeper/deleted/.del-COPYRIGHT~ef5806b6811e63ab:
Delete: mit-pthreads/config/COPYRIGHT
BitKeeper/deleted/.del-Changes-mysql~445374605285aaf4:
Delete: mit-pthreads/Changes-mysql
BitKeeper/deleted/.del-FAQ~e82ab622cd43d1c7:
Delete: mit-pthreads/FAQ
BitKeeper/deleted/.del-GNUmakefile~d97c072510c28842:
Delete: mit-pthreads/GNUmakefile
BitKeeper/deleted/.del-Makefile.in~269b19b1a2f83ee:
Delete: mit-pthreads/bin/finger/Makefile.in
BitKeeper/deleted/.del-Makefile.in~66f94b416da3bd74:
Delete: mit-pthreads/bin/Makefile.in
BitKeeper/deleted/.del-NOTES_OSR5_BUILD_SKUNKWARE97~b063fc094fa7696a:
Delete: mit-pthreads/NOTES_OSR5_BUILD_SKUNKWARE97
BitKeeper/deleted/.del-NOTES~cca58e41915b6f62:
Delete: mit-pthreads/NOTES
BitKeeper/deleted/.del-README~2c6f3523303f43d:
Delete: mit-pthreads/README
BitKeeper/deleted/.del-TODO-mysql~b9a2bcd2a89b5978:
Delete: mit-pthreads/TODO-mysql
BitKeeper/deleted/.del-Whats_New~1a2bc87c9dbcbdc7:
Delete: mit-pthreads/Whats_New
BitKeeper/deleted/.del-configure~3a559fe227f8c862:
Delete: mit-pthreads/configure
BitKeeper/deleted/.del-finger.c~d9bfc7077dd32680:
Delete: mit-pthreads/bin/finger/finger.c
BitKeeper/deleted/.del-net.c~890d8753919ddb8:
Delete: mit-pthreads/bin/finger/net.c
BitKeeper/deleted/.del-GNUmakefile.inc~cc8eaaca8fff1bf3:
Delete: mit-pthreads/gen/GNUmakefile.inc
BitKeeper/deleted/.del-GNUmakefile.in~8113ff7dc43666da:
Delete: mit-pthreads/config/GNUmakefile.in
BitKeeper/deleted/.del-Makefile.inc~60b385fe35d2772b:
Delete: mit-pthreads/gen/Makefile.inc
BitKeeper/deleted/.del-Makefile.in~8d3d048cd14f625d:
Delete: mit-pthreads/config/Makefile.in
BitKeeper/deleted/.del-acconfig.h~ae65211ac16516de:
Delete: mit-pthreads/config/acconfig.h
BitKeeper/deleted/.del-aclocal.m4~440953e8e022a3c1:
Delete: mit-pthreads/config/aclocal.m4
BitKeeper/deleted/.del-config.flags.in~d9f6e7aaeefa55b5:
Delete: mit-pthreads/config/config.flags.in
BitKeeper/deleted/.del-config.guess~cc5ba3ed9ced8a46:
Delete: mit-pthreads/config/config.guess
BitKeeper/deleted/.del-config.h.in~2ebc16675e442c0:
Delete: mit-pthreads/config/config.h.in
BitKeeper/deleted/.del-config.sub~468650a464e6eb7b:
Delete: mit-pthreads/config/config.sub
BitKeeper/deleted/.del-configure.in~d5a28eb1d1406fd3:
Delete: mit-pthreads/config/configure.in
BitKeeper/deleted/.del-configure.org~aabe00455f0cd1cd:
Delete: mit-pthreads/config/configure.org
BitKeeper/deleted/.del-configure~c1c1fba4cdc814dc:
Delete: mit-pthreads/config/configure
BitKeeper/deleted/.del-ctime.c~1746a59dfc7ef159:
Delete: mit-pthreads/gen/ctime.c
BitKeeper/deleted/.del-difftime.c~8fcfd3b6a3f3cdc9:
Delete: mit-pthreads/gen/difftime.c
BitKeeper/deleted/.del-directory.c~87f9c47e6d89abd0:
Delete: mit-pthreads/gen/directory.c
BitKeeper/deleted/.del-eprintf.c~3eb1d8b26d616265:
Delete: mit-pthreads/gen/eprintf.c
BitKeeper/deleted/.del-getcwd.c~7e2516ce4dc89e2:
Delete: mit-pthreads/gen/getcwd.c
BitKeeper/deleted/.del-getpwent.c~6f9f6ed37d5888c:
Delete: mit-pthreads/gen/getpwent.c
BitKeeper/deleted/.del-install-sh~b6baadd5cf69d54b:
Delete: mit-pthreads/config/install-sh
BitKeeper/deleted/.del-Makefile.inc~53c822d25e7b7426:
Delete: mit-pthreads/include/Makefile.inc
BitKeeper/deleted/.del-dirent.h~b4403a204fb9aaff:
Delete: mit-pthreads/include/dirent.h
BitKeeper/deleted/.del-endian.h~df2abfe7d3f073a8:
Delete: mit-pthreads/include/endian.h
BitKeeper/deleted/.del-errno.h~f042931b89230632:
Delete: mit-pthreads/include/errno.h
BitKeeper/deleted/.del-getpwnamuid.c~6e5cfc569738e4d:
Delete: mit-pthreads/gen/getpwnamuid.c
BitKeeper/deleted/.del-getwd.c~bf66001f695f6f1c:
Delete: mit-pthreads/gen/getwd.c
BitKeeper/deleted/.del-isatty.c~68a84b6415796322:
Delete: mit-pthreads/gen/isatty.c
BitKeeper/deleted/.del-math.h~1012648763b16666:
Delete: mit-pthreads/include/math.h
BitKeeper/deleted/.del-netdb.h~3f851aec6857840:
Delete: mit-pthreads/include/netdb.h
BitKeeper/deleted/.del-popen.c~bd8b11429808e0a9:
Delete: mit-pthreads/gen/popen.c
BitKeeper/deleted/.del-pthread.h~99c0d8a4e3137194:
Delete: mit-pthreads/include/pthread.h
BitKeeper/deleted/.del-pwd.h~64f4ad8cc223d808:
Delete: mit-pthreads/include/pwd.h
BitKeeper/deleted/.del-pwd_internal.c~19415ce777642acd:
Delete: mit-pthreads/gen/pwd_internal.c
BitKeeper/deleted/.del-pwd_internal.h~fac81276cc5b43fa:
Delete: mit-pthreads/gen/pwd_internal.h
BitKeeper/deleted/.del-resolv.h~4dbe70503fae0f80:
Delete: mit-pthreads/include/resolv.h
BitKeeper/deleted/.del-sched.h~aeae7302929ed88c:
Delete: mit-pthreads/include/sched.h
BitKeeper/deleted/.del-semaphore.h~2eb1e2f33a1ecf8:
Delete: mit-pthreads/include/semaphore.h
BitKeeper/deleted/.del-signal.h~d85d7c3b64ec1c91:
Delete: mit-pthreads/include/signal.h
BitKeeper/deleted/.del-syslog.c~e644a1f117689095:
Delete: mit-pthreads/gen/syslog.c
BitKeeper/deleted/.del-time.c~d1acd7761c02bfd1:
Delete: mit-pthreads/gen/time.c
BitKeeper/deleted/.del-ttyname.c~e55e94e55d204d4b:
Delete: mit-pthreads/gen/ttyname.c
BitKeeper/deleted/.del-ac-types.h~edd84b761b722949:
Delete: mit-pthreads/include/pthread/ac-types.h
BitKeeper/deleted/.del-cleanup.h~85623532b472039f:
Delete: mit-pthreads/include/pthread/cleanup.h
BitKeeper/deleted/.del-inet.h~a63ed77697f19bfd:
Delete: mit-pthreads/include/arpa/inet.h
BitKeeper/deleted/.del-nameser.h~e3eb676c417a4f2b:
Delete: mit-pthreads/include/arpa/nameser.h
BitKeeper/deleted/.del-stdio.h~268fee8536543aae:
Delete: mit-pthreads/include/stdio.h
BitKeeper/deleted/.del-stdlib.h~573ed67cae4670fb:
Delete: mit-pthreads/include/stdlib.h
BitKeeper/deleted/.del-string.h~4ac258c0d05deb95:
Delete: mit-pthreads/include/string.h
BitKeeper/deleted/.del-syslog.h~48f4bbe61f2f6a1d:
Delete: mit-pthreads/include/syslog.h
BitKeeper/deleted/.del-time.h~cceecd3939b80019:
Delete: mit-pthreads/include/time.h
BitKeeper/deleted/.del-timers.h~fabeca844cf2ff84:
Delete: mit-pthreads/include/timers.h
BitKeeper/deleted/.del-tzfile.h~79ddeb91abf126d7:
Delete: mit-pthreads/include/tzfile.h
BitKeeper/deleted/.del-unistd.h~8fde2359994207a0:
Delete: mit-pthreads/include/unistd.h
BitKeeper/deleted/.del-cond.h~89084ed43c0e3ac3:
Delete: mit-pthreads/include/pthread/cond.h
BitKeeper/deleted/.del-config.h~f46dd3c48bcc94ab:
Delete: mit-pthreads/include/pthread/config.h
BitKeeper/deleted/.del-debug_out.h~3f8b4671b82ed761:
Delete: mit-pthreads/include/pthread/debug_out.h
BitKeeper/deleted/.del-fd.h~c8f4e3be3bb5f5f3:
Delete: mit-pthreads/include/pthread/fd.h
BitKeeper/deleted/.del-fd_pipe.h~e0e1fafe68ce5368:
Delete: mit-pthreads/include/pthread/fd_pipe.h
BitKeeper/deleted/.del-kernel.h~5c59b74afd2139ab:
Delete: mit-pthreads/include/pthread/kernel.h
BitKeeper/deleted/.del-kthread.h~9c0c9a01764c400c:
Delete: mit-pthreads/include/pthread/kthread.h
BitKeeper/deleted/.del-mutex.h~2edf4a715b9e0032:
Delete: mit-pthreads/include/pthread/mutex.h
BitKeeper/deleted/.del-paths.h~a4c8285ee0e963f:
Delete: mit-pthreads/include/pthread/paths.h
BitKeeper/deleted/.del-prio_queue.h~76669b4c6cb1e371:
Delete: mit-pthreads/include/pthread/prio_queue.h
BitKeeper/deleted/.del-pthread_attr.h~b2fe2e555ebbab55:
Delete: mit-pthreads/include/pthread/pthread_attr.h
BitKeeper/deleted/.del-pthread_once.h~4a2f150b8fa74b4:
Delete: mit-pthreads/include/pthread/pthread_once.h
BitKeeper/deleted/.del-queue.h~9f3df11d262d8f44:
Delete: mit-pthreads/include/pthread/queue.h
BitKeeper/deleted/.del-sleep.h~460112c1e799ea50:
Delete: mit-pthreads/include/pthread/sleep.h
BitKeeper/deleted/.del-specific.h~2fe93df576506f20:
Delete: mit-pthreads/include/pthread/specific.h
BitKeeper/deleted/.del-state.def~e44c35c923990db:
Delete: mit-pthreads/include/pthread/state.def
BitKeeper/deleted/.del-types.h~a01c883092a76f84:
Delete: mit-pthreads/include/pthread/types.h
BitKeeper/deleted/.del-unistd.h~340d2c229d6178d7:
Delete: mit-pthreads/include/pthread/unistd.h
BitKeeper/deleted/.del-util.h~6e3b0563ae30b12d:
Delete: mit-pthreads/include/pthread/util.h
BitKeeper/deleted/.del-.cvsignore~79fd7b42137518a2:
Delete: mit-pthreads/lib/libpthreadutil/.cvsignore
BitKeeper/deleted/.del-.cvsignore~9a9597e1cddb1f1c:
Delete: mit-pthreads/lib/.cvsignore
BitKeeper/deleted/.del-Makefile.in~2e716f26575950cf:
Delete: mit-pthreads/lib/Makefile.in
BitKeeper/deleted/.del-Makefile.in~b24eca19a0e939ad:
Delete: mit-pthreads/lib/libpthreadutil/Makefile.in
BitKeeper/deleted/.del-engine-alpha-netbsd-1.1.c~2d9b8143d9c6e1fd:
Delete: mit-pthreads/machdep/engine-alpha-netbsd-1.1.c
BitKeeper/deleted/.del-engine-alpha-netbsd-1.1.h~c7971aaae9ed2909:
Delete: mit-pthreads/machdep/engine-alpha-netbsd-1.1.h
BitKeeper/deleted/.del-engine-alpha-netbsd-1.3.c~87f983ba7d8ccb00:
Delete: mit-pthreads/machdep/engine-alpha-netbsd-1.3.c
BitKeeper/deleted/.del-engine-alpha-netbsd-1.3.h~5988a19574567f7a:
Delete: mit-pthreads/machdep/engine-alpha-netbsd-1.3.h
BitKeeper/deleted/.del-engine-alpha-osf1.c~fe229ec950e34fe:
Delete: mit-pthreads/machdep/engine-alpha-osf1.c
BitKeeper/deleted/.del-engine-alpha-osf1.h~ad5b2978d5248f2d:
Delete: mit-pthreads/machdep/engine-alpha-osf1.h
BitKeeper/deleted/.del-engine-arm32-netbsd-1.3.c~1fb10cea8b25bbb6:
Delete: mit-pthreads/machdep/engine-arm32-netbsd-1.3.c
BitKeeper/deleted/.del-pthread_atexit.c~828d0386e20684da:
Delete: mit-pthreads/lib/libpthreadutil/pthread_atexit.c
BitKeeper/deleted/.del-pthread_tad.c~55ee53d76eed654d:
Delete: mit-pthreads/lib/libpthreadutil/pthread_tad.c
BitKeeper/deleted/.del-pthreadutil.h~2d8fd7687b4751e5:
Delete: mit-pthreads/lib/libpthreadutil/pthreadutil.h
BitKeeper/deleted/.del-version.h~db5bd05a5cecf21b:
Delete: mit-pthreads/include/pthread/version.h
BitKeeper/deleted/.del-xtypes.h~faf0e8127e76eb07:
Delete: mit-pthreads/include/pthread/xtypes.h
BitKeeper/deleted/.del-engine-arm32-netbsd-1.3.h~7f579a79c1a651e0:
Delete: mit-pthreads/machdep/engine-arm32-netbsd-1.3.h
BitKeeper/deleted/.del-engine-hppa-hpux-10.20.c~9f88575f8150fa54:
Delete: mit-pthreads/machdep/engine-hppa-hpux-10.20.c
BitKeeper/deleted/.del-engine-hppa-hpux-10.20.h~8a8103747c026f34:
Delete: mit-pthreads/machdep/engine-hppa-hpux-10.20.h
BitKeeper/deleted/.del-engine-hppa-hpux-9.03.c~de77b00048fb8d0a:
Delete: mit-pthreads/machdep/engine-hppa-hpux-9.03.c
BitKeeper/deleted/.del-engine-hppa-hpux-9.03.h~5e992ed47edbe9cd:
Delete: mit-pthreads/machdep/engine-hppa-hpux-9.03.h
BitKeeper/deleted/.del-engine-i386-bsdi-1.1.c~a0a970d42d8d4560:
Delete: mit-pthreads/machdep/engine-i386-bsdi-1.1.c
BitKeeper/deleted/.del-engine-i386-bsdi-1.1.h~9016a3781b5bfb1:
Delete: mit-pthreads/machdep/engine-i386-bsdi-1.1.h
BitKeeper/deleted/.del-engine-i386-bsdi-2.0.c~ce085ef56669e7e1:
Delete: mit-pthreads/machdep/engine-i386-bsdi-2.0.c
BitKeeper/deleted/.del-engine-i386-bsdi-2.0.h~e430992d6164c18b:
Delete: mit-pthreads/machdep/engine-i386-bsdi-2.0.h
BitKeeper/deleted/.del-engine-i386-freebsd-1.1.c~38bd0c4cf0ad5067:
Delete: mit-pthreads/machdep/engine-i386-freebsd-1.1.c
BitKeeper/deleted/.del-engine-i386-freebsd-1.1.h~3f0e0174a53a22cc:
Delete: mit-pthreads/machdep/engine-i386-freebsd-1.1.h
BitKeeper/deleted/.del-engine-i386-freebsd-2.0.c~47d10418ad5b7397:
Delete: mit-pthreads/machdep/engine-i386-freebsd-2.0.c
BitKeeper/deleted/.del-engine-i386-freebsd-2.0.h~6c8c4e7665b78151:
Delete: mit-pthreads/machdep/engine-i386-freebsd-2.0.h
BitKeeper/deleted/.del-engine-i386-linux-1.0.c~3e7b1cb3daa35ef:
Delete: mit-pthreads/machdep/engine-i386-linux-1.0.c
BitKeeper/deleted/.del-engine-i386-linux-1.0.h~6090b2c7a4bd4562:
Delete: mit-pthreads/machdep/engine-i386-linux-1.0.h
BitKeeper/deleted/.del-engine-i386-linux-2.0.c~371a0bcce78b6075:
Delete: mit-pthreads/machdep/engine-i386-linux-2.0.c
BitKeeper/deleted/.del-engine-i386-linux-2.0.h~52d63c46fcc28d2d:
Delete: mit-pthreads/machdep/engine-i386-linux-2.0.h
BitKeeper/deleted/.del-engine-i386-netbsd-0.9.c~984b54ffe45e55d3:
Delete: mit-pthreads/machdep/engine-i386-netbsd-0.9.c
BitKeeper/deleted/.del-engine-i386-netbsd-0.9.h~a9f4aeb4e163a5dc:
Delete: mit-pthreads/machdep/engine-i386-netbsd-0.9.h
BitKeeper/deleted/.del-engine-i386-netbsd-1.0.c~d64bdc3f3009e8d2:
Delete: mit-pthreads/machdep/engine-i386-netbsd-1.0.c
BitKeeper/deleted/.del-engine-i386-netbsd-1.0.h~c0bbc3682acb8cf9:
Delete: mit-pthreads/machdep/engine-i386-netbsd-1.0.h
BitKeeper/deleted/.del-engine-i386-netbsd-1.3.c~d436ee7868b9ac45:
Delete: mit-pthreads/machdep/engine-i386-netbsd-1.3.c
BitKeeper/deleted/.del-engine-i386-netbsd-1.3.h~2624c928f678d530:
Delete: mit-pthreads/machdep/engine-i386-netbsd-1.3.h
BitKeeper/deleted/.del-engine-i386-openbsd-2.0.c~863e72d3565dc90:
Delete: mit-pthreads/machdep/engine-i386-openbsd-2.0.c
BitKeeper/deleted/.del-engine-i386-openbsd-2.0.h~2c30bad4202a7a1b:
Delete: mit-pthreads/machdep/engine-i386-openbsd-2.0.h
BitKeeper/deleted/.del-engine-i386-sco-3.2v5.c~e3f53e64977b2392:
Delete: mit-pthreads/machdep/engine-i386-sco-3.2v5.c
BitKeeper/deleted/.del-engine-i386-sco-3.2v5.h~36d7f2fda048bb2f:
Delete: mit-pthreads/machdep/engine-i386-sco-3.2v5.h
BitKeeper/deleted/.del-engine-ip22-irix-5.2.c~5f55cf23ba3e6865:
Delete: mit-pthreads/machdep/engine-ip22-irix-5.2.c
BitKeeper/deleted/.del-engine-ip22-irix-5.2.h~b405b4d8dd0c7942:
Delete: mit-pthreads/machdep/engine-ip22-irix-5.2.h
BitKeeper/deleted/.del-engine-m68000-netbsd.c~19426d2266f34bd7:
Delete: mit-pthreads/machdep/engine-m68000-netbsd.c
BitKeeper/deleted/.del-engine-m68000-netbsd.h~aa596bf4e73eb4c6:
Delete: mit-pthreads/machdep/engine-m68000-netbsd.h
BitKeeper/deleted/.del-engine-powerpc-netbsd.c~fe674eea3ea127e6:
Delete: mit-pthreads/machdep/engine-powerpc-netbsd.c
BitKeeper/deleted/.del-engine-powerpc-netbsd.h~176c0d4c31112c15:
Delete: mit-pthreads/machdep/engine-powerpc-netbsd.h
BitKeeper/deleted/.del-engine-r2000-ultrix-4.2.c~504baa0c62d3409:
Delete: mit-pthreads/machdep/engine-r2000-ultrix-4.2.c
BitKeeper/deleted/.del-engine-r2000-ultrix-4.2.h~49b6c624fb8fab58:
Delete: mit-pthreads/machdep/engine-r2000-ultrix-4.2.h
BitKeeper/deleted/.del-engine-romp-bsd.c~a17f57147584496f:
Delete: mit-pthreads/machdep/engine-romp-bsd.c
BitKeeper/deleted/.del-engine-romp-bsd.h~746244e2d1708fd9:
Delete: mit-pthreads/machdep/engine-romp-bsd.h
BitKeeper/deleted/.del-engine-sparc-netbsd-1.3.c~e562c8ea469673bc:
Delete: mit-pthreads/machdep/engine-sparc-netbsd-1.3.c
BitKeeper/deleted/.del-engine-sparc-netbsd-1.3.h~93d25ae52817e7fb:
Delete: mit-pthreads/machdep/engine-sparc-netbsd-1.3.h
BitKeeper/deleted/.del-engine-sparc-sunos-4.1.3.c~e961c84dc5ccaf5c:
Delete: mit-pthreads/machdep/engine-sparc-sunos-4.1.3.c
BitKeeper/deleted/.del-engine-sparc-sunos-4.1.3.h~ae2d208a62106a5b:
Delete: mit-pthreads/machdep/engine-sparc-sunos-4.1.3.h
BitKeeper/deleted/.del-engine-sparc-sunos-5.3.c~8cfae62c744dcb91:
Delete: mit-pthreads/machdep/engine-sparc-sunos-5.3.c
BitKeeper/deleted/.del-engine-sparc-sunos-5.3.h~5bd0136c1a800b0e:
Delete: mit-pthreads/machdep/engine-sparc-sunos-5.3.h
BitKeeper/deleted/.del-posix-alpha-osf1.h~7f13470618e01604:
Delete: mit-pthreads/machdep/posix-alpha-osf1.h
BitKeeper/deleted/.del-posix-bsdi-1.1.h~3394ff495db6e0f5:
Delete: mit-pthreads/machdep/posix-bsdi-1.1.h
BitKeeper/deleted/.del-posix-bsdi-2.0.h~928bbbb5d70284eb:
Delete: mit-pthreads/machdep/posix-bsdi-2.0.h
BitKeeper/deleted/.del-posix-freebsd-1.1.h~35de18838eafff32:
Delete: mit-pthreads/machdep/posix-freebsd-1.1.h
BitKeeper/deleted/.del-posix-freebsd-2.0.h~fade0be685df8d4d:
Delete: mit-pthreads/machdep/posix-freebsd-2.0.h
BitKeeper/deleted/.del-posix-hpux-10.20.h~feabff6198e09ab:
Delete: mit-pthreads/machdep/posix-hpux-10.20.h
BitKeeper/deleted/.del-posix-hpux-9.03.h~c0da92b4cea5c01b:
Delete: mit-pthreads/machdep/posix-hpux-9.03.h
BitKeeper/deleted/.del-posix-i386-sco-3.2v5.h~19dcf4466648057d:
Delete: mit-pthreads/machdep/posix-i386-sco-3.2v5.h
BitKeeper/deleted/.del-posix-irix-5.2.h~663192173ee6c05:
Delete: mit-pthreads/machdep/posix-irix-5.2.h
BitKeeper/deleted/.del-posix-linux-1.0.h~2babadadda3bb7ab:
Delete: mit-pthreads/machdep/posix-linux-1.0.h
BitKeeper/deleted/.del-posix-linux-2.0.h~c994bcc7f9dd71ab:
Delete: mit-pthreads/machdep/posix-linux-2.0.h
BitKeeper/deleted/.del-posix-netbsd-0.9.h~8b876d0082e8a48a:
Delete: mit-pthreads/machdep/posix-netbsd-0.9.h
BitKeeper/deleted/.del-posix-netbsd-1.0.h~d0aedf926f993d7e:
Delete: mit-pthreads/machdep/posix-netbsd-1.0.h
BitKeeper/deleted/.del-posix-netbsd-1.1.h~21ed3d55129fc075:
Delete: mit-pthreads/machdep/posix-netbsd-1.1.h
BitKeeper/deleted/.del-posix-openbsd-2.0.h~c0710cea41dc44b2:
Delete: mit-pthreads/machdep/posix-openbsd-2.0.h
BitKeeper/deleted/.del-posix-romp-bsd.h~76c61edb143e4d11:
Delete: mit-pthreads/machdep/posix-romp-bsd.h
BitKeeper/deleted/.del-posix-sco-3.2v5.h~92a9a62e1b6533b8:
Delete: mit-pthreads/machdep/posix-sco-3.2v5.h
BitKeeper/deleted/.del-posix-sunos-4.1.3.h~4a877434cb08df85:
Delete: mit-pthreads/machdep/posix-sunos-4.1.3.h
BitKeeper/deleted/.del-posix-sunos-5.3.h~e0b4f8fdc4385ed2:
Delete: mit-pthreads/machdep/posix-sunos-5.3.h
BitKeeper/deleted/.del-posix-sunos-5.5.h~d57a228497612296:
Delete: mit-pthreads/machdep/posix-sunos-5.5.h
BitKeeper/deleted/.del-posix-ultrix-4.2.h~923f354a8fa75e14:
Delete: mit-pthreads/machdep/posix-ultrix-4.2.h
BitKeeper/deleted/.del-syscall-alpha-netbsd-1.1.S~14ec608a837b0fc:
Delete: mit-pthreads/machdep/syscall-alpha-netbsd-1.1.S
BitKeeper/deleted/.del-syscall-alpha-netbsd-1.3.S~d7bf76b7ab47865f:
Delete: mit-pthreads/machdep/syscall-alpha-netbsd-1.3.S
BitKeeper/deleted/.del-syscall-alpha-osf1.S~16685703701fbc17:
Delete: mit-pthreads/machdep/syscall-alpha-osf1.S
BitKeeper/deleted/.del-syscall-arm32-netbsd-1.3.S~aeb8ab0f67bb0c69:
Delete: mit-pthreads/machdep/syscall-arm32-netbsd-1.3.S
BitKeeper/deleted/.del-syscall-hppa-hpux-10.20.S~6775dfed472eb1eb:
Delete: mit-pthreads/machdep/syscall-hppa-hpux-10.20.S
BitKeeper/deleted/.del-syscall-hppa-hpux-9.03.S~5bb679d120026c41:
Delete: mit-pthreads/machdep/syscall-hppa-hpux-9.03.S
BitKeeper/deleted/.del-syscall-i386-bsdi-1.1.S~45c70ac53733437:
Delete: mit-pthreads/machdep/syscall-i386-bsdi-1.1.S
BitKeeper/deleted/.del-syscall-i386-bsdi-2.0.S~812eb2043be8ece4:
Delete: mit-pthreads/machdep/syscall-i386-bsdi-2.0.S
BitKeeper/deleted/.del-syscall-i386-freebsd-1.1.S~9ffefb321685b1d:
Delete: mit-pthreads/machdep/syscall-i386-freebsd-1.1.S
BitKeeper/deleted/.del-syscall-i386-freebsd-2.0.S~295def3898c2be08:
Delete: mit-pthreads/machdep/syscall-i386-freebsd-2.0.S
BitKeeper/deleted/.del-syscall-i386-linux-1.0.S~a8ad20f4623dce10:
Delete: mit-pthreads/machdep/syscall-i386-linux-1.0.S
BitKeeper/deleted/.del-syscall-i386-linux-2.0.S~8218148af1b1f7f7:
Delete: mit-pthreads/machdep/syscall-i386-linux-2.0.S
BitKeeper/deleted/.del-syscall-i386-netbsd-0.9.S~bd8d0775f344b6b4:
Delete: mit-pthreads/machdep/syscall-i386-netbsd-0.9.S
BitKeeper/deleted/.del-syscall-i386-netbsd-1.0.S~13c2124947084db8:
Delete: mit-pthreads/machdep/syscall-i386-netbsd-1.0.S
BitKeeper/deleted/.del-syscall-i386-netbsd-1.1.S~87626416c4f55e50:
Delete: mit-pthreads/machdep/syscall-i386-netbsd-1.1.S
BitKeeper/deleted/.del-syscall-i386-netbsd-1.3.S~c26ec7dc29500e8d:
Delete: mit-pthreads/machdep/syscall-i386-netbsd-1.3.S
BitKeeper/deleted/.del-syscall-i386-openbsd-2.0.S~c4888f2dd7ad20aa:
Delete: mit-pthreads/machdep/syscall-i386-openbsd-2.0.S
BitKeeper/deleted/.del-syscall-i386-sco-3.2v5.S~28c807b347601d6c:
Delete: mit-pthreads/machdep/syscall-i386-sco-3.2v5.S
BitKeeper/deleted/.del-syscall-ip22-irix-5.2.S~d95112e2be2a2271:
Delete: mit-pthreads/machdep/syscall-ip22-irix-5.2.S
BitKeeper/deleted/.del-syscall-m68000-netbsd.S~a98f9ee17a9ab3dc:
Delete: mit-pthreads/machdep/syscall-m68000-netbsd.S
BitKeeper/deleted/.del-syscall-powerpc-netbsd.S~c0dfb5a7e40f8ee4:
Delete: mit-pthreads/machdep/syscall-powerpc-netbsd.S
BitKeeper/deleted/.del-syscall-r2000-ultrix-4.2.S~5c82791ae1ae0056:
Delete: mit-pthreads/machdep/syscall-r2000-ultrix-4.2.S
BitKeeper/deleted/.del-syscall-romp-bsd.S~d483afbae640c555:
Delete: mit-pthreads/machdep/syscall-romp-bsd.S
BitKeeper/deleted/.del-syscall-sparc-netbsd-1.1.S~a2f284a2e6808103:
Delete: mit-pthreads/machdep/syscall-sparc-netbsd-1.1.S
BitKeeper/deleted/.del-syscall-sparc-netbsd-1.3.S~f557eb09e3b13294:
Delete: mit-pthreads/machdep/syscall-sparc-netbsd-1.3.S
BitKeeper/deleted/.del-syscall-sparc-sunos-4.1.3.S~d25b0c101b2f4870:
Delete: mit-pthreads/machdep/syscall-sparc-sunos-4.1.3.S
BitKeeper/deleted/.del-syscall-sparc-sunos-5.3.S~50f022e320e0fe15:
Delete: mit-pthreads/machdep/syscall-sparc-sunos-5.3.S
BitKeeper/deleted/.del-syscall-sparc-sunos4.S~48a568fe371a1b86:
Delete: mit-pthreads/machdep/syscall-sparc-sunos4.S
BitKeeper/deleted/.del-syscall-template-alpha-netbsd-1.1.S~2e4f934dcfcf5c30:
Delete: mit-pthreads/machdep/syscall-template-alpha-netbsd-1.1.S
BitKeeper/deleted/.del-syscall-template-alpha-netbsd-1.3.S~85722242d7be46d2:
Delete: mit-pthreads/machdep/syscall-template-alpha-netbsd-1.3.S
BitKeeper/deleted/.del-syscall-template-alpha-osf1.S~626b166b96f743d4:
Delete: mit-pthreads/machdep/syscall-template-alpha-osf1.S
BitKeeper/deleted/.del-syscall-template-arm32-netbsd-1.3.S~ce50f9a4d40a1019:
Delete: mit-pthreads/machdep/syscall-template-arm32-netbsd-1.3.S
BitKeeper/deleted/.del-syscall-template-hppa-hpux-10.20.S~1a759e5dd7381cf9:
Delete: mit-pthreads/machdep/syscall-template-hppa-hpux-10.20.S
BitKeeper/deleted/.del-syscall-template-hppa-hpux-9.03.S~1e24b2a0b64c4e79:
Delete: mit-pthreads/machdep/syscall-template-hppa-hpux-9.03.S
BitKeeper/deleted/.del-syscall-template-i386-bsdi-2.0.S~ffdd2687c6389a4:
Delete: mit-pthreads/machdep/syscall-template-i386-bsdi-2.0.S
BitKeeper/deleted/.del-syscall-template-i386-freebsd-2.0.S~1e0e0935bf5a63ad:
Delete: mit-pthreads/machdep/syscall-template-i386-freebsd-2.0.S
BitKeeper/deleted/.del-syscall-template-i386-netbsd-1.1.S~96ac4ff77603432:
Delete: mit-pthreads/machdep/syscall-template-i386-netbsd-1.1.S
BitKeeper/deleted/.del-syscall-template-i386-netbsd-1.3.S~ec95ec09484aa795:
Delete: mit-pthreads/machdep/syscall-template-i386-netbsd-1.3.S
BitKeeper/deleted/.del-syscall-template-i386-netbsd1.0.S~77dff1ea1c85ef14:
Delete: mit-pthreads/machdep/syscall-template-i386-netbsd1.0.S
BitKeeper/deleted/.del-syscall-template-i386-openbsd-2.0.S~cda4723148853810:
Delete: mit-pthreads/machdep/syscall-template-i386-openbsd-2.0.S
BitKeeper/deleted/.del-syscall-template-i386-sco-3.2v5.S~16c3a952712e09c7:
Delete: mit-pthreads/machdep/syscall-template-i386-sco-3.2v5.S
BitKeeper/deleted/.del-syscall-template-ip22-irix-5.2.S~45aef8d1e72b448a:
Delete: mit-pthreads/machdep/syscall-template-ip22-irix-5.2.S
BitKeeper/deleted/.del-__math.h~15b04b4fa2119451:
Delete: mit-pthreads/machdep/alpha-osf1/__math.h
BitKeeper/deleted/.del-__signal.h~f8b0d1f813880467:
Delete: mit-pthreads/machdep/alpha-osf1/__signal.h
BitKeeper/deleted/.del-__stdio.h~428731ba8d7715b5:
Delete: mit-pthreads/machdep/alpha-osf1/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~3ca3c004f96c8339:
Delete: mit-pthreads/machdep/alpha-osf1/__stdlib.h
BitKeeper/deleted/.del-syscall-template-m68000-netbsd.S~f7249e58b4810f42:
Delete: mit-pthreads/machdep/syscall-template-m68000-netbsd.S
BitKeeper/deleted/.del-syscall-template-powerpc-netbsd.S~ffef50aac24750f:
Delete: mit-pthreads/machdep/syscall-template-powerpc-netbsd.S
BitKeeper/deleted/.del-syscall-template-r2000-ultrix-4.2.S~839a684b5abcf9b1:
Delete: mit-pthreads/machdep/syscall-template-r2000-ultrix-4.2.S
BitKeeper/deleted/.del-syscall-template-sparc-netbsd-1.1.S~39681d9e4d84ef44:
Delete: mit-pthreads/machdep/syscall-template-sparc-netbsd-1.1.S
BitKeeper/deleted/.del-syscall-template-sparc-netbsd-1.3.S~51708b7b4dbcf2ea:
Delete: mit-pthreads/machdep/syscall-template-sparc-netbsd-1.3.S
BitKeeper/deleted/.del-syscall-template-sparc-sunos-5.3.S~44ba83caa0e4b7c8:
Delete: mit-pthreads/machdep/syscall-template-sparc-sunos-5.3.S
BitKeeper/deleted/.del-syscall-template-sparc-sunos4.S~4ed7e9bc82afbfd9:
Delete: mit-pthreads/machdep/syscall-template-sparc-sunos4.S
BitKeeper/deleted/.del-unistd-i386-freebsd-1.1.h~347c3d4c28c3a05b:
Delete: mit-pthreads/machdep/unistd-i386-freebsd-1.1.h
BitKeeper/deleted/.del-unistd-i386-linux-1.0.h~1b5f2ac830798a93:
Delete: mit-pthreads/machdep/unistd-i386-linux-1.0.h
BitKeeper/deleted/.del-unistd-i386-linux-2.0.h~dc0bb0717bf84882:
Delete: mit-pthreads/machdep/unistd-i386-linux-2.0.h
BitKeeper/deleted/.del-unistd-sparc-sunos-4.1.3.h~4d905926cf8338cc:
Delete: mit-pthreads/machdep/unistd-sparc-sunos-4.1.3.h
BitKeeper/deleted/.del-__string.h~ec9484a687805eb1:
Delete: mit-pthreads/machdep/alpha-osf1/__string.h
BitKeeper/deleted/.del-__time.h~f502fef1c6db6dae:
Delete: mit-pthreads/machdep/alpha-osf1/__time.h
BitKeeper/deleted/.del-__unistd.h~ae4e6f255a8d79dd:
Delete: mit-pthreads/machdep/alpha-osf1/__unistd.h
BitKeeper/deleted/.del-cdefs.h~87c2e5b82f1fcc09:
Delete: mit-pthreads/machdep/alpha-osf1/cdefs.h
BitKeeper/deleted/.del-compat.h~52b01d0bf4e4e298:
Delete: mit-pthreads/machdep/bsdi-1.1/compat.h
BitKeeper/deleted/.del-compat.h~7fec282cd7f3bd61:
Delete: mit-pthreads/machdep/alpha-osf1/compat.h
BitKeeper/deleted/.del-dirent.h~a1fd0be117ea9ed2:
Delete: mit-pthreads/machdep/bsdi-1.1/dirent.h
BitKeeper/deleted/.del-dirent.h~e08226e22aaad039:
Delete: mit-pthreads/machdep/alpha-osf1/dirent.h
BitKeeper/deleted/.del-errno.h~979f508de2d9bb3b:
Delete: mit-pthreads/machdep/bsdi-1.1/errno.h
BitKeeper/deleted/.del-signal.h~43f59f54762d8210:
Delete: mit-pthreads/machdep/alpha-osf1/signal.h
BitKeeper/deleted/.del-socket.h~6e40df1a29574e4f:
Delete: mit-pthreads/machdep/bsdi-1.1/socket.h
BitKeeper/deleted/.del-socket.h~f8f9768648722dcc:
Delete: mit-pthreads/machdep/alpha-osf1/socket.h
BitKeeper/deleted/.del-timers.h~d13ee6ad9d841c5e:
Delete: mit-pthreads/machdep/alpha-osf1/timers.h
BitKeeper/deleted/.del-uio.h~9b68aaafc476b9a9:
Delete: mit-pthreads/machdep/alpha-osf1/uio.h
BitKeeper/deleted/.del-__math.h~cd5beee5de94a0e:
Delete: mit-pthreads/machdep/bsdi-2.0/__math.h
BitKeeper/deleted/.del-__path.h~83901ef036baf6b4:
Delete: mit-pthreads/machdep/bsdi-2.0/__path.h
BitKeeper/deleted/.del-__signal.h~f6f656d1f8a3fadd:
Delete: mit-pthreads/machdep/bsdi-2.0/__signal.h
BitKeeper/deleted/.del-__stdio.h~32de653064a5ad20:
Delete: mit-pthreads/machdep/bsdi-2.0/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~121ced69525a8e08:
Delete: mit-pthreads/machdep/bsdi-2.0/__stdlib.h
BitKeeper/deleted/.del-__string.h~2f2a363641a26456:
Delete: mit-pthreads/machdep/bsdi-2.0/__string.h
BitKeeper/deleted/.del-__time.h~6b1f520c52ab2cc2:
Delete: mit-pthreads/machdep/bsdi-2.0/__time.h
BitKeeper/deleted/.del-__unistd.h~6f9496e281708ee8:
Delete: mit-pthreads/machdep/bsdi-2.0/__unistd.h
BitKeeper/deleted/.del-compat.h~1a34f632db157280:
Delete: mit-pthreads/machdep/bsdi-2.0/compat.h
BitKeeper/deleted/.del-compat.h~aefef59c573b7ad:
Delete: mit-pthreads/machdep/freebsd-1.1/compat.h
BitKeeper/deleted/.del-dirent.h~ba968b4f68fe77d5:
Delete: mit-pthreads/machdep/bsdi-2.0/dirent.h
BitKeeper/deleted/.del-dirent.h~f549c8ad718b5da5:
Delete: mit-pthreads/machdep/freebsd-1.1/dirent.h
BitKeeper/deleted/.del-errno.h~a2ef6571ce6c0864:
Delete: mit-pthreads/machdep/bsdi-2.0/errno.h
BitKeeper/deleted/.del-time.h~802a6c67fb61730d:
Delete: mit-pthreads/machdep/bsdi-2.0/time.h
BitKeeper/deleted/.del-timers.h~368f9b52edff0b80:
Delete: mit-pthreads/machdep/bsdi-2.0/timers.h
BitKeeper/deleted/.del-timers.h~e8e3b79d75d5bd99:
Delete: mit-pthreads/machdep/bsdi-1.1/timers.h
BitKeeper/deleted/.del-wait.h~71ae84d3cca317a2:
Delete: mit-pthreads/machdep/bsdi-2.0/wait.h
BitKeeper/deleted/.del-__math.h~554947fbbef058c0:
Delete: mit-pthreads/machdep/hpux-10.20/__math.h
BitKeeper/deleted/.del-__math.h~71ce3165f97da287:
Delete: mit-pthreads/machdep/freebsd-2.0/__math.h
BitKeeper/deleted/.del-__path.h~a43311d5ed3c9054:
Delete: mit-pthreads/machdep/freebsd-2.0/__path.h
BitKeeper/deleted/.del-__signal.h~1186dafb42a1e3d:
Delete: mit-pthreads/machdep/freebsd-2.0/__signal.h
BitKeeper/deleted/.del-__stdio.h~621a5e318a6df9a5:
Delete: mit-pthreads/machdep/freebsd-2.0/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~34473aea608096f8:
Delete: mit-pthreads/machdep/freebsd-2.0/__stdlib.h
BitKeeper/deleted/.del-__string.h~e2f3a8d57a1c805:
Delete: mit-pthreads/machdep/freebsd-2.0/__string.h
BitKeeper/deleted/.del-__time.h~b62aaee925967261:
Delete: mit-pthreads/machdep/freebsd-2.0/__time.h
BitKeeper/deleted/.del-__unistd.h~3df3b536982c46f6:
Delete: mit-pthreads/machdep/freebsd-2.0/__unistd.h
BitKeeper/deleted/.del-compat.h~7e93a6511e0368bb:
Delete: mit-pthreads/machdep/freebsd-2.0/compat.h
BitKeeper/deleted/.del-dirent.h~15e4420affa07296:
Delete: mit-pthreads/machdep/freebsd-2.0/dirent.h
BitKeeper/deleted/.del-errno.h~b355076bdf73ba1f:
Delete: mit-pthreads/machdep/freebsd-2.0/errno.h
BitKeeper/deleted/.del-socket.h~e1eabb21fc3000c:
Delete: mit-pthreads/machdep/freebsd-1.1/socket.h
BitKeeper/deleted/.del-timers.h~50e98a30791a75a9:
Delete: mit-pthreads/machdep/freebsd-2.0/timers.h
BitKeeper/deleted/.del-timers.h~5b961287ab5e4632:
Delete: mit-pthreads/machdep/freebsd-1.1/timers.h
BitKeeper/deleted/.del-wait.h~7699c64c4b2033f4:
Delete: mit-pthreads/machdep/freebsd-2.0/wait.h
BitKeeper/deleted/.del-__math.h~a9b7c69effb4b6b0:
Delete: mit-pthreads/machdep/hpux-9.03/__math.h
BitKeeper/deleted/.del-__signal.h~674aea0d61cf1caf:
Delete: mit-pthreads/machdep/hpux-10.20/__signal.h
BitKeeper/deleted/.del-__stdio.h~467d728a76bee08f:
Delete: mit-pthreads/machdep/hpux-10.20/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~f74ea69b72460491:
Delete: mit-pthreads/machdep/hpux-10.20/__stdlib.h
BitKeeper/deleted/.del-__string.h~e368cbe5d7fab81:
Delete: mit-pthreads/machdep/hpux-10.20/__string.h
BitKeeper/deleted/.del-__time.h~3f68155e1fc3bddb:
Delete: mit-pthreads/machdep/hpux-10.20/__time.h
BitKeeper/deleted/.del-__unistd.h~e3876ae2d25dab7b:
Delete: mit-pthreads/machdep/hpux-10.20/__unistd.h
BitKeeper/deleted/.del-cdefs.h~99f84569799b9837:
Delete: mit-pthreads/machdep/hpux-10.20/cdefs.h
BitKeeper/deleted/.del-compat.h~77ba12465c3fec4:
Delete: mit-pthreads/machdep/hpux-10.20/compat.h
BitKeeper/deleted/.del-dirent.h~b1d03fe4585c984b:
Delete: mit-pthreads/machdep/hpux-10.20/dirent.h
BitKeeper/deleted/.del-socket.h~274f4737e51951eb:
Delete: mit-pthreads/machdep/hpux-10.20/socket.h
BitKeeper/deleted/.del-stdtypes.h~49aec7f8141364e8:
Delete: mit-pthreads/machdep/hpux-10.20/stdtypes.h
BitKeeper/deleted/.del-time.h~6f8660389338d56f:
Delete: mit-pthreads/machdep/hpux-10.20/time.h
BitKeeper/deleted/.del-timers.h~e10408d7283caac1:
Delete: mit-pthreads/machdep/hpux-10.20/timers.h
BitKeeper/deleted/.del-uio.h~97aa8505feabf63f:
Delete: mit-pthreads/machdep/hpux-10.20/uio.h
BitKeeper/deleted/.del-wait.h~2717b3a725c0c78e:
Delete: mit-pthreads/machdep/hpux-10.20/wait.h
BitKeeper/deleted/.del-__signal.h~6079a9091088a7bf:
Delete: mit-pthreads/machdep/hpux-9.03/__signal.h
BitKeeper/deleted/.del-__stdio.h~a7265f1b1054d740:
Delete: mit-pthreads/machdep/hpux-9.03/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~57ef945efa5bc75d:
Delete: mit-pthreads/machdep/hpux-9.03/__stdlib.h
BitKeeper/deleted/.del-__string.h~11b33535a4cf32b7:
Delete: mit-pthreads/machdep/hpux-9.03/__string.h
BitKeeper/deleted/.del-__time.h~594d32a8bf93554b:
Delete: mit-pthreads/machdep/hpux-9.03/__time.h
BitKeeper/deleted/.del-__unistd.h~d705d138894e1d1c:
Delete: mit-pthreads/machdep/hpux-9.03/__unistd.h
BitKeeper/deleted/.del-cdefs.h~491a067a681761ce:
Delete: mit-pthreads/machdep/hpux-9.03/cdefs.h
BitKeeper/deleted/.del-compat.h~f168a5565c3b43bb:
Delete: mit-pthreads/machdep/hpux-9.03/compat.h
BitKeeper/deleted/.del-dirent.h~710d5c444d542d9:
Delete: mit-pthreads/machdep/hpux-9.03/dirent.h
BitKeeper/deleted/.del-socket.h~f1a65b682ccf6bbc:
Delete: mit-pthreads/machdep/hpux-9.03/socket.h
BitKeeper/deleted/.del-stdtypes.h~41a60ff87e95605f:
Delete: mit-pthreads/machdep/hpux-9.03/stdtypes.h
BitKeeper/deleted/.del-time.h~34090d5b225a5c17:
Delete: mit-pthreads/machdep/hpux-9.03/time.h
BitKeeper/deleted/.del-timers.h~95da6603ee567405:
Delete: mit-pthreads/machdep/hpux-9.03/timers.h
BitKeeper/deleted/.del-uio.h~31bd44ffd071dd15:
Delete: mit-pthreads/machdep/hpux-9.03/uio.h
BitKeeper/deleted/.del-wait.h~88e8993e964e97b:
Delete: mit-pthreads/machdep/hpux-9.03/wait.h
BitKeeper/deleted/.del-__math.h~75bea3d988a6ab09:
Delete: mit-pthreads/machdep/linux-1.0/__math.h
BitKeeper/deleted/.del-__math.h~ba360a8521058b66:
Delete: mit-pthreads/machdep/irix-5.2/__math.h
BitKeeper/deleted/.del-__signal.h~a9681fc23aad1515:
Delete: mit-pthreads/machdep/irix-5.2/__signal.h
BitKeeper/deleted/.del-__stdio.h~f6dfefb5c7b220cd:
Delete: mit-pthreads/machdep/irix-5.2/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~fb0aede280a805b3:
Delete: mit-pthreads/machdep/irix-5.2/__stdlib.h
BitKeeper/deleted/.del-__string.h~f10481f085fbf020:
Delete: mit-pthreads/machdep/irix-5.2/__string.h
BitKeeper/deleted/.del-__time.h~ace3b7dcccfaf29d:
Delete: mit-pthreads/machdep/irix-5.2/__time.h
BitKeeper/deleted/.del-__unistd.h~73c5a1a4f69f09e5:
Delete: mit-pthreads/machdep/irix-5.2/__unistd.h
BitKeeper/deleted/.del-compat.h~c57379a39304c01b:
Delete: mit-pthreads/machdep/irix-5.2/compat.h
BitKeeper/deleted/.del-dirent.h~1ac25ca0f2ea673a:
Delete: mit-pthreads/machdep/irix-5.2/dirent.h
BitKeeper/deleted/.del-socket.h~ca1b9093bcd1ac1e:
Delete: mit-pthreads/machdep/irix-5.2/socket.h
BitKeeper/deleted/.del-timers.h~5c832b91c8421e72:
Delete: mit-pthreads/machdep/irix-5.2/timers.h
BitKeeper/deleted/.del-wait.h~ff32e2f8c67245eb:
Delete: mit-pthreads/machdep/irix-5.2/wait.h
BitKeeper/deleted/.del-__math.h~2b87a46b2ac4469e:
Delete: mit-pthreads/machdep/linux-2.0/__math.h
BitKeeper/deleted/.del-__path.h~7d0f9b2debf92ce0:
Delete: mit-pthreads/machdep/linux-1.0/__path.h
BitKeeper/deleted/.del-__signal.h~3609d76ab71353cf:
Delete: mit-pthreads/machdep/linux-1.0/__signal.h
BitKeeper/deleted/.del-__stdio.h~f031274aba4c7ec6:
Delete: mit-pthreads/machdep/linux-1.0/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~33ba2eaa1189ce34:
Delete: mit-pthreads/machdep/linux-1.0/__stdlib.h
BitKeeper/deleted/.del-__string.h~f498c0531c31c157:
Delete: mit-pthreads/machdep/linux-1.0/__string.h
BitKeeper/deleted/.del-__time.h~c15d569072cdec3e:
Delete: mit-pthreads/machdep/linux-1.0/__time.h
BitKeeper/deleted/.del-__unistd.h~38c981decd79b658:
Delete: mit-pthreads/machdep/linux-1.0/__unistd.h
BitKeeper/deleted/.del-cdefs.h~c54da7093a850ab:
Delete: mit-pthreads/machdep/linux-1.0/cdefs.h
BitKeeper/deleted/.del-compat.h~53add7404bc32c93:
Delete: mit-pthreads/machdep/linux-1.0/compat.h
BitKeeper/deleted/.del-dirent.h~85af6548e63fcada:
Delete: mit-pthreads/machdep/linux-1.0/dirent.h
BitKeeper/deleted/.del-errno.h~ecac4695ea97f1a1:
Delete: mit-pthreads/machdep/linux-1.0/errno.h
BitKeeper/deleted/.del-socket.h~d2cae391989eda40:
Delete: mit-pthreads/machdep/linux-1.0/socket.h
BitKeeper/deleted/.del-timers.h~b9842a896c577500:
Delete: mit-pthreads/machdep/linux-1.0/timers.h
BitKeeper/deleted/.del-uio.h~ee04ba559d3b4b91:
Delete: mit-pthreads/machdep/linux-1.0/uio.h
BitKeeper/deleted/.del-wait.h~d9108bf5cc1640d4:
Delete: mit-pthreads/machdep/linux-1.0/wait.h
BitKeeper/deleted/.del-__path.h~629032fdb33386fc:
Delete: mit-pthreads/machdep/linux-2.0/__path.h
BitKeeper/deleted/.del-__signal.h~5d9d2e161a5a57ad:
Delete: mit-pthreads/machdep/linux-2.0/__signal.h
BitKeeper/deleted/.del-__stdio.h~a60bbc64f53edd32:
Delete: mit-pthreads/machdep/linux-2.0/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~952526244aa83fe:
Delete: mit-pthreads/machdep/linux-2.0/__stdlib.h
BitKeeper/deleted/.del-__string.h~9b6c7d1b4fd30306:
Delete: mit-pthreads/machdep/linux-2.0/__string.h
BitKeeper/deleted/.del-__time.h~dff461939b26c95a:
Delete: mit-pthreads/machdep/linux-2.0/__time.h
BitKeeper/deleted/.del-__unistd.h~d9343d6a349b5a16:
Delete: mit-pthreads/machdep/linux-2.0/__unistd.h
BitKeeper/deleted/.del-cdefs.h~94199ec3721dc381:
Delete: mit-pthreads/machdep/linux-2.0/cdefs.h
BitKeeper/deleted/.del-compat.h~5a421d11e9d12e65:
Delete: mit-pthreads/machdep/linux-2.0/compat.h
BitKeeper/deleted/.del-dirent.h~7eb24a6fb2bc26b:
Delete: mit-pthreads/machdep/linux-2.0/dirent.h
BitKeeper/deleted/.del-errno.h~907c0213b5c8c71d:
Delete: mit-pthreads/machdep/linux-2.0/errno.h
BitKeeper/deleted/.del-socket.h~65dffae712cc7a4d:
Delete: mit-pthreads/machdep/linux-2.0/socket.h
BitKeeper/deleted/.del-socketcall.h~34e021b91cc03bc2:
Delete: mit-pthreads/machdep/linux-2.0/socketcall.h
BitKeeper/deleted/.del-__math.h~99c4f20b9d416cb1:
Delete: mit-pthreads/machdep/netbsd-1.0/__math.h
BitKeeper/deleted/.del-__path.h~bf0a9e35f9dbefd4:
Delete: mit-pthreads/machdep/netbsd-1.0/__path.h
BitKeeper/deleted/.del-__signal.h~9646c7d6ea985cf3:
Delete: mit-pthreads/machdep/netbsd-1.0/__signal.h
BitKeeper/deleted/.del-__stdio.h~7ba6a90423a0d355:
Delete: mit-pthreads/machdep/netbsd-1.0/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~ab59fbbdc01c463f:
Delete: mit-pthreads/machdep/netbsd-1.0/__stdlib.h
BitKeeper/deleted/.del-__string.h~d93469aa75855599:
Delete: mit-pthreads/machdep/netbsd-1.0/__string.h
BitKeeper/deleted/.del-__time.h~4a40cffe18fb2920:
Delete: mit-pthreads/machdep/netbsd-1.0/__time.h
BitKeeper/deleted/.del-__unistd.h~e20583fb72d22ec3:
Delete: mit-pthreads/machdep/netbsd-1.0/__unistd.h
BitKeeper/deleted/.del-dirent.h~2ffeb17927568fb5:
Delete: mit-pthreads/machdep/netbsd-0.9/dirent.h
BitKeeper/deleted/.del-local_lim.h~4cc6a9341897e06b:
Delete: mit-pthreads/machdep/linux-2.0/extra/bits/local_lim.h
BitKeeper/deleted/.del-pthreadtypes.h~31e0630ed4cd1cfb:
Delete: mit-pthreads/machdep/linux-2.0/extra/bits/pthreadtypes.h
BitKeeper/deleted/.del-socket.h~eb2bcdd2ad9b8f95:
Delete: mit-pthreads/machdep/linux-2.0/extra/bits/socket.h
BitKeeper/deleted/.del-timers.h~f305cc7a34f32bf4:
Delete: mit-pthreads/machdep/linux-2.0/timers.h
BitKeeper/deleted/.del-uio.h~99024eeb4fe67cca:
Delete: mit-pthreads/machdep/linux-2.0/uio.h
BitKeeper/deleted/.del-wait.h~fa49d51da2bd9893:
Delete: mit-pthreads/machdep/linux-2.0/wait.h
BitKeeper/deleted/.del-__math.h~3bafece8cbc49e05:
Delete: mit-pthreads/machdep/netbsd-1.1/__math.h
BitKeeper/deleted/.del-__path.h~ec6377dc7fca0a39:
Delete: mit-pthreads/machdep/netbsd-1.1/__path.h
BitKeeper/deleted/.del-__signal.h~6eda764fc8c19cc3:
Delete: mit-pthreads/machdep/netbsd-1.1/__signal.h
BitKeeper/deleted/.del-compat.h~77daa1d3919b311:
Delete: mit-pthreads/machdep/netbsd-1.0/compat.h
BitKeeper/deleted/.del-dirent.h~e6e3f10bc2379480:
Delete: mit-pthreads/machdep/netbsd-1.0/dirent.h
BitKeeper/deleted/.del-errno.h~2a5fe7e8cda1dedc:
Delete: mit-pthreads/machdep/netbsd-1.0/errno.h
BitKeeper/deleted/.del-time.h~91c5e80faa0f67d8:
Delete: mit-pthreads/machdep/netbsd-1.0/time.h
BitKeeper/deleted/.del-timers.h~4ad15510fb8387db:
Delete: mit-pthreads/machdep/netbsd-1.0/timers.h
BitKeeper/deleted/.del-wait.h~53a2320a855a861f:
Delete: mit-pthreads/machdep/netbsd-1.0/wait.h
BitKeeper/deleted/.del-__math.h~1b43362eb0dd8be5:
Delete: mit-pthreads/machdep/openbsd-2.0/__math.h
BitKeeper/deleted/.del-__stdio.h~6695982644674dfd:
Delete: mit-pthreads/machdep/netbsd-1.1/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~9f863266f83434db:
Delete: mit-pthreads/machdep/netbsd-1.1/__stdlib.h
BitKeeper/deleted/.del-__string.h~e91c955832a257d2:
Delete: mit-pthreads/machdep/netbsd-1.1/__string.h
BitKeeper/deleted/.del-__time.h~499558aa4e217cbe:
Delete: mit-pthreads/machdep/netbsd-1.1/__time.h
BitKeeper/deleted/.del-__unistd.h~6033c071695c98d0:
Delete: mit-pthreads/machdep/netbsd-1.1/__unistd.h
BitKeeper/deleted/.del-compat.h~47c1ec24ae2dbd9d:
Delete: mit-pthreads/machdep/netbsd-1.1/compat.h
BitKeeper/deleted/.del-dirent.h~23f9d369622b912e:
Delete: mit-pthreads/machdep/netbsd-1.1/dirent.h
BitKeeper/deleted/.del-errno.h~6f8d8176248b4c35:
Delete: mit-pthreads/machdep/netbsd-1.1/errno.h
BitKeeper/deleted/.del-time.h~6e1b4fb56c3d7b4:
Delete: mit-pthreads/machdep/netbsd-1.1/time.h
BitKeeper/deleted/.del-timers.h~40736de7a8ae1edd:
Delete: mit-pthreads/machdep/netbsd-1.1/timers.h
BitKeeper/deleted/.del-wait.h~9dcfbf026610d8d6:
Delete: mit-pthreads/machdep/netbsd-1.1/wait.h
BitKeeper/deleted/.del-__path.h~c22f338b35979fac:
Delete: mit-pthreads/machdep/openbsd-2.0/__path.h
BitKeeper/deleted/.del-__signal.h~4c7665e21aa142f9:
Delete: mit-pthreads/machdep/openbsd-2.0/__signal.h
BitKeeper/deleted/.del-__stdio.h~5bfddb7ea03225ec:
Delete: mit-pthreads/machdep/openbsd-2.0/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~9e4695c0e4d71221:
Delete: mit-pthreads/machdep/openbsd-2.0/__stdlib.h
BitKeeper/deleted/.del-__string.h~ddc42b12dbf9e334:
Delete: mit-pthreads/machdep/openbsd-2.0/__string.h
BitKeeper/deleted/.del-__time.h~f1b1ac884be0df3e:
Delete: mit-pthreads/machdep/openbsd-2.0/__time.h
BitKeeper/deleted/.del-__unistd.h~54955d02fd68996:
Delete: mit-pthreads/machdep/openbsd-2.0/__unistd.h
BitKeeper/deleted/.del-compat.h~97aec54b17348183:
Delete: mit-pthreads/machdep/openbsd-2.0/compat.h
BitKeeper/deleted/.del-dirent.h~50e0a997820878d4:
Delete: mit-pthreads/machdep/openbsd-2.0/dirent.h
BitKeeper/deleted/.del-__math.h~e76b6fe42d538bbe:
Delete: mit-pthreads/machdep/sunos-4.1.3/__math.h
BitKeeper/deleted/.del-__path.h~239e44b6ed86bdb9:
Delete: mit-pthreads/machdep/sunos-4.1.3/__path.h
BitKeeper/deleted/.del-__signal.h~3cdb6bbfd4168b8c:
Delete: mit-pthreads/machdep/sunos-4.1.3/__signal.h
BitKeeper/deleted/.del-__stdio.h~a30007fab0382559:
Delete: mit-pthreads/machdep/sunos-4.1.3/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~7fa5548f63063828:
Delete: mit-pthreads/machdep/sunos-4.1.3/__stdlib.h
BitKeeper/deleted/.del-__string.h~54adc8e1da49d04:
Delete: mit-pthreads/machdep/sunos-4.1.3/__string.h
BitKeeper/deleted/.del-__time.h~34435dd346c925fe:
Delete: mit-pthreads/machdep/sunos-4.1.3/__time.h
BitKeeper/deleted/.del-__unistd.h~116b12158a09a638:
Delete: mit-pthreads/machdep/sunos-4.1.3/__unistd.h
BitKeeper/deleted/.del-cdefs.h~995c93921ca6b535:
Delete: mit-pthreads/machdep/sunos-4.1.3/cdefs.h
BitKeeper/deleted/.del-compat.h~fd85e7c3362fa32a:
Delete: mit-pthreads/machdep/sunos-4.1.3/compat.h
BitKeeper/deleted/.del-errno.h~fd5870317b2417f5:
Delete: mit-pthreads/machdep/openbsd-2.0/errno.h
BitKeeper/deleted/.del-timers.h~2cff01de5d9e7ee0:
Delete: mit-pthreads/machdep/openbsd-2.0/timers.h
BitKeeper/deleted/.del-wait.h~8bb78fa5f7aafa70:
Delete: mit-pthreads/machdep/openbsd-2.0/wait.h
BitKeeper/deleted/.del-__math.h~3f0448d4dd8cb1ae:
Delete: mit-pthreads/machdep/sunos-5.3/__math.h
BitKeeper/deleted/.del-__signal.h~5a9c7ca1a958d3f4:
Delete: mit-pthreads/machdep/sunos-5.3/__signal.h
BitKeeper/deleted/.del-__stdio.h~79819eb58b212c1f:
Delete: mit-pthreads/machdep/sunos-5.3/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~5b88440bb049945e:
Delete: mit-pthreads/machdep/sunos-5.3/__stdlib.h
BitKeeper/deleted/.del-__string.h~e4f590323c1f392f:
Delete: mit-pthreads/machdep/sunos-5.3/__string.h
BitKeeper/deleted/.del-__time.h~9fce5db42d17163c:
Delete: mit-pthreads/machdep/sunos-5.3/__time.h
BitKeeper/deleted/.del-__unistd.h~415d11aa60580d03:
Delete: mit-pthreads/machdep/sunos-5.3/__unistd.h
BitKeeper/deleted/.del-dirent.h~181ddc4f75dbc605:
Delete: mit-pthreads/machdep/sunos-4.1.3/dirent.h
BitKeeper/deleted/.del-fcntlcom.h~2462e72d55357c60:
Delete: mit-pthreads/machdep/sunos-4.1.3/fcntlcom.h
BitKeeper/deleted/.del-signal.h~cce1c0f26d0e020:
Delete: mit-pthreads/machdep/sunos-4.1.3/signal.h
BitKeeper/deleted/.del-stat.h~4340eb84e587d6d7:
Delete: mit-pthreads/machdep/sunos-4.1.3/stat.h
BitKeeper/deleted/.del-time.h~de51b65a2d979319:
Delete: mit-pthreads/machdep/sunos-4.1.3/time.h
BitKeeper/deleted/.del-timers.h~1a370cb663f2d8b:
Delete: mit-pthreads/machdep/sunos-4.1.3/timers.h
BitKeeper/deleted/.del-wait.h~bedd5396ccde4742:
Delete: mit-pthreads/machdep/sunos-4.1.3/wait.h
BitKeeper/deleted/.del-__math.h~77f60db1341409bf:
Delete: mit-pthreads/machdep/sunos-5.5/__math.h
BitKeeper/deleted/.del-__signal.h~17aecd395e5209f1:
Delete: mit-pthreads/machdep/sunos-5.5/__signal.h
BitKeeper/deleted/.del-__stdio.h~bac5232a4ea48c3:
Delete: mit-pthreads/machdep/sunos-5.5/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~5d57551798325fff:
Delete: mit-pthreads/machdep/sunos-5.5/__stdlib.h
BitKeeper/deleted/.del-__string.h~e32288c871e4cc6a:
Delete: mit-pthreads/machdep/sunos-5.5/__string.h
BitKeeper/deleted/.del-__time.h~187a6c043b362fa5:
Delete: mit-pthreads/machdep/sunos-5.5/__time.h
BitKeeper/deleted/.del-__unistd.h~12b47b808f4c361f:
Delete: mit-pthreads/machdep/sunos-5.5/__unistd.h
BitKeeper/deleted/.del-cdefs.h~2c31c29563ca73a6:
Delete: mit-pthreads/machdep/sunos-5.3/cdefs.h
BitKeeper/deleted/.del-compat.h~ca7c33ba305a5590:
Delete: mit-pthreads/machdep/sunos-5.3/compat.h
BitKeeper/deleted/.del-dirent.h~c6a98eda27948c77:
Delete: mit-pthreads/machdep/sunos-5.3/dirent.h
BitKeeper/deleted/.del-socket.h~ba15a0eed55946b4:
Delete: mit-pthreads/machdep/sunos-5.3/socket.h
BitKeeper/deleted/.del-timers.h~d560f79a346a62e8:
Delete: mit-pthreads/machdep/sunos-5.3/timers.h
BitKeeper/deleted/.del-uio.h~b29d2d9c9a84646:
Delete: mit-pthreads/machdep/sunos-5.3/uio.h
BitKeeper/deleted/.del-__math.h~f117004a270ecca9:
Delete: mit-pthreads/machdep/ultrix-4.2/__math.h
BitKeeper/deleted/.del-__signal.h~4bd8c2abbf10367c:
Delete: mit-pthreads/machdep/ultrix-4.2/__signal.h
BitKeeper/deleted/.del-__stdio.h~7b3d5a4bc8fd2c17:
Delete: mit-pthreads/machdep/ultrix-4.2/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~b35521aecc9b43c:
Delete: mit-pthreads/machdep/ultrix-4.2/__stdlib.h
BitKeeper/deleted/.del-__string.h~64257fd9ef06be17:
Delete: mit-pthreads/machdep/ultrix-4.2/__string.h
BitKeeper/deleted/.del-__time.h~644b0d664b51f229:
Delete: mit-pthreads/machdep/ultrix-4.2/__time.h
BitKeeper/deleted/.del-__unistd.h~6abba82d63e0248:
Delete: mit-pthreads/machdep/ultrix-4.2/__unistd.h
BitKeeper/deleted/.del-cdefs.h~5e8e9a036573312a:
Delete: mit-pthreads/machdep/ultrix-4.2/cdefs.h
BitKeeper/deleted/.del-cdefs.h~b7073eab4edb1c0b:
Delete: mit-pthreads/machdep/sunos-5.5/cdefs.h
BitKeeper/deleted/.del-compat.h~bab1ce9e2c004133:
Delete: mit-pthreads/machdep/ultrix-4.2/compat.h
BitKeeper/deleted/.del-compat.h~fb94b2904902020:
Delete: mit-pthreads/machdep/sunos-5.5/compat.h
BitKeeper/deleted/.del-dirent.h~e14889d0f0d7071e:
Delete: mit-pthreads/machdep/sunos-5.5/dirent.h
BitKeeper/deleted/.del-socket.h~a7946d8bf1404556:
Delete: mit-pthreads/machdep/sunos-5.5/socket.h
BitKeeper/deleted/.del-timers.h~33e84eae3f84f1c3:
Delete: mit-pthreads/machdep/sunos-5.5/timers.h
BitKeeper/deleted/.del-uio.h~87b97478f98716a:
Delete: mit-pthreads/machdep/sunos-5.5/uio.h
BitKeeper/deleted/.del-GNUmakefile.inc~36dc90343e6e51c:
Delete: mit-pthreads/net/GNUmakefile.inc
BitKeeper/deleted/.del-Makefile.inc~2912b062f34b45a5:
Delete: mit-pthreads/net/Makefile.inc
BitKeeper/deleted/.del-dirent.h~da64f755e9200bc4:
Delete: mit-pthreads/machdep/ultrix-4.2/dirent.h
BitKeeper/deleted/.del-errno.h~e028820966c1250d:
Delete: mit-pthreads/machdep/ultrix-4.2/errno.h
BitKeeper/deleted/.del-gethostbyaddr.c~f2e7e85873c92640:
Delete: mit-pthreads/net/gethostbyaddr.c
BitKeeper/deleted/.del-gethostbyname.c~7ca5ff6aeb67df72:
Delete: mit-pthreads/net/gethostbyname.c
BitKeeper/deleted/.del-gethostent.c~aef0ee81d6d3d5dd:
Delete: mit-pthreads/net/gethostent.c
BitKeeper/deleted/.del-gethostname.c~889964947d6d6132:
Delete: mit-pthreads/net/gethostname.c
BitKeeper/deleted/.del-getnetbyaddr.c~e7aa4ddc61444ed7:
Delete: mit-pthreads/net/getnetbyaddr.c
BitKeeper/deleted/.del-getnetbyname.c~33c92e32e31bf6b2:
Delete: mit-pthreads/net/getnetbyname.c
BitKeeper/deleted/.del-time.h~590ce1c998c6a99f:
Delete: mit-pthreads/machdep/ultrix-4.2/time.h
BitKeeper/deleted/.del-timers.h~6775cb35bedc8d5a:
Delete: mit-pthreads/machdep/ultrix-4.2/timers.h
BitKeeper/deleted/.del-wait.h~14c892db1eeedc9f:
Delete: mit-pthreads/machdep/ultrix-4.2/wait.h
BitKeeper/deleted/.del-getnetent.c~eb91b4bb9229e69f:
Delete: mit-pthreads/net/getnetent.c
BitKeeper/deleted/.del-getproto.c~58a035d8e6dac166:
Delete: mit-pthreads/net/getproto.c
BitKeeper/deleted/.del-getprotoent.c~c272eb396deb6149:
Delete: mit-pthreads/net/getprotoent.c
BitKeeper/deleted/.del-getprotoname.c~38a163cb6ba9a02f:
Delete: mit-pthreads/net/getprotoname.c
BitKeeper/deleted/.del-getservbyname.c~b2d17820fa729890:
Delete: mit-pthreads/net/getservbyname.c
BitKeeper/deleted/.del-getservbyport.c~2ae8dd82c66dc979:
Delete: mit-pthreads/net/getservbyport.c
BitKeeper/deleted/.del-getservent.c~a3fd08e38a641439:
Delete: mit-pthreads/net/getservent.c
BitKeeper/deleted/.del-herror.c~104c97ff1e69850d:
Delete: mit-pthreads/net/herror.c
BitKeeper/deleted/.del-inet_addr.c~137d1f253167a82:
Delete: mit-pthreads/net/inet_addr.c
BitKeeper/deleted/.del-inet_lnaof.c~f99f0d39db895073:
Delete: mit-pthreads/net/inet_lnaof.c
BitKeeper/deleted/.del-inet_makeaddr.c~9a6862f4c3bb7355:
Delete: mit-pthreads/net/inet_makeaddr.c
BitKeeper/deleted/.del-inet_netof.c~41722dd1165dc88:
Delete: mit-pthreads/net/inet_netof.c
BitKeeper/deleted/.del-inet_network.c~a6ac81633e49e198:
Delete: mit-pthreads/net/inet_network.c
BitKeeper/deleted/.del-inet_ntoa.c~68e557133af8cea3:
Delete: mit-pthreads/net/inet_ntoa.c
BitKeeper/deleted/.del-net_internal.c~fc0d1440990c5c7d:
Delete: mit-pthreads/net/net_internal.c
BitKeeper/deleted/.del-Streepy.html~bd9e4e629cdc29b:
Delete: mit-pthreads/patches/Streepy.html
BitKeeper/deleted/.del-net_internal.h~9720bd6725294e70:
Delete: mit-pthreads/net/net_internal.h
BitKeeper/deleted/.del-proto_internal.c~9a2706dadde872ac:
Delete: mit-pthreads/net/proto_internal.c
BitKeeper/deleted/.del-proto_internal.h~88c0d1ad96369456:
Delete: mit-pthreads/net/proto_internal.h
BitKeeper/deleted/.del-res_comp.c~ba80c3482e74b732:
Delete: mit-pthreads/net/res_comp.c
BitKeeper/deleted/.del-res_debug.c~553d0ba772240d9d:
Delete: mit-pthreads/net/res_debug.c
BitKeeper/deleted/.del-res_init.c~bae972cd21804fc2:
Delete: mit-pthreads/net/res_init.c
BitKeeper/deleted/.del-res_internal.c~84ae9c436a686c45:
Delete: mit-pthreads/net/res_internal.c
BitKeeper/deleted/.del-res_internal.h~67e41ae81924291e:
Delete: mit-pthreads/net/res_internal.h
BitKeeper/deleted/.del-res_mkquery.c~2cbd2c72ac683b83:
Delete: mit-pthreads/net/res_mkquery.c
BitKeeper/deleted/.del-res_query.c~74419cd245fdb915:
Delete: mit-pthreads/net/res_query.c
BitKeeper/deleted/.del-res_querydomain.c~545411a9329ff12f:
Delete: mit-pthreads/net/res_querydomain.c
BitKeeper/deleted/.del-res_search.c~50ee3f62120a8b1c:
Delete: mit-pthreads/net/res_search.c
BitKeeper/deleted/.del-res_send.c~5dfaeb90c17a00e5:
Delete: mit-pthreads/net/res_send.c
BitKeeper/deleted/.del-serv_internal.c~9a74a600a861bf91:
Delete: mit-pthreads/net/serv_internal.c
BitKeeper/deleted/.del-serv_internal.h~4de54c25a6be0b51:
Delete: mit-pthreads/net/serv_internal.h
BitKeeper/deleted/.del-GNUmakefile.inc~8b30711f5b2759e7:
Delete: mit-pthreads/pthreads/GNUmakefile.inc
BitKeeper/deleted/.del-Makefile.inc~aa771a55359fcc4b:
Delete: mit-pthreads/pthreads/Makefile.inc
BitKeeper/deleted/.del-Streepy2.html~19da6997739ee2b6:
Delete: mit-pthreads/patches/Streepy2.html
BitKeeper/deleted/.del-_exit.c~66c37b7d58dcbfd2:
Delete: mit-pthreads/pthreads/_exit.c
BitKeeper/deleted/.del-bill_lear~f9abe03924eb22:
Delete: mit-pthreads/patches/bill_lear
BitKeeper/deleted/.del-chris_demetriou~6166ce6bef91e1c:
Delete: mit-pthreads/patches/chris_demetriou
BitKeeper/deleted/.del-cleanup.c~48a723b9c5c18407:
Delete: mit-pthreads/pthreads/cleanup.c
BitKeeper/deleted/.del-cond.c~a0494f8b361f8c54:
Delete: mit-pthreads/pthreads/cond.c
BitKeeper/deleted/.del-condattr.c~b61bdcd1e85bc2b7:
Delete: mit-pthreads/pthreads/condattr.c
BitKeeper/deleted/.del-dump_state.c~c4009192c784df9a:
Delete: mit-pthreads/pthreads/dump_state.c
BitKeeper/deleted/.del-errno.c~ea72bafdc380faf:
Delete: mit-pthreads/pthreads/errno.c
BitKeeper/deleted/.del-fd.c~af00ac53fcad3882:
Delete: mit-pthreads/pthreads/fd.c
BitKeeper/deleted/.del-mevans~ecccacc37e44a748:
Delete: mit-pthreads/patches/mevans
BitKeeper/deleted/.del-p153~7c46bb4ef6e8535a:
Delete: mit-pthreads/patches/p153
BitKeeper/deleted/.del-p155~dac0404faf476417:
Delete: mit-pthreads/patches/p155
BitKeeper/deleted/.del-fd_kern.c~8ea26d27450589f9:
Delete: mit-pthreads/pthreads/fd_kern.c
BitKeeper/deleted/.del-fd_pipe.c~480792c394c55b78:
Delete: mit-pthreads/pthreads/fd_pipe.c
BitKeeper/deleted/.del-fd_sysv.c~fb191b7b66ee5a9e:
Delete: mit-pthreads/pthreads/fd_sysv.c
BitKeeper/deleted/.del-file.c~3edaa1f84c4dd9eb:
Delete: mit-pthreads/pthreads/file.c
BitKeeper/deleted/.del-globals.c~28c6e3e3392a0b73:
Delete: mit-pthreads/pthreads/globals.c
BitKeeper/deleted/.del-info.c~e5cc658219b735c2:
Delete: mit-pthreads/pthreads/info.c
BitKeeper/deleted/.del-init.cc~e46fb50c843bf00d:
Delete: mit-pthreads/pthreads/init.cc
BitKeeper/deleted/.del-malloc.c~2a0cc342cc1cd825:
Delete: mit-pthreads/pthreads/malloc.c
BitKeeper/deleted/.del-mutex.c~8b993c981ddd51f5:
Delete: mit-pthreads/pthreads/mutex.c
BitKeeper/deleted/.del-mutexattr.c~1b614c39feb2eab9:
Delete: mit-pthreads/pthreads/mutexattr.c
BitKeeper/deleted/.del-panic.c~410a4c9aac44f5cc:
Delete: mit-pthreads/pthreads/panic.c
BitKeeper/deleted/.del-prio_queue.c~1dd651c0e60bfc81:
Delete: mit-pthreads/pthreads/prio_queue.c
BitKeeper/deleted/.del-process.c~cc427ed79c1d9392:
Delete: mit-pthreads/pthreads/process.c
BitKeeper/deleted/.del-pthread.c~9ea2ac94e66b2df:
Delete: mit-pthreads/pthreads/pthread.c
BitKeeper/deleted/.del-pthread_attr.c~de65a4522f206192:
Delete: mit-pthreads/pthreads/pthread_attr.c
BitKeeper/deleted/.del-pthread_cancel.c~f5f9b61475d69ccb:
Delete: mit-pthreads/pthreads/pthread_cancel.c
BitKeeper/deleted/.del-pthread_detach.c~c4c4f8de168c524:
Delete: mit-pthreads/pthreads/pthread_detach.c
BitKeeper/deleted/.del-pthread_init.c~14b18c0e951b016d:
Delete: mit-pthreads/pthreads/pthread_init.c
BitKeeper/deleted/.del-pthread_join.c~1f16b6bc00c7dab:
Delete: mit-pthreads/pthreads/pthread_join.c
BitKeeper/deleted/.del-pthread_kill.c~4e33bb5573830386:
Delete: mit-pthreads/pthreads/pthread_kill.c
BitKeeper/deleted/.del-pthread_once.c~af065d18e540ab4d:
Delete: mit-pthreads/pthreads/pthread_once.c
BitKeeper/deleted/.del-queue.c~6a702e857ef6de08:
Delete: mit-pthreads/pthreads/queue.c
BitKeeper/deleted/.del-readv.c~8297c25bd79b0e:
Delete: mit-pthreads/pthreads/readv.c
BitKeeper/deleted/.del-schedparam.c~5db6ea84ba625cc:
Delete: mit-pthreads/pthreads/schedparam.c
BitKeeper/deleted/.del-select.c~66067633be2dbad0:
Delete: mit-pthreads/pthreads/select.c
BitKeeper/deleted/.del-semaphore.c~65a35ea5117089ed:
Delete: mit-pthreads/pthreads/semaphore.c
BitKeeper/deleted/.del-sig.c~58350bee655c275d:
Delete: mit-pthreads/pthreads/sig.c
BitKeeper/deleted/.del-GNUmakefile.inc~d366b0d462fb1292:
Delete: mit-pthreads/scripts/GNUmakefile.inc
BitKeeper/deleted/.del-Makefile.inc~627ba9967a1a5c03:
Delete: mit-pthreads/scripts/Makefile.inc
BitKeeper/deleted/.del-signal.c~59bfe2d5baacc4cc:
Delete: mit-pthreads/pthreads/signal.c
BitKeeper/deleted/.del-sleep.c~eb1e412eaadda488:
Delete: mit-pthreads/pthreads/sleep.c
BitKeeper/deleted/.del-specific.c~9ed780681ac4688:
Delete: mit-pthreads/pthreads/specific.c
BitKeeper/deleted/.del-stat.c~e3a9e3c0350540a8:
Delete: mit-pthreads/pthreads/stat.c
BitKeeper/deleted/.del-wait.c~a1c0498f96183865:
Delete: mit-pthreads/pthreads/wait.c
BitKeeper/deleted/.del-wrapper.c~92f1cfcdfa2d1af9:
Delete: mit-pthreads/pthreads/wrapper.c
BitKeeper/deleted/.del-writev.c~e4fb01b897efa6b1:
Delete: mit-pthreads/pthreads/writev.c
BitKeeper/deleted/.del-GNUmakefile.inc~136e21ce89043c8e:
Delete: mit-pthreads/stdio/GNUmakefile.inc
BitKeeper/deleted/.del-Makefile.inc~6034a462e5364be7:
Delete: mit-pthreads/stdio/Makefile.inc
BitKeeper/deleted/.del-README~5830e60ac2727fec:
Delete: mit-pthreads/stdio/README
BitKeeper/deleted/.del-clrerr.c~ccf622475dc49fa1:
Delete: mit-pthreads/stdio/clrerr.c
BitKeeper/deleted/.del-fclose.c~b099fdc1352cde32:
Delete: mit-pthreads/stdio/fclose.c
BitKeeper/deleted/.del-fdopen.c~8235d8c7b6a4f7f3:
Delete: mit-pthreads/stdio/fdopen.c
BitKeeper/deleted/.del-feof.c~40610577678ca3f6:
Delete: mit-pthreads/stdio/feof.c
BitKeeper/deleted/.del-ferror.c~69f2023c9d4da22e:
Delete: mit-pthreads/stdio/ferror.c
BitKeeper/deleted/.del-fflush.c~f290f341c357e7bf:
Delete: mit-pthreads/stdio/fflush.c
BitKeeper/deleted/.del-fgetc.c~6343d0d9240763b4:
Delete: mit-pthreads/stdio/fgetc.c
BitKeeper/deleted/.del-fgetline.c~fee1fa145bdc425:
Delete: mit-pthreads/stdio/fgetline.c
BitKeeper/deleted/.del-fgetpos.c~2a269d1a51b87782:
Delete: mit-pthreads/stdio/fgetpos.c
BitKeeper/deleted/.del-fgets.c~2b1d6fabba71e8ae:
Delete: mit-pthreads/stdio/fgets.c
BitKeeper/deleted/.del-fileno.c~fef0caa3b46de500:
Delete: mit-pthreads/stdio/fileno.c
BitKeeper/deleted/.del-pgcc.sh~db7799f6b4eac17a:
Delete: mit-pthreads/scripts/pgcc.sh
BitKeeper/deleted/.del-findfp.c~ccb89f891cb7eff7:
Delete: mit-pthreads/stdio/findfp.c
BitKeeper/deleted/.del-flags.c~a4ae5e34efcf18f8:
Delete: mit-pthreads/stdio/flags.c
BitKeeper/deleted/.del-floatio.h~cc931f6e2e5521ef:
Delete: mit-pthreads/stdio/floatio.h
BitKeeper/deleted/.del-fopen.c~adf1f102f5f251ab:
Delete: mit-pthreads/stdio/fopen.c
BitKeeper/deleted/.del-fprintf.c~c90d3975fa1b0219:
Delete: mit-pthreads/stdio/fprintf.c
BitKeeper/deleted/.del-fpurge.c~deb487ae44c6e285:
Delete: mit-pthreads/stdio/fpurge.c
BitKeeper/deleted/.del-fputc.c~abc68bbf5598d6c3:
Delete: mit-pthreads/stdio/fputc.c
BitKeeper/deleted/.del-fputs.c~f0b64c64de8c8c50:
Delete: mit-pthreads/stdio/fputs.c
BitKeeper/deleted/.del-fread.c~c70749be57c8d599:
Delete: mit-pthreads/stdio/fread.c
BitKeeper/deleted/.del-freopen.c~cdc4ed301100221e:
Delete: mit-pthreads/stdio/freopen.c
BitKeeper/deleted/.del-fscanf.c~82cc575b59cdf65:
Delete: mit-pthreads/stdio/fscanf.c
BitKeeper/deleted/.del-fseek.c~6823b3dcf2fc485b:
Delete: mit-pthreads/stdio/fseek.c
BitKeeper/deleted/.del-fsetpos.c~629e9dbab8ac84c5:
Delete: mit-pthreads/stdio/fsetpos.c
BitKeeper/deleted/.del-ftell.c~c90d329656466c07:
Delete: mit-pthreads/stdio/ftell.c
BitKeeper/deleted/.del-funopen.c~bb353870560135a7:
Delete: mit-pthreads/stdio/funopen.c
BitKeeper/deleted/.del-fvwrite.c~12a015432374db2:
Delete: mit-pthreads/stdio/fvwrite.c
BitKeeper/deleted/.del-fvwrite.h~bca246349dcbe816:
Delete: mit-pthreads/stdio/fvwrite.h
BitKeeper/deleted/.del-fwalk.c~ccac72992675a03c:
Delete: mit-pthreads/stdio/fwalk.c
BitKeeper/deleted/.del-fwrite.c~660199da99a25330:
Delete: mit-pthreads/stdio/fwrite.c
BitKeeper/deleted/.del-getc.c~a58586307c4183a8:
Delete: mit-pthreads/stdio/getc.c
BitKeeper/deleted/.del-getc_unlocked.c~35038ca3c56349e3:
Delete: mit-pthreads/stdio/getc_unlocked.c
BitKeeper/deleted/.del-getchar.c~bf1d8ac92ebc4a2:
Delete: mit-pthreads/stdio/getchar.c
BitKeeper/deleted/.del-getchar_unlocked.c~91084839d7f984a0:
Delete: mit-pthreads/stdio/getchar_unlocked.c
BitKeeper/deleted/.del-gets.c~5dbf480747b8699a:
Delete: mit-pthreads/stdio/gets.c
BitKeeper/deleted/.del-getw.c~24be6386098d7e:
Delete: mit-pthreads/stdio/getw.c
BitKeeper/deleted/.del-glue.h~b8bcfd485b859d01:
Delete: mit-pthreads/stdio/glue.h
BitKeeper/deleted/.del-local.h~d94baeff18749e79:
Delete: mit-pthreads/stdio/local.h
BitKeeper/deleted/.del-makebuf.c~ee3c67d0f3c715ce:
Delete: mit-pthreads/stdio/makebuf.c
BitKeeper/deleted/.del-mktemp.c~ecdf575aab425f8:
Delete: mit-pthreads/stdio/mktemp.c
BitKeeper/deleted/.del-perror.c~747adefc6708f7a0:
Delete: mit-pthreads/stdio/perror.c
BitKeeper/deleted/.del-printf.c~de555cf1e097860b:
Delete: mit-pthreads/stdio/printf.c
BitKeeper/deleted/.del-putc.c~9e757e00d19f8e60:
Delete: mit-pthreads/stdio/putc.c
BitKeeper/deleted/.del-putc_unlocked.c~2751f8fdf265699f:
Delete: mit-pthreads/stdio/putc_unlocked.c
BitKeeper/deleted/.del-putchar.c~471db59dfdb9d678:
Delete: mit-pthreads/stdio/putchar.c
BitKeeper/deleted/.del-putchar_unlocked.c~50192936c11830c6:
Delete: mit-pthreads/stdio/putchar_unlocked.c
BitKeeper/deleted/.del-puts.c~396d3679d86d27ab:
Delete: mit-pthreads/stdio/puts.c
BitKeeper/deleted/.del-putw.c~b7d9fd0e54353742:
Delete: mit-pthreads/stdio/putw.c
BitKeeper/deleted/.del-refill.c~7b62f65ea23f9df1:
Delete: mit-pthreads/stdio/refill.c
BitKeeper/deleted/.del-remove.c~1a2f44b0fe87b218:
Delete: mit-pthreads/stdio/remove.c
BitKeeper/deleted/.del-rewind.c~4f290167e00cbc9a:
Delete: mit-pthreads/stdio/rewind.c
BitKeeper/deleted/.del-rget.c~b75492d21f7d2b12:
Delete: mit-pthreads/stdio/rget.c
BitKeeper/deleted/.del-scanf.c~c9ea13423b10a5df:
Delete: mit-pthreads/stdio/scanf.c
BitKeeper/deleted/.del-setbuf.c~8076edbc2da8c10c:
Delete: mit-pthreads/stdio/setbuf.c
BitKeeper/deleted/.del-setbuffer.c~3894035535226398:
Delete: mit-pthreads/stdio/setbuffer.c
BitKeeper/deleted/.del-setvbuf.c~a463bac5ab597cfa:
Delete: mit-pthreads/stdio/setvbuf.c
BitKeeper/deleted/.del-snprintf.c~10569147e4ae9e8:
Delete: mit-pthreads/stdio/snprintf.c
BitKeeper/deleted/.del-sprintf.c~dda594182e84595d:
Delete: mit-pthreads/stdio/sprintf.c
BitKeeper/deleted/.del-sscanf.c~f6895e416e88a48:
Delete: mit-pthreads/stdio/sscanf.c
BitKeeper/deleted/.del-stdio.c~d01166c38a0f41be:
Delete: mit-pthreads/stdio/stdio.c
BitKeeper/deleted/.del-strerror.c~e4085dd8b75b4fa:
Delete: mit-pthreads/stdio/strerror.c
BitKeeper/deleted/.del-tempnam.c~8aabafa981925edc:
Delete: mit-pthreads/stdio/tempnam.c
BitKeeper/deleted/.del-tmpfile.c~4c48791ffd941c01:
Delete: mit-pthreads/stdio/tmpfile.c
BitKeeper/deleted/.del-tmpnam.c~889743b09a08b997:
Delete: mit-pthreads/stdio/tmpnam.c
BitKeeper/deleted/.del-ungetc.c~14af7f053c0efdf6:
Delete: mit-pthreads/stdio/ungetc.c
BitKeeper/deleted/.del-vfprintf.c~e2867535b4f4c1ce:
Delete: mit-pthreads/stdio/vfprintf.c
BitKeeper/deleted/.del-vfscanf.c~8d5a13802dd681eb:
Delete: mit-pthreads/stdio/vfscanf.c
BitKeeper/deleted/.del-vprintf.c~f7a873dccfc9555f:
Delete: mit-pthreads/stdio/vprintf.c
BitKeeper/deleted/.del-vscanf.c~cf544d1f7972a26d:
Delete: mit-pthreads/stdio/vscanf.c
BitKeeper/deleted/.del-vsnprintf.c~e851f34f5f4d06a9:
Delete: mit-pthreads/stdio/vsnprintf.c
BitKeeper/deleted/.del-vsprintf.c~3aa0475e58804e21:
Delete: mit-pthreads/stdio/vsprintf.c
BitKeeper/deleted/.del-GNUmakefile.inc~9eaa47d020c6e07d:
Delete: mit-pthreads/stdlib/GNUmakefile.inc
BitKeeper/deleted/.del-Makefile.inc~f1113eda41f2e15e:
Delete: mit-pthreads/stdlib/Makefile.inc
BitKeeper/deleted/.del-abort.c~d99a651deb6f0c0:
Delete: mit-pthreads/stdlib/abort.c
BitKeeper/deleted/.del-atexit.h~57b0f0a65c77e48d:
Delete: mit-pthreads/stdlib/atexit.h
BitKeeper/deleted/.del-exit.c~a710a19164bacc9e:
Delete: mit-pthreads/stdlib/exit.c
BitKeeper/deleted/.del-getopt.c~7785cf46558d6b04:
Delete: mit-pthreads/stdlib/getopt.c
BitKeeper/deleted/.del-rand.c~41153a97fd8216bb:
Delete: mit-pthreads/stdlib/rand.c
BitKeeper/deleted/.del-random.c~4ad1f3e2cb8c6315:
Delete: mit-pthreads/stdlib/random.c
BitKeeper/deleted/.del-strtod.c~63b52a18deedbec5:
Delete: mit-pthreads/stdlib/strtod.c
BitKeeper/deleted/.del-strtol.c~d46792d7b00287b8:
Delete: mit-pthreads/stdlib/strtol.c
BitKeeper/deleted/.del-vsscanf.c~ff338bc0897b67:
Delete: mit-pthreads/stdio/vsscanf.c
BitKeeper/deleted/.del-wbuf.c~2948dcfe86871431:
Delete: mit-pthreads/stdio/wbuf.c
BitKeeper/deleted/.del-wsetup.c~3760c2821f3c9d02:
Delete: mit-pthreads/stdio/wsetup.c
BitKeeper/deleted/.del-xprintf.c~bf9c028f3f174f6f:
Delete: mit-pthreads/stdio/xprintf.c
BitKeeper/deleted/.del-.cvsignore~b9dac0e371bdcf0:
Delete: mit-pthreads/tests/.cvsignore
BitKeeper/deleted/.del-GNUmakefile.inc~64b79f91b4448737:
Delete: mit-pthreads/string/GNUmakefile.inc
BitKeeper/deleted/.del-Makefile.inc~e6ee36997014ed99:
Delete: mit-pthreads/string/Makefile.inc
BitKeeper/deleted/.del-Makefile.in~ebe80d886b32ef55:
Delete: mit-pthreads/tests/Makefile.in
BitKeeper/deleted/.del-README~22f884561b8f8523:
Delete: mit-pthreads/tests/README
BitKeeper/deleted/.del-bench_fcntl.c~3468276886fe2935:
Delete: mit-pthreads/tests/bench_fcntl.c
BitKeeper/deleted/.del-bench_pipe.c~bf808e5de63bffa:
Delete: mit-pthreads/tests/bench_pipe.c
BitKeeper/deleted/.del-bench_read.c~956db3e467f9d39c:
Delete: mit-pthreads/tests/bench_read.c
BitKeeper/deleted/.del-p_bench_getpid.c~955b2510134163c:
Delete: mit-pthreads/tests/p_bench_getpid.c
BitKeeper/deleted/.del-p_bench_mutex.c~7c70997da4d90d84:
Delete: mit-pthreads/tests/p_bench_mutex.c
BitKeeper/deleted/.del-p_bench_pthread_create.c~f842d5df155e021:
Delete: mit-pthreads/tests/p_bench_pthread_create.c
BitKeeper/deleted/.del-p_bench_read.c~db38beae7a1c0c9c:
Delete: mit-pthreads/tests/p_bench_read.c
BitKeeper/deleted/.del-strtok.c~7e4e97feb36fe62:
Delete: mit-pthreads/string/strtok.c
BitKeeper/deleted/.del-strtoul.c~8f56d9382fa59f6d:
Delete: mit-pthreads/stdlib/strtoul.c
BitKeeper/deleted/.del-system.c~11e8768464a871ff:
Delete: mit-pthreads/stdlib/system.c
BitKeeper/deleted/.del-p_bench_semaphore.c~e0af8e34c3604ba:
Delete: mit-pthreads/tests/p_bench_semaphore.c
BitKeeper/deleted/.del-p_bench_yield.c~827d7c018b3b14d:
Delete: mit-pthreads/tests/p_bench_yield.c
BitKeeper/deleted/.del-test_create.c~4a57b0fd1032892:
Delete: mit-pthreads/tests/test_create.c
BitKeeper/deleted/.del-test_cwd.c~22e4f2b76ca811b1:
Delete: mit-pthreads/tests/test_cwd.c
BitKeeper/deleted/.del-test_execve.c~bd0c103f87af886f:
Delete: mit-pthreads/tests/test_execve.c
BitKeeper/deleted/.del-test_fcntl.c~53b21f39142e5a4d:
Delete: mit-pthreads/tests/test_fcntl.c
BitKeeper/deleted/.del-test_fork.c~f298d324d823923a:
Delete: mit-pthreads/tests/test_fork.c
BitKeeper/deleted/.del-test_netdb.c~be5269b1ecac4ff3:
Delete: mit-pthreads/tests/test_netdb.c
BitKeeper/deleted/.del-test_pause.c~c911c50ffb11db72:
Delete: mit-pthreads/tests/test_pause.c
BitKeeper/deleted/.del-test_preemption.c~8029d61f7ec75374:
Delete: mit-pthreads/tests/test_preemption.c
BitKeeper/deleted/.del-test_preemption_float.c~7f804d5a47a30bd2:
Delete: mit-pthreads/tests/test_preemption_float.c
BitKeeper/deleted/.del-test_pthread_cond_timedwait.c~fd96cd053a1ee38f:
Delete: mit-pthreads/tests/test_pthread_cond_timedwait.c
BitKeeper/deleted/.del-test_pthread_join.c~9ee0a45e4852e2c6:
Delete: mit-pthreads/tests/test_pthread_join.c
BitKeeper/deleted/.del-test_pthread_mutex.c~7afe10ac3a0ed764:
Delete: mit-pthreads/tests/test_pthread_mutex.c
BitKeeper/deleted/.del-test_pw.c~e4d2a6fbfa419233:
Delete: mit-pthreads/tests/test_pw.c
BitKeeper/deleted/.del-test_readdir.c~68f325528a6ba31:
Delete: mit-pthreads/tests/test_readdir.c
BitKeeper/deleted/.del-test_select.c~f58a4df6eabd906b:
Delete: mit-pthreads/tests/test_select.c
BitKeeper/deleted/.del-test_setjmp.c~701e52e551c3be:
Delete: mit-pthreads/tests/test_setjmp.c
BitKeeper/deleted/.del-test_sleep.c~82fcf39f34babab0:
Delete: mit-pthreads/tests/test_sleep.c
BitKeeper/deleted/.del-test_sock_1.c~b68c017f6d6426b7:
Delete: mit-pthreads/tests/test_sock_1.c
BitKeeper/deleted/.del-test_sock_2.c~5ca3f8118006c2db:
Delete: mit-pthreads/tests/test_sock_2.c
BitKeeper/deleted/.del-test_sock_2a.c~142c4ae2155fe848:
Delete: mit-pthreads/tests/test_sock_2a.c
BitKeeper/deleted/.del-test_stdio_1.c~85b778b4cef060e3:
Delete: mit-pthreads/tests/test_stdio_1.c
BitKeeper/deleted/.del-test_switch.c~a820aca962968c06:
Delete: mit-pthreads/tests/test_switch.c
support-files/mysql.spec.sh:
Made some modifications of the RPMs:
- the normal 4.0 package must of course include InnoDB as well
- added --with-ssl and --with-vio to the Max binary and build a
dynamically linked binary because of this (the normal binary remains
statically linked)
- updated the Packager Tag as discussed with David
- install all binaries as stripped except for mysqld and mysqld-max
(needed for UDFs to work)
Diffstat (limited to 'mit-pthreads/machdep')
353 files changed, 0 insertions, 29976 deletions
diff --git a/mit-pthreads/machdep/alpha-osf1/__math.h b/mit-pthreads/machdep/alpha-osf1/__math.h deleted file mode 100755 index 12fdc85678c..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/__math.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * ANSI required entries in math.h - * - */ -#ifdef _ANSI_C_SOURCE - -#if defined(_IEEE_FP) -# define HUGE_VAL 1.8e308 -#else -# define HUGE_VAL 1.797693134862315708e308 -#endif - -#endif /*_ANSI_C_SOURCE */ - - - diff --git a/mit-pthreads/machdep/alpha-osf1/__signal.h b/mit-pthreads/machdep/alpha-osf1/__signal.h deleted file mode 100755 index 2bb13380314..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/__signal.h +++ /dev/null @@ -1,106 +0,0 @@ -#include <standards.h> - -typedef int sig_atomic_t; /* accessable as an atomic entity (ANSI) */ - -/* - * valid signal values: all undefined values are reserved for future use - * note: POSIX requires a value of 0 to be used as the null signal in kill() - */ -#define SIGHUP 1 /* hangup, generated when terminal disconnects */ -#define SIGINT 2 /* interrupt, generated from terminal special char */ -#define SIGQUIT 3 /* (*) quit, generated from terminal special char */ -#define SIGILL 4 /* (*) illegal instruction (not reset when caught)*/ -#define SIGTRAP 5 /* (*) trace trap (not reset when caught) */ -#define SIGABRT 6 /* (*) abort process */ -#define SIGEMT 7 /* EMT instruction */ -#define SIGFPE 8 /* (*) floating point exception */ -#define SIGKILL 9 /* kill (cannot be caught or ignored) */ -#define SIGBUS 10 /* (*) bus error (specification exception) */ -#define SIGSEGV 11 /* (*) segmentation violation */ -#define SIGSYS 12 /* (*) bad argument to system call */ -#define SIGPIPE 13 /* write on a pipe with no one to read it */ -#define SIGALRM 14 /* alarm clock timeout */ -#define SIGTERM 15 /* software termination signal */ -#define SIGURG 16 /* (+) urgent contition on I/O channel */ -#define SIGSTOP 17 /* (@) stop (cannot be caught or ignored) */ -#define SIGTSTP 18 /* (@) interactive stop */ -#define SIGCONT 19 /* (!) continue (cannot be caught or ignored) */ -#define SIGCHLD 20 /* (+) sent to parent on child stop or exit */ -#define SIGTTIN 21 /* (@) background read attempted from control terminal*/ -#define SIGTTOU 22 /* (@) background write attempted to control terminal */ -#define SIGIO 23 /* (+) I/O possible, or completed */ -#define SIGXCPU 24 /* cpu time limit exceeded (see setrlimit()) */ -#define SIGXFSZ 25 /* file size limit exceeded (see setrlimit()) */ -#define SIGVTALRM 26 /* virtual time alarm (see setitimer) */ -#define SIGPROF 27 /* profiling time alarm (see setitimer) */ -#define SIGWINCH 28 /* (+) window size changed */ -#define SIGINFO 29 /* information request */ -#define SIGUSR1 30 /* user defined signal 1 */ -#define SIGUSR2 31 /* user defined signal 2 */ -#define SIGMAX 31 -#define NSIG 31 - -/* - * additional signal names supplied for compatibility, only - */ -#define SIGIOINT SIGURG /* printer to backend error signal */ -#define SIGAIO SIGIO /* base lan i/o */ -#define SIGPTY SIGIO /* pty i/o */ -#define SIGPOLL SIGIO /* STREAMS version of this signal */ -#define SIGIOT SIGABRT /* abort (terminate) process */ -#define SIGLOST SIGIOT /* old BSD signal ?? */ -#define SIGPWR SIGINFO /* Power Fail/Restart -- SVID3/SVR4 */ -#define SIGCLD SIGCHLD - -/* - * valid signal action values; other values => pointer to handler function - */ -#define SIG_DFL (void (*)())0 -#define SIG_IGN (void (*)())1 - -/* - * values of "how" argument to sigprocmask() call - */ -#define SIG_BLOCK 1 -#define SIG_UNBLOCK 2 -#define SIG_SETMASK 3 - -/* - * sigaction structure used in sigaction() system call - * The order of the fields in this structure must match those in - * the sigvec structure (below). - */ -struct sigaction { - void (*sa_handler)(); /* signal handler, or action value */ - sigset_t sa_mask; /* signals to block while in handler */ - int sa_flags; /* signal action flags */ -}; - -#define __SIGEMPTYSET 0 -#define __SIGFILLSET 0xffffffff -#define __SIGADDSET(s, n) ( *(s) |= 1L << ((n) - 1), 0) -#define __SIGDELSET(s, n) ( *(s) &= ~(1L << ((n) - 1)), 0) -#define __SIGISMEMBER(s, n) ( (*(s) & (1L << ((n) - 1))) != (sigset_t)0) - - -#define SIGSTKSZ (16384) -#define MINSIGSTKSZ (4096) - -/* - * valid flags define for sa_flag field of sigaction structure - */ -#define SA_ONSTACK 0x00000001 /* run on special signal stack */ -#define SA_RESTART 0x00000002 /* restart system calls on sigs */ -#define SA_NOCLDSTOP 0x00000004 /* do not set SIGCHLD for child stops*/ -#define SA_NODEFER 0x00000008 /* don't block while handling */ -#define SA_RESETHAND 0x00000010 /* old sys5 style behavior */ -#define SA_NOCLDWAIT 0x00000020 /* no zombies */ -#define SA_SIGINFO 0x00000040 /* deliver siginfo to handler */ - -/* This is for sys/time.h */ -/* Removed for OSF1 V3.2 -typedef union sigval { - int sival_int; - void *sival_ptr; -} sigval_t; -*/ diff --git a/mit-pthreads/machdep/alpha-osf1/__stdio.h b/mit-pthreads/machdep/alpha-osf1/__stdio.h deleted file mode 100755 index 39801b125c8..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/__stdio.h +++ /dev/null @@ -1,13 +0,0 @@ - -#ifndef _FPOS_T -#define _FPOS_T -typedef pthread_fpos_t fpos_t; /* Must match off_t <sys/types.h> */ -#endif - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -#define HAVE_SYS_ERRLIST_WITHOUT_CONST - diff --git a/mit-pthreads/machdep/alpha-osf1/__stdlib.h b/mit-pthreads/machdep/alpha-osf1/__stdlib.h deleted file mode 100755 index 79ca737e0c8..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/__stdlib.h +++ /dev/null @@ -1,3 +0,0 @@ -/* bleah */ - -#include <stddef.h> diff --git a/mit-pthreads/machdep/alpha-osf1/__string.h b/mit-pthreads/machdep/alpha-osf1/__string.h deleted file mode 100755 index 6558102a282..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/__string.h +++ /dev/null @@ -1,19 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -__BEGIN_DECLS - -/* -void * memchr __P_((const void *, int , size_t )); -void * memcpy __P_((void *, const void *, size_t )); -void * memset __P_((void *, int , size_t )); -size_t strcspn __P_((const char *, const char *)); -size_t strlen __P_((const char *)); -size_t strspn __P_((const char *, const char *)); -*/ - -__END_DECLS - diff --git a/mit-pthreads/machdep/alpha-osf1/__time.h b/mit-pthreads/machdep/alpha-osf1/__time.h deleted file mode 100755 index b4ce1ead2bf..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/__time.h +++ /dev/null @@ -1,21 +0,0 @@ -#include <pthread/types.h> -#include <machine/machtime.h> /* CLOCKS_PER_SEC is defined here */ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -#ifndef _CLOCK_T -#define _CLOCK_T -typedef pthread_clock_t clock_t; -#endif - -#ifndef _TIME_T -#define _TIME_T -typedef pthread_time_t time_t; -#endif - -#ifndef CLK_TCK -#define CLK_TCK 60 -#endif diff --git a/mit-pthreads/machdep/alpha-osf1/__unistd.h b/mit-pthreads/machdep/alpha-osf1/__unistd.h deleted file mode 100755 index 2a7fbe9389b..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/__unistd.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sys/types.h> - -#ifndef _SSIZE_T -#define _SSIZE_T -typedef long ssize_t; /* Added by monty */ -#endif diff --git a/mit-pthreads/machdep/alpha-osf1/cdefs.h b/mit-pthreads/machdep/alpha-osf1/cdefs.h deleted file mode 100755 index c9b54f033ec..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/cdefs.h +++ /dev/null @@ -1,62 +0,0 @@ -/* ==== cdefs.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Similar to the BSD cdefs.h file. - * - * 1.00 94/01/26 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -/* Stuff for compiling */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __INLINE static inline -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __INLINE extern inline -#define __CAN_DO_EXTERN_INLINE -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#endif -#else /* !__GNUC__ */ -#define __BEGIN_DECLS -#define __END_DECLS -#define __INLINE static -#define inline -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#ifndef _U_INT32_T_ -#define _U_INT32_T_ -typedef unsigned int u_int32_t; -#endif - -#ifndef _U_INT16_T_ -#define _U_INT16_T_ -typedef unsigned short u_int16_t; -#endif - -#ifndef _INT32_T_ -#define _INT32_T_ -typedef int int32_t; -#endif - -#ifndef _INT16_T_ -#define _INT16_T_ -typedef short int16_t; -#endif - -#endif diff --git a/mit-pthreads/machdep/alpha-osf1/compat.h b/mit-pthreads/machdep/alpha-osf1/compat.h deleted file mode 100755 index 4c2801e05de..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/compat.h +++ /dev/null @@ -1 +0,0 @@ -#define omsghdr msghdr diff --git a/mit-pthreads/machdep/alpha-osf1/dirent.h b/mit-pthreads/machdep/alpha-osf1/dirent.h deleted file mode 100755 index 697ef7b8a8c..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/dirent.h +++ /dev/null @@ -1,7 +0,0 @@ -struct dirent { - ino_t d_ino; - ushort_t d_reclen, d_namlen; - char d_name[256]; -}; -#define d_fileno d_ino -#define MAXNAMLEN 256 diff --git a/mit-pthreads/machdep/alpha-osf1/signal.h b/mit-pthreads/machdep/alpha-osf1/signal.h deleted file mode 100755 index c387f9f31ad..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/signal.h +++ /dev/null @@ -1,3 +0,0 @@ - - -#include <signal.h> diff --git a/mit-pthreads/machdep/alpha-osf1/socket.h b/mit-pthreads/machdep/alpha-osf1/socket.h deleted file mode 100755 index 28e17ca463d..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/socket.h +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Copyright (c) 1982,1985,1986,1988 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)socket.h 7.13 (Berkeley) 4/20/91 - */ - -#ifndef _SOCKET_H_ -#define _SOCKET_H_ - -/* - * Definitions related to sockets: types, address families, options. - */ - -/* - * Types - */ -#define SOCK_STREAM 1 /* stream socket */ -#define SOCK_DGRAM 2 /* datagram socket */ -#define SOCK_RAW 4 /* raw-protocol interface */ -#define SOCK_RDM 5 /* reliably-delivered message */ -#define SOCK_SEQPACKET 6 /* sequenced packet stream */ - -/* - * Option flags per-socket. - */ -#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ - -/* - * Additional options, not kept in so_options. - */ -#define SO_SNDBUF 0x1001 /* send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ -#define SO_PROTOTYPE 0x1009 /* get/set protocol type */ - -/* - * Structure used for manipulating linger option. - */ -struct linger { - int l_onoff; /* option on/off */ - int l_linger; /* linger time */ -}; - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xffff /* options for socket level */ - -/* - * Address families. - */ -#define AF_UNSPEC 0 /* unspecified */ -#define AF_UNIX 1 /* local to host (pipes, portals) */ -#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -#define AF_IMPLINK 3 /* arpanet imp addresses */ -#define AF_PUP 4 /* pup protocols: e.g. BSP */ -#define AF_CHAOS 5 /* mit CHAOS protocols */ -#define AF_NS 6 /* XEROX NS protocols */ -#define AF_NBS 7 /* nbs protocols */ -#define AF_ECMA 8 /* european computer manufacturers */ -#define AF_DATAKIT 9 /* datakit protocols */ -#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -#define AF_SNA 11 /* IBM SNA */ -#define AF_DECnet 12 /* DECnet */ -#define AF_DLI 13 /* DEC Direct data link interface */ -#define AF_LAT 14 /* LAT */ -#define AF_HYLINK 15 /* NSC Hyperchannel */ -#define AF_APPLETALK 16 /* Apple Talk */ -#define AF_NIT 17 /* Network Interface Tap */ -#define AF_802 18 /* IEEE 802.2, also ISO 8802 */ -#define AF_ISO 19 /* ISO protocols */ -#define AF_OSI AF_ISO -#define AF_X25 20 /* CCITT X.25 in particular */ -#define AF_OSINET 21 -#define AF_GOSIP 22 -#define AF_MAX 22 - -/* Not supported by solaris */ -/* #define AF_ROUTE 17 /* Internal Routing Protocol */ -/* #define AF_LINK 18 /* Link layer interface */ -/* #define pseudo_AF_XTP 19 /* eXpress Transfer Protocol (no AF) */ - - -/* - * Structure used by kernel to store most - * addresses. - */ -struct sockaddr { - u_short sa_family; /* address family */ - char sa_data[14]; /* actually longer; address value */ -}; - -/* - * Structure used by kernel to pass protocol - * information in raw sockets. - */ -struct sockproto { - u_short sp_family; /* address family */ - u_short sp_protocol; /* protocol */ -}; - -/* - * Protocol families, same as address families for now. - */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_IMPLINK AF_IMPLINK -#define PF_PUP AF_PUP -#define PF_CHAOS AF_CHAOS -#define PF_NS AF_NS -#define PF_NBS AF_NBS -#define PF_ECMA AF_ECMA -#define PF_DATAKIT AF_DATAKIT -#define PF_CCITT AF_CCITT -#define PF_SNA AF_SNA -#define PF_DECnet AF_DECnet -#define PF_DLI AF_DLI -#define PF_LAT AF_LAT -#define PF_HYLINK AF_HYLINK -#define PF_APPLETALK AF_APPLETALK -#define PF_NIT AF_NIT -#define PF_802 AF_802 -#define PF_ISO AF_ISO -#define PF_OSI AF_ISO -#define PF_X25 AF_X25 -#define PF_OSINET AF_OSINET -#define PF_GOSIP AF_GOSIP -#define PF_MAX AF_MAX - -/* #define PF_ROUTE AF_ROUTE */ -/* #define PF_LINK AF_LINK */ -/* #define PF_XTP pseudo_AF_XTP /* really just proto family, no AF */ - -/* - * Maximum queue length specifiable by listen. - */ -#define SOMAXCONN 5 - -/* - * Message header for recvmsg and sendmsg calls. - * Used value-result for recvmsg, value only for sendmsg. - */ -struct msghdr { - caddr_t msg_name; /* optional address */ - u_int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - u_int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_accrights; /* access rights sent/received */ - int msg_accrightslen; -}; - -#define MSG_MAXIOVLEN 16 - -#define MSG_OOB 0x1 /* process out-of-band data */ -#define MSG_PEEK 0x2 /* peek at incoming message */ -#define MSG_DONTROUTE 0x4 /* send without using routing tables */ - -/* #define MSG_EOR 0x8 data completes record */ -/* #define MSG_TRUNC 0x10 data discarded before delivery */ -/* #define MSG_CTRUNC 0x20 control data lost before delivery */ -/* #define MSG_WAITALL 0x40 wait for full request or error */ - -/* - * Header for ancillary data objects in msg_control buffer. - * Used for additional information with/about a datagram - * not expressible by flags. The format is a sequence - * of message elements headed by cmsghdr structures. - */ -struct cmsghdr { - u_int cmsg_len; /* data byte count, including hdr */ - int cmsg_level; /* originating protocol */ - int cmsg_type; /* protocol-specific type */ -/* followed by u_char cmsg_data[]; */ -}; - -/* given pointer to struct adatahdr, return pointer to data */ -#define CMSG_DATA(cmsg) ((u_char *)((cmsg) + 1)) - -/* given pointer to struct adatahdr, return pointer to next adatahdr */ -#define CMSG_NXTHDR(mhdr, cmsg) \ - (((caddr_t)(cmsg) + (cmsg)->cmsg_len + sizeof(struct cmsghdr) > \ - (mhdr)->msg_control + (mhdr)->msg_controllen) ? \ - (struct cmsghdr *)NULL : \ - (struct cmsghdr *)((caddr_t)(cmsg) + ALIGN((cmsg)->cmsg_len))) - -#define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control) - -/* "Socket"-level control message types: */ -#define SCM_RIGHTS 0x01 /* access rights (array of int) */ - -/* - * 4.3 compat sockaddr, move to compat file later - */ -struct osockaddr { - u_short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ -}; - -#define SYS_socketcall 83 - -#define SO_ACCEPT 1 -#define SO_BIND 2 -#define SO_CONNECT 3 -#define SO_GETPEERNAME 4 -#define SO_GETSOCKNAME 5 -#define SO_GETSOCKOPT 6 -#define SO_LISTEN 7 -#define SO_RECV 8 -#define SO_RECVFROM 9 -#define SO_SEND 10 -#define SO_SENDTO 11 -#define SO_SETSOCKOPT 12 -#define SO_SHUTDOWN 13 -#define SO_SOCKET 14 -#define SO_SOCKPOLL 15 -#define SO_GETIPDOMAIN 16 -#define SO_SETIPDOMAIN 17 -#define SO_ADJTIME 18 - -#include <sys/cdefs.h> - -__BEGIN_DECLS -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int getpeername __P_((int, struct sockaddr *, int *)); -int getsockname __P_((int, struct sockaddr *, int *)); -int getsockopt __P_((int, int, int, void *, int *)); -int listen __P_((int, int)); -/* original definitions -int recv __P_((int, void *, int, int)); -int recvfrom __P_((int, void *, int, int, - struct sockaddr *, int *)); -int recvmsg __P_((int, struct msghdr *, int)); -int send __P_((int, const void *, int, int)); -int sendto __P_((int, const void *, int, int, const struct sockaddr *, int)); -int sendmsg __P_((int, const struct msghdr *, int)); -*/ -ssize_t recv __P_((int, void *, size_t, int)); -ssize_t recvfrom __P_((int, void *, size_t, int, - struct sockaddr *, int *)); -ssize_t recvmsg __P_((int, struct msghdr *, int)); -ssize_t send __P_((int, const void *, size_t, int)); -ssize_t sendto __P_((int, const void *, size_t, int, - const struct sockaddr *, int)); -ssize_t sendmsg __P_((int, const struct msghdr *, int)); -int setsockopt __P_((int, int, int, const void *, int)); -int shutdown __P_((int, int)); -int socket __P_((int, int, int)); -int socketpair __P_((int, int, int, int *)); -__END_DECLS - -#endif /* !_SOCKET_H_ */ diff --git a/mit-pthreads/machdep/alpha-osf1/timers.h b/mit-pthreads/machdep/alpha-osf1/timers.h deleted file mode 100755 index 36317d083f0..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/timers.h +++ /dev/null @@ -1,60 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/types.h> -#include <time.h> - -struct timespec { - time_t tv_sec; - long tv_nsec; -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -#endif diff --git a/mit-pthreads/machdep/alpha-osf1/uio.h b/mit-pthreads/machdep/alpha-osf1/uio.h deleted file mode 100755 index 8d494672ee4..00000000000 --- a/mit-pthreads/machdep/alpha-osf1/uio.h +++ /dev/null @@ -1,12 +0,0 @@ -/* N.B.: The Alpha, under OSF/1, does *not* use size_t for the length, - or for the returned values from readv and writev. */ - -struct iovec { - void *iov_base; - int iov_len; -}; - -/* I'm assuming the iovec structures are const. I haven't verified - it. */ -extern ssize_t readv (int, const struct iovec *, int); -extern ssize_t writev (int, const struct iovec *, int); diff --git a/mit-pthreads/machdep/bsdi-1.1/compat.h b/mit-pthreads/machdep/bsdi-1.1/compat.h deleted file mode 100755 index e6f60c372c7..00000000000 --- a/mit-pthreads/machdep/bsdi-1.1/compat.h +++ /dev/null @@ -1,43 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : COmpat header to make socket code compile. - * - * 1.00 94/08/01 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#endif diff --git a/mit-pthreads/machdep/bsdi-1.1/dirent.h b/mit-pthreads/machdep/bsdi-1.1/dirent.h deleted file mode 100755 index d0272a4ee38..00000000000 --- a/mit-pthreads/machdep/bsdi-1.1/dirent.h +++ /dev/null @@ -1,73 +0,0 @@ -/* BSDI $Id$ */ - -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - unsigned long - d_fileno; /* file number of entry */ - unsigned short - d_reclen; /* length of this record */ - unsigned short - d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -/* - * There should probably be no need for this. In the BSDI sources, - * it is excluded if _POSIX_SOURCE is defined, and pthreads are supposed - * to be posix. Sources that use d_ino should really be using d_fileno. - * mbd - */ -#define d_ino d_fileno /* backward compatibility */ - -#endif /* !_SYS_DIRENT_H_ */ - diff --git a/mit-pthreads/machdep/bsdi-1.1/errno.h b/mit-pthreads/machdep/bsdi-1.1/errno.h deleted file mode 100755 index 3da61d692a3..00000000000 --- a/mit-pthreads/machdep/bsdi-1.1/errno.h +++ /dev/null @@ -1,160 +0,0 @@ -/* $NetBSD: errno.h,v 1.8 1994/06/29 06:44:02 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)errno.h 8.5 (Berkeley) 1/21/94 - */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* Input/output error */ -#define ENXIO 6 /* Device not configured */ -#define E2BIG 7 /* Argument list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file descriptor */ -#define ECHILD 10 /* No child processes */ -#define EDEADLK 11 /* Resource deadlock avoided */ - /* 11 was EAGAIN */ -#define ENOMEM 12 /* Cannot allocate memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -#ifndef _POSIX_SOURCE -#define ENOTBLK 15 /* Block device required */ -#endif -#define EBUSY 16 /* Device busy */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* Operation not supported by device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* Too many open files in system */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Inappropriate ioctl for device */ -#ifndef _POSIX_SOURCE -#define ETXTBSY 26 /* Text file busy */ -#endif -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ - -/* math software */ -#define EDOM 33 /* Numerical argument out of domain */ -#define ERANGE 34 /* Result too large */ - -/* non-blocking and interrupt i/o */ -#define EAGAIN 35 /* Resource temporarily unavailable */ -#ifndef _POSIX_SOURCE -#define EWOULDBLOCK EAGAIN /* Operation would block */ -#define EINPROGRESS 36 /* Operation now in progress */ -#define EALREADY 37 /* Operation already in progress */ - -/* ipc/network software -- argument errors */ -#define ENOTSOCK 38 /* Socket operation on non-socket */ -#define EDESTADDRREQ 39 /* Destination address required */ -#define EMSGSIZE 40 /* Message too long */ -#define EPROTOTYPE 41 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 42 /* Protocol not available */ -#define EPROTONOSUPPORT 43 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 44 /* Socket type not supported */ -#define EOPNOTSUPP 45 /* Operation not supported */ -#define EPFNOSUPPORT 46 /* Protocol family not supported */ -#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ -#define EADDRINUSE 48 /* Address already in use */ -#define EADDRNOTAVAIL 49 /* Can't assign requested address */ - -/* ipc/network software -- operational errors */ -#define ENETDOWN 50 /* Network is down */ -#define ENETUNREACH 51 /* Network is unreachable */ -#define ENETRESET 52 /* Network dropped connection on reset */ -#define ECONNABORTED 53 /* Software caused connection abort */ -#define ECONNRESET 54 /* Connection reset by peer */ -#define ENOBUFS 55 /* No buffer space available */ -#define EISCONN 56 /* Socket is already connected */ -#define ENOTCONN 57 /* Socket is not connected */ -#define ESHUTDOWN 58 /* Can't send after socket shutdown */ -#define ETOOMANYREFS 59 /* Too many references: can't splice */ -#define ETIMEDOUT 60 /* Operation timed out */ -#define ECONNREFUSED 61 /* Connection refused */ - -#define ELOOP 62 /* Too many levels of symbolic links */ -#endif /* _POSIX_SOURCE */ -#define ENAMETOOLONG 63 /* File name too long */ - -/* should be rearranged */ -#ifndef _POSIX_SOURCE -#define EHOSTDOWN 64 /* Host is down */ -#define EHOSTUNREACH 65 /* No route to host */ -#endif /* _POSIX_SOURCE */ -#define ENOTEMPTY 66 /* Directory not empty */ - -/* quotas & mush */ -#ifndef _POSIX_SOURCE -#define EPROCLIM 67 /* Too many processes */ -#define EUSERS 68 /* Too many users */ -#define EDQUOT 69 /* Disc quota exceeded */ - -/* Network File System */ -#define ESTALE 70 /* Stale NFS file handle */ -#define EREMOTE 71 /* Too many levels of remote in path */ -#define EBADRPC 72 /* RPC struct is bad */ -#define ERPCMISMATCH 73 /* RPC version wrong */ -#define EPROGUNAVAIL 74 /* RPC prog. not avail */ -#define EPROGMISMATCH 75 /* Program version wrong */ -#define EPROCUNAVAIL 76 /* Bad procedure for program */ -#endif /* _POSIX_SOURCE */ - -#define ENOLCK 77 /* No locks available */ -#define ENOSYS 78 /* Function not implemented */ - -#ifndef _POSIX_SOURCE -#define EFTYPE 79 /* Inappropriate file type or format */ -#define EAUTH 80 /* Authentication error */ -#define ENEEDAUTH 81 /* Need authenticator */ -#define ELAST 81 /* Must be equal largest errno */ -#endif /* _POSIX_SOURCE */ - -#endif diff --git a/mit-pthreads/machdep/bsdi-1.1/socket.h b/mit-pthreads/machdep/bsdi-1.1/socket.h deleted file mode 100755 index 39d7c1cce26..00000000000 --- a/mit-pthreads/machdep/bsdi-1.1/socket.h +++ /dev/null @@ -1,277 +0,0 @@ -/* BSDI $Id$ */ - -/* - * Copyright (c) 1982,1985,1986,1988 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)socket.h 7.13 (Berkeley) 4/20/91 - */ - -#ifndef _SOCKET_H_ -#define _SOCKET_H_ - -/* - * Definitions related to sockets: types, address families, options. - */ - -/* - * Types - */ -#define SOCK_STREAM 1 /* stream socket */ -#define SOCK_DGRAM 2 /* datagram socket */ -#define SOCK_RAW 3 /* raw-protocol interface */ -#define SOCK_RDM 4 /* reliably-delivered message */ -#define SOCK_SEQPACKET 5 /* sequenced packet stream */ - -/* - * Option flags per-socket. - */ -#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ - -/* - * Additional options, not kept in so_options. - */ -#define SO_SNDBUF 0x1001 /* send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ - -/* - * Structure used for manipulating linger option. - */ -struct linger { - int l_onoff; /* option on/off */ - int l_linger; /* linger time */ -}; - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xffff /* options for socket level */ - -/* - * Address families. - */ -#define AF_UNSPEC 0 /* unspecified */ -#define AF_UNIX 1 /* local to host (pipes, portals) */ -#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -#define AF_IMPLINK 3 /* arpanet imp addresses */ -#define AF_PUP 4 /* pup protocols: e.g. BSP */ -#define AF_CHAOS 5 /* mit CHAOS protocols */ -#define AF_NS 6 /* XEROX NS protocols */ -#define AF_ISO 7 /* ISO protocols */ -#define AF_OSI AF_ISO -#define AF_ECMA 8 /* european computer manufacturers */ -#define AF_DATAKIT 9 /* datakit protocols */ -#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -#define AF_SNA 11 /* IBM SNA */ -#define AF_DECnet 12 /* DECnet */ -#define AF_DLI 13 /* DEC Direct data link interface */ -#define AF_LAT 14 /* LAT */ -#define AF_HYLINK 15 /* NSC Hyperchannel */ -#define AF_APPLETALK 16 /* Apple Talk */ -#define AF_ROUTE 17 /* Internal Routing Protocol */ -#define AF_LINK 18 /* Link layer interface */ -#define pseudo_AF_XTP 19 /* eXpress Transfer Protocol (no AF) */ - -#define AF_MAX 20 - -/* - * Structure used by kernel to store most - * addresses. - */ -struct sockaddr { - u_char sa_len; /* total length */ - u_char sa_family; /* address family */ - char sa_data[14]; /* actually longer; address value */ -}; - -/* - * Structure used by kernel to pass protocol - * information in raw sockets. - */ -struct sockproto { - u_short sp_family; /* address family */ - u_short sp_protocol; /* protocol */ -}; - -/* - * Protocol families, same as address families for now. - */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_IMPLINK AF_IMPLINK -#define PF_PUP AF_PUP -#define PF_CHAOS AF_CHAOS -#define PF_NS AF_NS -#define PF_ISO AF_ISO -#define PF_OSI AF_ISO -#define PF_ECMA AF_ECMA -#define PF_DATAKIT AF_DATAKIT -#define PF_CCITT AF_CCITT -#define PF_SNA AF_SNA -#define PF_DECnet AF_DECnet -#define PF_DLI AF_DLI -#define PF_LAT AF_LAT -#define PF_HYLINK AF_HYLINK -#define PF_APPLETALK AF_APPLETALK -#define PF_ROUTE AF_ROUTE -#define PF_LINK AF_LINK -#define PF_XTP pseudo_AF_XTP /* really just proto family, no AF */ - -#define PF_MAX AF_MAX - -/* - * Maximum queue length specifiable by listen. - */ -#define SOMAXCONN 5 - -/* - * Message header for recvmsg and sendmsg calls. - * Used value-result for recvmsg, value only for sendmsg. - */ -struct msghdr { - caddr_t msg_name; /* optional address */ - u_int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - u_int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_control; /* ancillary data, see below */ - u_int msg_controllen; /* ancillary data buffer len */ - int msg_flags; /* flags on received message */ -}; - -#define MSG_OOB 0x1 /* process out-of-band data */ -#define MSG_PEEK 0x2 /* peek at incoming message */ -#define MSG_DONTROUTE 0x4 /* send without using routing tables */ -#define MSG_EOR 0x8 /* data completes record */ -#define MSG_TRUNC 0x10 /* data discarded before delivery */ -#define MSG_CTRUNC 0x20 /* control data lost before delivery */ -#define MSG_WAITALL 0x40 /* wait for full request or error */ - -/* - * Header for ancillary data objects in msg_control buffer. - * Used for additional information with/about a datagram - * not expressible by flags. The format is a sequence - * of message elements headed by cmsghdr structures. - */ -struct cmsghdr { - u_int cmsg_len; /* data byte count, including hdr */ - int cmsg_level; /* originating protocol */ - int cmsg_type; /* protocol-specific type */ -/* followed by u_char cmsg_data[]; */ -}; - -/* given pointer to struct adatahdr, return pointer to data */ -#define CMSG_DATA(cmsg) ((u_char *)((cmsg) + 1)) - -/* given pointer to struct adatahdr, return pointer to next adatahdr */ -#define CMSG_NXTHDR(mhdr, cmsg) \ - (((caddr_t)(cmsg) + (cmsg)->cmsg_len + sizeof(struct cmsghdr) > \ - (mhdr)->msg_control + (mhdr)->msg_controllen) ? \ - (struct cmsghdr *)NULL : \ - (struct cmsghdr *)((caddr_t)(cmsg) + ALIGN((cmsg)->cmsg_len))) - -#define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control) - -/* "Socket"-level control message types: */ -#define SCM_RIGHTS 0x01 /* access rights (array of int) */ - -/* - * 4.3 compat sockaddr, move to compat file later - */ -struct osockaddr { - u_short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ -}; - -/* - * 4.3-compat message header (move to compat file later). - */ -struct omsghdr { - caddr_t msg_name; /* optional address */ - int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_accrights; /* access rights sent/received */ - int msg_accrightslen; -}; - -#ifndef KERNEL - -#include <sys/cdefs.h> - -__BEGIN_DECLS -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int getpeername __P_((int, struct sockaddr *, int *)); -int getsockname __P_((int, struct sockaddr *, int *)); -int getsockopt __P_((int, int, int, void *, int *)); -int listen __P_((int, int)); -/* original definitions -int recv __P_((int, void *, int, int)); -int recvfrom __P_((int, void *, int, int, - struct sockaddr *, int *)); -int recvmsg __P_((int, struct msghdr *, int)); -int send __P_((int, const void *, int, int)); -int sendto __P_((int, const void *, int, int, const struct sockaddr *, int)); -int sendmsg __P_((int, const struct msghdr *, int)); -*/ -ssize_t recv __P_((int, void *, size_t, int)); -ssize_t recvfrom __P_((int, void *, size_t, int, - struct sockaddr *, int *)); -ssize_t recvmsg __P_((int, struct msghdr *, int)); -ssize_t send __P_((int, const void *, size_t, int)); -ssize_t sendto __P_((int, const void *, size_t, int, - const struct sockaddr *, int)); -ssize_t sendmsg __P_((int, const struct msghdr *, int)); -int setsockopt __P_((int, int, int, const void *, int)); -int shutdown __P_((int, int)); -int socket __P_((int, int, int)); -int socketpair __P_((int, int, int, int *)); -__END_DECLS - -#endif /* !KERNEL */ - -#endif /* !_SOCKET_H_ */ diff --git a/mit-pthreads/machdep/bsdi-1.1/timers.h b/mit-pthreads/machdep/bsdi-1.1/timers.h deleted file mode 100755 index 7101ab99106..00000000000 --- a/mit-pthreads/machdep/bsdi-1.1/timers.h +++ /dev/null @@ -1,59 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/time.h> - -struct timespec { - time_t tv_sec; - long tv_nsec; -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -#endif diff --git a/mit-pthreads/machdep/bsdi-2.0/__math.h b/mit-pthreads/machdep/bsdi-2.0/__math.h deleted file mode 100755 index 2c919472f33..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/__math.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * ANSI/POSIX - */ -/* Generate an overflow to create +Inf; the multiply shuts up gcc 1 */ -#define HUGE_VAL (1e250*1e250) /* IEEE: positive infinity */ - diff --git a/mit-pthreads/machdep/bsdi-2.0/__path.h b/mit-pthreads/machdep/bsdi-2.0/__path.h deleted file mode 100755 index 9c347016f5f..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/__path.h +++ /dev/null @@ -1,13 +0,0 @@ -/* - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * __path.h,v 1.1 1995/01/03 12:53:32 proven Exp - */ - -#ifndef _SYS__PATH_H_ -#define _SYS__PATH_H_ - -#define _PATH_PTY "/dev/" -#define _PATH_TZDIR "/usr/share/zoneinfo" -#define _PATH_TZFILE "/etc/localtime" - -#endif /* !_SYS__PATH_H_ */ diff --git a/mit-pthreads/machdep/bsdi-2.0/__signal.h b/mit-pthreads/machdep/bsdi-2.0/__signal.h deleted file mode 100755 index d3deecf15e2..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/__signal.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <sys/signal.h> - -#define __SIGEMPTYSET 0 -#define __SIGFILLSET 0xffffffff -#define __SIGADDSET(s, n) (*(s) |= 1 << ((n) - 1), 0) -#define __SIGDELSET(s, n) (*(s) &= ~(1 << ((n) - 1)), 0) -#define __SIGISMEMBER(s, n) ((*(s) & (1 << ((n) - 1))) != 0) diff --git a/mit-pthreads/machdep/bsdi-2.0/__stdio.h b/mit-pthreads/machdep/bsdi-2.0/__stdio.h deleted file mode 100755 index d4d37c2017c..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/__stdio.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -typedef pthread_fpos_t fpos_t; /* Must match off_t <sys/types.h> */ diff --git a/mit-pthreads/machdep/bsdi-2.0/__stdlib.h b/mit-pthreads/machdep/bsdi-2.0/__stdlib.h deleted file mode 100755 index 189bb5e8799..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/__stdlib.h +++ /dev/null @@ -1,60 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * __stdlib.h,v 1.1 1995/01/03 12:53:34 proven Exp - */ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <machine/ansi.h> - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#ifdef _BSD_WCHAR_T_ -typedef _BSD_WCHAR_T_ wchar_t; -#undef _BSD_WCHAR_T_ -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif /* _STDLIB_H_ */ diff --git a/mit-pthreads/machdep/bsdi-2.0/__string.h b/mit-pthreads/machdep/bsdi-2.0/__string.h deleted file mode 100755 index 275032946ea..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/__string.h +++ /dev/null @@ -1,19 +0,0 @@ -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -/* Non-standard NetBSD string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -void strmode __P_((int, char *)); -char *strsep __P_((char **, const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/bsdi-2.0/__time.h b/mit-pthreads/machdep/bsdi-2.0/__time.h deleted file mode 100755 index bc4d956486d..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/__time.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * __time.h,v 1.1 1994/12/13 07:18:55 proven Exp - */ - -#ifndef _SYS__TIME_H_ -#define _SYS__TIME_H_ - -#include <machine/ansi.h> - -#ifdef _BSD_CLOCK_T_ -typedef _BSD_CLOCK_T_ clock_t; -#undef _BSD_CLOCK_T_ -#endif - -#ifdef _BSD_TIME_T_ -typedef _BSD_TIME_T_ time_t; -#undef _BSD_TIME_T_ -#endif - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#endif /* !_SYS__TIME_H_ */ diff --git a/mit-pthreads/machdep/bsdi-2.0/__unistd.h b/mit-pthreads/machdep/bsdi-2.0/__unistd.h deleted file mode 100755 index 4a5ee6a245e..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/__unistd.h +++ /dev/null @@ -1,109 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * __unistd.h,v 1.1 1995/01/03 12:53:35 proven Exp - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/types.h> - -#ifndef NULL -#define NULL 0 -#endif - -#define ioctl_request_type unsigned long /* For fd.c */ - -/* compile-time symbolic constants */ -#define _POSIX_JOB_CONTROL /* implementation supports job control */ - -#ifdef _NOT_AVAILABLE -#define _POSIX_SAVED_IDS /* saved set-user-ID and set-group-ID */ -#endif - -#define _POSIX_VERSION 198808L -#define _POSIX2_VERSION 199212L - -/* execution-time symbolic constants */ - /* chown requires appropriate privileges */ -#define _POSIX_CHOWN_RESTRICTED 1 - /* too-long path components generate errors */ -#define _POSIX_NO_TRUNC 1 - /* may disable terminal special characters */ -#define _POSIX_VDISABLE ((unsigned char)'\377') - -/* configurable pathname variables */ -#define _PC_LINK_MAX 1 -#define _PC_MAX_CANON 2 -#define _PC_MAX_INPUT 3 -#define _PC_NAME_MAX 4 -#define _PC_PATH_MAX 5 -#define _PC_PIPE_BUF 6 -#define _PC_CHOWN_RESTRICTED 7 -#define _PC_NO_TRUNC 8 -#define _PC_VDISABLE 9 - -/* configurable system variables */ -#define _SC_ARG_MAX 1 -#define _SC_CHILD_MAX 2 -#define _SC_CLK_TCK 3 -#define _SC_NGROUPS_MAX 4 -#define _SC_OPEN_MAX 5 -#define _SC_JOB_CONTROL 6 -#define _SC_SAVED_IDS 7 -#define _SC_VERSION 8 -#define _SC_BC_BASE_MAX 9 -#define _SC_BC_DIM_MAX 10 -#define _SC_BC_SCALE_MAX 11 -#define _SC_BC_STRING_MAX 12 -#define _SC_COLL_WEIGHTS_MAX 13 -#define _SC_EXPR_NEST_MAX 14 -#define _SC_LINE_MAX 15 -#define _SC_RE_DUP_MAX 16 -#define _SC_2_VERSION 17 -#define _SC_2_C_BIND 18 -#define _SC_2_C_DEV 19 -#define _SC_2_CHAR_TERM 20 -#define _SC_2_FORT_DEV 21 -#define _SC_2_FORT_RUN 22 -#define _SC_2_LOCALEDEF 23 -#define _SC_2_SW_DEV 24 -#define _SC_2_UPE 25 -#define _SC_STREAM_MAX 26 -#define _SC_TZNAME_MAX 27 - -/* configurable system strings */ -#define _CS_PATH 1 - -#endif diff --git a/mit-pthreads/machdep/bsdi-2.0/compat.h b/mit-pthreads/machdep/bsdi-2.0/compat.h deleted file mode 100755 index 0dfdc27f9e8..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/compat.h +++ /dev/null @@ -1,65 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno /* backward compatibility */ - -/* definitions for library routines operating on directories. */ -#define DIRBLKSIZ 1024 - -#endif /* !_DIRENT_H_ */ - diff --git a/mit-pthreads/machdep/bsdi-2.0/dirent.h b/mit-pthreads/machdep/bsdi-2.0/dirent.h deleted file mode 100755 index 0dfdc27f9e8..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/dirent.h +++ /dev/null @@ -1,65 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno /* backward compatibility */ - -/* definitions for library routines operating on directories. */ -#define DIRBLKSIZ 1024 - -#endif /* !_DIRENT_H_ */ - diff --git a/mit-pthreads/machdep/bsdi-2.0/errno.h b/mit-pthreads/machdep/bsdi-2.0/errno.h deleted file mode 100755 index 1a3c37d0147..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/errno.h +++ /dev/null @@ -1,162 +0,0 @@ - -/* $NetBSD: errno.h,v 1.8 1994/06/29 06:44:02 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)errno.h 8.5 (Berkeley) 1/21/94 - */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* Input/output error */ -#define ENXIO 6 /* Device not configured */ -#define E2BIG 7 /* Argument list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file descriptor */ -#define ECHILD 10 /* No child processes */ -#define EDEADLK 11 /* Resource deadlock avoided */ - /* 11 was EAGAIN */ -#define ENOMEM 12 /* Cannot allocate memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -#ifndef _POSIX_SOURCE -#define ENOTBLK 15 /* Block device required */ -#endif -#define EBUSY 16 /* Device busy */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* Operation not supported by device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* Too many open files in system */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Inappropriate ioctl for device */ -#ifndef _POSIX_SOURCE -#define ETXTBSY 26 /* Text file busy */ -#endif -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ - -/* math software */ -#define EDOM 33 /* Numerical argument out of domain */ -#define ERANGE 34 /* Result too large */ - -/* non-blocking and interrupt i/o */ -#define EAGAIN 35 /* Resource temporarily unavailable */ -#ifndef _POSIX_SOURCE -#define EWOULDBLOCK EAGAIN /* Operation would block */ -#define EINPROGRESS 36 /* Operation now in progress */ -#define EALREADY 37 /* Operation already in progress */ - -/* ipc/network software -- argument errors */ -#define ENOTSOCK 38 /* Socket operation on non-socket */ -#define EDESTADDRREQ 39 /* Destination address required */ -#define EMSGSIZE 40 /* Message too long */ -#define EPROTOTYPE 41 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 42 /* Protocol not available */ -#define EPROTONOSUPPORT 43 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 44 /* Socket type not supported */ -#define EOPNOTSUPP 45 /* Operation not supported */ -#define EPFNOSUPPORT 46 /* Protocol family not supported */ -#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ -#define EADDRINUSE 48 /* Address already in use */ -#define EADDRNOTAVAIL 49 /* Can't assign requested address */ - -/* ipc/network software -- operational errors */ -#define ENETDOWN 50 /* Network is down */ -#define ENETUNREACH 51 /* Network is unreachable */ -#define ENETRESET 52 /* Network dropped connection on reset */ -#define ECONNABORTED 53 /* Software caused connection abort */ -#define ECONNRESET 54 /* Connection reset by peer */ -#define ENOBUFS 55 /* No buffer space available */ -#define EISCONN 56 /* Socket is already connected */ -#define ENOTCONN 57 /* Socket is not connected */ -#define ESHUTDOWN 58 /* Can't send after socket shutdown */ -#define ETOOMANYREFS 59 /* Too many references: can't splice */ -#define ETIMEDOUT 60 /* Operation timed out */ -#define ECONNREFUSED 61 /* Connection refused */ - -#define ELOOP 62 /* Too many levels of symbolic links */ -#endif /* _POSIX_SOURCE */ -#define ENAMETOOLONG 63 /* File name too long */ - -/* should be rearranged */ -#ifndef _POSIX_SOURCE -#define EHOSTDOWN 64 /* Host is down */ -#define EHOSTUNREACH 65 /* No route to host */ -#endif /* _POSIX_SOURCE */ -#define ENOTEMPTY 66 /* Directory not empty */ - -/* quotas & mush */ -#ifndef _POSIX_SOURCE -#define EPROCLIM 67 /* Too many processes */ -#define EUSERS 68 /* Too many users */ -#define EDQUOT 69 /* Disc quota exceeded */ - -/* Network File System */ -#define ESTALE 70 /* Stale NFS file handle */ -#define EREMOTE 71 /* Too many levels of remote in path */ -#define EBADRPC 72 /* RPC struct is bad */ -#define ERPCMISMATCH 73 /* RPC version wrong */ -#define EPROGUNAVAIL 74 /* RPC prog. not avail */ -#define EPROGMISMATCH 75 /* Program version wrong */ -#define EPROCUNAVAIL 76 /* Bad procedure for program */ -#endif /* _POSIX_SOURCE */ - -#define ENOLCK 77 /* No locks available */ -#define ENOSYS 78 /* Function not implemented */ - -#ifndef _POSIX_SOURCE -#define EFTYPE 79 /* Inappropriate file type or format */ -#define EAUTH 80 /* Authentication error */ -#define ENEEDAUTH 81 /* Need authenticator */ -#define ELAST 81 /* Must be equal largest errno */ -#endif /* _POSIX_SOURCE */ - -#endif - diff --git a/mit-pthreads/machdep/bsdi-2.0/time.h b/mit-pthreads/machdep/bsdi-2.0/time.h deleted file mode 100755 index a8bf0ff8f82..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/time.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef ts_sec -#define ts_sec tv_sec -#define ts_nsec tv_nsec -#endif -#include "/usr/include/sys/time.h" - diff --git a/mit-pthreads/machdep/bsdi-2.0/timers.h b/mit-pthreads/machdep/bsdi-2.0/timers.h deleted file mode 100755 index b603b78e6b2..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/timers.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * timers.h,v 1.50 1994/08/08 03:44:09 proven Exp - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/time.h> - -#endif diff --git a/mit-pthreads/machdep/bsdi-2.0/wait.h b/mit-pthreads/machdep/bsdi-2.0/wait.h deleted file mode 100755 index 5f7635a73a7..00000000000 --- a/mit-pthreads/machdep/bsdi-2.0/wait.h +++ /dev/null @@ -1,159 +0,0 @@ -/* $NetBSD: wait.h,v 1.7 1994/06/29 06:46:23 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)wait.h 8.1 (Berkeley) 6/2/93 - */ - -/* - * This file holds definitions relevent to the wait4 system call - * and the alternate interfaces that use it (wait, wait3, waitpid). - */ - -/* - * Macros to test the exit status returned by wait - * and extract the relevant values. - */ -#ifdef _POSIX_SOURCE -#define _W_INT(i) (i) -#else -#define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */ -#define WCOREFLAG 0200 -#endif - -#define _WSTATUS(x) (_W_INT(x) & 0177) -#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED) -#define WSTOPSIG(x) (_W_INT(x) >> 8) -#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) -#define WTERMSIG(x) (_WSTATUS(x)) -#define WIFEXITED(x) (_WSTATUS(x) == 0) -#define WEXITSTATUS(x) (_W_INT(x) >> 8) -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG) - -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED) -#endif - -/* - * Option bits for the third argument of wait4. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE -/* POSIX extensions and 4.2/4.3 compatability: */ - -/* - * Tokens for special values of the "pid" parameter to wait4. - */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#include <machine/endian.h> - -/* - * Deprecated: - * Structure of the information in the status word returned by wait4. - * If w_stopval==WSTOPPED, then the second structure describes - * the information returned, else the first. - */ -union wait { - int w_status; /* used in syscall */ - /* - * Terminated process status. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Termsig:7, /* termination signal */ - w_Coredump:1, /* core dump indicator */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Coredump:1, /* core dump indicator */ - w_Termsig:7; /* termination signal */ -#endif - } w_T; - /* - * Stopped process status. Returned - * only for traced children unless requested - * with the WUNTRACED option bit. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Stopval:8, /* == W_STOPPED if stopped */ - w_Stopsig:8, /* signal that stopped us */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Stopsig:8, /* signal that stopped us */ - w_Stopval:8; /* == W_STOPPED if stopped */ -#endif - } w_S; -}; -#define w_termsig w_T.w_Termsig -#define w_coredump w_T.w_Coredump -#define w_retcode w_T.w_Retcode -#define w_stopval w_S.w_Stopval -#define w_stopsig w_S.w_Stopsig - -#define WSTOPPED _WSTOPPED -#endif /* _POSIX_SOURCE */ - -#ifndef KERNEL -#include <sys/types.h> -#include <sys/cdefs.h> - -__BEGIN_DECLS -struct rusage; /* forward declaration */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -pid_t wait4 __P_((pid_t, int *, int, void *)); -#endif -__END_DECLS -#endif - diff --git a/mit-pthreads/machdep/engine-alpha-netbsd-1.1.c b/mit-pthreads/machdep/engine-alpha-netbsd-1.1.c deleted file mode 100644 index c1ff04db16d..00000000000 --- a/mit-pthreads/machdep/engine-alpha-netbsd-1.1.c +++ /dev/null @@ -1,196 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for NetBSD/Alpha 1.1(+) - * - * 1.00 93/08/04 proven - * -Started coding this file. - * - * 95/04/22 cgd - * -Modified to make it go with NetBSD/Alpha - */ - -#ifndef lint -static const char rcsid[] = "engine-alpha-osf1.c,v 1.4.4.1 1995/12/13 05:41:37 proven Exp"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/syscall.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return __machdep_save_int_state(pthread_run->machdep_data.machdep_istate); -} - -void machdep_restore_state(void) -{ - __machdep_restore_int_state(pthread_run->machdep_data.machdep_istate); -} - -void machdep_save_float_state (void) -{ - __machdep_save_fp_state(pthread_run->machdep_data.machdep_fstate); -} - -void machdep_restore_float_state (void) -{ - __machdep_restore_fp_state(pthread_run->machdep_data.machdep_fstate); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume (); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - /* Set up new stack frame so that it looks like it returned from a - longjmp() to the beginning of machdep_pthread_start(). */ - machdep_pthread->machdep_istate[8/*ISTATE_RA*/] = 0; - machdep_pthread->machdep_istate[0/*ISTATE_PC*/] = (long)machdep_pthread_start; - machdep_pthread->machdep_istate[10/*ISTATE_PV*/] = (long)machdep_pthread_start; - - /* Alpha stack starts high and builds down. */ - { - long stk_addr = (long) machdep_pthread->machdep_stack; - stk_addr += stack_size - 1024; - stk_addr &= ~15; - machdep_pthread->machdep_istate[9/*ISTATE_SP*/] = stk_addr; - } -} - -int safe_store (loc, new) - int *loc; - int new; -{ - int locked, old; - asm ("mb" : : : "memory"); - do { - asm ("ldl_l %0,%1" : "=r" (old) : "m" (*loc)); - asm ("stl_c %0,%1" : "=r" (locked), "=m" (*loc) : "0" (new)); - } while (!locked); - asm ("mb" : : : "memory"); - return old; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} - -/* ========================================================================== - * machdep_sys_lseek() - */ -off_t machdep_sys_lseek(int fd, off_t offset, int whence) -{ - extern off_t __syscall(); - - return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence)); -} diff --git a/mit-pthreads/machdep/engine-alpha-netbsd-1.1.h b/mit-pthreads/machdep/engine-alpha-netbsd-1.1.h deleted file mode 100644 index 50c872da7b6..00000000000 --- a/mit-pthreads/machdep/engine-alpha-netbsd-1.1.h +++ /dev/null @@ -1,111 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1994 Chris Provenzano (proven@athena.mit.edu) and - * Ken Raeburn (raeburn@mit.edu). - * - * engine-alpha-osf1.h,v 1.4.4.1 1995/12/13 05:41:42 proven Exp - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> - -/* The first machine dependent functions are the SEMAPHORES needing - the test and set instruction. - - On the Alpha, the actual values here are irrelevant; they just have - to be different. */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#if 0 -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ int *_sem_lock = (lock), locked, old; \ - asm ("mb" : : : "memory"); \ - do { asm ("ldl_l %0,%1" : "=r" (old) : "m" (*_sem_lock)); \ - /* ?? if (old != SEMAPHORE_CLEAR) break; */ \ - asm ("stl_c %0,%1" : "=r" (locked), "=m" (*_sem_lock) \ - : "0" (SEMAPHORE_SET)); \ - } while (!locked); \ - asm ("mb" : : : "memory"); \ - old == SEMAPHORE_CLEAR; }) - -#define SEMAPHORE_RESET(lock) \ -({ int *_sem_lock = (lock); \ - *_sem_lock = SEMAPHORE_CLEAR; \ - asm ("mb" : : : "memory"); }) -#endif - -/* - * New types - */ -typedef int semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - unsigned long machdep_istate[11]; - unsigned long machdep_fstate[9]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ - { NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 2048 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -int __machdep_save_int_state __P_((unsigned long *)); -void __machdep_restore_int_state __P_((unsigned long *)); -void __machdep_save_fp_state __P_((unsigned long *)); -void __machdep_restore_fp_state __P_((unsigned long *)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-alpha-netbsd-1.3.c b/mit-pthreads/machdep/engine-alpha-netbsd-1.3.c deleted file mode 100644 index 0932c421ea2..00000000000 --- a/mit-pthreads/machdep/engine-alpha-netbsd-1.3.c +++ /dev/null @@ -1,204 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for NetBSD/Alpha 1.1(+) - * - * 1.00 93/08/04 proven - * -Started coding this file. - * - * 95/04/22 cgd - * -Modified to make it go with NetBSD/Alpha - */ - -#ifndef lint -static const char rcsid[] = "engine-alpha-osf1.c,v 1.4.4.1 1995/12/13 05:41:37 proven Exp"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/syscall.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return __machdep_save_int_state(pthread_run->machdep_data.machdep_istate); -} - -void machdep_restore_state(void) -{ - __machdep_restore_int_state(pthread_run->machdep_data.machdep_istate); -} - -void machdep_save_float_state (void) -{ - __machdep_save_fp_state(pthread_run->machdep_data.machdep_fstate); -} - -void machdep_restore_float_state (void) -{ - __machdep_restore_fp_state(pthread_run->machdep_data.machdep_fstate); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume (); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - /* Set up new stack frame so that it looks like it returned from a - longjmp() to the beginning of machdep_pthread_start(). */ - machdep_pthread->machdep_istate[8/*ISTATE_RA*/] = 0; - machdep_pthread->machdep_istate[0/*ISTATE_PC*/] = (long)machdep_pthread_start; - machdep_pthread->machdep_istate[10/*ISTATE_PV*/] = (long)machdep_pthread_start; - - /* Alpha stack starts high and builds down. */ - { - long stk_addr = (long) machdep_pthread->machdep_stack; - stk_addr += stack_size - 1024; - stk_addr &= ~15; - machdep_pthread->machdep_istate[9/*ISTATE_SP*/] = stk_addr; - } -} - -int safe_store (loc, new) - int *loc; - int new; -{ - int locked, old; - asm ("mb" : : : "memory"); - do { - asm ("ldl_l %0,%1" : "=r" (old) : "m" (*loc)); - asm ("stl_c %0,%1" : "=r" (locked), "=m" (*loc) : "0" (new)); - } while (!locked); - asm ("mb" : : : "memory"); - return old; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} - -/* ========================================================================== - * machdep_sys_lseek() - */ -off_t machdep_sys_lseek(int fd, off_t offset, int whence) -{ - extern off_t __syscall(); - - return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence)); -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} diff --git a/mit-pthreads/machdep/engine-alpha-netbsd-1.3.h b/mit-pthreads/machdep/engine-alpha-netbsd-1.3.h deleted file mode 100644 index bc4178d3c41..00000000000 --- a/mit-pthreads/machdep/engine-alpha-netbsd-1.3.h +++ /dev/null @@ -1,114 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1994 Chris Provenzano (proven@athena.mit.edu) and - * Ken Raeburn (raeburn@mit.edu). - * - * engine-alpha-osf1.h,v 1.4.4.1 1995/12/13 05:41:42 proven Exp - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> -#include <sys/signal.h> /* for _NSIG */ - -/* The first machine dependent functions are the SEMAPHORES needing - the test and set instruction. - - On the Alpha, the actual values here are irrelevant; they just have - to be different. */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#if 0 -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ int *_sem_lock = (lock), locked, old; \ - asm ("mb" : : : "memory"); \ - do { asm ("ldl_l %0,%1" : "=r" (old) : "m" (*_sem_lock)); \ - /* ?? if (old != SEMAPHORE_CLEAR) break; */ \ - asm ("stl_c %0,%1" : "=r" (locked), "=m" (*_sem_lock) \ - : "0" (SEMAPHORE_SET)); \ - } while (!locked); \ - asm ("mb" : : : "memory"); \ - old == SEMAPHORE_CLEAR; }) - -#define SEMAPHORE_RESET(lock) \ -({ int *_sem_lock = (lock); \ - *_sem_lock = SEMAPHORE_CLEAR; \ - asm ("mb" : : : "memory"); }) -#endif - -/* - * New types - */ -typedef int semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX (_NSIG-1) - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - unsigned long machdep_istate[11]; - unsigned long machdep_fstate[9]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ - { NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 2048 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -int __machdep_save_int_state __P_((unsigned long *)); -void __machdep_restore_int_state __P_((unsigned long *)); -void __machdep_save_fp_state __P_((unsigned long *)); -void __machdep_restore_fp_state __P_((unsigned long *)); - -extern off_t machdep_sys_lseek(int, off_t, int); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-alpha-osf1.c b/mit-pthreads/machdep/engine-alpha-osf1.c deleted file mode 100644 index 9b563a56c28..00000000000 --- a/mit-pthreads/machdep/engine-alpha-osf1.c +++ /dev/null @@ -1,207 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for SunOS-4.1.3 on sparc - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <stdlib.h> - -/* These would be defined in setjmp.h, if _POSIX_SOURCE and _XOPEN_SOURCE - were both undefined. But we've already included it, and lost the - opportunity. */ -#define JB_PC 2 -#define JB_RA 30 -#define JB_PV 31 -#define JB_SP 34 - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return setjmp (pthread_run->machdep_data.machdep_state); -} - -/* ========================================================================== - * machdep_restore_state() - */ -extern void machdep_restore_from_setjmp (jmp_buf, long); -void machdep_restore_state(void) -{ - machdep_restore_from_setjmp (pthread_run->machdep_data.machdep_state, 1); -} - -void machdep_save_float_state (void) { } -void machdep_restore_float_state (void) { } - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume (); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - setjmp(machdep_pthread->machdep_state); - - /* Set up new stack frame so that it looks like it returned from a - longjmp() to the beginning of machdep_pthread_start(). */ - machdep_pthread->machdep_state[JB_RA] = 0; - machdep_pthread->machdep_state[JB_PC] = (long)machdep_pthread_start; - machdep_pthread->machdep_state[JB_PV] = (long)machdep_pthread_start; - - /* Alpha stack starts high and builds down. */ - { - long stk_addr = (long) machdep_pthread->machdep_stack; - stk_addr += stack_size - 1024; - stk_addr &= ~15; - machdep_pthread->machdep_state[JB_SP] = stk_addr; - } -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int pid, int * statusp, int options) -{ - return machdep_sys_wait4 (pid, statusp, options, NULL); -} - -/* These are found in flsbuf.o in the Alpha libc. I don't know what - they're for, precisely. */ -static xxx; -_bufsync (p) - char *p; -{ - long a1 = *(long *)(p+48); - long t0 = *(long *)(p+8); - long v0 = a1 - t0; - long t1, t2; - - abort (); - - v0 += xxx; - if (v0 < 0) - { - *(char**)(p + 8) = p; - return v0; - } - t1 = *(int*)p; - t2 = v0 - t1; - if (t2 < 0) - *(int*)p = (int) v0; - return v0; -} - -_findbuf () { abort (); } -_wrtchk () { abort (); } -_xflsbuf () { abort (); } -_flsbuf () { abort (); } - -void __xxx_never_called () { - /* Force other stuff to get dragged in. */ - _cleanup (); - fflush (NULL); - fclose (NULL); -} - -int safe_store (loc, new) - int *loc; - int new; -{ - int locked, old; - asm ("mb" : : : "memory"); - do { - asm ("ldl_l %0,%1" : "=r" (old) : "m" (*loc)); - asm ("stl_c %0,%1" : "=r" (locked), "=m" (*loc) : "0" (new)); - } while (!locked); - asm ("mb" : : : "memory"); - return old; -} diff --git a/mit-pthreads/machdep/engine-alpha-osf1.h b/mit-pthreads/machdep/engine-alpha-osf1.h deleted file mode 100644 index fdf374ccc44..00000000000 --- a/mit-pthreads/machdep/engine-alpha-osf1.h +++ /dev/null @@ -1,110 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1994 Chris Provenzano (proven@athena.mit.edu) and - * Ken Raeburn (raeburn@mit.edu). - * - * $Id$ - * - */ - -#ifndef sigwait -#define sigwait __bogus_osf1_sigwait -#endif - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> - -#undef sigwait - -/* The first machine dependent functions are the SEMAPHORES needing - the test and set instruction. - - On the Alpha, the actual values here are irrelevant; they just have - to be different. */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#if 0 -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ int *_sem_lock = (lock), locked, old; \ - asm ("mb" : : : "memory"); \ - do { asm ("ldl_l %0,%1" : "=r" (old) : "m" (*_sem_lock)); \ - /* ?? if (old != SEMAPHORE_CLEAR) break; */ \ - asm ("stl_c %0,%1" : "=r" (locked), "=m" (*_sem_lock) \ - : "0" (SEMAPHORE_SET)); \ - } while (!locked); \ - asm ("mb" : : : "memory"); \ - old == SEMAPHORE_CLEAR; }) - -#define SEMAPHORE_RESET(lock) \ -({ int *_sem_lock = (lock); \ - *_sem_lock = SEMAPHORE_CLEAR; \ - asm ("mb" : : : "memory"); }) -#endif - -/* - * New types - */ -typedef int semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ - { NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 2048 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-arm32-netbsd-1.3.c b/mit-pthreads/machdep/engine-arm32-netbsd-1.3.c deleted file mode 100644 index 510b35fdb0e..00000000000 --- a/mit-pthreads/machdep/engine-arm32-netbsd-1.3.c +++ /dev/null @@ -1,203 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for NetBSD on arm32 - * - * 1.00 93/08/04 proven - * -Started coding this file. - * - * 98/10/22 bad - * -adapt from i386 version - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/syscall.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -#if defined(_JB_REG_R13) -#define REG_LR _JB_REG_R14 -#define REG_SP _JB_REG_R13 -#else -#define REG_LR JMPBUF_REG_R14 -#define REG_SP JMPBUF_REG_R13 -#endif - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - return; -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - return; -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0 } }; - int ret; - - if (machdep_pthread) { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, - &(machdep_pthread->machdep_timer)); - } else { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, NULL); - } - - if (ret) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[REG_LR] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[REG_SP] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} diff --git a/mit-pthreads/machdep/engine-arm32-netbsd-1.3.h b/mit-pthreads/machdep/engine-arm32-netbsd-1.3.h deleted file mode 100644 index c8a4e79386a..00000000000 --- a/mit-pthreads/machdep/engine-arm32-netbsd-1.3.h +++ /dev/null @@ -1,102 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * Id: engine-i386-netbsd-1.3.h,v 1.1 1998/02/28 04:53:15 cjs Exp - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/signal.h> /* for _NSIG */ - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#if 0 -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR -#endif - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX (_NSIG-1) - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -#if 0 - char machdep_float_state[108]; -#endif -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-hppa-hpux-10.20.c b/mit-pthreads/machdep/engine-hppa-hpux-10.20.c deleted file mode 100644 index f6f0b2e0f1d..00000000000 --- a/mit-pthreads/machdep/engine-hppa-hpux-10.20.c +++ /dev/null @@ -1,169 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for HP-UX 9.03 on hppa - * - * 1.00 93/12/14 proven - * -Started coding this file. - */ - -#include <pthread.h> -#include <setjmp.h> -#include <stdlib.h> -#include <unistd.h> - -volatile int setupStack = 0; - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_save_float_state() - */ -void machdep_save_float_state(struct pthread * pthread) -{ - return; -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -void machdep_restore_float_state() -{ - return; -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(jmp_buf j) -{ - setjmp(j); - if( setupStack ) - return; - - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - jmp_buf tmp_jmp_buf; - - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - /* - * Set up new stack frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - setjmp(machdep_pthread->machdep_state); - - /* get the stack frame from the real machdep_pthread_start */ - setupStack = 1; -/* machdep_pthread_start(machdep_pthread->machdep_state); */ - machdep_pthread_start(tmp_jmp_buf); - setupStack = 0; - - /* copy over the interesting part of the frame */ - ((int *)machdep_pthread->machdep_state)[44] = ((int *)tmp_jmp_buf)[44]; - - /* Stack starts low and builds up, but needs two start frames */ - ((int *)machdep_pthread->machdep_state)[1] = - (int)machdep_pthread->machdep_stack + (64 * 2); -} - -int machdep_sys_getdtablesize() -{ - return sysconf(_SC_OPEN_MAX); -} - -void sig_check_and_resume() -{ - return; -} - -void ___exit(int status) -{ - exit(status); - PANIC(); -} diff --git a/mit-pthreads/machdep/engine-hppa-hpux-10.20.h b/mit-pthreads/machdep/engine-hppa-hpux-10.20.h deleted file mode 100644 index 9cbe3349a3d..00000000000 --- a/mit-pthreads/machdep/engine-hppa-hpux-10.20.h +++ /dev/null @@ -1,143 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * Stuff for compiling - */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#endif -#else /* !__GNUC__ */ -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const -#endif -#define inline -#define signed -#define volatile -#endif - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - * - * Note: The set and clear defines are backwards. - */ -#define SEMAPHORE_CLEAR { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \ - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \ - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } -#define SEMAPHORE_SET 0 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long real_addr; \ -long temp; \ - \ -real_addr = ((long)((*lock) + 15) & ~15); \ - \ -__asm__ volatile("ldcwx %%r0(%2),%0" \ - :"=r" (temp) \ - :"0" (temp),"r" (real_addr)); \ -temp ? 0 : 1; \ -}) - -#define SEMAPHORE_RESET(lock) \ -({ \ -char *real_addr; \ - \ -real_addr = (char*)((long)((*lock) + 15) & ~15); \ -*real_addr = 0xff; \ -}) - -/* - * New types - * The semaphore is really 16 bytes but must be aligened on a 16 byte - * boundary. By specifing 31 bytes the macros can frob it correctly. - */ -typedef char semaphore[31]; - -/* - * Macros for sigset_t - */ -#define SIGMAX 30 -/* see hpux-9.03/__signal.h for SIG_ANY */ - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - /* long machdep_state[_JBLEN]; */ -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 4096 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * page size - */ -#define getpagesize() 4096 - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-hppa-hpux-9.03.c b/mit-pthreads/machdep/engine-hppa-hpux-9.03.c deleted file mode 100644 index 3770a2e106a..00000000000 --- a/mit-pthreads/machdep/engine-hppa-hpux-9.03.c +++ /dev/null @@ -1,153 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for HP-UX 9.03 on hppa - * - * 1.00 93/12/14 proven - * -Started coding this file. - */ - -#include <pthread.h> -#include <setjmp.h> -#include <stdlib.h> -#include <unistd.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_save_float_state() - */ -void machdep_save_float_state(struct pthread * pthread) -{ - return; -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -void machdep_restore_float_state() -{ - return; -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - ((int *)machdep_pthread->machdep_state)[0] = (int)machdep_pthread_start; - - /* Stack starts low and builds up, but needs two start frames */ - ((int *)machdep_pthread->machdep_state)[1] = - (int)machdep_pthread->machdep_stack + (64 * 2); -} - -int machdep_sys_getdtablesize() -{ - return sysconf(_SC_OPEN_MAX); -} - -void sig_check_and_resume() -{ - return; -} - -void ___exit(int status) -{ - exit(status); - PANIC(); -} diff --git a/mit-pthreads/machdep/engine-hppa-hpux-9.03.h b/mit-pthreads/machdep/engine-hppa-hpux-9.03.h deleted file mode 100644 index 7c599400e3e..00000000000 --- a/mit-pthreads/machdep/engine-hppa-hpux-9.03.h +++ /dev/null @@ -1,141 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * Stuff for compiling - */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#endif -#else /* !__GNUC__ */ -#define __BEGIN_DECLS -#define __END_DECLS -#define const -#define inline -#define signed -#define volatile -#endif - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - * - * Note: The set and clear defines are backwards. - */ -#define SEMAPHORE_CLEAR { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \ - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \ - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } -#define SEMAPHORE_SET 0 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long real_addr; \ -long temp; \ - \ -real_addr = ((long)((*lock) + 15) & ~15); \ - \ -__asm__ volatile("ldcwx %%r0(%2),%0" \ - :"=r" (temp) \ - :"0" (temp),"r" (real_addr)); \ -temp ? 0 : 1; \ -}) - -#define SEMAPHORE_RESET(lock) \ -({ \ -char *real_addr; \ - \ -real_addr = (char*)((long)((*lock) + 15) & ~15); \ -*real_addr = 0xff; \ -}) - -/* - * New types - * The semaphore is really 16 bytes but must be aligened on a 16 byte - * boundary. By specifing 31 bytes the macros can frob it correctly. - */ -typedef char semaphore[31]; - -/* - * Macros for sigset_t - */ -#define SIGMAX 30 -/* see hpux-9.03/__signal.h for SIG_ANY */ - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - /* long machdep_state[_JBLEN]; */ -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 4096 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * page size - */ -#define getpagesize() 4096 - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-bsdi-1.1.c b/mit-pthreads/machdep/engine-i386-bsdi-1.1.c deleted file mode 100644 index da78bef393e..00000000000 --- a/mit-pthreads/machdep/engine-i386-bsdi-1.1.c +++ /dev/null @@ -1,180 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - sig_check_and_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * machdep_pthread_create() - */ -void machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, long stack_size, - void *stack_start, long nsec) -{ - machdep_pthread->machdep_stack = stack_start; - - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[0] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_send() - */ -machdep_sys_send(int s, const void *buf, int len, int flags) -{ - return(machdep_sys_sendto(s, buf, len, flags, (struct sockaddr*)NULL, 0)); -} - -/* ========================================================================== - * machdep_sys_recv() - */ -machdep_sys_recv(int s, void *buf, int len, int flags) -{ - return(machdep_sys_recvfrom(s, buf, len, flags, (struct sockaddr*)NULL, 0)); -} diff --git a/mit-pthreads/machdep/engine-i386-bsdi-1.1.h b/mit-pthreads/machdep/engine-i386-bsdi-1.1.h deleted file mode 100644 index 7f7b8a62d06..00000000000 --- a/mit-pthreads/machdep/engine-i386-bsdi-1.1.h +++ /dev/null @@ -1,84 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS - diff --git a/mit-pthreads/machdep/engine-i386-bsdi-2.0.c b/mit-pthreads/machdep/engine-i386-bsdi-2.0.c deleted file mode 100644 index 63a6de1b092..00000000000 --- a/mit-pthreads/machdep/engine-i386-bsdi-2.0.c +++ /dev/null @@ -1,210 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = (char *)pthread->machdep_data.machdep_float_state; - - __asm__ ("fsave %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - char * fdata = (char *)pthread_run->machdep_data.machdep_float_state; - - __asm__ ("frstor %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0 } }; - int ret; - - if (machdep_pthread) { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, - &(machdep_pthread->machdep_timer)); - } else { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, NULL); - } - - if (ret) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[0] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - diff --git a/mit-pthreads/machdep/engine-i386-bsdi-2.0.h b/mit-pthreads/machdep/engine-i386-bsdi-2.0.h deleted file mode 100644 index 3be254b4090..00000000000 --- a/mit-pthreads/machdep/engine-i386-bsdi-2.0.h +++ /dev/null @@ -1,98 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * engine-i386-netbsd-1.0.h,v 1.53 1994/12/13 07:17:23 proven Exp - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - char machdep_float_state[108]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK (O_NONBLOCK|O_NDELAY) - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS - diff --git a/mit-pthreads/machdep/engine-i386-freebsd-1.1.c b/mit-pthreads/machdep/engine-i386-freebsd-1.1.c deleted file mode 100644 index 422193e77e3..00000000000 --- a/mit-pthreads/machdep/engine-i386-freebsd-1.1.c +++ /dev/null @@ -1,179 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - sig_check_and_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * machdep_pthread_create() - */ -void machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, long stack_size, - void *stack_start, long nsec) -{ - machdep_pthread->machdep_stack = stack_start; - - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[0] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_send() - */ -machdep_sys_send(int s, const void *buf, int len, int flags) -{ - return(machdep_sys_sendto(s, buf, len, flags, NULL, 0)); -} - -/* ========================================================================== - * machdep_sys_recv() - */ -machdep_sys_recv(int s, void *buf, int len, int flags) -{ - return(machdep_sys_recvfrom(s, buf, len, flags, NULL, 0)); -} diff --git a/mit-pthreads/machdep/engine-i386-freebsd-1.1.h b/mit-pthreads/machdep/engine-i386-freebsd-1.1.h deleted file mode 100644 index 0e8e93bdbfb..00000000000 --- a/mit-pthreads/machdep/engine-i386-freebsd-1.1.h +++ /dev/null @@ -1,83 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-freebsd-2.0.c b/mit-pthreads/machdep/engine-i386-freebsd-2.0.c deleted file mode 100644 index 3b6b8f31ae0..00000000000 --- a/mit-pthreads/machdep/engine-i386-freebsd-2.0.c +++ /dev/null @@ -1,208 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1995 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "engine-i386-freebsd-2.0.c,v 1.1 1995/03/01 01:21:20 proven Exp"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(machdep_sys_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = (char *)pthread->machdep_data.machdep_float_state; - - __asm__ ("fsave %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - machdep_sys_longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - char * fdata = (char *)pthread_run->machdep_data.machdep_float_state; - - __asm__ ("frstor %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0 } }; - int ret; - - if (machdep_pthread) { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, - &(machdep_pthread->machdep_timer)); - } else { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, NULL); - } - - if (ret) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - machdep_sys_setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state->_jb[0] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state->_jb[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - diff --git a/mit-pthreads/machdep/engine-i386-freebsd-2.0.h b/mit-pthreads/machdep/engine-i386-freebsd-2.0.h deleted file mode 100644 index 87ef21389ce..00000000000 --- a/mit-pthreads/machdep/engine-i386-freebsd-2.0.h +++ /dev/null @@ -1,97 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - char machdep_float_state[108]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-linux-1.0.c b/mit-pthreads/machdep/engine-i386-linux-1.0.c deleted file mode 100644 index fac044fe47c..00000000000 --- a/mit-pthreads/machdep/engine-i386-linux-1.0.c +++ /dev/null @@ -1,503 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for Linux-1.0 on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <errno.h> -#include <stdlib.h> -#include <sys/uio.h> -#include <sys/types.h> -#include <sys/param.h> /* for OPEN_MAX */ -#include <sys/socket.h> -#include <sys/socketcall.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_save_float_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = (char *)pthread->machdep_data.machdep_float_state; - - __asm__ ("fsave %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - char * fdata = (char *)pthread_run->machdep_data.machdep_float_state; - - __asm__ ("frstor %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flag) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state->__pc = (char *)machdep_pthread_start; - machdep_pthread->machdep_state->__bp = (char *)0;/* So the backtrace - * is sensible (mevans) * - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state->__sp = - (char *)machdep_pthread->machdep_stack + stack_size; -} - - -/* ========================================================================== - * Linux Socket calls are a bit different - * ========================================================================== - * machdep_sys_socket() - */ -int machdep_sys_socket(int a, int b, int c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_SOCKET, array)); -} - -/* ========================================================================== - * machdep_sys_accept() - */ -int machdep_sys_accept(int a, struct sockaddr * b, int * c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_ACCEPT, array)); -} - -/* ========================================================================== - * machdep_sys_bind() - */ -int machdep_sys_bind(int a, const struct sockaddr * b, int c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_BIND, array)); -} - -/* ========================================================================== - * machdep_sys_connect() - */ -int machdep_sys_connect(int a, const struct sockaddr * b, int c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_CONNECT, array)); -} - -/* ========================================================================== - * machdep_sys_listen() - */ -int machdep_sys_listen(int a, const struct sockaddr * b, int c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_LISTEN, array)); -} - -/* ========================================================================== - * machdep_sys_shutdown() - */ -int machdep_sys_shutdown(int a, int b) -{ - int array[2]; - - array[0] = (int)a; - array[1] = (int)b; - - return(machdep_sys_socketcall(SYS_SHUTDOWN, array)); -} - -/* ========================================================================== - * machdep_sys_getsockopt() - */ -int machdep_sys_getsockopt(int a, int b, int c, char *d, int *e) -{ - int array[5]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - array[4] = (int)e; - - return(machdep_sys_socketcall(SYS_GETSOCKOPT, array)); -} - -/* ========================================================================== - * machdep_sys_setsockopt() - */ -int machdep_sys_setsockopt(int a, int b, int c, char *d, int e) -{ - int array[5]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - array[4] = (int)e; - - return(machdep_sys_socketcall(SYS_SETSOCKOPT, array)); -} - -/* ========================================================================== - * machdep_sys_getpeername() - */ -int machdep_sys_getpeername(int a, struct sockaddr *b, int *c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_GETPEERNAME, array)); -} - -/* ========================================================================== - * machdep_sys_send() - */ -int machdep_sys_send(int a, char *b, int c, int d) -{ - int array[4]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - - return(machdep_sys_socketcall(SYS_SEND, array)); -} - -/* ========================================================================== - * machdep_sys_sendto() - */ -int machdep_sys_sendto(int a, char *b, int c, int d, - struct sockaddr *e, int f) -{ - int array[6]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - array[4] = (int)e; - array[5] = (int)f; - - return(machdep_sys_socketcall(SYS_SENDTO, array)); -} - -/* ========================================================================== - * machdep_sys_recv() - */ -int machdep_sys_recv(int a, char *b, int c, int d) -{ - int array[4]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - - return(machdep_sys_socketcall(SYS_RECV, array)); -} - -/* ========================================================================== - * machdep_sys_recvfrom() - */ -int machdep_sys_recvfrom(int a, char *b, int c, int d, - struct sockaddr *e, int *f) -{ - int array[6]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - array[4] = (int)e; - array[5] = (int)f; - - return(machdep_sys_socketcall(SYS_RECVFROM, array)); -} - -/* ========================================================================== - * machdep_sys_socketpair() - */ -int machdep_sys_socketpair(int a, int b, int c, int d[2]) -{ - int array[4]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - - return(machdep_sys_socketcall(SYS_SOCKETPAIR, array)); -} - -/* ========================================================================== - * machdep_sys_getsockname() - */ -int machdep_sys_getsockname(int a, char * b, int * c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_GETSOCKNAME, array)); -} - -/* ========================================================================== - * machdep_sys_sendmsg() - */ -int machdep_sys_sendmsg(int a, char * b, int c) -{ -#ifdef SYS_SENDMSG - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_SENDMSG, array)); -#else - return(-ENOSYS); -#endif -} - -/* ========================================================================== - * machdep_sys_recvmsg() - */ -int machdep_sys_recvmsg(int a, char * b, int c) -{ -#ifdef SYS_RECVMSG - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_RECVMSG, array)); -#else - return(-ENOSYS); -#endif -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - int ret; - - if ((ret = machdep_sys_readdir(fd, buf, 1)) > 0) { - return(1); - } - return(ret); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* getdtablesize */ -machdep_sys_getdtablesize () -{ - return OPEN_MAX; -} - -struct stat; - -/* ========================================================================== - * _fxstat() - */ -int _fxstat(int __ver, int fd, struct stat *buf) -{ - int ret; - - if ((ret = fd_lock(fd, FD_READ, NULL)) == OK) { - ret = machdep_sys_fstat(fd_table[fd]->fd.i, buf); - fd_unlock(fd, FD_READ); - } - return(ret); -} - -/* ========================================================================== - * _lxstat() - */ -int _lxstat(int __ver, const char * path, struct stat * buf) -{ - int ret; - - if ((ret = machdep_sys_lstat(path, buf)) < OK) { - SET_ERRNO(-ret); - } - return(ret); - -} - -/* ========================================================================== - * _xstat() - */ -int _xstat(int __ver, const char * path, struct stat * buf) -{ - int ret; - - if ((ret = machdep_sys_stat(path, buf)) < OK) { - SET_ERRNO(-ret); - } - return(ret); - -} - -/* ========================================================================== - * strtol() - */ -__strtol_internal(char * a, char ** b, int c) -{ - return(strtol(a, b, c)); -} - - diff --git a/mit-pthreads/machdep/engine-i386-linux-1.0.h b/mit-pthreads/machdep/engine-i386-linux-1.0.h deleted file mode 100644 index 721618a6f19..00000000000 --- a/mit-pthreads/machdep/engine-i386-linux-1.0.h +++ /dev/null @@ -1,98 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - */ - - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -volatile long temp = SEMAPHORE_SET; \ - \ -__asm__("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - char machdep_float_state[108]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-linux-2.0.c b/mit-pthreads/machdep/engine-i386-linux-2.0.c deleted file mode 100644 index 72c757fe08a..00000000000 --- a/mit-pthreads/machdep/engine-i386-linux-2.0.c +++ /dev/null @@ -1,504 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for Linux-1.0 on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <errno.h> -#include <stdlib.h> -#include <sys/uio.h> -#include <sys/types.h> -#include <sys/param.h> /* for OPEN_MAX */ -#include <sys/socket.h> -#include <sys/socketcall.h> -#include <linux/net.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_save_float_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = (char *)pthread->machdep_data.machdep_float_state; - - __asm__ ("fsave %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - char * fdata = (char *)pthread_run->machdep_data.machdep_float_state; - - __asm__ ("frstor %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flag) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state->__jmpbuf[JB_PC]= (int) (char *)machdep_pthread_start; - /* Fix so that the backtrace * is sensible (mevans) */ - machdep_pthread->machdep_state->__jmpbuf[JB_BP] = (int) (char *) 0; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state->__jmpbuf[JB_SP]= - (int) (char *) machdep_pthread->machdep_stack + stack_size; -} - - -/* ========================================================================== - * Linux Socket calls are a bit different - * ========================================================================== - * machdep_sys_socket() - */ -int machdep_sys_socket(int a, int b, int c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_SOCKET, array)); -} - -/* ========================================================================== - * machdep_sys_accept() - */ -int machdep_sys_accept(int a, struct sockaddr * b, int * c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_ACCEPT, array)); -} - -/* ========================================================================== - * machdep_sys_bind() - */ -int machdep_sys_bind(int a, const struct sockaddr * b, int c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_BIND, array)); -} - -/* ========================================================================== - * machdep_sys_connect() - */ -int machdep_sys_connect(int a, const struct sockaddr * b, int c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_CONNECT, array)); -} - -/* ========================================================================== - * machdep_sys_listen() - */ -int machdep_sys_listen(int a, const struct sockaddr * b, int c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_LISTEN, array)); -} - -/* ========================================================================== - * machdep_sys_shutdown() - */ -int machdep_sys_shutdown(int a, int b) -{ - int array[2]; - - array[0] = (int)a; - array[1] = (int)b; - - return(machdep_sys_socketcall(SYS_SHUTDOWN, array)); -} - -/* ========================================================================== - * machdep_sys_getsockopt() - */ -int machdep_sys_getsockopt(int a, int b, int c, char *d, int *e) -{ - int array[5]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - array[4] = (int)e; - - return(machdep_sys_socketcall(SYS_GETSOCKOPT, array)); -} - -/* ========================================================================== - * machdep_sys_setsockopt() - */ -int machdep_sys_setsockopt(int a, int b, int c, char *d, int e) -{ - int array[5]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - array[4] = (int)e; - - return(machdep_sys_socketcall(SYS_SETSOCKOPT, array)); -} - -/* ========================================================================== - * machdep_sys_getpeername() - */ -int machdep_sys_getpeername(int a, struct sockaddr *b, int *c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_GETPEERNAME, array)); -} - -/* ========================================================================== - * machdep_sys_send() - */ -int machdep_sys_send(int a, char *b, int c, int d) -{ - int array[4]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - - return(machdep_sys_socketcall(SYS_SEND, array)); -} - -/* ========================================================================== - * machdep_sys_sendto() - */ -int machdep_sys_sendto(int a, char *b, int c, int d, - struct sockaddr *e, int f) -{ - int array[6]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - array[4] = (int)e; - array[5] = (int)f; - - return(machdep_sys_socketcall(SYS_SENDTO, array)); -} - -/* ========================================================================== - * machdep_sys_recv() - */ -int machdep_sys_recv(int a, char *b, int c, int d) -{ - int array[4]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - - return(machdep_sys_socketcall(SYS_RECV, array)); -} - -/* ========================================================================== - * machdep_sys_recvfrom() - */ -int machdep_sys_recvfrom(int a, char *b, int c, int d, - struct sockaddr *e, int *f) -{ - int array[6]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - array[4] = (int)e; - array[5] = (int)f; - - return(machdep_sys_socketcall(SYS_RECVFROM, array)); -} - -/* ========================================================================== - * machdep_sys_socketpair() - */ -int machdep_sys_socketpair(int a, int b, int c, int d[2]) -{ - int array[4]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - array[3] = (int)d; - - return(machdep_sys_socketcall(SYS_SOCKETPAIR, array)); -} - -/* ========================================================================== - * machdep_sys_getsockname() - */ -int machdep_sys_getsockname(int a, char * b, int * c) -{ - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_GETSOCKNAME, array)); -} - -/* ========================================================================== - * machdep_sys_sendmsg() - */ -int machdep_sys_sendmsg(int a, char * b, int c) -{ -#ifdef SYS_SENDMSG - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_SENDMSG, array)); -#else - return(-ENOSYS); -#endif -} - -/* ========================================================================== - * machdep_sys_recvmsg() - */ -int machdep_sys_recvmsg(int a, char * b, int c) -{ -#ifdef SYS_RECVMSG - int array[3]; - - array[0] = (int)a; - array[1] = (int)b; - array[2] = (int)c; - - return(machdep_sys_socketcall(SYS_RECVMSG, array)); -#else - return(-ENOSYS); -#endif -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - int ret; - - if ((ret = machdep_sys_readdir(fd, buf, 1)) > 0) { - return(1); - } - return(ret); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* getdtablesize */ -machdep_sys_getdtablesize () -{ - return OPEN_MAX; -} - -struct stat; - -/* ========================================================================== - * _fxstat() - */ -int _fxstat(int __ver, int fd, struct stat *buf) -{ - int ret; - - if ((ret = fd_lock(fd, FD_READ, NULL)) == OK) { - ret = machdep_sys_fstat(fd_table[fd]->fd.i, buf); - fd_unlock(fd, FD_READ); - } - return(ret); -} - -/* ========================================================================== - * _lxstat() - */ -int _lxstat(int __ver, const char * path, struct stat * buf) -{ - int ret; - - if ((ret = machdep_sys_lstat(path, buf)) < OK) { - SET_ERRNO(-ret); - } - return(ret); - -} - -/* ========================================================================== - * _xstat() - */ -int _xstat(int __ver, const char * path, struct stat * buf) -{ - int ret; - - if ((ret = machdep_sys_stat(path, buf)) < OK) { - SET_ERRNO(-ret); - } - return(ret); - -} - -/* ========================================================================== - * strtol() - */ -__strtol_internal(char * a, char ** b, int c) -{ - return(strtol(a, b, c)); -} - - diff --git a/mit-pthreads/machdep/engine-i386-linux-2.0.h b/mit-pthreads/machdep/engine-i386-linux-2.0.h deleted file mode 100644 index f4f75621226..00000000000 --- a/mit-pthreads/machdep/engine-i386-linux-2.0.h +++ /dev/null @@ -1,99 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - */ - -/* Avoid problem with including bits/pthreadtypes.h with libc 2.2 */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -volatile long temp = SEMAPHORE_SET; \ - \ -__asm__("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - char machdep_float_state[108]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-netbsd-0.9.c b/mit-pthreads/machdep/engine-i386-netbsd-0.9.c deleted file mode 100644 index c42363fdeda..00000000000 --- a/mit-pthreads/machdep/engine-i386-netbsd-0.9.c +++ /dev/null @@ -1,155 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - sig_check_and_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * machdep_pthread_create() - */ -void machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, long stack_size, - void *stack_start, long nsec) -{ - machdep_pthread->machdep_stack = stack_start; - - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[0] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_send() - */ -machdep_sys_send(int s, const void *buf, int len, int flags) -{ - return(machdep_sys_sendto(s, buf, len, flags, (struct sockaddr*)NULL, 0)); -} - -/* ========================================================================== - * machdep_sys_recv() - */ -machdep_sys_recv(int s, void *buf, int len, int flags) -{ - return(machdep_sys_recvfrom(s, buf, len, flags, (struct sockaddr*)NULL, 0)); -} diff --git a/mit-pthreads/machdep/engine-i386-netbsd-0.9.h b/mit-pthreads/machdep/engine-i386-netbsd-0.9.h deleted file mode 100644 index 0e8e93bdbfb..00000000000 --- a/mit-pthreads/machdep/engine-i386-netbsd-0.9.h +++ /dev/null @@ -1,83 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-netbsd-1.0.c b/mit-pthreads/machdep/engine-i386-netbsd-1.0.c deleted file mode 100644 index 7f31cb0305d..00000000000 --- a/mit-pthreads/machdep/engine-i386-netbsd-1.0.c +++ /dev/null @@ -1,218 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = (char *)pthread->machdep_data.machdep_float_state; - - __asm__ ("fsave %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - char * fdata = (char *)pthread_run->machdep_data.machdep_float_state; - - __asm__ ("frstor %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0 } }; - int ret; - - if (machdep_pthread) { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, - &(machdep_pthread->machdep_timer)); - } else { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, NULL); - } - - if (ret) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[0] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} - diff --git a/mit-pthreads/machdep/engine-i386-netbsd-1.0.h b/mit-pthreads/machdep/engine-i386-netbsd-1.0.h deleted file mode 100644 index 80e17fef368..00000000000 --- a/mit-pthreads/machdep/engine-i386-netbsd-1.0.h +++ /dev/null @@ -1,97 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - char machdep_float_state[108]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-netbsd-1.3.c b/mit-pthreads/machdep/engine-i386-netbsd-1.3.c deleted file mode 100644 index f86a9e5ba56..00000000000 --- a/mit-pthreads/machdep/engine-i386-netbsd-1.3.c +++ /dev/null @@ -1,225 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = (char *)pthread->machdep_data.machdep_float_state; - - __asm__ ("fsave %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - char * fdata = (char *)pthread_run->machdep_data.machdep_float_state; - - __asm__ ("frstor %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0 } }; - int ret; - - if (machdep_pthread) { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, - &(machdep_pthread->machdep_timer)); - } else { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, NULL); - } - - if (ret) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[0] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} diff --git a/mit-pthreads/machdep/engine-i386-netbsd-1.3.h b/mit-pthreads/machdep/engine-i386-netbsd-1.3.h deleted file mode 100644 index f399c4b34b6..00000000000 --- a/mit-pthreads/machdep/engine-i386-netbsd-1.3.h +++ /dev/null @@ -1,98 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/signal.h> /* for _NSIG */ - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX (_NSIG-1) - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - char machdep_float_state[108]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-openbsd-2.0.c b/mit-pthreads/machdep/engine-i386-openbsd-2.0.c deleted file mode 100644 index 09ff0072fdc..00000000000 --- a/mit-pthreads/machdep/engine-i386-openbsd-2.0.c +++ /dev/null @@ -1,215 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1995 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "engine-i386-freebsd-2.0.c,v 1.1 1995/03/01 01:21:20 proven Exp"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(machdep_sys_setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = (char *)pthread->machdep_data.machdep_float_state; - - __asm__ ("fsave %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - machdep_sys_longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - char * fdata = (char *)pthread_run->machdep_data.machdep_float_state; - - __asm__ ("frstor %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0 } }; - int ret; - - if (machdep_pthread) { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, - &(machdep_pthread->machdep_timer)); - } else { - ret = setitimer(ITIMER_VIRTUAL, &zeroval, NULL); - } - - if (ret) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - machdep_sys_setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[0] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_creat() - */ -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} diff --git a/mit-pthreads/machdep/engine-i386-openbsd-2.0.h b/mit-pthreads/machdep/engine-i386-openbsd-2.0.h deleted file mode 100644 index 87ef21389ce..00000000000 --- a/mit-pthreads/machdep/engine-i386-openbsd-2.0.h +++ /dev/null @@ -1,97 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - char machdep_float_state[108]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-i386-sco-3.2v5.c b/mit-pthreads/machdep/engine-i386-sco-3.2v5.c deleted file mode 100755 index 95f0d757585..00000000000 --- a/mit-pthreads/machdep/engine-i386-sco-3.2v5.c +++ /dev/null @@ -1,1072 +0,0 @@ - -/* ==== machdep.c ============================================================ - * Copyright (c) 1995 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for SCO3.2v5 on i386 - * - * 1.00 96/11/21 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "engine-i386-freebsd-2.0.c,v 1.1 1995/03/01 01:21:20 proven Exp"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/timeb.h> -#include <sys/stat.h> -#include <stropts.h> -#include <sys/socket.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> -#include <errno.h> -#include <sys/unistd.h> -#include <sys/utsname.h> -#include <sys/sysi86.h> - -void machdep_sys_abort(char*fname,int lineno) - -{ - char buf[128]; - - sprintf(buf,"panic: %s => %d\n", fname, lineno); - machdep_sys_write(1, buf, strlen(buf)); - abort(); -} - -#if 0 -int setitimer(int which, struct itimerval* value, struct itimerval* ovalue) - -{ - register int ret; - if ((ret = machdep_sys_setitimer(which,value,ovalue))<0) { - errno = -ret; - return -1; - } - else { - return 0; - } -} -#endif - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = (char *)pthread->machdep_data.machdep_float_state; - __asm__ ("fsave %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -int machdep_restore_float_state(void) -{ - char * fdata = (char *)pthread_run->machdep_data.machdep_float_state; - __asm__ ("frstor %0"::"m" (*fdata)); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (machdep_sys_setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0 } }; - int ret; - - if (machdep_pthread) { - ret = machdep_sys_setitimer(ITIMER_VIRTUAL, &zeroval, - &(machdep_pthread->machdep_timer)); - } else { - ret = machdep_sys_setitimer(ITIMER_VIRTUAL, &zeroval, NULL); - } - - if (ret) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[JB_PC] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[JB_SP] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ -#if 0 - return(machdep_sys_wait4(0, b, c, d)); -#else - return -ENOSYS; -#endif -} - -/* ========================================================================== - * machdep_sys_fstat() - */ -machdep_sys_fstat(int f, struct stat* b) -{ - return machdep_sys_fxstat(0x33, f, b); -} - -/* ========================================================================== - * machdep_sys_dup2() - */ -machdep_sys_dup2(int a, int b) -{ - machdep_sys_close(b); - return machdep_sys_fcntl(a, F_DUPFD, b); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() - -{ - register int ret; - if ((ret = machdep_sys_sysconf(_SC_OPEN_MAX))<0) - PANIC(); - return ret; -} - -/* ========================================================================== - * machdep_sys_fchown() - */ -machdep_sys_fchown(int fd,uid_t owner,gid_t group) - -{ - return -ENOSYS; -} - -/* ========================================================================== - * machdep_sys_fchmod() - */ -machdep_sys_fchmod(int fd,mode_t mode) - -{ - return -ENOSYS; -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} - -/* ========================================================================== - * SCO Socket calls are a bit different - * ========================================================================== - * machdep_sys_socket() - */ -int machdep_sys_socket(int domain, int type, int protocol) -{ - register int s, fd, ret; - struct socksysreq req; - - if ((s = machdep_sys_open("/dev/socksys", 0))<0) - return s; - - req.args[0] = SO_SOCKET; - req.args[1] = (int)domain; - req.args[2] = (int)type; - req.args[3] = (int)protocol; - if ((fd = machdep_sys_ioctl(s, SIOCSOCKSYS, &req))<0) { - machdep_sys_close(s); - return fd; - } - - if ((ret=machdep_sys_dup2(fd, s))<0) { - machdep_sys_close(fd); - return ret; - } - - machdep_sys_close(fd); - return s; - -} - -/* ========================================================================== - * machdep_sys_accept() - */ -int machdep_sys_accept(int s, struct sockaddr * b, int * c) -{ - struct socksysreq req; - - req.args[0] = SO_ACCEPT; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_bind() - */ -int machdep_sys_bind(int s, const struct sockaddr * b, int c) -{ - struct socksysreq req; - - req.args[0] = SO_BIND; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_connect() - */ -int machdep_sys_connect(int s, const struct sockaddr * b, int c) -{ - struct socksysreq req; - - req.args[0] = SO_CONNECT; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_listen() - */ -int machdep_sys_listen(int s, int backlog) -{ - struct socksysreq req; - - req.args[0] = SO_LISTEN; - req.args[1] = (int)s; - req.args[2] = (int)backlog; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_shutdown() - */ -int machdep_sys_shutdown(int s, int b) -{ - struct socksysreq req; - - req.args[0] = SO_SHUTDOWN; - req.args[1] = (int)s; - req.args[2] = (int)b; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_getsockopt() - */ -int machdep_sys_getsockopt(int s, int b, int c, char *d, int *e) -{ - struct socksysreq req; - - req.args[0] = SO_GETSOCKOPT; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - req.args[4] = (int)d; - req.args[5] = (int)e; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_setsockopt() - */ -int machdep_sys_setsockopt(int s, int b, int c, char *d, int e) -{ - struct socksysreq req; - - req.args[0] = SO_SETSOCKOPT; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - req.args[4] = (int)d; - req.args[5] = (int)e; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_getpeername() - */ -int machdep_sys_getpeername(int s, struct sockaddr *b, int *c) -{ - struct socksysreq req; - - req.args[0] = SO_GETPEERNAME; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_send() - */ -int machdep_sys_send(int s, char *b, int c, int d) -{ - struct socksysreq req; - - req.args[0] = SO_SEND; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - req.args[4] = (int)d; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_sendto() - */ -int machdep_sys_sendto(int s, char *b, int c, int d, - struct sockaddr *e, int f) -{ - struct socksysreq req; - - req.args[0] = SO_SENDTO; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - req.args[4] = (int)d; - req.args[5] = (int)e; - req.args[6] = (int)f; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_recv() - */ -int machdep_sys_recv(int s, char *b, int c, int d) -{ - struct socksysreq req; - - req.args[0] = SO_RECV; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - req.args[4] = (int)d; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_recvfrom() - */ -int machdep_sys_recvfrom(int s, char *buf, int len, int flags, - struct sockaddr *from, int *fromlen) -{ - struct socksysreq req; - - req.args[0] = SO_RECVFROM; - req.args[1] = (int)s; - req.args[2] = (int)buf; - req.args[3] = (int)len; - req.args[4] = (int)flags; - req.args[5] = (int)from; - req.args[6] = (int)fromlen; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -/* ========================================================================== - * machdep_sys_socketpair() - */ -int machdep_sys_socketpair(int d, int type, int protocol, int sv[2]) - -{ - register int s1, s2; - register int ret; - struct socksysreq req; - - if (d != AF_UNIX) - return -EPROTONOSUPPORT; - if ((s1=machdep_sys_socket(d,type,protocol))<0) { - return s1; - } - if ((s2=machdep_sys_socket(d,type,protocol))<0) { - machdep_sys_close(s1); - return s2; - } - req.args[0] = SO_SOCKPAIR; - req.args[1] = s1; - req.args[2] = s2; - if ((ret=machdep_sys_ioctl(s1,SIOCSOCKSYS,&req))<0) { - machdep_sys_close(s1); - machdep_sys_close(s2); - return ret; - } - sv[0] = s1; - sv[1] = s2; - return 0; -} - -/* ========================================================================== - * machdep_sys_getsockname() - */ -int machdep_sys_getsockname(int s, char * b, int * c) -{ - struct socksysreq req; - - req.args[0] = SO_GETSOCKNAME; - req.args[1] = (int)s; - req.args[2] = (int)b; - req.args[3] = (int)c; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -int machdep_sys_sendmsg(int s, const struct msghdr *msg, int flags) - -{ - struct socksysreq req; - - req.args[0] = SO_SENDMSG; - req.args[1] = (int)s; - req.args[2] = (int)msg; - req.args[3] = (int)flags; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -int machdep_sys_recvmsg(int s, struct msghdr *msg, int flags) - -{ - struct socksysreq req; - - req.args[0] = SO_RECVMSG; - req.args[1] = (int)s; - req.args[2] = (int)msg; - req.args[3] = (int)flags; - - return(machdep_sys_ioctl(s, SIOCSOCKSYS, &req)); -} - -u_short ntohs(u_short n) - -{ - union { - unsigned char u_nc[4]; - u_short u_ns; - } ns; - register unsigned char* p = &ns.u_nc[0]; - - ns.u_ns = n; - return (p[0]<<8)|p[1]; -} - -u_short htons(u_short h) - -{ - union { - unsigned char u_nc[2]; - u_short u_ns; - } ns; - register unsigned char* p = &ns.u_nc[0]; - p[0] = (h>>8)&0xFF; - p[1] = (h&0xFF); - return ns.u_ns; -} - - -u_long ntohl(u_long n) - -{ - union { - unsigned char u_nc[4]; - u_long u_nl; - } nl; - register unsigned char* p = &nl.u_nc[0]; - - nl.u_nl = n; - return (p[0]<<24)|(p[1]<<16)|(p[2]<<8)|p[3]; -} - -u_long htonl(u_long h) - -{ - union { - unsigned char u_nc[4]; - u_long u_nl; - } nl; - register unsigned char* p = &nl.u_nc[0]; - p[0] = (h>>24)&0xFF; - p[1] = (h>>16)&0xFF; - p[2] = (h>>8)&0xFF; - p[3] = (h&0xFF); - return nl.u_nl; -} - -int getdomainname(char* domain,int len) - -{ - /* edi = len */ - struct socksysreq req; - register int ret, fd; - if (len>MAXHOSTNAMELEN) - len = MAXHOSTNAMELEN; - - if ((fd = machdep_sys_open("/dev/socksys", 0)) < 0) - return fd; - - req.args[0] = SO_GETIPDOMAIN; - req.args[1] = (int)domain; - req.args[2] = (int)len; - if((ret=machdep_sys_ioctl(fd, SIOCSOCKSYS, &req))<0) { - machdep_sys_close(fd); - return ret; - } - - machdep_sys_close(fd); - domain[len-1] = '\0'; - return 0; -} - -int gethostname(char* name, int namelen) - -{ - struct utsname uts; - register int ret, len; - char domain[MAXHOSTNAMELEN+1]; - - if (name==NULL) - return -EFAULT; - if ((ret=machdep_sys_uname(&uts))<0) - return ret; - if (namelen<(len=strlen(uts.nodename))) - return -EFAULT; - strncpy(name,uts.nodename,len); - if (namelen>len) - name[len] = '\0'; - if ((ret=getdomainname(domain, namelen - len))<0) - return ret; - if (domain[0]=='\0') - return 0; - if (len + strlen(domain) + 2 > namelen) - return -EFAULT; - strcat(name, "."); - strcat(name, domain); - return 0; -} - -int gettimeofday(struct timeval* tp, struct timezone* tz) - -{ - register int ret; - if ((ret = machdep_sys_gettimeofday(tp, NULL))<0) { - errno = -ret; - return -1; - } - else { - return 0; - } -} - -int kill(pid_t pid, int signo) - -{ - register int ret; - if ((ret = machdep_sys_kill(pid,signo))<0) { - errno = -ret; - return -1; - } - else { - return 0; - } -} - -typedef void (*signal_t(int signo, void (*func)(int)))(int); - -signal_t* _libc_signal = NULL; - -void (*signal(int signo, void (*func)(int)))(int) - -{ - int ret; - void (*oldfunc)(int); - extern void (*machdep_sys_signal(int signo, void (*func)(int),int* r))(int); - if (_libc_signal!=NULL) - return (*_libc_signal)(signo, func); - - oldfunc = machdep_sys_signal(signo, func, &ret); - if (ret!=0) { - errno = ret; - return SIG_ERR; - } - else { - return oldfunc; - } -} - -int (*_libc_sigaction)(int ,const struct sigaction *, struct sigaction *) = NULL; -int sigaction(int sig,const struct sigaction *act, struct sigaction *oact) - -{ - register int ret; - if (_libc_sigaction!=NULL) - return (*_libc_sigaction)(sig,act,oact); - if ((ret = machdep_sys_sigaction(sig,act,oact))<0) { - errno = -ret; - return -1; - } - else { - return 0; - } -} - -int (*_libc_sigprocmask)(int, const sigset_t *, sigset_t *) = NULL; - -int sigprocmask(int how, const sigset_t *set, sigset_t * oset) - -{ - register int ret; - if (_libc_sigprocmask!=NULL) - return (*_libc_sigprocmask)(how,set,oset); - if ((ret = machdep_sys_sigprocmask(how,set,oset))<0) { - errno = -ret; - return -1; - } - else { - return 0; - } -} - -int (*_libc_sigsuspend)(const sigset_t *) = NULL; - -int sigsuspend(const sigset_t *set) -{ - register int ret; - if (_libc_sigsuspend!=NULL) - return (*_libc_sigsuspend)(set); - if ((ret = machdep_sys_sigsuspend(set))<0) { - errno = -ret; - return -1; - } - else { - return 0; - } -} - -int _sigrelse(sig) -int sig; - -{ - sigset_t mask; - sigemptyset(&mask); - sigaddset(&mask, sig); - return sigprocmask(SIG_UNBLOCK,&mask,NULL); -} - -int _sighold(sig) -int sig; - -{ - sigset_t mask; - sigemptyset(&mask); - sigaddset(&mask, sig); - return sigprocmask(SIG_BLOCK,&mask,NULL); -} - -void (*sigset(int sig, void (*func)(int)))(int) -{ - return signal(sig, func); -} - - -int (*_libc_getmsg)(int , struct strbuf *, struct strbuf *, int *) = NULL; - -int getmsg(int fd, struct strbuf * ctlptr, struct strbuf * dataptr, - int * flags) -{ - register int ret; - if (_libc_getmsg != NULL) - return (*_libc_getmsg)(fd,ctlptr,dataptr,flags); - else if ((ret=machdep_sys_getmsg(fd,ctlptr,dataptr,flags))<0) { - errno = -ret; - return -1; - } - else - return ret; -} - -int (*_libc_putmsg)(int , const struct strbuf *, const struct strbuf *, int) = NULL; - -int putmsg(int fd, const struct strbuf * ctlptr, const struct strbuf * dataptr, - int flags) -{ - register int ret; - if (_libc_putmsg != NULL) - return (*_libc_putmsg)(fd,ctlptr,dataptr,flags); - else if ((ret=machdep_sys_putmsg(fd,ctlptr,dataptr,flags))<0) { - errno = -ret; - return -1; - } - else - return ret; -} - -int ftime(struct timeb* tp) - -{ - register int ret; - if ((ret=machdep_sys_ftime(tp))<0) { - errno = -ret; - return NOTOK; - } - return 0; -} - -int getpagesize() - -{ - register int ret; -#if 0 - if ((ret = machdep_sys_sysconf(_SC_PAGE_SIZE))<0) { - PANIC(); - SET_ERRNO(-ret); - return -1; - } - else { - return 0; - } -#else - return PAGESIZE; -#endif -} - -static pthread_mutex_t machdep_mutex = -{ MUTEX_TYPE_COUNTING_FAST, PTHREAD_QUEUE_INITIALIZER, \ - NULL, SEMAPHORE_CLEAR, { NULL }, MUTEX_FLAGS_INITED }; - -static pthread_mutex_t malloc_mutex = -{ MUTEX_TYPE_COUNTING_FAST, PTHREAD_QUEUE_INITIALIZER, \ - NULL, SEMAPHORE_CLEAR, { NULL }, MUTEX_FLAGS_INITED }; - -struct stdlock { - volatile long init; - pthread_mutex_t* mutex; -}; - -static void machdep_stdinitlock(struct stdlock* lock) - -{ - if (lock==0) PANIC(); - pthread_mutex_lock(&machdep_mutex); - if (!lock->init) { - register pthread_mutex_t* mutex; - pthread_mutexattr_t attr; - - lock->init = 1; - lock->mutex = &machdep_mutex; - mutex = (pthread_mutex_t*) malloc(sizeof(pthread_mutex_t)); - pthread_mutexattr_init (&attr); - pthread_mutexattr_settype (&attr, MUTEX_TYPE_COUNTING_FAST); - pthread_mutex_init(mutex, &attr); - lock->mutex = mutex; - } - pthread_mutex_unlock(&machdep_mutex); -} - -void machdep_stdlock(struct stdlock* lock) - -{ - if (lock==0) PANIC(); - if (!lock->init) - machdep_stdinitlock(lock); - pthread_mutex_lock(lock->mutex); -} - -void machdep_stdunlock(struct stdlock* lock) - -{ - if (lock==0) PANIC(); - if (!lock->init) - machdep_stdinitlock(lock); - pthread_mutex_unlock(lock->mutex); -} - -int machdep_stdtrylock(struct stdlock* lock) - -{ - if (lock==0) PANIC(); - if (!lock->init) - machdep_stdinitlock(lock); - return pthread_mutex_trylock(lock->mutex); -} - -int machdep_stdtryunlock(struct stdlock* lock) - -{ - if (lock==0) PANIC(); - if (!lock->init) - machdep_stdinitlock(lock); - if (pthread_mutex_trylock(lock->mutex)) - return pthread_mutex_unlock(lock->mutex); - return 0; -} - -extern void (*_libc_stdlock)(struct stdlock* lock); -extern void (*_libc_stdunlock)(struct stdlock* lock); -extern int (*_libc_stdtrylock)(struct stdlock* lock); -extern int (*_libc_stdtryunlock)(struct stdlock* lock); - -int machdep_sys_init() - -{ - typedef void (*voidfunc_t)(); - extern voidfunc_t _libc_read; - extern voidfunc_t _libc_write; - extern voidfunc_t _libc_readv; - extern voidfunc_t _libc_writev; - extern voidfunc_t _libc_open; - extern voidfunc_t _libc_close; - extern voidfunc_t _libc_fork; - extern voidfunc_t _libc_fcntl; - extern voidfunc_t _libc_dup; - extern voidfunc_t _libc_pipe; - extern voidfunc_t _libc_select; - extern voidfunc_t _libc_malloc; - extern voidfunc_t _libc_realloc; - extern voidfunc_t _libc_free; - extern ssize_t pthread_read (int , char*, int ); - extern ssize_t pthread_write (int , char*, int ); - extern int pthread_close (int); - extern int pthread_dup (int); - extern int pthread_fork (); - extern int pthread_pipe (int*); - extern int pthread_fcntl(int, int, ...); - extern int pthread_open(const char *, int, ...); - extern ssize_t pthread_readv (int , const struct iovec *, int ); - extern ssize_t pthread_writev (int , const struct iovec *, int ); - extern int pthread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *); - extern int pthread_getmsg(int , struct strbuf *, struct strbuf *,int*); - extern int pthread_putmsg(int , const struct strbuf *, const struct strbuf *,int); - extern void (*pthread_signal(int , void (*)(int)))(int); - extern int pthread_sigaction(int,const struct sigaction *, struct sigaction *); - extern int pthread_sigprocmask(int, const sigset_t *, sigset_t *); - extern int pthread_sigsuspend(const sigset_t *); - - - static struct { - voidfunc_t *p; - voidfunc_t f; - } maptable[] = { - {(voidfunc_t*)&_libc_read, (voidfunc_t) pthread_read}, - {(voidfunc_t*)&_libc_write, (voidfunc_t) pthread_write}, - {(voidfunc_t*)&_libc_readv, (voidfunc_t) pthread_readv}, - {(voidfunc_t*)&_libc_writev, (voidfunc_t) pthread_writev}, - {(voidfunc_t*)&_libc_open, (voidfunc_t) pthread_open}, - {(voidfunc_t*)&_libc_close, (voidfunc_t) pthread_close}, - {(voidfunc_t*)&_libc_fork, (voidfunc_t) pthread_fork}, - {(voidfunc_t*)&_libc_fcntl, (voidfunc_t) pthread_fcntl}, - {(voidfunc_t*)&_libc_dup, (voidfunc_t) pthread_dup}, - {(voidfunc_t*)&_libc_pipe, (voidfunc_t) pthread_pipe}, - {(voidfunc_t*)&_libc_select, (voidfunc_t) pthread_select}, - {(voidfunc_t*)&_libc_getmsg, (voidfunc_t) pthread_getmsg}, - {(voidfunc_t*)&_libc_putmsg, (voidfunc_t) pthread_putmsg}, - {(voidfunc_t*)&_libc_signal, (voidfunc_t) pthread_signal}, - {(voidfunc_t*)&_libc_sigaction, (voidfunc_t) pthread_sigaction}, - {(voidfunc_t*)&_libc_sigprocmask, (voidfunc_t) pthread_sigprocmask}, - {(voidfunc_t*)&_libc_sigsuspend, (voidfunc_t) pthread_sigsuspend}, - {(voidfunc_t*) 0, (voidfunc_t) 0} - }; - register int i; - - for (i=0; maptable[i].p; i++) - *maptable[i].p = maptable[i].f; - - _libc_stdlock = machdep_stdlock; - _libc_stdunlock = machdep_stdunlock; - _libc_stdtrylock = machdep_stdtrylock; - _libc_stdtryunlock = machdep_stdtryunlock; - return 0; -} - -#if 0 -extern end; -char* nd = (char*) &end; -char* brk(const char* endds) - -{ - register int ret; - - if ((ret = machdep_sys_brk((char*)endds))<0) { - SET_ERRNO(-ret); - return (char*) -1; - } - else { - nd = (char*) endds; - return 0; - } -} - -char *sbrk(int incr) - -{ - register char* ret; - if (incr!=0 && (ret=brk(nd + incr))!=0) - return ret; - else - return nd - incr; -} -#endif - -sigset_t sigmask(int sig) - -{ - sigset_t oset; - sigemptyset(&oset); - sigaddset(&oset, sig); - return oset; -} - -sigset_t sigsetmask(sigset_t set) - -{ - sigset_t oset; - sigprocmask(SIG_SETMASK,&set,&oset); - return oset; -} - -sigset_t sigblock(sigset_t set) - -{ - sigset_t oset; - sigprocmask(SIG_BLOCK,&set,&oset); - return oset; -} diff --git a/mit-pthreads/machdep/engine-i386-sco-3.2v5.h b/mit-pthreads/machdep/engine-i386-sco-3.2v5.h deleted file mode 100644 index 8b2aa362f06..00000000000 --- a/mit-pthreads/machdep/engine-i386-sco-3.2v5.h +++ /dev/null @@ -1,104 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * engine-i386-freebsd-2.0.h,v 1.1.4.1 1995/12/13 05:41:52 proven Exp - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -#ifndef __NORETURN -#define __NORETURN -#endif - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -long temp = SEMAPHORE_SET; \ - \ -__asm__ volatile ("xchgl %0,(%2)" \ - :"=r" (temp) \ - :"0" (temp),"r" (lock)); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -#define JB_BP 3 -#define JB_SP 4 -#define JB_PC 5 - char machdep_float_state[108]; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 2048 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-ip22-irix-5.2.c b/mit-pthreads/machdep/engine-ip22-irix-5.2.c deleted file mode 100644 index d205d05f316..00000000000 --- a/mit-pthreads/machdep/engine-ip22-irix-5.2.c +++ /dev/null @@ -1,225 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1995 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for IRIX-5.2 on the IP22 - * - * 1.00 95/04/26 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <errno.h> -#include <fcntl.h> -#include <unistd.h> -#include <stdlib.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - int i; - - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - if (setjmp(machdep_pthread->machdep_state)) { - machdep_pthread_start(); - } - - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - - /* IP22 stack starts high and builds down. */ - machdep_pthread->machdep_state[JB_SP] = - (int)machdep_pthread->machdep_stack + stack_size - 1024; - machdep_pthread->machdep_state[JB_SP] &= ~7; - - memcpy((void *)machdep_pthread->machdep_state[JB_SP], - (char *)(((int)&i) - 24), 32); - -} - -/* ========================================================================== - * machdep_sys_dup2() - */ -machdep_sys_dup2(int a, int b) -{ - machdep_sys_close(b); - machdep_sys_fcntl(a, F_DUPFD, b); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_waitsys(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_waitsys(a, b, c, NULL)); -} - -struct stat; - -/* ========================================================================== - * _fxstat() - */ -int _fxstat(int __ver, int fd, struct stat *buf) -{ - int ret; - - if ((ret = fd_lock(fd, FD_READ, NULL)) == OK) { - if ((ret = machdep_sys_fstat(fd_table[fd]->fd.i, buf)) < OK) { - SET_ERRNO(-ret); - } - fd_unlock(fd, FD_READ); - } - return(ret); -} - -/* ========================================================================== - * _lxstat() - */ -int _lxstat(int __ver, const char * path, struct stat * buf) -{ - int ret; - - if ((ret = machdep_sys_lstat(path, buf)) < OK) { - SET_ERRNO(-ret); - } - return(ret); - -} - -/* ========================================================================== - * _xstat() - */ -int _xstat(int __ver, const char * path, struct stat * buf) -{ - int ret; - - if ((ret = machdep_sys_stat(path, buf)) < OK) { - SET_ERRNO(-ret); - } - return(ret); - -} - -/* ========================================================================== - * getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - int i; - - i = machdep_sys_getdents(fd, buf, len); - return i; -} diff --git a/mit-pthreads/machdep/engine-ip22-irix-5.2.h b/mit-pthreads/machdep/engine-ip22-irix-5.2.h deleted file mode 100644 index 94dd386608e..00000000000 --- a/mit-pthreads/machdep/engine-ip22-irix-5.2.h +++ /dev/null @@ -1,108 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 0xff - -/* - * More machine dependent macros - */ -#ifdef PTHREAD_KERNEL - -#define machdep_save_float_state(x) -#define machdep_restore_float_state() - -#endif - -/* - * New types - */ -typedef char semaphore; - -/* - * sigset_t macros - */ -#define SIGMAX 32 -#define SIG_ANY(sig) \ -({ \ - sigset_t *sig_addr = (sigset_t *)&sig; \ - int ret = 0; \ - int i; \ - \ - for (i = 1; i <= SIGMAX; i++) { \ - if (sigismember(sig_addr, i)) { \ - ret = 1; \ - break; \ - } \ - } \ - ret; \ -}) - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-m68000-netbsd.c b/mit-pthreads/machdep/engine-m68000-netbsd.c deleted file mode 100644 index 6346c36ca7c..00000000000 --- a/mit-pthreads/machdep/engine-m68000-netbsd.c +++ /dev/null @@ -1,256 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - * - * m68k work from David Leonard <david.leonard@it.uq.edu.au>. - * updated and NetBSD/m68k work from Andy Finnell <andyf@vei.net>. - * - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include "pthread.h" -#include <sys/syscall.h> -#include <sys/stat.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return( _setjmp(pthread_run->machdep_data.machdep_state) ); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_save_state() - */ -void machdep_save_float_state(struct pthread * pthread) -{ - char * fdata = pthread->machdep_data.machdep_fstate; - - __asm__ ( "fmovem fp0-fp7,%0"::"m" (*fdata) ); - __asm__ ( "fmovem fpcr/fpsr/fpi,%0"::"m" (fdata[80]) ); -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -void machdep_restore_float_state(void) -{ - char * fdata = pthread_run->machdep_data.machdep_fstate; - - __asm__ ( "fmovem %0,fp0-fp7"::"m" (*fdata) ); - __asm__ ( "fmovem %0,fpcr/fpsr/fpi"::"m" (fdata[80]) ); - -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0 } }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return((void*)malloc(size)); -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current thread's start routine with argument */ - pthread_exit( - pthread_run->machdep_data.start_routine( - pthread_run->machdep_data.start_argument - ) - ); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _setjmp(machdep_pthread->machdep_state); - /* - * Set up new stack frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - * - * state is the set_jmp structure, which for m68k is: - * long onstack_flag; // [0] - * long sigmask; // [1] - * long sp; // [2] - * long fp; // [3] - * long ap; // [4] - * long pc; // [5] - * long ps; // [6] - * long regs[10]; // non scratch registers - */ - machdep_pthread->machdep_state[5] = (long)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size; -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} - -/* ========================================================================== - * machdep_sys_lseek() - */ -off_t machdep_sys_lseek(int fd, off_t offset, int whence) -{ - extern off_t __syscall(); - - return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence)); -} - -int machdep_sys_ftruncate( int fd, off_t length) -{ - quad_t q; - int rv; - - q = __syscall((quad_t)SYS_ftruncate, fd,0, length); - if( /* LINTED constant */ sizeof( quad_t ) == sizeof( register_t ) || - /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN ) - rv = (int)q; - else - rv = (int)((u_quad_t)q >> 32); - - return rv; -} - -int machdep_sys_fstat( int f, struct stat* st ) -{ - return __fstat13(f,st); -} diff --git a/mit-pthreads/machdep/engine-m68000-netbsd.h b/mit-pthreads/machdep/engine-m68000-netbsd.h deleted file mode 100644 index ec3c6a01bce..00000000000 --- a/mit-pthreads/machdep/engine-m68000-netbsd.h +++ /dev/null @@ -1,107 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * m68k work by Andy Finnell <andyf@vei.net> based off work by - * David Leonard and Chris Provenzano. - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 0x80; - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ - volatile long temp = SEMAPHORE_CLEAR; \ - __asm__ volatile( \ - "tas %2; bpl 0f; movl #1,%0; 0:" \ - :"=r" (temp) \ - :"0" (temp),"m" (*lock)); \ - temp; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef char semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; - char machdep_fstate[92]; -}; - -/* - * Min pthread stacksize - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - - -#ifndef __machdep_stack_get -#define __machdep_stack_get(x) (x)->machdep_stack -#endif -#ifndef __machdep_stack_set -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#endif -#ifndef __machdep_stack_repl -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} -#endif - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-powerpc-netbsd.c b/mit-pthreads/machdep/engine-powerpc-netbsd.c deleted file mode 100644 index fc17e3de5d0..00000000000 --- a/mit-pthreads/machdep/engine-powerpc-netbsd.c +++ /dev/null @@ -1,227 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for NetBSD/PowerPC (1.5+) - * - * 1.00 93/08/04 proven - * -Started coding this file. - * - * 2001/01/10 briggs - * -Modified to make it go with NetBSD/PowerPC - */ - -#ifndef lint -static const char rcsid[] = "engine-alpha-osf1.c,v 1.4.4.1 1995/12/13 05:41:37 proven Exp"; -#endif - -#include <pthread.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/syscall.h> -#include <stdlib.h> -#include <fcntl.h> -#include <stdio.h> - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume (); - - /* XXXMLG - * This is EXTREMELY bogus, but it seems that this function is called - * with the pthread kernel locked. If this happens, __errno() will - * return the wrong address until after the first context switch. - * - * Clearly there is a leak of pthread_kernel somewhere, but until - * it is found, we force a context switch here, just before calling - * the thread start routine. When we return from pthread_yield - * the kernel will be unlocked. - */ - pthread_yield(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(void *), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - /* Set up new stack frame so that it looks like it returned from a - longjmp() to the beginning of machdep_pthread_start(). */ - /* state is sigmask, then r8-r31 where r11 is the LR - * So, istate[3] is r10, which is the SP - * So, istate[4] is r11, which is the LR - * So, istate[5] is r12, which is the CR - */ - machdep_pthread->machdep_istate[4] = (long)machdep_pthread_start; - machdep_pthread->machdep_istate[5] = 0; - - /* PowerPC stack starts high and builds down, and needs to be 16-byte - aligned. */ - machdep_pthread->machdep_istate[3] = - ((long) machdep_pthread->machdep_stack + stack_size) & ~0xf; -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return( _setjmp(pthread_run->machdep_data.machdep_istate) ); -} - -void machdep_restore_state(void) -{ - _longjmp(pthread_run->machdep_data.machdep_istate, 1); -} - -void machdep_save_float_state (struct pthread *pthread) -{ - __machdep_save_fp_state(pthread->machdep_data.machdep_fstate); -} - -void machdep_restore_float_state (void) -{ - __machdep_restore_fp_state(pthread_run->machdep_data.machdep_fstate); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread); -void machdep_pthread_start(void); - -/* ========================================================================== - * __machdep_stack_free() - */ -void -__machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * -__machdep_stack_alloc(size_t size) -{ - return(malloc(size)); -} - -/* ========================================================================== - * machdep_sys_creat() - */ -int -machdep_sys_creat(char * path, int mode) -{ - return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -int -machdep_sys_wait3(int * b, int c, int *d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -int -machdep_sys_waitpid(int a, int * b, int c) -{ - return(machdep_sys_wait4(a, b, c, NULL)); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -int -machdep_sys_getdtablesize(void) -{ - return(sysconf(_SC_OPEN_MAX)); -} - -/* ========================================================================== - * machdep_sys_lseek() - */ -off_t -machdep_sys_lseek(int fd, off_t offset, int whence) -{ - return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence)); -} - -int -machdep_sys_ftruncate( int fd, off_t length) -{ - quad_t q; - int rv; - - q = __syscall((quad_t)SYS_ftruncate, fd,0, length); - if( /* LINTED constant */ sizeof( quad_t ) == sizeof( register_t ) || - /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN ) - rv = (int)q; - else - rv = (int)((u_quad_t)q >> 32); - - return rv; -} - - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -int -machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} diff --git a/mit-pthreads/machdep/engine-powerpc-netbsd.h b/mit-pthreads/machdep/engine-powerpc-netbsd.h deleted file mode 100644 index 530b7ca81e2..00000000000 --- a/mit-pthreads/machdep/engine-powerpc-netbsd.h +++ /dev/null @@ -1,109 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1994 Chris Provenzano (proven@athena.mit.edu) and - * Ken Raeburn (raeburn@mit.edu). - * - * engine-alpha-osf1.h,v 1.4.4.1 1995/12/13 05:41:42 proven Exp - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> -#include <sys/signal.h> /* for _NSIG */ - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 0xffff - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ - volatile long t1, temp = SEMAPHORE_SET; \ - __asm__ volatile( \ - "1: lwarx %0,0,%1; \ - cmpwi %0, 0; \ - bne 2f; \ - stwcx. %2,0,%1; \ - bne- 1b; \ - 2: " \ - :"=r" (t1) \ - :"m" (lock), "r" (temp)); \ - t1; \ -}) - -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef int semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX (_NSIG-1) - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_istate; - unsigned long machdep_fstate[66]; - /* 64-bit fp regs 0-31 + fpscr */ - /* We pretend the fpscr is 64 bits */ -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ - { NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, { 0 }, { 0 } } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 2048 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if ((stack = __machdep_stack_get(x))) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -int machdep_save_state(void); - -void __machdep_save_fp_state(unsigned long *); -void __machdep_restore_fp_state(unsigned long *); -void *__machdep_stack_alloc(size_t); -void __machdep_stack_free(void *); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-r2000-ultrix-4.2.c b/mit-pthreads/machdep/engine-r2000-ultrix-4.2.c deleted file mode 100644 index 45c8cc73f24..00000000000 --- a/mit-pthreads/machdep/engine-r2000-ultrix-4.2.c +++ /dev/null @@ -1,209 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for decstation with r2000/r3000 - * - * 1.00 93/07/21 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <stdlib.h> -#include <errno.h> - -/* - * The r2000/r3000 processors do not have a test and set instruction, so - * the semaphore TEST_AND_SET macro is linked very closely to the interrupt - * handelling of the pthreads package. - */ - -/* ========================================================================== - * semaphore_test_and_set() - * - * SEMAPHORE_TEST_AND_SET prevents interrupts, tests the lock and then - * turns interrupts back on, checking to see if any interrupts have occured - * between the prevent and resume. - */ -int semaphore_test_and_set(semaphore *lock) -{ - int rval; - -/* None of this should be necessary - sig_prevent(); - if (!(rval = (*lock))) { - *lock = SEMAPHORE_SET; - } - sig_check_and_resume(); - return(rval); -*/ -} - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_save_float_state() - */ -void machdep_save_float_state(struct pthread * pthread) -{ - return; -} - -/* ========================================================================== - * fake_longjmp() - */ -void fake_longjmp(jmp_buf env) -{ - asm("li $5,1; sw $5, 20($4); li $2,103; syscall"); -} - -/* ========================================================================== - * machdep_restore_state() - * - * When I redo machdep_save_state, I'll put the asm in machdep_save_state() - * and machdep_restore_state() and I won't have to do an additional function - * call. - */ -void machdep_restore_state(void) -{ - fake_longjmp(pthread_run->machdep_data.machdep_state); - /* longjmp(pthread_run->machdep_data.machdep_state, 1); */ -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -void machdep_restore_float_state(void) -{ - return; -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[JB_RA] = (int)machdep_pthread_start; - machdep_pthread->machdep_state[JB_PC] = (int)machdep_pthread_start; - - /* Stack starts high and builds down. */ - machdep_pthread->machdep_state[JB_SP] = - (int)machdep_pthread->machdep_stack + stack_size; - - /* This is the real global pointer */ - /* machdep_pthread->machdep_state[JB_GP] = 0; */ -} - -/* ========================================================================== - * machdep_sys_sigprocmask() - * This isn't a real implementation; we can make the assumption that the - * pthreads library is not using oset, and that it is always blocking or - * unblocking all signals at once. - */ -int machdep_sys_sigprocmask(int how, const sigset_t *set, sigset_t *oset) -{ - switch(how) { - case SIG_BLOCK: - sigblock(*set); - break; - case SIG_UNBLOCK: - sigsetmask(~*set); - break; - case SIG_SETMASK: - sigsetmask(*set); - break; - default: - return -EINVAL; - } - return(OK); -} - diff --git a/mit-pthreads/machdep/engine-r2000-ultrix-4.2.h b/mit-pthreads/machdep/engine-r2000-ultrix-4.2.h deleted file mode 100644 index 8e2d70f8feb..00000000000 --- a/mit-pthreads/machdep/engine-r2000-ultrix-4.2.h +++ /dev/null @@ -1,107 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Machine dependent header for decstation with r2000/r3000 - * running Ultrix-4.2 - * - * 1.00 93/07/21 proven - * -Started coding this file. - */ - -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 1 - -#define SEMAPHORE_TEST_AND_SET(lock) semaphore_test_and_set(lock) -#define SEMAPHORE_RESET(lock) *lock = SEMAPHORE_CLEAR - -/* - * New types - */ -typedef long semaphore; - -#if !defined(_POSIX_SOURCE) - -/* typedef int ssize_t; */ - -#if !defined(__GNUC__) - -/* - * sigset_t macros - */ -typedef int sigset_t; -#define sigaddset(set, num) ((*set) |= (1 << (num - 1))) -#define sigemptyset(set) (*set = 0) - -#endif -#endif - -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Structures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - - -/* - * Min stacksize, arch dependent - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK (O_NONBLOCK | O_NDELAY) - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int semaphore_test_and_set __P_((semaphore *)); -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-romp-bsd.c b/mit-pthreads/machdep/engine-romp-bsd.c deleted file mode 100644 index dd1a1096ece..00000000000 --- a/mit-pthreads/machdep/engine-romp-bsd.c +++ /dev/null @@ -1,99 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for NetBSD on i386 - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - return(_pthread_save(pthread_run->machdep_data.machdep_state, 0, 0)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - _pthread_restore(pthread_run->machdep_data.machdep_state); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - sig_check_and_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * machdep_pthread_create() - */ -void machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, long stack_size, - void *stack_start, long nsec) -{ - machdep_pthread->machdep_stack = stack_start; - - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - _pthread_save(machdep_pthread->machdep_state, - (void *)((int)machdep_pthread->machdep_stack + stack_size), - machdep_pthread_start); -} - diff --git a/mit-pthreads/machdep/engine-romp-bsd.h b/mit-pthreads/machdep/engine-romp-bsd.h deleted file mode 100644 index 28c59d35e70..00000000000 --- a/mit-pthreads/machdep/engine-romp-bsd.h +++ /dev/null @@ -1,100 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1993 John F. Carr, jfc@athena.mit.edu - * - * Description : Machine dependent header for IBM/RT - * - * 1.00 93/09/xx jfc - * -Coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <setjmp.h> -#include <sys/time.h> -#include <sys/types.h> - -/* - * Stuff for compiling - */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#endif -#else /* !__GNUC__ */ -#define __BEGIN_DECLS -#define __END_DECLS -#define const -#define inline -#define signed -#define volatile -#endif - -#define SEMAPHORE_CLEAR 0x0000 -#define SEMAPHORE_SET 0xff00 -#define SEMAPHORE_TEST_AND_SET(lock) _tsh(lock) -#define SEMAPHORE_RESET(lock) *(lock) = SEMAPHORE_CLEAR -extern unsigned short _tsh(volatile unsigned short *); - -typedef unsigned short semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - - -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Min pthread stacksize - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK O_NONBLOCK - -#if defined(PTHREAD_KERNEL) - -int machdep_save_state __P_((void)); - -/* save(jmp_buf, stack pointer, restart proc) */ -extern int _pthread_save(jmp_buf, void *, void (*)()); -extern void _pthread_restore(jmp_buf); - -typedef int ssize_t; -typedef unsigned int sigset_t; -#define sigemptyset(sp) *(sp) = 0 -#define sigprocmask(op, nssp, ossp) if (ossp) *(int *)ossp = sigsetmask(*nssp); else sigsetmask(*nssp) -#define sigdelset(sp, i) *(sp) &= ~(1 << (i)) -#define sigaddset(sp, i) *(sp) |= (1 << (i)) -#define sigismember(sp, i) (*(sp) & (1 << (i))) -#endif diff --git a/mit-pthreads/machdep/engine-sparc-netbsd-1.3.c b/mit-pthreads/machdep/engine-sparc-netbsd-1.3.c deleted file mode 100644 index 8e0520cfba5..00000000000 --- a/mit-pthreads/machdep/engine-sparc-netbsd-1.3.c +++ /dev/null @@ -1,232 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for SunOS-4.1.3 on sparc - * - * 1.00 93/08/04 proven - * -Started coding this file. - * - * 98/10/22 bad - * -update for fat sigset_t in NetBSD 1.3H - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include "config.h" -#include <pthread.h> -#include <stdlib.h> -#include <errno.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - /* Save register windows onto stackframe */ - __asm__ ("ta 3"); - - return(setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} -/* ========================================================================== - * machdep_save_float_state() - */ -void machdep_save_float_state(struct pthread * pthread) -{ - return; -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -void machdep_restore_float_state(void) -{ - return; -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume (); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - /* Save register windows onto stackframe */ - __asm__ ("ta 3"); - - setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[3] = (int)machdep_pthread_start; - machdep_pthread->machdep_state[4] = (int)machdep_pthread_start; - - /* Sparc stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size - 1024; - machdep_pthread->machdep_state[2] &= ~7; - -} - -#if defined(HAVE_SYSCALL_GETDENTS) -/* ========================================================================== - * machdep_sys_getdirentries() - * - * Always use getdents in place of getdirentries if possible --proven - */ -int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} -#endif - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int pid, int * statusp, int options) -{ - if (pid == -1) - pid = 0; - else if (pid == 0) - pid = - getpgrp (); - return machdep_sys_wait4 (pid, statusp, options, NULL); -} - -#if !defined(HAVE_SYSCALL_SIGPROCMASK) -#if 0 -/* ========================================================================== - * machdep_sys_sigprocmask() - * This isn't a real implementation; we can make the assumption that the - * pthreads library is not using oset, and that it is always blocking or - * unblocking all signals at once. - */ -int machdep_sys_sigprocmask(int how, const sigset_t *set, sigset_t *oset) -{ - switch(how) { - case SIG_BLOCK: - sigblock(*set); - break; - case SIG_UNBLOCK: - sigsetmask(~*set); - break; - case SIG_SETMASK: - sigsetmask(*set); - break; - default: - return -EINVAL; - } - return(OK); -} - -/* ========================================================================== - * sigaction() - * - * Temporary until I do machdep_sys_sigaction() - */ -int sigaction(int sig, const struct sigaction *act, struct sigaction *oldact) -{ - return(sigvec(sig, (struct sigvec *)act, (struct sigvec *)oldact)); -} -#endif -#endif - -#if !defined(HAVE_SYSCALL_GETDTABLESIZE) -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} -#endif diff --git a/mit-pthreads/machdep/engine-sparc-netbsd-1.3.h b/mit-pthreads/machdep/engine-sparc-netbsd-1.3.h deleted file mode 100644 index a187d3dace8..00000000000 --- a/mit-pthreads/machdep/engine-sparc-netbsd-1.3.h +++ /dev/null @@ -1,106 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@athena.mit.edu - * - * engine-sparc-sunos-4.1.3.h,v 1.52.4.1 1995/12/13 05:42:33 proven Exp - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> -#include <sys/signal.h> /* for _NSIG */ - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 0xff - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -char *p = lock; \ -long temp; \ - \ -__asm__ volatile("ldstub %1,%0" \ - :"=r" (temp) \ - :"m" (*p) \ - :"memory"); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) \ -{ \ -__asm__ volatile("stb %1, %0" \ - :"=m" (*lock) \ - :"r" (SEMAPHORE_CLEAR) \ - :"memory"); \ -} - -/* - * New types - */ -typedef char semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX (_NSIG-1) - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK (O_NONBLOCK | O_NDELAY) - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-sparc-sunos-4.1.3.c b/mit-pthreads/machdep/engine-sparc-sunos-4.1.3.c deleted file mode 100644 index 6916c3610cd..00000000000 --- a/mit-pthreads/machdep/engine-sparc-sunos-4.1.3.c +++ /dev/null @@ -1,227 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for SunOS-4.1.3 on sparc - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include "config.h" -#include <pthread.h> -#include <stdlib.h> -#include <errno.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - /* Save register windows onto stackframe */ - __asm__ ("ta 3"); - - return(setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} -/* ========================================================================== - * machdep_save_float_state() - */ -void machdep_save_float_state(struct pthread * pthread) -{ - return; -} - -/* ========================================================================== - * machdep_restore_float_state() - */ -void machdep_restore_float_state(void) -{ - return; -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume (); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * __machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - /* Save register windows onto stackframe */ - __asm__ ("ta 3"); - - setjmp(machdep_pthread->machdep_state); - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - machdep_pthread->machdep_state[3] = (int)machdep_pthread_start; - machdep_pthread->machdep_state[4] = (int)machdep_pthread_start; - - /* Sparc stack starts high and builds down. */ - machdep_pthread->machdep_state[2] = - (int)machdep_pthread->machdep_stack + stack_size - 1024; - machdep_pthread->machdep_state[2] &= ~7; - -} - -#if defined(HAVE_SYSCALL_GETDENTS) -/* ========================================================================== - * machdep_sys_getdirentries() - * - * Always use getdents in place of getdirentries if possible --proven - */ -int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} -#endif - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(machdep_sys_wait4(0, b, c, d)); -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int pid, int * statusp, int options) -{ - if (pid == -1) - pid = 0; - else if (pid == 0) - pid = - getpgrp (); - return machdep_sys_wait4 (pid, statusp, options, NULL); -} - -#if !defined(HAVE_SYSCALL_SIGPROCMASK) -/* ========================================================================== - * machdep_sys_sigprocmask() - * This isn't a real implementation; we can make the assumption that the - * pthreads library is not using oset, and that it is always blocking or - * unblocking all signals at once. - */ -int machdep_sys_sigprocmask(int how, const sigset_t *set, sigset_t *oset) -{ - switch(how) { - case SIG_BLOCK: - sigblock(*set); - break; - case SIG_UNBLOCK: - sigsetmask(~*set); - break; - case SIG_SETMASK: - sigsetmask(*set); - break; - default: - return -EINVAL; - } - return(OK); -} - -/* ========================================================================== - * sigaction() - * - * Temporary until I do machdep_sys_sigaction() - */ -int sigaction(int sig, const struct sigaction *act, struct sigaction *oldact) -{ - return(sigvec(sig, (struct sigvec *)act, (struct sigvec *)oldact)); -} -#endif - -#if !defined(HAVE_SYSCALL_GETDTABLESIZE) -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} -#endif diff --git a/mit-pthreads/machdep/engine-sparc-sunos-4.1.3.h b/mit-pthreads/machdep/engine-sparc-sunos-4.1.3.h deleted file mode 100644 index 1a4a8768ad0..00000000000 --- a/mit-pthreads/machdep/engine-sparc-sunos-4.1.3.h +++ /dev/null @@ -1,105 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 0xff - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -char *p = lock; \ -long temp; \ - \ -__asm__ volatile("ldstub %1,%0" \ - :"=r" (temp) \ - :"m" (*p) \ - :"memory"); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) \ -{ \ -__asm__ volatile("stb %1, %0" \ - :"=m" (*lock) \ - :"r" (SEMAPHORE_CLEAR) \ - :"memory"); \ -} - -/* - * New types - */ -typedef char semaphore; - -/* - * sigset_t macros - */ -#define SIG_ANY(sig) (sig) -#define SIGMAX 31 - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK (O_NONBLOCK | O_NDELAY) - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/engine-sparc-sunos-5.3.c b/mit-pthreads/machdep/engine-sparc-sunos-5.3.c deleted file mode 100644 index a228a408da3..00000000000 --- a/mit-pthreads/machdep/engine-sparc-sunos-5.3.c +++ /dev/null @@ -1,308 +0,0 @@ -/* ==== machdep.c ============================================================ - * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu - * - * Description : Machine dependent functions for SunOS-4.1.3 on sparc - * - * 1.00 93/08/04 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#include <pthread.h> -#include <errno.h> -#include <fcntl.h> -#include <stdlib.h> -#include <unistd.h> -#include <sys/socket.h> -#include <sys/procset.h> -#include <sys/systeminfo.h> -#include <poll.h> - -/* ========================================================================== - * machdep_save_state() - */ -int machdep_save_state(void) -{ - /* Save register windows onto stackframe */ - __asm__ ("ta 3"); - - return(setjmp(pthread_run->machdep_data.machdep_state)); -} - -/* ========================================================================== - * machdep_restore_state() - */ -void machdep_restore_state(void) -{ - longjmp(pthread_run->machdep_data.machdep_state, 1); -} - -/* ========================================================================== - * machdep_set_thread_timer() - */ -void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) -{ - if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_unset_thread_timer() - */ -void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) -{ - struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; - - if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { - PANIC(); - } -} - -/* ========================================================================== - * machdep_pthread_cleanup() - */ -void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) -{ - return(machdep_pthread->machdep_stack); -} - -/* ========================================================================== - * machdep_pthread_start() - */ -void machdep_pthread_start(void) -{ - context_switch_done(); - pthread_sched_resume(); - - /* Run current threads start routine with argument */ - pthread_exit(pthread_run->machdep_data.start_routine - (pthread_run->machdep_data.start_argument)); - - /* should never reach here */ - PANIC(); -} - -/* ========================================================================== - * __machdep_stack_free() - */ -void __machdep_stack_free(void * stack) -{ - free(stack); -} - -/* ========================================================================== - * __machdep_stack_alloc() - */ -void * __machdep_stack_alloc(size_t size) -{ - void * stack; - - return(malloc(size)); -} - -/* ========================================================================== - * machdep_pthread_create() - */ -void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, - void *(* start_routine)(), void *start_argument, - long stack_size, long nsec, long flags) -{ - machdep_pthread->start_routine = start_routine; - machdep_pthread->start_argument = start_argument; - - machdep_pthread->machdep_timer.it_value.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_sec = 0; - machdep_pthread->machdep_timer.it_interval.tv_usec = 0; - machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; - - /* Save register windows onto stackframe */ - __asm__ ("ta 3"); - - if (setjmp(machdep_pthread->machdep_state)) { - machdep_pthread_start(); - } - - /* - * Set up new stact frame so that it looks like it - * returned from a longjmp() to the beginning of - * machdep_pthread_start(). - */ - - /* Sparc stack starts high and builds down. */ - machdep_pthread->machdep_state[1] = - (int)machdep_pthread->machdep_stack + stack_size - 1024; - machdep_pthread->machdep_state[1] &= ~7; - -} - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) -{ - return(machdep_sys_getdents(fd, buf, len)); -} - -/* ========================================================================== - * machdep_sys_wait3() - */ -machdep_sys_wait3(int * b, int c, int * d) -{ - return(-ENOSYS); - /* return(machdep_sys_wait4(0, b, c, d)); */ -} - -/* ========================================================================== - * machdep_sys_waitpid() - */ -machdep_sys_waitpid(int a, int * b, int c) -{ - idtype_t id; - - switch (a) { - case -1: - id = P_ALL; - break; - case 0: - a = machdep_sys_pgrpsys(0); - id = P_PGID; - break; - default: - if (a < 0) { - id = P_PGID; - a = -a; - } else { - id = P_PID; - } - break; - } - - return(machdep_sys_waitsys(id, a, b, c)); -} - -/* ========================================================================== - * machdep_sys_dup2() - */ -machdep_sys_dup2(int a, int b) -{ - machdep_sys_close(b); - machdep_sys_fcntl(a, F_DUPFD, b); -} - -/* ========================================================================== - * machdep_sys_ftruncate() - */ -machdep_sys_ftruncate(int a, off_t b) -{ - flock_t c; - - c.l_len = 0; - c.l_start = b; - c.l_whence = 0; - return(machdep_sys_fcntl(a, F_FREESP, c)); -} - -/* ========================================================================== - * machdep_sys_select() - * Recoded to be quicker by Monty - */ -static fd_set bogus_fds; /* Always zero, never changed */ - -machdep_sys_select(int nfds, fd_set *readfds, fd_set *writefds, - fd_set *exceptfds, struct timeval *timeout) -{ - struct pollfd fds[64],*ptr; - int i, fds_count, time_out, found; - - /* Make sure each arg has a valid pointer */ - if ((readfds == NULL) || (writefds == NULL) || (exceptfds == NULL)) { - if (exceptfds == NULL) { - exceptfds = &bogus_fds; - } - if (writefds == NULL) { - writefds = &bogus_fds; - } - if (readfds == NULL) { - readfds = &bogus_fds; - } - } - - ptr=fds; - for (i = 0 ; i < nfds; i++) - { - if (FD_ISSET(i, readfds)) - { - if (FD_ISSET(i, writefds)) - ptr->events= POLLIN | POLLOUT; - else - ptr->events= POLLIN; - (ptr++)->fd=i; - } - else if (FD_ISSET(i, writefds)) - { - ptr->events=POLLOUT; - (ptr++)->fd=i; - } - } - FD_ZERO(readfds); - FD_ZERO(writefds); - FD_ZERO(exceptfds); - time_out = timeout->tv_usec / 1000 + timeout->tv_sec * 1000; - fds_count=(int) (ptr-fds); - while ((found = machdep_sys_poll(fds, fds_count, time_out)) <= 0) - { - if (found != -ERESTART) /* Try again if restartable */ - return(found); /* Usually 0 ; Cant read or write */ - } - - while (ptr-- != fds) - { - if (ptr->revents & POLLIN) - FD_SET(ptr->fd, readfds); - if (ptr->revents & POLLOUT) - FD_SET(ptr->fd,writefds); - } - return(found); -} - -/* ========================================================================== - * machdep_sys_getdtablesize() - */ -machdep_sys_getdtablesize() -{ - return(sysconf(_SC_OPEN_MAX)); -} - -/* ========================================================================== - * getpagesize() - */ -getpagesize() -{ - return(sysconf(_SC_PAGESIZE)); -} - -/* ========================================================================== - * gethostname() - */ -int gethostname(char * name, int namelen) -{ - if (sysinfo(SI_HOSTNAME, name, namelen) == NOTOK) { - return(NOTOK); - } else { - return(OK); - } -} - -/* ========================================================================== - * machdep_sys_sigaction() - * - * This is VERY temporary. - */ -int machdep_sys_sigaction(int a, void * b, void * c) -{ - return(sigaction(a, b, c)); -} diff --git a/mit-pthreads/machdep/engine-sparc-sunos-5.3.h b/mit-pthreads/machdep/engine-sparc-sunos-5.3.h deleted file mode 100644 index 365ecd799eb..00000000000 --- a/mit-pthreads/machdep/engine-sparc-sunos-5.3.h +++ /dev/null @@ -1,129 +0,0 @@ -/* ==== machdep.h ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - */ - -#include <unistd.h> -#include <setjmp.h> -#include <sys/time.h> -#include <sys/cdefs.h> - -/* - * The first machine dependent functions are the SEMAPHORES - * needing the test and set instruction. - */ -#define SEMAPHORE_CLEAR 0 -#define SEMAPHORE_SET 0xff - -#define SEMAPHORE_TEST_AND_SET(lock) \ -({ \ -char *p = lock; \ -long temp; \ - \ -__asm__ volatile("ldstub %1,%0" \ - :"=r" (temp) \ - :"m" (*p) \ - :"memory"); \ -temp; \ -}) - -#define SEMAPHORE_RESET(lock) \ -{ \ -__asm__ volatile("stb %1, %0" \ - :"=m" (*lock) \ - :"r" (SEMAPHORE_CLEAR) \ - :"memory"); \ -} - -/* - * More machine dependent macros - */ -#ifdef PTHREAD_KERNEL - -#define machdep_save_float_state(x) -#define machdep_restore_float_state() - -#endif - -/* - * New types - */ -typedef char semaphore; - -/* - * sigset_t macros - */ -#define SIGMAX 31 -#define SIG_ANY(sig) \ -({ \ - sigset_t *sig_addr = (sigset_t *)&sig; \ - int ret = 0; \ - int i; \ - \ - for (i = 1; i <= SIGMAX; i++) { \ - if (sigismember(sig_addr, i)) { \ - ret = 1; \ - break; \ - } \ - } \ - ret; \ -}) - -/* - * New Strutures - */ -struct machdep_pthread { - void *(*start_routine)(void *); - void *start_argument; - void *machdep_stack; - struct itimerval machdep_timer; - jmp_buf machdep_state; -}; - -/* - * Static machdep_pthread initialization values. - * For initial thread only. - */ -#define MACHDEP_PTHREAD_INIT \ -{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } - -/* - * Minimum stack size - */ -#undef PTHREAD_STACK_MIN /* Defined in limits.h */ -#define PTHREAD_STACK_MIN 1024 - -/* - * Some fd flag defines that are necessary to distinguish between posix - * behavior and bsd4.3 behavior. - */ -#define __FD_NONBLOCK (O_NONBLOCK | O_NDELAY) - -/* - * New functions - */ - -__BEGIN_DECLS - -#if defined(PTHREAD_KERNEL) - -#define __machdep_stack_get(x) (x)->machdep_stack -#define __machdep_stack_set(x, y) (x)->machdep_stack = y -#define __machdep_stack_repl(x, y) \ -{ \ - if (stack = __machdep_stack_get(x)) { \ - __machdep_stack_free(stack); \ - } \ - __machdep_stack_set(x, y); \ -} - -void * __machdep_stack_alloc __P_((size_t)); -void __machdep_stack_free __P_((void *)); - -int machdep_save_state __P_((void)); - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/freebsd-1.1/compat.h b/mit-pthreads/machdep/freebsd-1.1/compat.h deleted file mode 100755 index e7de318aa88..00000000000 --- a/mit-pthreads/machdep/freebsd-1.1/compat.h +++ /dev/null @@ -1,43 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : COmpat header to make socket code compile. - * - * 1.00 94/08/01 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#endif diff --git a/mit-pthreads/machdep/freebsd-1.1/dirent.h b/mit-pthreads/machdep/freebsd-1.1/dirent.h deleted file mode 100755 index 5226443f86b..00000000000 --- a/mit-pthreads/machdep/freebsd-1.1/dirent.h +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno /* backward compatibility */ - -/* definitions for library routines operating on directories. */ -#define DIRBLKSIZ 1024 - -#endif /* !_DIRENT_H_ */ diff --git a/mit-pthreads/machdep/freebsd-1.1/socket.h b/mit-pthreads/machdep/freebsd-1.1/socket.h deleted file mode 100755 index f13d01e7fe5..00000000000 --- a/mit-pthreads/machdep/freebsd-1.1/socket.h +++ /dev/null @@ -1,267 +0,0 @@ -/* - * Copyright (c) 1982,1985,1986,1988 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)socket.h 7.13 (Berkeley) 4/20/91 - * $Id$ - */ - -#ifndef _SYS_SOCKET_H_ -#define _SYS_SOCKET_H_ 1 - -/* - * Definitions related to sockets: types, address families, options. - */ - -/* - * Types - */ -#define SOCK_STREAM 1 /* stream socket */ -#define SOCK_DGRAM 2 /* datagram socket */ -#define SOCK_RAW 3 /* raw-protocol interface */ -#define SOCK_RDM 4 /* reliably-delivered message */ -#define SOCK_SEQPACKET 5 /* sequenced packet stream */ - -/* - * Option flags per-socket. - */ -#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ - -/* - * Additional options, not kept in so_options. - */ -#define SO_SNDBUF 0x1001 /* send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ - -/* - * Structure used for manipulating linger option. - */ -struct linger { - int l_onoff; /* option on/off */ - int l_linger; /* linger time */ -}; - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xffff /* options for socket level */ - -/* - * Address families. - */ -#define AF_UNSPEC 0 /* unspecified */ -#define AF_UNIX 1 /* local to host (pipes, portals) */ -#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -#define AF_IMPLINK 3 /* arpanet imp addresses */ -#define AF_PUP 4 /* pup protocols: e.g. BSP */ -#define AF_CHAOS 5 /* mit CHAOS protocols */ -#define AF_NS 6 /* XEROX NS protocols */ -#define AF_ISO 7 /* ISO protocols */ -#define AF_OSI AF_ISO -#define AF_ECMA 8 /* european computer manufacturers */ -#define AF_DATAKIT 9 /* datakit protocols */ -#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -#define AF_SNA 11 /* IBM SNA */ -#define AF_DECnet 12 /* DECnet */ -#define AF_DLI 13 /* DEC Direct data link interface */ -#define AF_LAT 14 /* LAT */ -#define AF_HYLINK 15 /* NSC Hyperchannel */ -#define AF_APPLETALK 16 /* Apple Talk */ -#define AF_ROUTE 17 /* Internal Routing Protocol */ -#define AF_LINK 18 /* Link layer interface */ -#define pseudo_AF_XTP 19 /* eXpress Transfer Protocol (no AF) */ -#define AF_RMP 20 /* HP's Remote Maint Protocol */ -#define AF_MAX 21 - -/* - * Structure used by kernel to store most - * addresses. - */ -struct sockaddr { - u_char sa_len; /* total length */ - u_char sa_family; /* address family */ - char sa_data[14]; /* actually longer; address value */ -}; - -/* - * Structure used by kernel to pass protocol - * information in raw sockets. - */ -struct sockproto { - u_short sp_family; /* address family */ - u_short sp_protocol; /* protocol */ -}; - -/* - * Protocol families, same as address families for now. - */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_IMPLINK AF_IMPLINK -#define PF_PUP AF_PUP -#define PF_CHAOS AF_CHAOS -#define PF_NS AF_NS -#define PF_ISO AF_ISO -#define PF_OSI AF_ISO -#define PF_ECMA AF_ECMA -#define PF_DATAKIT AF_DATAKIT -#define PF_CCITT AF_CCITT -#define PF_SNA AF_SNA -#define PF_DECnet AF_DECnet -#define PF_DLI AF_DLI -#define PF_LAT AF_LAT -#define PF_HYLINK AF_HYLINK -#define PF_APPLETALK AF_APPLETALK -#define PF_ROUTE AF_ROUTE -#define PF_LINK AF_LINK -#define PF_XTP pseudo_AF_XTP /* really just proto family, no AF */ -#define PF_RMP AF_RMP - -#define PF_MAX AF_MAX - -/* - * Maximum queue length specifiable by listen. - */ -#define SOMAXCONN 5 - -/* - * Message header for recvmsg and sendmsg calls. - * Used value-result for recvmsg, value only for sendmsg. - */ -struct msghdr { - caddr_t msg_name; /* optional address */ - u_int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - u_int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_control; /* ancillary data, see below */ - u_int msg_controllen; /* ancillary data buffer len */ - int msg_flags; /* flags on received message */ -}; - -#define MSG_OOB 0x1 /* process out-of-band data */ -#define MSG_PEEK 0x2 /* peek at incoming message */ -#define MSG_DONTROUTE 0x4 /* send without using routing tables */ -#define MSG_EOR 0x8 /* data completes record */ -#define MSG_TRUNC 0x10 /* data discarded before delivery */ -#define MSG_CTRUNC 0x20 /* control data lost before delivery */ -#define MSG_WAITALL 0x40 /* wait for full request or error */ - -/* - * Header for ancillary data objects in msg_control buffer. - * Used for additional information with/about a datagram - * not expressible by flags. The format is a sequence - * of message elements headed by cmsghdr structures. - */ -struct cmsghdr { - u_int cmsg_len; /* data byte count, including hdr */ - int cmsg_level; /* originating protocol */ - int cmsg_type; /* protocol-specific type */ -/* followed by u_char cmsg_data[]; */ -}; - -/* given pointer to struct adatahdr, return pointer to data */ -#define CMSG_DATA(cmsg) ((u_char *)((cmsg) + 1)) - -/* given pointer to struct adatahdr, return pointer to next adatahdr */ -#define CMSG_NXTHDR(mhdr, cmsg) \ - (((caddr_t)(cmsg) + (cmsg)->cmsg_len + sizeof(struct cmsghdr) > \ - (mhdr)->msg_control + (mhdr)->msg_controllen) ? \ - (struct cmsghdr *)NULL : \ - (struct cmsghdr *)((caddr_t)(cmsg) + ALIGN((cmsg)->cmsg_len))) - -#define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control) - -/* "Socket"-level control message types: */ -#define SCM_RIGHTS 0x01 /* access rights (array of int) */ - -/* - * 4.3 compat sockaddr, move to compat file later - */ -struct osockaddr { - u_short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ -}; - -/* - * 4.3-compat message header (move to compat file later). - */ -struct omsghdr { - caddr_t msg_name; /* optional address */ - int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_accrights; /* access rights sent/received */ - int msg_accrightslen; -}; - -#ifndef KERNEL - -#include <sys/cdefs.h> - -__BEGIN_DECLS -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int getpeername __P_((int, struct sockaddr *, int *)); -int getsockname __P_((int, struct sockaddr *, int *)); -int getsockopt __P_((int, int, int, void *, int *)); -int listen __P_((int, int)); -ssize_t recv __P_((int, void *, size_t, int)); -ssize_t recvfrom __P_((int, void *, size_t, int, - struct sockaddr *, int *)); -int recvmsg __P_((int, struct msghdr *, int)); -ssize_t send __P_((int, const void *, size_t, int)); -ssize_t sendto __P_((int, const void *, size_t, int, - const struct sockaddr *, int)); -int sendmsg __P_((int, const struct msghdr *, int)); -int setsockopt __P_((int, int, int, const void *, int)); -int shutdown __P_((int, int)); -int socket __P_((int, int, int)); -int socketpair __P_((int, int, int, int *)); -__END_DECLS - -#endif /* !KERNEL */ -#endif /* _SYS_SOCKET_H_ */ diff --git a/mit-pthreads/machdep/freebsd-1.1/timers.h b/mit-pthreads/machdep/freebsd-1.1/timers.h deleted file mode 100755 index 3c4d057976a..00000000000 --- a/mit-pthreads/machdep/freebsd-1.1/timers.h +++ /dev/null @@ -1,68 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/types.h> -#include <time.h> - -struct timespec { - time_t tv_sec; - long tv_nsec; -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/freebsd-2.0/__math.h b/mit-pthreads/machdep/freebsd-2.0/__math.h deleted file mode 100755 index 27ed0f2575d..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/__math.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * ANSI/POSIX - */ -extern char __infinity[]; -#define HUGE_VAL (*(double *) __infinity) - diff --git a/mit-pthreads/machdep/freebsd-2.0/__path.h b/mit-pthreads/machdep/freebsd-2.0/__path.h deleted file mode 100755 index 432494daafa..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/__path.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__PATH_H_ -#define _SYS__PATH_H_ - -#define _PATH_PTY "/dev/" -#define _PATH_TZDIR "/usr/share/zoneinfo" -#define _PATH_TZFILE "/etc/localtime" - -#endif /* !_SYS__PATH_H_ */ - diff --git a/mit-pthreads/machdep/freebsd-2.0/__signal.h b/mit-pthreads/machdep/freebsd-2.0/__signal.h deleted file mode 100755 index 918955c9948..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/__signal.h +++ /dev/null @@ -1,8 +0,0 @@ -#include <sys/signal.h> - -#define __SIGEMPTYSET 0 -#define __SIGFILLSET 0xffffffff -#define __SIGADDSET(s, n) (*(s) |= 1 << ((n) - 1), 0) -#define __SIGDELSET(s, n) (*(s) &= ~(1 << ((n) - 1)), 0) -#define __SIGISMEMBER(s, n) ((*(s) & (1 << ((n) - 1))) != 0) - diff --git a/mit-pthreads/machdep/freebsd-2.0/__stdio.h b/mit-pthreads/machdep/freebsd-2.0/__stdio.h deleted file mode 100755 index d60b9df7a54..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/__stdio.h +++ /dev/null @@ -1,8 +0,0 @@ - -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -typedef pthread_fpos_t fpos_t; /* Must match off_t <sys/types.h> */ diff --git a/mit-pthreads/machdep/freebsd-2.0/__stdlib.h b/mit-pthreads/machdep/freebsd-2.0/__stdlib.h deleted file mode 100755 index 5ee2b8ed3d9..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/__stdlib.h +++ /dev/null @@ -1,66 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <machine/ansi.h> - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#ifdef _BSD_WCHAR_T_ -typedef _BSD_WCHAR_T_ wchar_t; -#ifdef _BSD_RUNE_T_ -typedef _BSD_RUNE_T_ rune_t; -#undef _BSD_RUNE_T_ -#else -typedef _BSD_WCHAR_T_ rune_t; -#endif -#undef _BSD_WCHAR_T_ -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif /* _STDLIB_H_ */ diff --git a/mit-pthreads/machdep/freebsd-2.0/__string.h b/mit-pthreads/machdep/freebsd-2.0/__string.h deleted file mode 100755 index 93d4fcf9dd2..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/__string.h +++ /dev/null @@ -1,21 +0,0 @@ - -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -/* Non-standard NetBSD string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -void strmode __P_((int, char *)); -char *strsep __P_((char **, const char *)); -__END_DECLS -#endif - diff --git a/mit-pthreads/machdep/freebsd-2.0/__time.h b/mit-pthreads/machdep/freebsd-2.0/__time.h deleted file mode 100755 index 5c4b722bc3c..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/__time.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__TIME_H_ -#define _SYS__TIME_H_ - -#include <machine/ansi.h> -#include <machine/limits.h> - -#ifdef _BSD_CLOCK_T_ -typedef _BSD_CLOCK_T_ clock_t; -#undef _BSD_CLOCK_T_ -#endif - -#ifdef _BSD_TIME_T_ -typedef _BSD_TIME_T_ time_t; -#undef _BSD_TIME_T_ -#endif - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#define CLOCKS_PER_SEC 100 - -#if !defined(CLK_TCK) -#define CLK_TCK 100 -#endif /* not CLK_TCK */ - -#endif /* !_SYS__TIME_H_ */ diff --git a/mit-pthreads/machdep/freebsd-2.0/__unistd.h b/mit-pthreads/machdep/freebsd-2.0/__unistd.h deleted file mode 100755 index ed5b0657727..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/__unistd.h +++ /dev/null @@ -1,113 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/types.h> - -#ifndef NULL -#define NULL 0 -#endif - -#define ioctl_request_type unsigned long /* For fd.c */ - -/* compile-time symbolic constants */ -#define _POSIX_JOB_CONTROL /* implementation supports job control */ - -#ifdef _NOT_AVAILABLE -#define _POSIX_SAVED_IDS /* saved set-user-ID and set-group-ID */ -#endif - -#ifndef _POSIX_VERSION -#define _POSIX_VERSION 198808L -#endif -#ifndef _POSIX2_VERSION -#define _POSIX2_VERSION 199212L -#endif - -/* execution-time symbolic constants */ - /* chown requires appropriate privileges */ -#define _POSIX_CHOWN_RESTRICTED 1 - /* too-long path components generate errors */ -#define _POSIX_NO_TRUNC 1 - /* may disable terminal special characters */ -#define _POSIX_VDISABLE 0xff - -/* configurable pathname variables */ -#define _PC_LINK_MAX 1 -#define _PC_MAX_CANON 2 -#define _PC_MAX_INPUT 3 -#define _PC_NAME_MAX 4 -#define _PC_PATH_MAX 5 -#define _PC_PIPE_BUF 6 -#define _PC_CHOWN_RESTRICTED 7 -#define _PC_NO_TRUNC 8 -#define _PC_VDISABLE 9 - -/* configurable system variables */ -#define _SC_ARG_MAX 1 -#define _SC_CHILD_MAX 2 -#define _SC_CLK_TCK 3 -#define _SC_NGROUPS_MAX 4 -#define _SC_OPEN_MAX 5 -#define _SC_JOB_CONTROL 6 -#define _SC_SAVED_IDS 7 -#define _SC_VERSION 8 -#define _SC_BC_BASE_MAX 9 -#define _SC_BC_DIM_MAX 10 -#define _SC_BC_SCALE_MAX 11 -#define _SC_BC_STRING_MAX 12 -#define _SC_COLL_WEIGHTS_MAX 13 -#define _SC_EXPR_NEST_MAX 14 -#define _SC_LINE_MAX 15 -#define _SC_RE_DUP_MAX 16 -#define _SC_2_VERSION 17 -#define _SC_2_C_BIND 18 -#define _SC_2_C_DEV 19 -#define _SC_2_CHAR_TERM 20 -#define _SC_2_FORT_DEV 21 -#define _SC_2_FORT_RUN 22 -#define _SC_2_LOCALEDEF 23 -#define _SC_2_SW_DEV 24 -#define _SC_2_UPE 25 -#define _SC_STREAM_MAX 26 -#define _SC_TZNAME_MAX 27 - -/* configurable system strings */ -#define _CS_PATH 1 - -#endif diff --git a/mit-pthreads/machdep/freebsd-2.0/compat.h b/mit-pthreads/machdep/freebsd-2.0/compat.h deleted file mode 100755 index e7de318aa88..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/compat.h +++ /dev/null @@ -1,43 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : COmpat header to make socket code compile. - * - * 1.00 94/08/01 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#endif diff --git a/mit-pthreads/machdep/freebsd-2.0/dirent.h b/mit-pthreads/machdep/freebsd-2.0/dirent.h deleted file mode 100755 index 5226443f86b..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/dirent.h +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno /* backward compatibility */ - -/* definitions for library routines operating on directories. */ -#define DIRBLKSIZ 1024 - -#endif /* !_DIRENT_H_ */ diff --git a/mit-pthreads/machdep/freebsd-2.0/errno.h b/mit-pthreads/machdep/freebsd-2.0/errno.h deleted file mode 100755 index 3da61d692a3..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/errno.h +++ /dev/null @@ -1,160 +0,0 @@ -/* $NetBSD: errno.h,v 1.8 1994/06/29 06:44:02 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)errno.h 8.5 (Berkeley) 1/21/94 - */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* Input/output error */ -#define ENXIO 6 /* Device not configured */ -#define E2BIG 7 /* Argument list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file descriptor */ -#define ECHILD 10 /* No child processes */ -#define EDEADLK 11 /* Resource deadlock avoided */ - /* 11 was EAGAIN */ -#define ENOMEM 12 /* Cannot allocate memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -#ifndef _POSIX_SOURCE -#define ENOTBLK 15 /* Block device required */ -#endif -#define EBUSY 16 /* Device busy */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* Operation not supported by device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* Too many open files in system */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Inappropriate ioctl for device */ -#ifndef _POSIX_SOURCE -#define ETXTBSY 26 /* Text file busy */ -#endif -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ - -/* math software */ -#define EDOM 33 /* Numerical argument out of domain */ -#define ERANGE 34 /* Result too large */ - -/* non-blocking and interrupt i/o */ -#define EAGAIN 35 /* Resource temporarily unavailable */ -#ifndef _POSIX_SOURCE -#define EWOULDBLOCK EAGAIN /* Operation would block */ -#define EINPROGRESS 36 /* Operation now in progress */ -#define EALREADY 37 /* Operation already in progress */ - -/* ipc/network software -- argument errors */ -#define ENOTSOCK 38 /* Socket operation on non-socket */ -#define EDESTADDRREQ 39 /* Destination address required */ -#define EMSGSIZE 40 /* Message too long */ -#define EPROTOTYPE 41 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 42 /* Protocol not available */ -#define EPROTONOSUPPORT 43 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 44 /* Socket type not supported */ -#define EOPNOTSUPP 45 /* Operation not supported */ -#define EPFNOSUPPORT 46 /* Protocol family not supported */ -#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ -#define EADDRINUSE 48 /* Address already in use */ -#define EADDRNOTAVAIL 49 /* Can't assign requested address */ - -/* ipc/network software -- operational errors */ -#define ENETDOWN 50 /* Network is down */ -#define ENETUNREACH 51 /* Network is unreachable */ -#define ENETRESET 52 /* Network dropped connection on reset */ -#define ECONNABORTED 53 /* Software caused connection abort */ -#define ECONNRESET 54 /* Connection reset by peer */ -#define ENOBUFS 55 /* No buffer space available */ -#define EISCONN 56 /* Socket is already connected */ -#define ENOTCONN 57 /* Socket is not connected */ -#define ESHUTDOWN 58 /* Can't send after socket shutdown */ -#define ETOOMANYREFS 59 /* Too many references: can't splice */ -#define ETIMEDOUT 60 /* Operation timed out */ -#define ECONNREFUSED 61 /* Connection refused */ - -#define ELOOP 62 /* Too many levels of symbolic links */ -#endif /* _POSIX_SOURCE */ -#define ENAMETOOLONG 63 /* File name too long */ - -/* should be rearranged */ -#ifndef _POSIX_SOURCE -#define EHOSTDOWN 64 /* Host is down */ -#define EHOSTUNREACH 65 /* No route to host */ -#endif /* _POSIX_SOURCE */ -#define ENOTEMPTY 66 /* Directory not empty */ - -/* quotas & mush */ -#ifndef _POSIX_SOURCE -#define EPROCLIM 67 /* Too many processes */ -#define EUSERS 68 /* Too many users */ -#define EDQUOT 69 /* Disc quota exceeded */ - -/* Network File System */ -#define ESTALE 70 /* Stale NFS file handle */ -#define EREMOTE 71 /* Too many levels of remote in path */ -#define EBADRPC 72 /* RPC struct is bad */ -#define ERPCMISMATCH 73 /* RPC version wrong */ -#define EPROGUNAVAIL 74 /* RPC prog. not avail */ -#define EPROGMISMATCH 75 /* Program version wrong */ -#define EPROCUNAVAIL 76 /* Bad procedure for program */ -#endif /* _POSIX_SOURCE */ - -#define ENOLCK 77 /* No locks available */ -#define ENOSYS 78 /* Function not implemented */ - -#ifndef _POSIX_SOURCE -#define EFTYPE 79 /* Inappropriate file type or format */ -#define EAUTH 80 /* Authentication error */ -#define ENEEDAUTH 81 /* Need authenticator */ -#define ELAST 81 /* Must be equal largest errno */ -#endif /* _POSIX_SOURCE */ - -#endif diff --git a/mit-pthreads/machdep/freebsd-2.0/timers.h b/mit-pthreads/machdep/freebsd-2.0/timers.h deleted file mode 100755 index f9768c68c8f..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/timers.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/time.h> - -#endif diff --git a/mit-pthreads/machdep/freebsd-2.0/wait.h b/mit-pthreads/machdep/freebsd-2.0/wait.h deleted file mode 100755 index 7861e3fa180..00000000000 --- a/mit-pthreads/machdep/freebsd-2.0/wait.h +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)wait.h 8.1 (Berkeley) 6/2/93 - * $Id$ - */ - -#ifndef _SYS_WAIT_H_ -#define _SYS_WAIT_H_ - -/* - * This file holds definitions relevent to the wait4 system call - * and the alternate interfaces that use it (wait, wait3, waitpid). - */ - -/* - * Macros to test the exit status returned by wait - * and extract the relevant values. - */ -#ifdef _POSIX_SOURCE -#define _W_INT(i) (i) -#else -#define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */ -#define WCOREFLAG 0200 -#endif - -#define _WSTATUS(x) (_W_INT(x) & 0177) -#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED) -#define WSTOPSIG(x) (_W_INT(x) >> 8) -#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) -#define WTERMSIG(x) (_WSTATUS(x)) -#define WIFEXITED(x) (_WSTATUS(x) == 0) -#define WEXITSTATUS(x) (_W_INT(x) >> 8) -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG) - -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED) -#endif - -/* - * Option bits for the third argument of wait4. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE -/* POSIX extensions and 4.2/4.3 compatability: */ - -/* - * Tokens for special values of the "pid" parameter to wait4. - */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#include <machine/endian.h> - -/* - * Deprecated: - * Structure of the information in the status word returned by wait4. - * If w_stopval==WSTOPPED, then the second structure describes - * the information returned, else the first. - */ -union wait { - int w_status; /* used in syscall */ - /* - * Terminated process status. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Termsig:7, /* termination signal */ - w_Coredump:1, /* core dump indicator */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Coredump:1, /* core dump indicator */ - w_Termsig:7; /* termination signal */ -#endif - } w_T; - /* - * Stopped process status. Returned - * only for traced children unless requested - * with the WUNTRACED option bit. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Stopval:8, /* == W_STOPPED if stopped */ - w_Stopsig:8, /* signal that stopped us */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Stopsig:8, /* signal that stopped us */ - w_Stopval:8; /* == W_STOPPED if stopped */ -#endif - } w_S; -}; -#define w_termsig w_T.w_Termsig -#define w_coredump w_T.w_Coredump -#define w_retcode w_T.w_Retcode -#define w_stopval w_S.w_Stopval -#define w_stopsig w_S.w_Stopsig - -#define WSTOPPED _WSTOPPED -#endif /* _POSIX_SOURCE */ - -#ifndef KERNEL -#include <sys/types.h> -#include <sys/cdefs.h> - -__BEGIN_DECLS -struct rusage; /* forward declaration */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -pid_t wait4 __P_((pid_t, int *, int, void *)); -#endif -__END_DECLS -#endif - -#endif diff --git a/mit-pthreads/machdep/hpux-10.20/__math.h b/mit-pthreads/machdep/hpux-10.20/__math.h deleted file mode 100755 index 8066bd60713..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/__math.h +++ /dev/null @@ -1,3 +0,0 @@ -#define HUGE_VAL 1.7976931348623157e+308 - - diff --git a/mit-pthreads/machdep/hpux-10.20/__signal.h b/mit-pthreads/machdep/hpux-10.20/__signal.h deleted file mode 100755 index fbb1d6ce2b1..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/__signal.h +++ /dev/null @@ -1,28 +0,0 @@ -#include <sys/signal.h> - -#ifndef SIGCLD -#define SIGCLD SIGCHLD -#endif - -/* #define sigmask(n) ((unsigned int)1 << (((n) - 1) & (32 - 1))) */ -#define sigword(n) (((unsigned int)((n) - 1))>>5) - -#define __SIGEMPTYSET { 0, 0, 0, 0, 0, 0, 0, 0 } -#define __SIGFILLSET { 0xffffffff,0xffffffff,0xffffffff,0xffffffff,\ - 0xffffffff,0xffffffff,0xffffffff,0xffffffff} -#define __SIGADDSET(s, n) ((s)->sigset[sigword(n)] |= sigmask(n)) -#define __SIGDELSET(s, n) ((s)->sigset[sigword(n)] &= ~sigmask(n)) -#define __SIGISMEMBER(s, n) ((s)->sigset[sigword(n)] & sigmask(n)) - -#define SIGSET_SIZE sizeof(sigset_t)/sizeof(long) - -#define SIG_ANY(sig) sig_any(&sig) - -static inline int sig_any(sigset_t *sig) { - int i; - for (i=0; i < SIGSET_SIZE; i++) - if (sig->sigset[i] != 0) - return 1; - return 0; -} - diff --git a/mit-pthreads/machdep/hpux-10.20/__stdio.h b/mit-pthreads/machdep/hpux-10.20/__stdio.h deleted file mode 100755 index b8f1a07d9d6..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/__stdio.h +++ /dev/null @@ -1,11 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -#include <sys/types.h> -/* -typedef pthread_fpos_t fpos_t; -*/ - diff --git a/mit-pthreads/machdep/hpux-10.20/__stdlib.h b/mit-pthreads/machdep/hpux-10.20/__stdlib.h deleted file mode 100755 index 37a14a960d5..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/__stdlib.h +++ /dev/null @@ -1,24 +0,0 @@ -/* $Id$ */ - -#ifndef __sys_stdtypes_h - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif - -#ifndef _WCHAR_T -#define _WCHAR_T -typedef unsigned int wchar_t; -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif - -#endif diff --git a/mit-pthreads/machdep/hpux-10.20/__string.h b/mit-pthreads/machdep/hpux-10.20/__string.h deleted file mode 100755 index 1badf6d660c..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/__string.h +++ /dev/null @@ -1,20 +0,0 @@ - -#ifndef _SYS_STDSYMS_INCLUDED -#endif - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -/* Non-standard SunOS 4.x string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/hpux-10.20/__time.h b/mit-pthreads/machdep/hpux-10.20/__time.h deleted file mode 100755 index ae958dcc3cf..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/__time.h +++ /dev/null @@ -1,31 +0,0 @@ -/* $Id$ */ - -#ifndef __sys_stdtypes_h - -#ifndef _SYS__TIME_H_ -#define _SYS__TIME_H_ - -#ifndef _CLOCK_T -#define _CLOCK_T -typedef long clock_t; -#endif - -#ifndef _TIME_T -#define _TIME_T -typedef long time_t; -#endif - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif - -#define CLOCKS_PER_SEC 1000000 - -#if !defined(_ANSI_SOURCE) && !defined(CLK_TCK) -#define CLK_TCK 60 -#endif /* not ANSI */ - -#endif - -#endif /* !_SYS__TIME_H_ */ diff --git a/mit-pthreads/machdep/hpux-10.20/__unistd.h b/mit-pthreads/machdep/hpux-10.20/__unistd.h deleted file mode 100755 index 218e13d14ec..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/__unistd.h +++ /dev/null @@ -1,68 +0,0 @@ -/* /afs/sipb.mit.edu/project/pthreads/src/CVS/pthreads/machdep/hpux-9.03/__unist -d.h,v 1.2 1995/03/10 03:59:53 snl Exp */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/stdsyms.h> -#include <sys/types.h> -#include <utime.h> - -#ifndef NULL -#define NULL 0 -#endif - -#ifndef _GID_T -#define _GID_T -typedef long gid_t; -#endif - -#ifndef _UID_T -#define _UID_T -typedef long uid_t; -#endif - -#ifndef _PID_T -#define _PID_T -typedef long pid_t; -#endif - -#ifndef _OFF_T -#define _OFF_T -typedef long off_t; -#endif - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif - -#ifndef _SSIZE_T -#define _SSIZE_T -typedef int ssize_t; -#endif - -#define ioctl_request_type int /* For fd.c */ - -/* Symbolic constants for sysconf() variables defined by POSIX.1-1988: 0-7 */ - -#define _SC_ARG_MAX 0 /* ARG_MAX: Max length of argument to exec() - including environment data */ -#define _SC_CHILD_MAX 1 /* CHILD_MAX: Max of processes per userid */ -#define _SC_CLK_TCK 2 /* Number of clock ticks per second */ -#define _SC_NGROUPS_MAX 3 /* NGROUPS_MAX: Max of simultaneous - supplementary group IDs per process */ -#define _SC_OPEN_MAX 4 /* OPEN_MAX: Max of files that one process - can have open at any one time */ -#define _SC_JOB_CONTROL 5 /* _POSIX_JOB_CONTROL: 1 iff supported */ -#define _SC_SAVED_IDS 6 /* _POSIX_SAVED_IDS: 1 iff supported */ -#define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ - -/* Symbolic constants for sysconf() variables added by POSIX.1-1990: 100-199 */ - -#define _SC_STREAM_MAX 100 /* STREAM_MAX: Max of open stdio FILEs */ -#define _SC_TZNAME_MAX 101 /* TZNAME_MAX: Max length of timezone name */ -#define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ - -#endif /* _SYS___UNISTD_H_ */ - diff --git a/mit-pthreads/machdep/hpux-10.20/cdefs.h b/mit-pthreads/machdep/hpux-10.20/cdefs.h deleted file mode 100755 index 643089e6df6..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/cdefs.h +++ /dev/null @@ -1,67 +0,0 @@ -/* ==== cdefs.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Similar to the BSD cdefs.h file. - * - * 1.00 94/01/26 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -#include <sys/_inttypes.h> - -/* Stuff for compiling */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __INLINE static inline -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __INLINE extern inline -#define __CAN_DO_EXTERN_INLINE -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#endif -#else /* !__GNUC__ */ -#define __INLINE static -#define __BEGIN_DECLS -#define __END_DECLS -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#ifndef _U_INT32_T_ -#define _U_INT32_T_ -typedef unsigned int u_int32_t; -#endif - -#ifndef _U_INT16_T_ -#define _U_INT16_T_ -typedef unsigned short u_int16_t; -#endif - -#ifndef _INT32_T_ -#define _INT32_T_ -/* -typedef int int32_t; -*/ -#endif - -#ifndef _INT16_T_ -#define _INT16_T_ -/* -typedef short int16_t; -*/ -#endif - -#endif diff --git a/mit-pthreads/machdep/hpux-10.20/compat.h b/mit-pthreads/machdep/hpux-10.20/compat.h deleted file mode 100755 index 5a59434417c..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/compat.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Compatibility header for networking code. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/hpux-10.20/dirent.h b/mit-pthreads/machdep/hpux-10.20/dirent.h deleted file mode 100755 index 5f17af345db..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/dirent.h +++ /dev/null @@ -1,61 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno - -#endif /* !_SYS_DIRENT_H_ */ diff --git a/mit-pthreads/machdep/hpux-10.20/socket.h b/mit-pthreads/machdep/hpux-10.20/socket.h deleted file mode 100755 index c7a37706940..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/socket.h +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright (c) 1982, 1985, 1986 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * @(#)socket.h 7.3 (Berkeley) 6/27/88 - */ - -/* - * Definitions related to sockets: types, address families, options. - */ - -#include <sys/stdsyms.h> -#include <pthread/posix.h> -#include <sys/cdefs.h> - -/* - * Types of sockets - */ -#define SOCK_STREAM 1 /* stream socket */ -#define SOCK_DGRAM 2 /* datagram socket */ -#define SOCK_RAW 3 /* raw-protocol interface */ -#define SOCK_RDM 4 /* reliably-delivered message */ -#define SOCK_SEQPACKET 5 /* sequenced packet stream */ - -/* - * Option flags per-socket. - */ -#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ - -/* - * Additional options, not kept in so_options. - */ -#define SO_SNDBUF 0x1001 /* send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ -#define SO_SND_COPYAVOID 0x1009 /* avoid copy on send*/ -#define SO_RCV_COPYAVOID 0x100a /* avoid copy on rcv */ - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xffff /* options for socket level */ - -/* - * Address families. - */ -#define AF_UNSPEC 0 /* unspecified */ -#define AF_UNIX 1 /* local to host (pipes, portals) */ -#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -#define AF_IMPLINK 3 /* arpanet imp addresses */ -#define AF_PUP 4 /* pup protocols: e.g. BSP */ -#define AF_CHAOS 5 /* mit CHAOS protocols */ -#define AF_NS 6 /* XEROX NS protocols */ -#define AF_NBS 7 /* nbs protocols */ -#define AF_ECMA 8 /* european computer manufacturers */ -#define AF_DATAKIT 9 /* datakit protocols */ -#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -#define AF_SNA 11 /* IBM SNA */ -#define AF_DECnet 12 /* DECnet */ -#define AF_DLI 13 /* Direct data link interface */ -#define AF_LAT 14 /* LAT */ -#define AF_HYLINK 15 /* NSC Hyperchannel */ -#define AF_APPLETALK 16 /* Apple Talk */ -#define AF_OTS 17 /* Used for OSI in the ifnets */ -#define AF_NIT 18 /* NIT */ - -#define AF_MAX 19 - -/* - * Structure used by kernel to store most - * addresses. - */ -struct sockaddr { - unsigned short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ -}; - -/* - * Structure used by kernel to pass protocol - * information in raw sockets. - */ -struct sockproto { - unsigned short sp_family; /* address family */ - unsigned short sp_protocol; /* protocol */ -}; - -/* - * Protocol families, same as address families for now. - */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_IMPLINK AF_IMPLINK -#define PF_PUP AF_PUP -#define PF_CHAOS AF_CHAOS -#define PF_NS AF_NS -#define PF_NBS AF_NBS -#define PF_ECMA AF_ECMA -#define PF_DATAKIT AF_DATAKIT -#define PF_CCITT AF_CCITT -#define PF_SNA AF_SNA -#define PF_DECnet AF_DECnet -#define PF_DLI AF_DLI -#define PF_LAT AF_LAT -#define PF_HYLINK AF_HYLINK -#define PF_APPLETALK AF_APPLETALK - -#define PF_MAX AF_MAX - -/* - * Maximum queue length specifiable by listen. - */ -#define SOMAXCONN 20 - -/* - * Message header for recvmsg and sendmsg calls. - */ -struct msghdr { - caddr_t msg_name; /* optional address */ - int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_accrights; /* access rights sent/received */ - int msg_accrightslen; -}; - -#define MSG_OOB 0x1 /* process out-of-band data */ -#define MSG_PEEK 0x2 /* peek at incoming message */ -#define MSG_DONTROUTE 0x4 /* send without using routing tables */ - -#define MSG_MAXIOVLEN 16 - -/* - * Functions - */ - -__BEGIN_DECLS - -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int listen __P_((int, int)); -int socket __P_((int, int, int)); - -__END_DECLS - diff --git a/mit-pthreads/machdep/hpux-10.20/stdtypes.h b/mit-pthreads/machdep/hpux-10.20/stdtypes.h deleted file mode 100755 index 2b22abbf818..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/stdtypes.h +++ /dev/null @@ -1,74 +0,0 @@ -/* @(#)stdtypes.h 1.6 90/01/04 SMI */ - -/* - * Suppose you have an ANSI C or POSIX thingy that needs a typedef - * for thingy_t. Put it here and include this file wherever you - * define the thingy. This is used so that we don't have size_t in - * N (N > 1) different places and so that we don't have to have - * types.h included all the time and so that we can include this in - * the lint libs instead of termios.h which conflicts with ioctl.h. - */ -#ifndef __sys_stdtypes_h -#define __sys_stdtypes_h - -#ifndef _SIGSET_T_ -#define _SIGSET_T_ -typedef int sigset_t; /* signal mask - may change */ -#endif - -#ifndef _SPEED_T_ -#define _SPEED_T_ -typedef unsigned int speed_t; /* tty speeds */ -#endif - -#ifndef _TCFLAG_T_ -#define _TCFLAG_T_ -typedef unsigned long tcflag_t; /* tty line disc modes */ -#endif - -#ifndef _CC_T_ -#define _CC_T_ -typedef unsigned char cc_t; /* tty control char */ -#endif - -#ifndef _PID_T_ -#define _PID_T_ -typedef int pid_t; /* process id */ -#endif - -#ifndef _MODE_T_ -#define _MODE_T_ -typedef unsigned short mode_t; /* file mode bits */ -#endif - -#ifndef _NLINK_T_ -#define _NLINK_T_ -typedef short nlink_t; /* links to a file */ -#endif - -#ifndef _CLOCK_T_ -#define _CLOCK_T_ -typedef long clock_t; /* units=ticks (typically 60/sec) */ -#endif - -#ifndef _TIME_T_ -#define _TIME_T_ -typedef long time_t; /* value = secs since epoch */ -#endif - -#ifndef _SIZE_T_ -#define _SIZE_T_ -typedef int size_t; /* ??? */ -#endif - -#ifndef _PTRDIFF_T_ -#define _PTRDIFF_T_ -typedef int ptrdiff_t; /* result of subtracting two pointers */ -#endif - -#ifndef _WCHAR_T_ -#define _WCHAR_T_ -typedef unsigned short wchar_t; /* big enough for biggest char set */ -#endif - -#endif /* !__sys_stdtypes_h */ diff --git a/mit-pthreads/machdep/hpux-10.20/time.h b/mit-pthreads/machdep/hpux-10.20/time.h deleted file mode 100755 index 544905b0749..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/time.h +++ /dev/null @@ -1,228 +0,0 @@ -/* $Header$ */ - -#ifndef _SYS_TIME_INCLUDED -#define _SYS_TIME_INCLUDED - -/* time.h: Definitions for time handling functions */ - -#ifdef _KERNEL_BUILD -#include "../h/stdsyms.h" -#else /* ! _KERNEL_BUILD */ -#include <sys/stdsyms.h> -#endif /* _KERNEL_BUILD */ - -#include <sys/types.h> - -/* ANSI C time constants, types, and structures */ - -#ifdef _INCLUDE__STDC__ -# define CLOCKS_PER_SEC 1000000 - -# ifndef NULL -# define NULL 0 -# endif - -# ifndef _CLOCK_T -# define _CLOCK_T - typedef unsigned long clock_t; -# endif /* _CLOCK_T */ - -# ifndef _TIME_T -# define _TIME_T - typedef long time_t; -# endif /* _TIME_T */ - -# ifndef _SIZE_T -# define _SIZE_T - typedef unsigned int size_t; -# endif /* _SIZE_T */ - - /* Structure used with gmtime(), localtime(), mktime(), strftime(). */ - struct tm { - int tm_sec; /* second (0-61, allows for leap seconds) */ - int tm_min; /* minute (0-59) */ - int tm_hour; /* hour (0-23) */ - int tm_mday; /* day of the month (1-31) */ - int tm_mon; /* month (0-11) */ - int tm_year; /* years since 1900 */ - int tm_wday; /* day of the week (0-6) */ - int tm_yday; /* day of the year (0-365) */ - int tm_isdst; /* non-0 if daylight savings time is in effect */ - }; -#endif /* _INCLUDE__STDC__ */ - - -/* Additional types needed for HP-UX */ - -#ifdef _INCLUDE_HPUX_SOURCE -# ifndef _STRUCT_TIMEVAL -# define _STRUCT_TIMEVAL - /* Structure returned by gettimeofday(2) system call and others */ - struct timeval { - unsigned long tv_sec; /* seconds */ - long tv_usec; /* and microseconds */ - }; -# endif /* _STRUCT_TIMEVAL */ - - /* Structure used to represent timezones for gettimeofday(2) and others */ - struct timezone { - int tz_minuteswest; /* minutes west of Greenwich */ - int tz_dsttime; /* type of dst correction */ - }; - - /* Structure defining a timer setting. */ - struct itimerval { - struct timeval it_interval; /* timer interval */ - struct timeval it_value; /* current value */ - }; -#endif /* _INCLUDE_HPUX_SOURCE */ - - -/* Function prototypes and external variable declarations */ - -#ifndef _KERNEL -#ifdef __cplusplus - extern "C" { -#endif /* __cplusplus */ - -#ifdef _INCLUDE__STDC__ -# ifdef _PROTOTYPES - extern double difftime(time_t, time_t); - extern time_t mktime(struct tm *); - extern time_t time(time_t *); - extern char *ctime(const time_t *); - extern struct tm *gmtime(const time_t *); - extern struct tm *localtime(const time_t *); - extern size_t strftime(char *, size_t, const char *, const struct tm *); -# else /* not _PROTOTYPES */ - extern double difftime(); - extern time_t mktime(); - extern time_t time(); - extern char *ctime(); - extern struct tm *gmtime(); - extern struct tm *localtime(); - extern size_t strftime(); -# endif /* not _PROTOTYPES */ - -# ifdef _CLASSIC_ANSI_TYPES - extern long clock(); -# else /* not _CLASSIC_ANSI_TYPES */ -# ifdef _PROTOTYPES - extern clock_t clock(void); -# else /* not _PROTOTYPES */ - extern clock_t clock(); -# endif /* not _PROTOTYPES */ -# endif /* not _CLASSIC_ANSI_TYPES */ -#endif /* _INCLUDE__STDC__ */ - -#ifdef _INCLUDE_POSIX_SOURCE -# ifdef _PROTOTYPES - extern void tzset(void); -# else /* not _PROTOTYPES */ - extern void tzset(); -# endif /* not _PROTOTYPES */ - - extern char *tzname[2]; -#endif /* _INCLUDE_POSIX_SOURCE */ - - -#ifdef _INCLUDE_XOPEN_SOURCE -# ifdef _PROTOTYPES - extern char *strptime(const char *, const char *, struct tm *); -# else /* not _PROTOTYPES */ - extern char *strptime(); -# endif /* not _PROTOTYPES */ - - extern long timezone; - extern int daylight; -#endif /* _INCLUDE_XOPEN_SOURCE */ - - -#ifdef _INCLUDE_HPUX_SOURCE -# ifdef _PROTOTYPES - extern struct tm *getdate(const char *); - extern char *nl_asctime(struct tm *, char *, int); - extern char *nl_ctime(long *, char *, int); - extern char *nl_ascxtime(struct tm *, char *); - extern char *nl_cxtime(long *, char *); - extern int getitimer(int, struct itimerval *); - extern int setitimer(int, const struct itimerval *, struct itimerval *); - extern int gettimeofday(struct timeval *, struct timezone *); - extern int settimeofday(const struct timeval *, const struct timezone *); - extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); - extern int stime(const time_t *); -# else /* not _PROTOTYPES */ - extern struct tm *getdate(); - extern char *nl_asctime(); - extern char *nl_ctime(); - extern char *nl_ascxtime(); - extern char *nl_cxtime(); - extern int getitimer(); - extern int setitimer(); - extern int gettimeofday(); - extern int settimeofday(); - extern int select(); - extern int stime(); -# endif /* not _PROTOTYPES */ - extern int getdate_err; -#endif /* _INCLUDE_HPUX_SOURCE */ - -#ifdef __cplusplus - } -#endif /* __cplusplus */ -#endif /* not _KERNEL */ - - -/* - * CLK_TCK is needed by the kernel, and also in the POSIX namespace. - */ - -#ifdef _INCLUDE_POSIX_SOURCE -# ifndef CLK_TCK -# ifdef __hp9000s300 -# define CLK_TCK 50 -# endif /* __hp9000s300 */ -# ifdef __hp9000s800 -# define CLK_TCK 100 -# endif /* __hp9000s800 */ -# endif /* CLK_TCK */ -#endif - - -/* Additional HP-UX structures, macros, and constants */ - -#ifdef _INCLUDE_HPUX_SOURCE - - /* Kernel instrumentation time value */ - struct ki_timeval { - long tv_sec; /* seconds */ - long tv_nunit; /* and native units */ - }; - - /* Kinds of daylight savings time */ -# define DST_NONE 0 /* not on dst */ -# define DST_USA 1 /* USA style dst */ -# define DST_AUST 2 /* Australian style dst */ -# define DST_WET 3 /* Western European dst */ -# define DST_MET 4 /* Middle European dst */ -# define DST_EET 5 /* Eastern European dst */ - - /* - * Operations on timevals. - * - * NB: timercmp does not work for >= or <=. - */ -# define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) -# define timercmp(tvp, uvp, cmp) \ - ((tvp)->tv_sec cmp (uvp)->tv_sec || \ - (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec) -# define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) - - /* Names of the interval timers */ -# define ITIMER_REAL 0 -# define ITIMER_VIRTUAL 1 -# define ITIMER_PROF 2 - -#endif /* _INCLUDE_HPUX_SOURCE */ - -#endif /* _SYS_TIME_INCLUDED */ diff --git a/mit-pthreads/machdep/hpux-10.20/timers.h b/mit-pthreads/machdep/hpux-10.20/timers.h deleted file mode 100755 index 5a76a295400..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/timers.h +++ /dev/null @@ -1,71 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/signal.h> -#include <sys/types.h> -#include <time.h> - -/* -struct timespec { - time_t tv_sec; - long tv_nsec; -}; -*/ - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/hpux-10.20/uio.h b/mit-pthreads/machdep/hpux-10.20/uio.h deleted file mode 100755 index d1ec4c94f22..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/uio.h +++ /dev/null @@ -1,25 +0,0 @@ -/* ==== uio.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct HP-UX header file. - */ - -#ifndef _PTHREAD_UIO_H_ -#define _PTHREAD_UIO_H_ - -#include <sys/cdefs.h> - -struct iovec { - void *iov_base; - size_t iov_len; -}; - -__BEGIN_DECLS - -int readv __P_((int, const struct iovec *, int)); -int writev __P_((int, const struct iovec *, int)); - -__END_DECLS - -#endif - diff --git a/mit-pthreads/machdep/hpux-10.20/wait.h b/mit-pthreads/machdep/hpux-10.20/wait.h deleted file mode 100755 index bca70d9f1ec..00000000000 --- a/mit-pthreads/machdep/hpux-10.20/wait.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)wait.h 8.1 (Berkeley) 6/2/93 - * $Id$ - */ - -#ifndef _SYS_WAIT_H_ -#define _SYS_WAIT_H_ - -/* - * Macros to test the exit status returned by wait - * and extract the relevant values. - */ -#define _W_INT(i) (i) -#define WCOREFLAG 0200 - -#define _WSTATUS(x) (_W_INT(x) & 0177) -#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED) -#define WSTOPSIG(x) (_W_INT(x) >> 8) -#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) -#define WTERMSIG(x) (_WSTATUS(x)) -#define WIFEXITED(x) (_WSTATUS(x) == 0) -#define WEXITSTATUS(x) (_W_INT(x) >> 8) -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG) - -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED) -#endif - -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE -/* POSIX extensions and 4.2/4.3 compatability: */ - -/* - * Tokens for special values of the "pid" parameter to wait4. - */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#define WSTOPPED _WSTOPPED -#endif /* _POSIX_SOURCE */ - -#include <sys/types.h> -#include <sys/cdefs.h> - -__BEGIN_DECLS -struct rusage; /* forward declaration */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); - -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -#endif - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/hpux-9.03/__math.h b/mit-pthreads/machdep/hpux-9.03/__math.h deleted file mode 100755 index 8066bd60713..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/__math.h +++ /dev/null @@ -1,3 +0,0 @@ -#define HUGE_VAL 1.7976931348623157e+308 - - diff --git a/mit-pthreads/machdep/hpux-9.03/__signal.h b/mit-pthreads/machdep/hpux-9.03/__signal.h deleted file mode 100755 index fbb1d6ce2b1..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/__signal.h +++ /dev/null @@ -1,28 +0,0 @@ -#include <sys/signal.h> - -#ifndef SIGCLD -#define SIGCLD SIGCHLD -#endif - -/* #define sigmask(n) ((unsigned int)1 << (((n) - 1) & (32 - 1))) */ -#define sigword(n) (((unsigned int)((n) - 1))>>5) - -#define __SIGEMPTYSET { 0, 0, 0, 0, 0, 0, 0, 0 } -#define __SIGFILLSET { 0xffffffff,0xffffffff,0xffffffff,0xffffffff,\ - 0xffffffff,0xffffffff,0xffffffff,0xffffffff} -#define __SIGADDSET(s, n) ((s)->sigset[sigword(n)] |= sigmask(n)) -#define __SIGDELSET(s, n) ((s)->sigset[sigword(n)] &= ~sigmask(n)) -#define __SIGISMEMBER(s, n) ((s)->sigset[sigword(n)] & sigmask(n)) - -#define SIGSET_SIZE sizeof(sigset_t)/sizeof(long) - -#define SIG_ANY(sig) sig_any(&sig) - -static inline int sig_any(sigset_t *sig) { - int i; - for (i=0; i < SIGSET_SIZE; i++) - if (sig->sigset[i] != 0) - return 1; - return 0; -} - diff --git a/mit-pthreads/machdep/hpux-9.03/__stdio.h b/mit-pthreads/machdep/hpux-9.03/__stdio.h deleted file mode 100755 index 091b065a2e9..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/__stdio.h +++ /dev/null @@ -1,8 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -typedef pthread_fpos_t fpos_t; - diff --git a/mit-pthreads/machdep/hpux-9.03/__stdlib.h b/mit-pthreads/machdep/hpux-9.03/__stdlib.h deleted file mode 100755 index 37a14a960d5..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/__stdlib.h +++ /dev/null @@ -1,24 +0,0 @@ -/* $Id$ */ - -#ifndef __sys_stdtypes_h - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif - -#ifndef _WCHAR_T -#define _WCHAR_T -typedef unsigned int wchar_t; -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif - -#endif diff --git a/mit-pthreads/machdep/hpux-9.03/__string.h b/mit-pthreads/machdep/hpux-9.03/__string.h deleted file mode 100755 index 1badf6d660c..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/__string.h +++ /dev/null @@ -1,20 +0,0 @@ - -#ifndef _SYS_STDSYMS_INCLUDED -#endif - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -/* Non-standard SunOS 4.x string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/hpux-9.03/__time.h b/mit-pthreads/machdep/hpux-9.03/__time.h deleted file mode 100755 index ae958dcc3cf..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/__time.h +++ /dev/null @@ -1,31 +0,0 @@ -/* $Id$ */ - -#ifndef __sys_stdtypes_h - -#ifndef _SYS__TIME_H_ -#define _SYS__TIME_H_ - -#ifndef _CLOCK_T -#define _CLOCK_T -typedef long clock_t; -#endif - -#ifndef _TIME_T -#define _TIME_T -typedef long time_t; -#endif - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif - -#define CLOCKS_PER_SEC 1000000 - -#if !defined(_ANSI_SOURCE) && !defined(CLK_TCK) -#define CLK_TCK 60 -#endif /* not ANSI */ - -#endif - -#endif /* !_SYS__TIME_H_ */ diff --git a/mit-pthreads/machdep/hpux-9.03/__unistd.h b/mit-pthreads/machdep/hpux-9.03/__unistd.h deleted file mode 100755 index 0e8515b1f96..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/__unistd.h +++ /dev/null @@ -1,66 +0,0 @@ -/* /afs/sipb.mit.edu/project/pthreads/src/CVS/pthreads/machdep/hpux-9.03/__unist -d.h,v 1.2 1995/03/10 03:59:53 snl Exp */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/stdsyms.h> -#include <sys/types.h> -#include <utime.h> - -#ifndef NULL -#define NULL 0 -#endif - -#ifndef _GID_T -#define _GID_T -typedef long gid_t; -#endif - -#ifndef _UID_T -#define _UID_T -typedef long uid_t; -#endif - -#ifndef _PID_T -#define _PID_T -typedef long pid_t; -#endif - -#ifndef _OFF_T -#define _OFF_T -typedef long off_t; -#endif - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif - -#ifndef _SSIZE_T -#define _SSIZE_T -typedef int ssize_t; -#endif - -/* Symbolic constants for sysconf() variables defined by POSIX.1-1988: 0-7 */ - -#define _SC_ARG_MAX 0 /* ARG_MAX: Max length of argument to exec() - including environment data */ -#define _SC_CHILD_MAX 1 /* CHILD_MAX: Max of processes per userid */ -#define _SC_CLK_TCK 2 /* Number of clock ticks per second */ -#define _SC_NGROUPS_MAX 3 /* NGROUPS_MAX: Max of simultaneous - supplementary group IDs per process */ -#define _SC_OPEN_MAX 4 /* OPEN_MAX: Max of files that one process - can have open at any one time */ -#define _SC_JOB_CONTROL 5 /* _POSIX_JOB_CONTROL: 1 iff supported */ -#define _SC_SAVED_IDS 6 /* _POSIX_SAVED_IDS: 1 iff supported */ -#define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ - -/* Symbolic constants for sysconf() variables added by POSIX.1-1990: 100-199 */ - -#define _SC_STREAM_MAX 100 /* STREAM_MAX: Max of open stdio FILEs */ -#define _SC_TZNAME_MAX 101 /* TZNAME_MAX: Max length of timezone name */ -#define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ - -#endif /* _SYS___UNISTD_H_ */ - diff --git a/mit-pthreads/machdep/hpux-9.03/cdefs.h b/mit-pthreads/machdep/hpux-9.03/cdefs.h deleted file mode 100755 index 041300cbe02..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/cdefs.h +++ /dev/null @@ -1,61 +0,0 @@ -/* ==== cdefs.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Similar to the BSD cdefs.h file. - * - * 1.00 94/01/26 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -/* Stuff for compiling */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __INLINE static inline -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __INLINE extern inline -#define __CAN_DO_EXTERN_INLINE -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#endif -#else /* !__GNUC__ */ -#define __INLINE static -#define __BEGIN_DECLS -#define __END_DECLS -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#ifndef _U_INT32_T_ -#define _U_INT32_T_ -typedef unsigned int u_int32_t; -#endif - -#ifndef _U_INT16_T_ -#define _U_INT16_T_ -typedef unsigned short u_int16_t; -#endif - -#ifndef _INT32_T_ -#define _INT32_T_ -typedef int int32_t; -#endif - -#ifndef _INT16_T_ -#define _INT16_T_ -typedef short int16_t; -#endif - -#endif diff --git a/mit-pthreads/machdep/hpux-9.03/compat.h b/mit-pthreads/machdep/hpux-9.03/compat.h deleted file mode 100755 index 5a59434417c..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/compat.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Compatibility header for networking code. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/hpux-9.03/dirent.h b/mit-pthreads/machdep/hpux-9.03/dirent.h deleted file mode 100755 index 5f17af345db..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/dirent.h +++ /dev/null @@ -1,61 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno - -#endif /* !_SYS_DIRENT_H_ */ diff --git a/mit-pthreads/machdep/hpux-9.03/socket.h b/mit-pthreads/machdep/hpux-9.03/socket.h deleted file mode 100755 index c7a37706940..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/socket.h +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright (c) 1982, 1985, 1986 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * @(#)socket.h 7.3 (Berkeley) 6/27/88 - */ - -/* - * Definitions related to sockets: types, address families, options. - */ - -#include <sys/stdsyms.h> -#include <pthread/posix.h> -#include <sys/cdefs.h> - -/* - * Types of sockets - */ -#define SOCK_STREAM 1 /* stream socket */ -#define SOCK_DGRAM 2 /* datagram socket */ -#define SOCK_RAW 3 /* raw-protocol interface */ -#define SOCK_RDM 4 /* reliably-delivered message */ -#define SOCK_SEQPACKET 5 /* sequenced packet stream */ - -/* - * Option flags per-socket. - */ -#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ - -/* - * Additional options, not kept in so_options. - */ -#define SO_SNDBUF 0x1001 /* send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ -#define SO_SND_COPYAVOID 0x1009 /* avoid copy on send*/ -#define SO_RCV_COPYAVOID 0x100a /* avoid copy on rcv */ - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xffff /* options for socket level */ - -/* - * Address families. - */ -#define AF_UNSPEC 0 /* unspecified */ -#define AF_UNIX 1 /* local to host (pipes, portals) */ -#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -#define AF_IMPLINK 3 /* arpanet imp addresses */ -#define AF_PUP 4 /* pup protocols: e.g. BSP */ -#define AF_CHAOS 5 /* mit CHAOS protocols */ -#define AF_NS 6 /* XEROX NS protocols */ -#define AF_NBS 7 /* nbs protocols */ -#define AF_ECMA 8 /* european computer manufacturers */ -#define AF_DATAKIT 9 /* datakit protocols */ -#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -#define AF_SNA 11 /* IBM SNA */ -#define AF_DECnet 12 /* DECnet */ -#define AF_DLI 13 /* Direct data link interface */ -#define AF_LAT 14 /* LAT */ -#define AF_HYLINK 15 /* NSC Hyperchannel */ -#define AF_APPLETALK 16 /* Apple Talk */ -#define AF_OTS 17 /* Used for OSI in the ifnets */ -#define AF_NIT 18 /* NIT */ - -#define AF_MAX 19 - -/* - * Structure used by kernel to store most - * addresses. - */ -struct sockaddr { - unsigned short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ -}; - -/* - * Structure used by kernel to pass protocol - * information in raw sockets. - */ -struct sockproto { - unsigned short sp_family; /* address family */ - unsigned short sp_protocol; /* protocol */ -}; - -/* - * Protocol families, same as address families for now. - */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_IMPLINK AF_IMPLINK -#define PF_PUP AF_PUP -#define PF_CHAOS AF_CHAOS -#define PF_NS AF_NS -#define PF_NBS AF_NBS -#define PF_ECMA AF_ECMA -#define PF_DATAKIT AF_DATAKIT -#define PF_CCITT AF_CCITT -#define PF_SNA AF_SNA -#define PF_DECnet AF_DECnet -#define PF_DLI AF_DLI -#define PF_LAT AF_LAT -#define PF_HYLINK AF_HYLINK -#define PF_APPLETALK AF_APPLETALK - -#define PF_MAX AF_MAX - -/* - * Maximum queue length specifiable by listen. - */ -#define SOMAXCONN 20 - -/* - * Message header for recvmsg and sendmsg calls. - */ -struct msghdr { - caddr_t msg_name; /* optional address */ - int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_accrights; /* access rights sent/received */ - int msg_accrightslen; -}; - -#define MSG_OOB 0x1 /* process out-of-band data */ -#define MSG_PEEK 0x2 /* peek at incoming message */ -#define MSG_DONTROUTE 0x4 /* send without using routing tables */ - -#define MSG_MAXIOVLEN 16 - -/* - * Functions - */ - -__BEGIN_DECLS - -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int listen __P_((int, int)); -int socket __P_((int, int, int)); - -__END_DECLS - diff --git a/mit-pthreads/machdep/hpux-9.03/stdtypes.h b/mit-pthreads/machdep/hpux-9.03/stdtypes.h deleted file mode 100755 index 2b22abbf818..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/stdtypes.h +++ /dev/null @@ -1,74 +0,0 @@ -/* @(#)stdtypes.h 1.6 90/01/04 SMI */ - -/* - * Suppose you have an ANSI C or POSIX thingy that needs a typedef - * for thingy_t. Put it here and include this file wherever you - * define the thingy. This is used so that we don't have size_t in - * N (N > 1) different places and so that we don't have to have - * types.h included all the time and so that we can include this in - * the lint libs instead of termios.h which conflicts with ioctl.h. - */ -#ifndef __sys_stdtypes_h -#define __sys_stdtypes_h - -#ifndef _SIGSET_T_ -#define _SIGSET_T_ -typedef int sigset_t; /* signal mask - may change */ -#endif - -#ifndef _SPEED_T_ -#define _SPEED_T_ -typedef unsigned int speed_t; /* tty speeds */ -#endif - -#ifndef _TCFLAG_T_ -#define _TCFLAG_T_ -typedef unsigned long tcflag_t; /* tty line disc modes */ -#endif - -#ifndef _CC_T_ -#define _CC_T_ -typedef unsigned char cc_t; /* tty control char */ -#endif - -#ifndef _PID_T_ -#define _PID_T_ -typedef int pid_t; /* process id */ -#endif - -#ifndef _MODE_T_ -#define _MODE_T_ -typedef unsigned short mode_t; /* file mode bits */ -#endif - -#ifndef _NLINK_T_ -#define _NLINK_T_ -typedef short nlink_t; /* links to a file */ -#endif - -#ifndef _CLOCK_T_ -#define _CLOCK_T_ -typedef long clock_t; /* units=ticks (typically 60/sec) */ -#endif - -#ifndef _TIME_T_ -#define _TIME_T_ -typedef long time_t; /* value = secs since epoch */ -#endif - -#ifndef _SIZE_T_ -#define _SIZE_T_ -typedef int size_t; /* ??? */ -#endif - -#ifndef _PTRDIFF_T_ -#define _PTRDIFF_T_ -typedef int ptrdiff_t; /* result of subtracting two pointers */ -#endif - -#ifndef _WCHAR_T_ -#define _WCHAR_T_ -typedef unsigned short wchar_t; /* big enough for biggest char set */ -#endif - -#endif /* !__sys_stdtypes_h */ diff --git a/mit-pthreads/machdep/hpux-9.03/time.h b/mit-pthreads/machdep/hpux-9.03/time.h deleted file mode 100755 index 544905b0749..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/time.h +++ /dev/null @@ -1,228 +0,0 @@ -/* $Header$ */ - -#ifndef _SYS_TIME_INCLUDED -#define _SYS_TIME_INCLUDED - -/* time.h: Definitions for time handling functions */ - -#ifdef _KERNEL_BUILD -#include "../h/stdsyms.h" -#else /* ! _KERNEL_BUILD */ -#include <sys/stdsyms.h> -#endif /* _KERNEL_BUILD */ - -#include <sys/types.h> - -/* ANSI C time constants, types, and structures */ - -#ifdef _INCLUDE__STDC__ -# define CLOCKS_PER_SEC 1000000 - -# ifndef NULL -# define NULL 0 -# endif - -# ifndef _CLOCK_T -# define _CLOCK_T - typedef unsigned long clock_t; -# endif /* _CLOCK_T */ - -# ifndef _TIME_T -# define _TIME_T - typedef long time_t; -# endif /* _TIME_T */ - -# ifndef _SIZE_T -# define _SIZE_T - typedef unsigned int size_t; -# endif /* _SIZE_T */ - - /* Structure used with gmtime(), localtime(), mktime(), strftime(). */ - struct tm { - int tm_sec; /* second (0-61, allows for leap seconds) */ - int tm_min; /* minute (0-59) */ - int tm_hour; /* hour (0-23) */ - int tm_mday; /* day of the month (1-31) */ - int tm_mon; /* month (0-11) */ - int tm_year; /* years since 1900 */ - int tm_wday; /* day of the week (0-6) */ - int tm_yday; /* day of the year (0-365) */ - int tm_isdst; /* non-0 if daylight savings time is in effect */ - }; -#endif /* _INCLUDE__STDC__ */ - - -/* Additional types needed for HP-UX */ - -#ifdef _INCLUDE_HPUX_SOURCE -# ifndef _STRUCT_TIMEVAL -# define _STRUCT_TIMEVAL - /* Structure returned by gettimeofday(2) system call and others */ - struct timeval { - unsigned long tv_sec; /* seconds */ - long tv_usec; /* and microseconds */ - }; -# endif /* _STRUCT_TIMEVAL */ - - /* Structure used to represent timezones for gettimeofday(2) and others */ - struct timezone { - int tz_minuteswest; /* minutes west of Greenwich */ - int tz_dsttime; /* type of dst correction */ - }; - - /* Structure defining a timer setting. */ - struct itimerval { - struct timeval it_interval; /* timer interval */ - struct timeval it_value; /* current value */ - }; -#endif /* _INCLUDE_HPUX_SOURCE */ - - -/* Function prototypes and external variable declarations */ - -#ifndef _KERNEL -#ifdef __cplusplus - extern "C" { -#endif /* __cplusplus */ - -#ifdef _INCLUDE__STDC__ -# ifdef _PROTOTYPES - extern double difftime(time_t, time_t); - extern time_t mktime(struct tm *); - extern time_t time(time_t *); - extern char *ctime(const time_t *); - extern struct tm *gmtime(const time_t *); - extern struct tm *localtime(const time_t *); - extern size_t strftime(char *, size_t, const char *, const struct tm *); -# else /* not _PROTOTYPES */ - extern double difftime(); - extern time_t mktime(); - extern time_t time(); - extern char *ctime(); - extern struct tm *gmtime(); - extern struct tm *localtime(); - extern size_t strftime(); -# endif /* not _PROTOTYPES */ - -# ifdef _CLASSIC_ANSI_TYPES - extern long clock(); -# else /* not _CLASSIC_ANSI_TYPES */ -# ifdef _PROTOTYPES - extern clock_t clock(void); -# else /* not _PROTOTYPES */ - extern clock_t clock(); -# endif /* not _PROTOTYPES */ -# endif /* not _CLASSIC_ANSI_TYPES */ -#endif /* _INCLUDE__STDC__ */ - -#ifdef _INCLUDE_POSIX_SOURCE -# ifdef _PROTOTYPES - extern void tzset(void); -# else /* not _PROTOTYPES */ - extern void tzset(); -# endif /* not _PROTOTYPES */ - - extern char *tzname[2]; -#endif /* _INCLUDE_POSIX_SOURCE */ - - -#ifdef _INCLUDE_XOPEN_SOURCE -# ifdef _PROTOTYPES - extern char *strptime(const char *, const char *, struct tm *); -# else /* not _PROTOTYPES */ - extern char *strptime(); -# endif /* not _PROTOTYPES */ - - extern long timezone; - extern int daylight; -#endif /* _INCLUDE_XOPEN_SOURCE */ - - -#ifdef _INCLUDE_HPUX_SOURCE -# ifdef _PROTOTYPES - extern struct tm *getdate(const char *); - extern char *nl_asctime(struct tm *, char *, int); - extern char *nl_ctime(long *, char *, int); - extern char *nl_ascxtime(struct tm *, char *); - extern char *nl_cxtime(long *, char *); - extern int getitimer(int, struct itimerval *); - extern int setitimer(int, const struct itimerval *, struct itimerval *); - extern int gettimeofday(struct timeval *, struct timezone *); - extern int settimeofday(const struct timeval *, const struct timezone *); - extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); - extern int stime(const time_t *); -# else /* not _PROTOTYPES */ - extern struct tm *getdate(); - extern char *nl_asctime(); - extern char *nl_ctime(); - extern char *nl_ascxtime(); - extern char *nl_cxtime(); - extern int getitimer(); - extern int setitimer(); - extern int gettimeofday(); - extern int settimeofday(); - extern int select(); - extern int stime(); -# endif /* not _PROTOTYPES */ - extern int getdate_err; -#endif /* _INCLUDE_HPUX_SOURCE */ - -#ifdef __cplusplus - } -#endif /* __cplusplus */ -#endif /* not _KERNEL */ - - -/* - * CLK_TCK is needed by the kernel, and also in the POSIX namespace. - */ - -#ifdef _INCLUDE_POSIX_SOURCE -# ifndef CLK_TCK -# ifdef __hp9000s300 -# define CLK_TCK 50 -# endif /* __hp9000s300 */ -# ifdef __hp9000s800 -# define CLK_TCK 100 -# endif /* __hp9000s800 */ -# endif /* CLK_TCK */ -#endif - - -/* Additional HP-UX structures, macros, and constants */ - -#ifdef _INCLUDE_HPUX_SOURCE - - /* Kernel instrumentation time value */ - struct ki_timeval { - long tv_sec; /* seconds */ - long tv_nunit; /* and native units */ - }; - - /* Kinds of daylight savings time */ -# define DST_NONE 0 /* not on dst */ -# define DST_USA 1 /* USA style dst */ -# define DST_AUST 2 /* Australian style dst */ -# define DST_WET 3 /* Western European dst */ -# define DST_MET 4 /* Middle European dst */ -# define DST_EET 5 /* Eastern European dst */ - - /* - * Operations on timevals. - * - * NB: timercmp does not work for >= or <=. - */ -# define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) -# define timercmp(tvp, uvp, cmp) \ - ((tvp)->tv_sec cmp (uvp)->tv_sec || \ - (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec) -# define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) - - /* Names of the interval timers */ -# define ITIMER_REAL 0 -# define ITIMER_VIRTUAL 1 -# define ITIMER_PROF 2 - -#endif /* _INCLUDE_HPUX_SOURCE */ - -#endif /* _SYS_TIME_INCLUDED */ diff --git a/mit-pthreads/machdep/hpux-9.03/timers.h b/mit-pthreads/machdep/hpux-9.03/timers.h deleted file mode 100755 index 3c4d057976a..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/timers.h +++ /dev/null @@ -1,68 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/types.h> -#include <time.h> - -struct timespec { - time_t tv_sec; - long tv_nsec; -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/hpux-9.03/uio.h b/mit-pthreads/machdep/hpux-9.03/uio.h deleted file mode 100755 index d1ec4c94f22..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/uio.h +++ /dev/null @@ -1,25 +0,0 @@ -/* ==== uio.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct HP-UX header file. - */ - -#ifndef _PTHREAD_UIO_H_ -#define _PTHREAD_UIO_H_ - -#include <sys/cdefs.h> - -struct iovec { - void *iov_base; - size_t iov_len; -}; - -__BEGIN_DECLS - -int readv __P_((int, const struct iovec *, int)); -int writev __P_((int, const struct iovec *, int)); - -__END_DECLS - -#endif - diff --git a/mit-pthreads/machdep/hpux-9.03/wait.h b/mit-pthreads/machdep/hpux-9.03/wait.h deleted file mode 100755 index bca70d9f1ec..00000000000 --- a/mit-pthreads/machdep/hpux-9.03/wait.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)wait.h 8.1 (Berkeley) 6/2/93 - * $Id$ - */ - -#ifndef _SYS_WAIT_H_ -#define _SYS_WAIT_H_ - -/* - * Macros to test the exit status returned by wait - * and extract the relevant values. - */ -#define _W_INT(i) (i) -#define WCOREFLAG 0200 - -#define _WSTATUS(x) (_W_INT(x) & 0177) -#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED) -#define WSTOPSIG(x) (_W_INT(x) >> 8) -#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) -#define WTERMSIG(x) (_WSTATUS(x)) -#define WIFEXITED(x) (_WSTATUS(x) == 0) -#define WEXITSTATUS(x) (_W_INT(x) >> 8) -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG) - -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED) -#endif - -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE -/* POSIX extensions and 4.2/4.3 compatability: */ - -/* - * Tokens for special values of the "pid" parameter to wait4. - */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#define WSTOPPED _WSTOPPED -#endif /* _POSIX_SOURCE */ - -#include <sys/types.h> -#include <sys/cdefs.h> - -__BEGIN_DECLS -struct rusage; /* forward declaration */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); - -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -#endif - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/irix-5.2/__math.h b/mit-pthreads/machdep/irix-5.2/__math.h deleted file mode 100755 index 229d5121524..00000000000 --- a/mit-pthreads/machdep/irix-5.2/__math.h +++ /dev/null @@ -1,4 +0,0 @@ - -extern char __infinity[]; -#define HUGE_VAL (*(double *) __infinity) - diff --git a/mit-pthreads/machdep/irix-5.2/__signal.h b/mit-pthreads/machdep/irix-5.2/__signal.h deleted file mode 100755 index 87797da3198..00000000000 --- a/mit-pthreads/machdep/irix-5.2/__signal.h +++ /dev/null @@ -1,15 +0,0 @@ -#include <sys/signal.h> - -typedef int sig_atomic_t; - -#ifndef sigmask -#define sigmask(n) ((unsigned int)1 << (((n) - 1) & (32 - 1))) -#endif -#define sigword(n) (((unsigned int)((n) - 1))>>5) - -#define __SIGEMPTYSET { 0, 0, 0, 0 }; -#define __SIGFILLSET { 0xffffffff,0xffffffff,0xffffffff,0xffffffff }; -#define __SIGADDSET(s, n) ((s)->sigbits[sigword(n)] |= sigmask(n)) -#define __SIGDELSET(s, n) ((s)->sigbits[sigword(n)] &= ~sigmask(n)) -#define __SIGISMEMBER(s, n) (sigmask(n) & (s)->sigbits[sigword(n)]) - diff --git a/mit-pthreads/machdep/irix-5.2/__stdio.h b/mit-pthreads/machdep/irix-5.2/__stdio.h deleted file mode 100755 index bb4c14b32c6..00000000000 --- a/mit-pthreads/machdep/irix-5.2/__stdio.h +++ /dev/null @@ -1,6 +0,0 @@ -#if !defined(_SIZE_T) && !defined(_SIZE_T_) -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -typedef pthread_fpos_t fpos_t; diff --git a/mit-pthreads/machdep/irix-5.2/__stdlib.h b/mit-pthreads/machdep/irix-5.2/__stdlib.h deleted file mode 100755 index 2bec122c5f1..00000000000 --- a/mit-pthreads/machdep/irix-5.2/__stdlib.h +++ /dev/null @@ -1,30 +0,0 @@ -#include <sgidefs.h> - -#if !defined(_SIZE_T) && !defined(_SIZE_T_) -#define _SIZE_T -#if (_MIPS_SZLONG == 32) -typedef unsigned int size_t; -#endif -#if (_MIPS_SZLONG == 64) -typedef unsigned long size_t; -#endif -#endif - -#ifndef _WCHAR_T -#define _WCHAR_T -#if (_MIPS_SZLONG == 32) -typedef long wchar_t; -#endif -#if (_MIPS_SZLONG == 64) -typedef __int32_t wchar_t; -#endif -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif - -#ifndef NULL -#define NULL 0 -#endif - diff --git a/mit-pthreads/machdep/irix-5.2/__string.h b/mit-pthreads/machdep/irix-5.2/__string.h deleted file mode 100755 index 50261e73cfc..00000000000 --- a/mit-pthreads/machdep/irix-5.2/__string.h +++ /dev/null @@ -1,5 +0,0 @@ -#if !defined(_SIZE_T) && !defined(_SIZE_T_) -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - diff --git a/mit-pthreads/machdep/irix-5.2/__time.h b/mit-pthreads/machdep/irix-5.2/__time.h deleted file mode 100755 index 51fb993b38d..00000000000 --- a/mit-pthreads/machdep/irix-5.2/__time.h +++ /dev/null @@ -1,21 +0,0 @@ -#if !defined(_SIZE_T) && !defined(_SIZE_T_) -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -#ifndef _CLOCK_T -#define _CLOCK_T -typedef pthread_clock_t clock_t; -#endif - -#ifndef _TIME_T -#define _TIME_T -typedef pthread_time_t time_t; -#endif /* !_TIME_T */ - -#define CLOCKS_PER_SEC 1000000 - -#ifndef CLK_TCK -#define CLK_TCK sysconf(3) /* clock ticks per second */ - /* 3 is _SC_CLK_TCK */ -#endif diff --git a/mit-pthreads/machdep/irix-5.2/__unistd.h b/mit-pthreads/machdep/irix-5.2/__unistd.h deleted file mode 100755 index 0d71d631a5b..00000000000 --- a/mit-pthreads/machdep/irix-5.2/__unistd.h +++ /dev/null @@ -1,8 +0,0 @@ -#include <sys/types.h> -#include <sys/unistd.h> - -#ifndef NULL -#define NULL 0 -#endif - -#define ioctl_request_type int /* For fd.c */ diff --git a/mit-pthreads/machdep/irix-5.2/compat.h b/mit-pthreads/machdep/irix-5.2/compat.h deleted file mode 100755 index 8fd504e504f..00000000000 --- a/mit-pthreads/machdep/irix-5.2/compat.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/irix-5.2/dirent.h b/mit-pthreads/machdep/irix-5.2/dirent.h deleted file mode 100755 index 79fe486951d..00000000000 --- a/mit-pthreads/machdep/irix-5.2/dirent.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef _SYS_DIRENT_H -#define _SYS_DIRENT_H - -#if !defined(_POSIX_SOURCE) -#define MAXNAMLEN 255 /* maximum filename length */ -#define DIRBUF 4096 /* buffer size for fs-indep. dirs */ -#endif /* !defined(_POSIX_SOURCE) */ - -#include <sys/types.h> - -struct dirent { /* data from readdir() */ - ino_t d_ino; /* inode number of entry */ - off_t d_off; /* offset of disk direntory entry */ - unsigned short d_reclen; /* length of this record */ - char d_name[MAXNAMLEN+1];/* name of file */ -}; - -#define d_namlen d_reclen -#define d_fileno d_ino - -#endif /* _SYS_DIRENT_H */ diff --git a/mit-pthreads/machdep/irix-5.2/socket.h b/mit-pthreads/machdep/irix-5.2/socket.h deleted file mode 100755 index b08d3939802..00000000000 --- a/mit-pthreads/machdep/irix-5.2/socket.h +++ /dev/null @@ -1,304 +0,0 @@ -#ifndef __SYS_TPI_SOCKET_H__ -#ifndef __SYS_SOCKET_H__ -#define __SYS_SOCKET_H__ -/* - * Copyright (c) 1982,1985, 1986 Regents of the University of California. - * All rights reserved. The Berkeley software License Agreement - * specifies the terms and conditions for redistribution. - * - * @(#)socket.h 7.1 (Berkeley) 6/4/86 - */ -#include <sys/cdefs.h> -#include <sys/bsd_types.h> - -/* - * Definitions related to sockets: types, address families, options. - */ - -/* - * Types - */ -#ifdef _STYPES_LATER /* old ABI */ -#define SOCK_STREAM 1 /* stream socket */ -#define SOCK_DGRAM 2 /* datagram socket */ -#define SOCK_RAW 3 /* raw-protocol interface */ -#define SOCK_RDM 4 /* reliably-delivered message */ -#define SOCK_SEQPACKET 5 /* sequenced packet stream */ -#else /* !_STYPES_LATER, new ABI */ - -#ifndef NC_TPI_CLTS -#define NC_TPI_CLTS 1 /* must agree with netconfig.h */ -#define NC_TPI_COTS 2 /* must agree with netconfig.h */ -#define NC_TPI_COTS_ORD 3 /* must agree with netconfig.h */ -#define NC_TPI_RAW 4 /* must agree with netconfig.h */ -#endif /* !NC_TPI_CLTS */ - -#define SOCK_DGRAM NC_TPI_CLTS /* datagram socket */ -#define SOCK_STREAM NC_TPI_COTS /* stream socket */ -#define SOCK_RAW NC_TPI_RAW /* raw-protocol interface */ -#define SOCK_RDM 5 /* reliably-delivered message */ -#define SOCK_SEQPACKET 6 /* sequenced packet stream */ - -#ifdef _KERNEL -#define IRIX4_SOCK_STREAM 1 /* stream socket */ -#define IRIX4_SOCK_DGRAM 2 /* datagram socket */ -#define IRIX4_SOCK_RAW 3 /* raw-protocol interface */ -#define IRIX4_SOCK_RDM 4 /* reliably-delivered message */ -#define IRIX4_SOCK_SEQPACKET 5 /* sequenced packet stream */ -#endif /* _KERNEL */ -#endif /* _STYPES_LATER */ - -/* - * Option flags per-socket. - */ -#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ -#define SO_REUSEPORT 0x0200 /* allow local address,port reuse */ -#define SO_ORDREL 0x0200 /* MIPS ABI - unimplemented */ -#define SO_IMASOCKET 0x0400 /* use libsocket (not TLI) semantics */ -#define SO_CHAMELEON 0x1000 /* (cipso) set label to 1st req rcvd */ - -/* - * Additional options, not kept in so_options. - */ -#define SO_SNDBUF 0x1001 /* send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ -#define SO_PROTOTYPE 0x1009 /* get protocol type (libsocket) */ - -/* - * Structure used for manipulating linger option. - */ -struct linger { - int l_onoff; /* option on/off */ - int l_linger; /* linger time */ -}; - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xffff /* options for socket level */ - -/* - * Address families. - * XTP really is not an address family, but is included here to take - * up space, because other AF_ entries are numerically equal to their - * PF_ counterparts. - */ -#define AF_UNSPEC 0 /* unspecified */ -#define AF_UNIX 1 /* local to host (pipes, portals) */ -#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -#define AF_IMPLINK 3 /* arpanet imp addresses */ -#define AF_PUP 4 /* pup protocols: e.g. BSP */ -#define AF_CHAOS 5 /* mit CHAOS protocols */ -#define AF_NS 6 /* XEROX NS protocols */ -#define AF_ISO 7 /* ISO protocols */ -#define AF_ECMA 8 /* european computer manufacturers */ -#define AF_DATAKIT 9 /* datakit protocols */ -#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -#define AF_SNA 11 /* IBM SNA */ -#define AF_DECnet 12 /* DECnet */ -#define AF_DLI 13 /* DEC Direct data link interface */ -#define AF_LAT 14 /* LAT */ -#define AF_HYLINK 15 /* NSC Hyperchannel */ -#define AF_APPLETALK 16 /* Apple Talk */ -#define AF_ROUTE 17 /* Internal Routing Protocol */ -#ifdef __sgi -#define AF_RAW 18 /* Raw link layer interface */ -#else -#define AF_LINK 18 /* Link layer interface */ -#endif -#define pseudo_AF_XTP 19 /* eXpress Transfer Protocol (no AF) */ - -/* MIPS ABI VALUES - unimplemented */ -#define AF_NIT 17 /* Network Interface Tap */ -#define AF_802 18 /* IEEE 802.2, also ISO 8802 */ -#define AF_OSI 19 /* umbrella for all families used */ -#define AF_X25 20 /* CCITT X.25 in particular */ -#define AF_OSINET 21 /* AFI = 47, IDI = 4 */ -#define AF_GOSIP 22 /* U.S. Government OSI */ - - -#define AF_SDL 23 /* SGI Data Link for DLPI */ - -#define AF_MAX (AF_SDL+1) - -/* - * Structure used by kernel to store most - * addresses. - */ -struct sockaddr { - u_short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ -}; - -/* - * Structure used by kernel to pass protocol - * information in raw sockets. - */ -struct sockproto { - u_short sp_family; /* address family */ - u_short sp_protocol; /* protocol */ -}; - -/* - * An option specification consists of an opthdr, followed by the value of - * the option. An options buffer contains one or more options. The len - * field of opthdr specifies the length of the option value in bytes. This - * length must be a multiple of sizeof(long) (use OPTLEN macro). - */ - -struct opthdr { - long level; /* protocol level affected */ - long name; /* option to modify */ - long len; /* length of option value */ -}; - -#define OPTLEN(x) ((((x) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) -#define OPTVAL(opt) ((char *)(opt + 1)) - -/* - * the optdefault structure is used for internal tables of option default - * values. - */ -struct optdefault { - int optname; /* the option */ - char *val; /* ptr to default value */ - int len; /* length of value */ -}; - -struct tpisocket; -struct T_optmgmt_req; -struct msgb; - -/* - * the opproc structure is used to build tables of options processing - * functions for dooptions(). - */ -struct opproc { - int level; /* options level this function handles */ - int (*func)(struct tpisocket *, struct T_optmgmt_req *, - struct opthdr *, struct msgb *); - /* the function */ -}; - -/* - * This structure is used to encode pseudo system calls - */ -struct socksysreq { - int args[7]; -}; - -/* - * This structure is used for adding new protocols to the list supported by - * sockets. - */ - -struct socknewproto { - int family; /* address family (AF_INET, etc.) */ - int type; /* protocol type (SOCK_STREAM, etc.) */ - int proto; /* per family proto number */ - dev_t dev; /* major/minor to use (must be a clone) */ - int flags; /* protosw flags */ -}; - -/* - * Protocol families, same as address families for now. - */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_IMPLINK AF_IMPLINK -#define PF_PUP AF_PUP -#define PF_CHAOS AF_CHAOS -#define PF_NS AF_NS -#define PF_ISO AF_ISO -#define PF_ECMA AF_ECMA -#define PF_DATAKIT AF_DATAKIT -#define PF_CCITT AF_CCITT -#define PF_SNA AF_SNA -#define PF_DECnet AF_DECnet -#define PF_DLI AF_DLI -#define PF_LAT AF_LAT -#define PF_HYLINK AF_HYLINK -#define PF_APPLETALK AF_APPLETALK -#define PF_ROUTE AF_ROUTE -#define PF_LINK AF_LINK -#define PF_XTP pseudo_AF_XTP /* really just proto family, no AF */ -#ifdef __sgi -#define PF_RAW AF_RAW -#endif - -/* MIPS ABI VALUES - unimplemented */ -#define PF_NIT AF_NIT /* Network Interface Tap */ -#define PF_802 AF_802 /* IEEE 802.2, also ISO 8802 */ -#define PF_OSI AF_OSI /* umbrella for all families used */ -#define PF_X25 AF_X25 /* CCITT X.25 in particular */ -#define PF_OSINET AF_OSINET /* AFI = 47, IDI = 4 */ -#define PF_GOSIP AF_GOSIP /* U.S. Government OSI */ - -#define PF_MAX AF_MAX - -/* - * Maximum queue length specifiable by listen. - */ -#define SOMAXCONN 5 - -/* - * Message header for recvmsg and sendmsg calls. - */ -struct msghdr { - caddr_t msg_name; /* optional address */ - int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_accrights; /* access rights sent/received */ - int msg_accrightslen; -}; - -#define MSG_OOB 0x1 /* process out-of-band data */ -#define MSG_PEEK 0x2 /* peek at incoming message */ -#define MSG_DONTROUTE 0x4 /* send without using routing tables */ -#define MSG_EOR 0x8 /* data completes record (OSI only) */ -#ifdef XTP -#define MSG_BTAG 0x40 /* XTP packet with BTAG field */ -#define MSG_ETAG 0x80 /* XTP packet with ETAG field */ -#endif - -#define MSG_MAXIOVLEN 16 - -__BEGIN_DECLS -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int getpeername __P_((int, struct sockaddr *, int *)); -int getsockname __P_((int, struct sockaddr *, int *)); -int getsockopt __P_((int, int, int, void *, int *)); -int listen __P_((int, int)); -ssize_t recv __P_((int, void *, size_t, int)); -ssize_t recvfrom __P_((int, void *, size_t, int, struct sockaddr *, int *)); -int recvmsg __P_((int, struct msghdr *, int)); -ssize_t send __P_((int, const void *, size_t, int)); -ssize_t sendto __P_((int, const void *, size_t, int, - const struct sockaddr *, int)); -int sendmsg __P_((int, const struct msghdr *, int)); -int setsockopt __P_((int, int, int, const void *, int)); -int shutdown __P_((int, int)); -int socket __P_((int, int, int)); -int socketpair __P_((int, int, int, int *)); -__END_DECLS - -#endif /* !__SYS_SOCKET_H__ */ -#endif /* !__SYS_TPI_SOCKET_H__ */ diff --git a/mit-pthreads/machdep/irix-5.2/timers.h b/mit-pthreads/machdep/irix-5.2/timers.h deleted file mode 100755 index ffa24dc9a15..00000000000 --- a/mit-pthreads/machdep/irix-5.2/timers.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __SYS_TIMERS_H__ -#define __SYS_TIMERS_H__ - -struct timespec { - time_t tv_sec; - long tv_nsec; -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -#endif /* !__SYS_TIMERS_H__ */ diff --git a/mit-pthreads/machdep/irix-5.2/wait.h b/mit-pthreads/machdep/irix-5.2/wait.h deleted file mode 100755 index c0a7e7113d8..00000000000 --- a/mit-pthreads/machdep/irix-5.2/wait.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) 1982, 1986 Regents of the University of California. - * All rights reserved. The Berkeley software License Agreement - * specifies the terms and conditions for redistribution. - * - * @(#)wait.h 7.4 (Berkeley) 1/27/88 - */ -#ifndef __SYS_WAIT_H__ -#define __SYS_WAIT_H__ - -#ifdef _POSIX_SOURCE -#define _W_INT(i) (i) -#else -#define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */ -#define WCOREFLAG 0200 -#endif - -#define WSTOPFLG 0177 -#define WIFSTOPPED(stat) ((_W_INT(stat)&0377)==_WSTOPPED&&((_W_INT(stat)>>8)&0377)!=0) -#define WSTOPSIG(stat) ((_W_INT(stat)>>8)&0377) -#define WIFSIGNALED(stat) ((_W_INT(stat)&0377)>0&&((_W_INT(stat)>>8)&0377)==0) -#define WTERMSIG(stat) (_W_INT(stat)&0177) -#define WIFEXITED(stat) ((_W_INT(stat)&0377)==0) -#define WEXITSTATUS(stat) ((_W_INT(stat)>>8)&0377) -#define WCOREDUMP(stat) (_W_INT(stat) & WCOREFLAG) - -/* - * Option bits for the second argument of wait3. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 0100 -#define WUNTRACED 0004 /* for POSIX */ - -#if !defined(_POSIX_SOURCE) - -/* - * Structure of the information in the first word returned by both - * wait and wait3. If w_stopval==_WSTOPPED, then the second structure - * describes the information returned, else the first. See WUNTRACED below. - */ -typedef union wait { - int w_status; /* used in syscall */ - /* - * Terminated process status. - */ - struct { -#ifdef _MIPSEL - unsigned int w_Termsig:7, /* termination signal */ - w_Coredump:1, /* core dump indicator */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Filler:16; /* upper bits filler */ -#endif -#ifdef _MIPSEB - unsigned int w_Filler:16, /* upper bits filler */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Coredump:1, /* core dump indicator */ - w_Termsig:7; /* termination signal */ -#endif - } w_T; - /* - * Stopped process status. Returned - * only for traced children unless requested - * with the WUNTRACED option bit. - */ - struct { -#ifdef _MIPSEL - unsigned int w_Stopval:8, /* == W_STOPPED if stopped */ - w_Stopsig:8, /* signal that stopped us */ - w_Filler:16; /* upper bits filler */ -#endif -#ifdef _MIPSEB - unsigned int w_Filler:16, /* upper bits filler */ - w_Stopsig:8, /* signal that stopped us */ - w_Stopval:8; /* == W_STOPPED if stopped */ -#endif - } w_S; -} wait_t; -#define w_termsig w_T.w_Termsig -#define w_coredump w_T.w_Coredump -#define w_retcode w_T.w_Retcode -#define w_stopval w_S.w_Stopval -#define w_stopsig w_S.w_Stopsig - - - -#define WSTOPPED 0004 /* wait for processes stopped by signals */ -#endif /* !defined(_POSIX_SOURCE) */ - -#include <sys/types.h> -#include <sys/cdefs.h> -__BEGIN_DECLS -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -pid_t wait4 __P_((pid_t, int *, int, void *)); -#endif - -#endif /* __SYS_WAIT_H__ */ diff --git a/mit-pthreads/machdep/linux-1.0/__math.h b/mit-pthreads/machdep/linux-1.0/__math.h deleted file mode 100755 index 05c65d58321..00000000000 --- a/mit-pthreads/machdep/linux-1.0/__math.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef HUGE_VAL -#define HUGE_VAL DBL_MAX -#endif - diff --git a/mit-pthreads/machdep/linux-1.0/__path.h b/mit-pthreads/machdep/linux-1.0/__path.h deleted file mode 100755 index 9caeb7d3016..00000000000 --- a/mit-pthreads/machdep/linux-1.0/__path.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__PATH_H_ -#define _SYS__PATH_H_ - -#define _PATH_PTY "/dev/" -#define _PATH_TZDIR "/usr/lib/zoneinfo" -#define _PATH_TZFILE "/usr/lib/zoneinfo/localtime" - -#endif /* !_SYS__PATH_H_ */ - diff --git a/mit-pthreads/machdep/linux-1.0/__signal.h b/mit-pthreads/machdep/linux-1.0/__signal.h deleted file mode 100755 index 4cd671f155c..00000000000 --- a/mit-pthreads/machdep/linux-1.0/__signal.h +++ /dev/null @@ -1,24 +0,0 @@ -#include <features.h> -#include <linux/signal.h> - -#ifndef SIGCLD -#define SIGCLD SIGCHLD -#endif - -typedef int sig_atomic_t; - -typedef __sighandler_t SignalHandler; - -#define SignalBad ((SignalHandler)-1) -#define SignalDefault ((SignalHandler)0) -#define SignalIgnore ((SignalHandler)1) - -#define __sigmask(sig) (1 << ((sig) - 1)) -#define sigmask __sigmask - -#define __SIGFILLSET 0xffffffff -#define __SIGEMPTYSET 0 -#define __SIGADDSET(s,n) ((*s) |= (__sigmask(n))) -#define __SIGDELSET(s,n) ((*s) &= ~(__sigmask(n))) -#define __SIGISMEMBER(s,n) ((*s) & (__sigmask(n))) - diff --git a/mit-pthreads/machdep/linux-1.0/__stdio.h b/mit-pthreads/machdep/linux-1.0/__stdio.h deleted file mode 100755 index eb7e904c34d..00000000000 --- a/mit-pthreads/machdep/linux-1.0/__stdio.h +++ /dev/null @@ -1,7 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -typedef pthread_fpos_t fpos_t; diff --git a/mit-pthreads/machdep/linux-1.0/__stdlib.h b/mit-pthreads/machdep/linux-1.0/__stdlib.h deleted file mode 100755 index eaa0bb988ee..00000000000 --- a/mit-pthreads/machdep/linux-1.0/__stdlib.h +++ /dev/null @@ -1,20 +0,0 @@ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <features.h> - -/* Get size_t, wchar_t and NULL from <stddef.h>. */ -#define __need_size_t -#define __need_wchar_t -#define __need_NULL -#include <stddef.h> - -#define __need_Emath -#include <errno.h> - -/* Get HUGE_VAL (returned by strtod on overflow) from <float.h>. */ -#define __need_HUGE_VAL -#include <float.h> - -#endif diff --git a/mit-pthreads/machdep/linux-1.0/__string.h b/mit-pthreads/machdep/linux-1.0/__string.h deleted file mode 100755 index 8a5e09608e0..00000000000 --- a/mit-pthreads/machdep/linux-1.0/__string.h +++ /dev/null @@ -1,18 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -/* Non-standard Linux string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -char *strsep __P_((char **, const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/linux-1.0/__time.h b/mit-pthreads/machdep/linux-1.0/__time.h deleted file mode 100755 index a088268286e..00000000000 --- a/mit-pthreads/machdep/linux-1.0/__time.h +++ /dev/null @@ -1,72 +0,0 @@ -/* ==== __time.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : System specific time header. - * - * 1.00 94/11/07 proven - * -Started coding this file. - */ - -#ifndef _SYS___TIME_H_ -#define _SYS___TIME_H_ - -#include <features.h> - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif -#ifndef _CLOCK_T -#define _CLOCK_T -typedef long clock_t; -#endif -#ifndef _TIME_T -#define _TIME_T -typedef long time_t; - -#ifndef NULL -#ifdef __cplusplus -#define NULL 0 -#else -#define NULL ((void *) 0) -#endif -#endif -#endif - -#define CLOCKS_PER_SEC 100 -#define CLK_TCK 100 - -extern long int timezone; -extern int daylight; - -#endif diff --git a/mit-pthreads/machdep/linux-1.0/__unistd.h b/mit-pthreads/machdep/linux-1.0/__unistd.h deleted file mode 100755 index 0f15b7c4883..00000000000 --- a/mit-pthreads/machdep/linux-1.0/__unistd.h +++ /dev/null @@ -1,56 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <features.h> - -/* POSIX Standard approved as IEEE Std 1003.1 as of August, 1988. */ -#define _POSIX_VERSION 199009L -#define _POSIX2_C_BIND 1 -#define _POSIX2_C_DEV 1 -#define _POSIX2_SW_DEV 1 - -#define __need_size_t -#define ioctl_request_type int /* For fd.c */ - -#include <posix_opt.h> -#include <sys/types.h> -#include <stddef.h> - -#endif - diff --git a/mit-pthreads/machdep/linux-1.0/cdefs.h b/mit-pthreads/machdep/linux-1.0/cdefs.h deleted file mode 100755 index f9d5668cfe6..00000000000 --- a/mit-pthreads/machdep/linux-1.0/cdefs.h +++ /dev/null @@ -1,23 +0,0 @@ -/* This is intended to eventually find /usr/include/sys/cdefs.h - * if it's inside the ifdef then it won't work if this file is - * found in the include files path more than once. - * - * include_next is a GNU C extension, we might eventually want - * to have our own cdefs in here simply to avoid GNU C dependencies - * (though there are already enough in the asm stuff anyways) - * [gsstark:19950419.0307EST] - */ -#include_next <sys/cdefs.h> - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#if !defined(__cplusplus) -#define __CAN_DO_EXTERN_INLINE -#endif - -#endif /* _PTHREAD_SYS_CDEFS_H_ */ diff --git a/mit-pthreads/machdep/linux-1.0/compat.h b/mit-pthreads/machdep/linux-1.0/compat.h deleted file mode 100755 index 6edb992ac3d..00000000000 --- a/mit-pthreads/machdep/linux-1.0/compat.h +++ /dev/null @@ -1,47 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#include <sys/types.h> - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/linux-1.0/dirent.h b/mit-pthreads/machdep/linux-1.0/dirent.h deleted file mode 100755 index 7f783a198e0..00000000000 --- a/mit-pthreads/machdep/linux-1.0/dirent.h +++ /dev/null @@ -1,27 +0,0 @@ - -#ifndef _SYS_DIRENT_H -#define _SYS_DIRENT_H - -#include <sys/types.h> -#include <linux/limits.h> - -struct dirent { - long d_ino; - off_t d_off; - unsigned short d_reclen; - char d_name[NAME_MAX+1]; -}; - -#ifndef d_fileno -#define d_fileno d_ino -#endif - -#ifndef d_namlen -#define d_namlen d_reclen -#endif - -#ifndef MAXNAMLEN -#define MAXNAMLEN NAME_MAX -#endif - -#endif diff --git a/mit-pthreads/machdep/linux-1.0/errno.h b/mit-pthreads/machdep/linux-1.0/errno.h deleted file mode 100755 index a94a56b0437..00000000000 --- a/mit-pthreads/machdep/linux-1.0/errno.h +++ /dev/null @@ -1,12 +0,0 @@ -/* ==== errno.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Errno is already broken up into data/prototyes. - */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#include <linux/errno.h> - -#endif diff --git a/mit-pthreads/machdep/linux-1.0/socket.h b/mit-pthreads/machdep/linux-1.0/socket.h deleted file mode 100755 index cc4c0fd262e..00000000000 --- a/mit-pthreads/machdep/linux-1.0/socket.h +++ /dev/null @@ -1,193 +0,0 @@ -/* ==== socket.h.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct Linux header file. - */ - -#ifndef _PTHREAD_SOCKET_H_ -#define _PTHREAD_SOCKET_H_ - -/* #include <linux/socket.h> */ -#ifndef _LINUX_SOCKET_H -#define _LINUX_SOCKET_H - -/* IP options */ -#define IP_TOS 1 -#define IPTOS_LOWDELAY 0x10 -#define IPTOS_THROUGHPUT 0x08 -#define IPTOS_RELIABILITY 0x04 -#define IP_TTL 2 -#ifndef IP_HDRINCL -#define IP_HDRINCL 3 -#endif -#ifdef V1_3_WILL_DO_THIS_FUNKY_STUFF -#define IP_OPTIONS 4 -#endif - -#endif - -/* #include <asm/socket.h> arch-dependent defines */ -#include <linux/sockios.h> /* the SIOCxxx I/O controls */ -#include <pthread/posix.h> - -struct sockaddr { - unsigned short sa_family; /* address family, AF_xxx */ - char sa_data[14]; /* 14 bytes of protocol address */ -}; - -struct linger { - int l_onoff; /* Linger active */ - int l_linger; /* How long to linger for */ -}; - -struct msghdr -{ - void * msg_name; /* Socket name */ - int msg_namelen; /* Length of name */ - struct iovec * msg_iov; /* Data blocks */ - int msg_iovlen; /* Number of blocks */ - void * msg_accrights; /* Per protocol magic (eg BSD file descriptor passing) */ - int msg_accrightslen;/* Length of rights list */ -}; - -/* Socket types. */ -#define SOCK_STREAM 1 /* stream (connection) socket */ -#define SOCK_DGRAM 2 /* datagram (conn.less) socket */ -#define SOCK_RAW 3 /* raw socket */ -#define SOCK_RDM 4 /* reliably-delivered message */ -#define SOCK_SEQPACKET 5 /* sequential packet socket */ -#define SOCK_PACKET 10 /* linux specific way of */ - /* getting packets at the dev */ - /* level. For writing rarp and */ - /* other similar things on the */ - /* user level. */ - -/* Supported address families. */ -#define AF_UNSPEC 0 -#define AF_UNIX 1 /* Unix domain sockets */ -#define AF_INET 2 /* Internet IP Protocol */ -#define AF_AX25 3 /* Amateur Radio AX.25 */ -#define AF_IPX 4 /* Novell IPX */ -#define AF_APPLETALK 5 /* Appletalk DDP */ -#define AF_NETROM 6 /* Amateur radio NetROM */ -#define AF_BRIDGE 7 /* Multiprotocol bridge */ -#define AF_AAL5 8 /* Reserved for Werner's ATM */ -#define AF_X25 9 /* Reserved for X.25 project */ -#define AF_INET6 10 /* IP version 6 */ -#define AF_MAX 12 /* For now.. */ - -/* Protocol families, same as address families. */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_AX25 AF_AX25 -#define PF_IPX AF_IPX -#define PF_APPLETALK AF_APPLETALK -#define PF_NETROM AF_NETROM -#define PF_BRIDGE AF_BRIDGE -#define PF_AAL5 AF_AAL5 -#define PF_X25 AF_X25 -#define PF_INET6 AF_INET6 - -#define PF_MAX AF_MAX - -/* Maximum queue length specificable by listen. */ -#define SOMAXCONN 128 - -/* Flags we can use with send/ and recv. */ -#define MSG_OOB 1 -#define MSG_PEEK 2 -#define MSG_DONTROUTE 4 - -/* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */ -#define SOL_SOCKET 1 -#define SOL_IP 0 -#define SOL_IPX 256 -#define SOL_AX25 257 -#define SOL_ATALK 258 -#define SOL_NETROM 259 -#define SOL_TCP 6 -#define SOL_UDP 17 - -/* For setsockoptions(2) */ -#define SO_DEBUG 1 -#define SO_REUSEADDR 2 -#define SO_TYPE 3 -#define SO_ERROR 4 -#define SO_DONTROUTE 5 -#define SO_BROADCAST 6 -#define SO_SNDBUF 7 -#define SO_RCVBUF 8 -#define SO_KEEPALIVE 9 -#define SO_OOBINLINE 10 -#define SO_NO_CHECK 11 -#define SO_PRIORITY 12 -#define SO_LINGER 13 -/* To add :#define SO_REUSEPORT 14 */ - - -#define IP_MULTICAST_IF 32 -#define IP_MULTICAST_TTL 33 -#define IP_MULTICAST_LOOP 34 -#define IP_ADD_MEMBERSHIP 35 -#define IP_DROP_MEMBERSHIP 36 - - -/* These need to appear somewhere around here */ -#define IP_DEFAULT_MULTICAST_TTL 1 -#define IP_DEFAULT_MULTICAST_LOOP 1 -#define IP_MAX_MEMBERSHIPS 20 - -/* IPX options */ -#define IPX_TYPE 1 - -/* TCP options - this way around because someone left a set in the c library includes */ -#define TCP_NODELAY 1 -#define TCP_MAXSEG 2 - -/* The various priorities. */ -#define SOPRI_INTERACTIVE 0 -#define SOPRI_NORMAL 1 -#define SOPRI_BACKGROUND 2 - -/* - * Functions - */ - -__BEGIN_DECLS - -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int listen __P_((int, int)); -int socket __P_((int, int, int)); - -int getsockopt __P_((int __s, int __level, int __optname, - void *__optval, int *__optlen)); -int setsockopt __P_((int __s, int __level, int __optname, - __const void *__optval, int optlen)); -int getsockname __P_((int __sockfd, struct sockaddr *__addr, - int *__paddrlen)); -int getpeername __P_((int __sockfd, struct sockaddr *__peer, - int *__paddrlen)); -ssize_t send __P_((int __sockfd, __const void *__buff, size_t __len, int __flags)); -ssize_t recv __P_((int __sockfd, void *__buff, size_t __len, int __flags)); -ssize_t sendto __P_((int __sockfd, __const void *__buff, size_t __len, - int __flags, __const struct sockaddr *__to, - int __tolen)); -ssize_t recvfrom __P_((int __sockfd, void *__buff, size_t __len, - int __flags, struct sockaddr *__from, - int *__fromlen)); -extern ssize_t sendmsg __P_((int __fd, __const struct msghdr *__message, - int __flags)); -extern ssize_t recvmsg __P_((int __fd, struct msghdr *__message, - int __flags)); -int shutdown __P_((int __sockfd, int __how)); - -__END_DECLS - -#endif - - - - diff --git a/mit-pthreads/machdep/linux-1.0/timers.h b/mit-pthreads/machdep/linux-1.0/timers.h deleted file mode 100755 index 110cb27378c..00000000000 --- a/mit-pthreads/machdep/linux-1.0/timers.h +++ /dev/null @@ -1,71 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <pthread/config.h> -#include <sys/types.h> -#include <time.h> - -#ifndef _OS_HAS_TIMESPEC -struct timespec { - time_t tv_sec; - long tv_nsec; -}; -#endif - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/linux-1.0/uio.h b/mit-pthreads/machdep/linux-1.0/uio.h deleted file mode 100755 index 67af5bf76e0..00000000000 --- a/mit-pthreads/machdep/linux-1.0/uio.h +++ /dev/null @@ -1,15 +0,0 @@ -/* ==== uio.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct Linux header file. - */ - -#ifndef _PTHREAD_UIO_H_ -#define _PTHREAD_UIO_H_ - -struct iovec { - void *iov_base; - size_t iov_len; -}; - -#endif diff --git a/mit-pthreads/machdep/linux-1.0/wait.h b/mit-pthreads/machdep/linux-1.0/wait.h deleted file mode 100755 index bcc28c5ef58..00000000000 --- a/mit-pthreads/machdep/linux-1.0/wait.h +++ /dev/null @@ -1,98 +0,0 @@ -/* $NetBSD: wait.h,v 1.7 1994/06/29 06:46:23 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)wait.h 8.1 (Berkeley) 6/2/93 - */ - -/* - * This file holds definitions relevent to the wait4 system call - * and the alternate interfaces that use it (wait, wait3, waitpid). - */ - -/* - * Macros to test the exit status returned by wait and extract the - * relevant values. Union wait is no supported with pthreads. - */ -#define __W_INT(i) (i) -#define __WSTATUS(x) (__W_INT(x) & 0177) -#define __WSTOPPED 0177 /* __WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (__WSTATUS(x) == __WSTOPPED) -#define WSTOPSIG(x) (__W_INT(x) >> 8) -#define WIFSIGNALED(x) (__WSTATUS(x) != __WSTOPPED && __WSTATUS(x) != 0) -#define WTERMSIG(x) (__WSTATUS(x)) -#define WIFEXITED(x) (__WSTATUS(x) == 0) -#define WEXITSTATUS(x) (__W_INT(x) >> 8) - -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (__W_INT(x) & WCOREFLAG) -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | __WSTOPPED) -#endif - -/* - * Option bits for the third argument of wait4. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE - -/* Tokens for special values of the "pid" parameter to wait4. */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#define WSTOPPED __WSTOPPED -#endif /* _POSIX_SOURCE */ - -#include <sys/types.h> -#include <sys/cdefs.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -__BEGIN_DECLS -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -pid_t wait4 __P_((pid_t, int *, int, void *)); -#endif -__END_DECLS diff --git a/mit-pthreads/machdep/linux-2.0/__math.h b/mit-pthreads/machdep/linux-2.0/__math.h deleted file mode 100755 index 05c65d58321..00000000000 --- a/mit-pthreads/machdep/linux-2.0/__math.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef HUGE_VAL -#define HUGE_VAL DBL_MAX -#endif - diff --git a/mit-pthreads/machdep/linux-2.0/__path.h b/mit-pthreads/machdep/linux-2.0/__path.h deleted file mode 100755 index 9caeb7d3016..00000000000 --- a/mit-pthreads/machdep/linux-2.0/__path.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__PATH_H_ -#define _SYS__PATH_H_ - -#define _PATH_PTY "/dev/" -#define _PATH_TZDIR "/usr/lib/zoneinfo" -#define _PATH_TZFILE "/usr/lib/zoneinfo/localtime" - -#endif /* !_SYS__PATH_H_ */ - diff --git a/mit-pthreads/machdep/linux-2.0/__signal.h b/mit-pthreads/machdep/linux-2.0/__signal.h deleted file mode 100755 index 81136b8c14d..00000000000 --- a/mit-pthreads/machdep/linux-2.0/__signal.h +++ /dev/null @@ -1,86 +0,0 @@ -#include <features.h> - -#define SIGHUP 1 -#define SIGINT 2 -#define SIGQUIT 3 -#define SIGILL 4 -#define SIGTRAP 5 -#define SIGABRT 6 -#define SIGIOT 6 -#define SIGBUS 7 -#define SIGFPE 8 -#define SIGKILL 9 -#define SIGUSR1 10 -#define SIGSEGV 11 -#define SIGUSR2 12 -#define SIGPIPE 13 -#define SIGALRM 14 -#define SIGTERM 15 -#define SIGSTKFLT 16 -#define SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGTSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define SIGURG 23 -#define SIGXCPU 24 -#define SIGXFSZ 25 -#define SIGVTALRM 26 -#define SIGPROF 27 -#define SIGWINCH 28 -#define SIGIO 29 -#define SIGPOLL SIGIO -/* -#define SIGLOST 29 -*/ -#define SIGPWR 30 -#define SIGSYS 31 -#define SIGUNUSED 31 - -#define _NSIG 64 /* Biggest signal number + 1 - (including real-time signals). */ -# define NSIG _NSIG - -/* These should not be considered constants from userland. */ -#define SIGRTMIN 32 -#define SIGRTMAX (_NSIG-1) - -#ifndef SIGCLD -#define SIGCLD SIGCHLD -#endif - - -/* Type of a signal handler. */ -typedef void (*__sighandler_t)(int); - -#define SIG_DFL ((__sighandler_t)0) /* default signal handling */ -#define SIG_IGN ((__sighandler_t)1) /* ignore signal */ -#define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ - -typedef int sig_atomic_t; - -#define SignalBad ((SignalHandler)-1) -#define SignalDefault ((SignalHandler)0) -#define SignalIgnore ((SignalHandler)1) - -#include "bits/sigset.h" - -#define __SIGFILLSET {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} -#define __SIGEMPTYSET { 0,0,0,0,0,0,0,0 } -#define __SIGADDSET(s,n) __sigaddset((s),(n)) -#define __SIGDELSET(s,n) __sigdelset((s),(n)) -#define __SIGISMEMBER(s,n) __sigismember((s),(n)) - - -struct sigaction { - __sighandler_t sa_handler; - unsigned long sa_flags; - void (*sa_restorer)(void); - sigset_t sa_mask; /* mask last for extensibility */ -}; - -/* Values for the HOW argument to `sigprocmask'. */ -#define SIG_BLOCK 0 /* Block signals. */ -#define SIG_UNBLOCK 1 /* Unblock signals. */ -#define SIG_SETMASK 2 /* Set the set of blocked signals. */ diff --git a/mit-pthreads/machdep/linux-2.0/__stdio.h b/mit-pthreads/machdep/linux-2.0/__stdio.h deleted file mode 100755 index 38deb337038..00000000000 --- a/mit-pthreads/machdep/linux-2.0/__stdio.h +++ /dev/null @@ -1,12 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -/* Hack for configuration with libgcc 2.2 */ -#ifndef pthread_fpos_t -#define pthread_fpos_t long -#endif - -typedef pthread_fpos_t fpos_t; diff --git a/mit-pthreads/machdep/linux-2.0/__stdlib.h b/mit-pthreads/machdep/linux-2.0/__stdlib.h deleted file mode 100755 index eaa0bb988ee..00000000000 --- a/mit-pthreads/machdep/linux-2.0/__stdlib.h +++ /dev/null @@ -1,20 +0,0 @@ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <features.h> - -/* Get size_t, wchar_t and NULL from <stddef.h>. */ -#define __need_size_t -#define __need_wchar_t -#define __need_NULL -#include <stddef.h> - -#define __need_Emath -#include <errno.h> - -/* Get HUGE_VAL (returned by strtod on overflow) from <float.h>. */ -#define __need_HUGE_VAL -#include <float.h> - -#endif diff --git a/mit-pthreads/machdep/linux-2.0/__string.h b/mit-pthreads/machdep/linux-2.0/__string.h deleted file mode 100755 index d958a2bbe69..00000000000 --- a/mit-pthreads/machdep/linux-2.0/__string.h +++ /dev/null @@ -1,16 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -/* Non-standard Linux string routines. */ -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -char *strsep __P_((char **, const char *)); -__END_DECLS diff --git a/mit-pthreads/machdep/linux-2.0/__time.h b/mit-pthreads/machdep/linux-2.0/__time.h deleted file mode 100755 index b86c153543a..00000000000 --- a/mit-pthreads/machdep/linux-2.0/__time.h +++ /dev/null @@ -1,78 +0,0 @@ -/* ==== __time.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : System specific time header. - * - * 1.00 94/11/07 proven - * -Started coding this file. - */ - -#ifndef _SYS___TIME_H_ -#define _SYS___TIME_H_ - -#include <features.h> - -struct timespec - { - long int tv_sec; /* Seconds. */ - long int tv_nsec; /* Nanoseconds. */ - }; - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif -#ifndef _CLOCK_T -#define _CLOCK_T -typedef long clock_t; -#endif -#ifndef _TIME_T -#define _TIME_T -typedef long time_t; - -#ifndef NULL -#ifdef __cplusplus -#define NULL 0 -#else -#define NULL ((void *) 0) -#endif -#endif -#endif - -#define CLOCKS_PER_SEC 100 -#define CLK_TCK 100 - -extern long int timezone; -extern int daylight; - -#endif diff --git a/mit-pthreads/machdep/linux-2.0/__unistd.h b/mit-pthreads/machdep/linux-2.0/__unistd.h deleted file mode 100755 index 444f070659a..00000000000 --- a/mit-pthreads/machdep/linux-2.0/__unistd.h +++ /dev/null @@ -1,62 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <features.h> - -/* POSIX Standard approved as IEEE Std 1003.1 as of August, 1988. */ -#define _POSIX_VERSION 199009L -#define _POSIX2_C_BIND 1 -#define _POSIX2_C_DEV 1 -#define _POSIX2_SW_DEV 1 - -#define __need_size_t - -#include <sys/types.h> -#include <stddef.h> - -#ifdef __cplusplus -extern "C" { -#endif -int chroot(const char *); -int gethostname(char *, int); -#ifdef __cplusplus -} -#endif -#endif - diff --git a/mit-pthreads/machdep/linux-2.0/cdefs.h b/mit-pthreads/machdep/linux-2.0/cdefs.h deleted file mode 100755 index 04f93a138c9..00000000000 --- a/mit-pthreads/machdep/linux-2.0/cdefs.h +++ /dev/null @@ -1,36 +0,0 @@ -/* This is intended to eventually find /usr/include/sys/cdefs.h - * if it's inside the ifdef then it won't work if this file is - * found in the include files path more than once. - * - * include_next is a GNU C extension, we might eventually want - * to have our own cdefs in here simply to avoid GNU C dependencies - * (though there are already enough in the asm stuff anyways) - * [gsstark:19950419.0307EST] - */ - -/* We are almost always included from features.h. */ - -#ifndef _FEATURES_H -#include <features.h> -#endif - -#ifndef __BITS_SOCKET_H -#define __BITS_SOCKET_H -#endif - -#define __need_timespec - -#include_next <sys/cdefs.h> - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#if !defined(__cplusplus) -#define __CAN_DO_EXTERN_INLINE -#endif - -#endif /* _PTHREAD_SYS_CDEFS_H_ */ diff --git a/mit-pthreads/machdep/linux-2.0/compat.h b/mit-pthreads/machdep/linux-2.0/compat.h deleted file mode 100755 index 6edb992ac3d..00000000000 --- a/mit-pthreads/machdep/linux-2.0/compat.h +++ /dev/null @@ -1,47 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#include <sys/types.h> - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/linux-2.0/dirent.h b/mit-pthreads/machdep/linux-2.0/dirent.h deleted file mode 100755 index 7f783a198e0..00000000000 --- a/mit-pthreads/machdep/linux-2.0/dirent.h +++ /dev/null @@ -1,27 +0,0 @@ - -#ifndef _SYS_DIRENT_H -#define _SYS_DIRENT_H - -#include <sys/types.h> -#include <linux/limits.h> - -struct dirent { - long d_ino; - off_t d_off; - unsigned short d_reclen; - char d_name[NAME_MAX+1]; -}; - -#ifndef d_fileno -#define d_fileno d_ino -#endif - -#ifndef d_namlen -#define d_namlen d_reclen -#endif - -#ifndef MAXNAMLEN -#define MAXNAMLEN NAME_MAX -#endif - -#endif diff --git a/mit-pthreads/machdep/linux-2.0/errno.h b/mit-pthreads/machdep/linux-2.0/errno.h deleted file mode 100755 index a94a56b0437..00000000000 --- a/mit-pthreads/machdep/linux-2.0/errno.h +++ /dev/null @@ -1,12 +0,0 @@ -/* ==== errno.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Errno is already broken up into data/prototyes. - */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#include <linux/errno.h> - -#endif diff --git a/mit-pthreads/machdep/linux-2.0/extra/bits/local_lim.h b/mit-pthreads/machdep/linux-2.0/extra/bits/local_lim.h deleted file mode 100644 index 1a319ccdfd4..00000000000 --- a/mit-pthreads/machdep/linux-2.0/extra/bits/local_lim.h +++ /dev/null @@ -1,15 +0,0 @@ -/* Minimum guaranteed maximum values for system limits. Linux version. - -/* The kernel header pollutes the namespace with the NR_OPEN symbol. - Remove this after including the header if necessary. */ - -#ifndef NR_OPEN -# define __undef_NR_OPEN -#endif - -#include <linux/limits.h> - -#ifdef __undef_NR_OPEN -# undef NR_OPEN -# undef __undef_NR_OPEN -#endif diff --git a/mit-pthreads/machdep/linux-2.0/extra/bits/pthreadtypes.h b/mit-pthreads/machdep/linux-2.0/extra/bits/pthreadtypes.h deleted file mode 100644 index e69de29bb2d..00000000000 --- a/mit-pthreads/machdep/linux-2.0/extra/bits/pthreadtypes.h +++ /dev/null diff --git a/mit-pthreads/machdep/linux-2.0/extra/bits/socket.h b/mit-pthreads/machdep/linux-2.0/extra/bits/socket.h deleted file mode 100755 index 1814e189b64..00000000000 --- a/mit-pthreads/machdep/linux-2.0/extra/bits/socket.h +++ /dev/null @@ -1,198 +0,0 @@ -/* ==== socket.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct Linux header file. - */ - -#ifndef _PTHREAD_BITS_SOCKET_H_ -#define _PTHREAD_BITS_SOCKET_H_ - -/* #include <linux/socket.h> */ -#ifndef _LINUX_SOCKET_H -#define _LINUX_SOCKET_H - -/* IP options */ -#define IP_TOS 1 -#define IPTOS_LOWDELAY 0x10 -#define IPTOS_THROUGHPUT 0x08 -#define IPTOS_RELIABILITY 0x04 -#define IP_TTL 2 -#ifndef IP_HDRINCL -#define IP_HDRINCL 3 -#endif -#ifdef V1_3_WILL_DO_THIS_FUNKY_STUFF -#define IP_OPTIONS 4 -#endif - -#endif - -/* Fixes to be able to configure with glibc 2.2 */ -typedef unsigned short int sa_family_t; -#define __SOCKADDR_COMMON(sa_prefix) \ - sa_family_t sa_prefix##family -#define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int)) - -/* Type for length arguments in socket calls. */ -typedef unsigned int socklen_t; - -/* #include <asm/socket.h> arch-dependent defines */ -#include <linux/sockios.h> /* the SIOCxxx I/O controls */ -#include <pthread/posix.h> - -struct sockaddr { - unsigned short sa_family; /* address family, AF_xxx */ - char sa_data[14]; /* 14 bytes of protocol address */ -}; - -struct linger { - int l_onoff; /* Linger active */ - int l_linger; /* How long to linger for */ -}; - -struct msghdr -{ - void * msg_name; /* Socket name */ - int msg_namelen; /* Length of name */ - struct iovec * msg_iov; /* Data blocks */ - int msg_iovlen; /* Number of blocks */ - void * msg_accrights; /* Per protocol magic (eg BSD file descriptor passing) */ - int msg_accrightslen;/* Length of rights list */ -}; - -/* Socket types. */ -#define SOCK_STREAM 1 /* stream (connection) socket */ -#define SOCK_DGRAM 2 /* datagram (conn.less) socket */ -#define SOCK_RAW 3 /* raw socket */ -#define SOCK_RDM 4 /* reliably-delivered message */ -#define SOCK_SEQPACKET 5 /* sequential packet socket */ -#define SOCK_PACKET 10 /* linux specific way of */ - /* getting packets at the dev */ - /* level. For writing rarp and */ - /* other similar things on the */ - /* user level. */ - -/* Supported address families. */ -#define AF_UNSPEC 0 -#define AF_UNIX 1 /* Unix domain sockets */ -#define AF_INET 2 /* Internet IP Protocol */ -#define AF_AX25 3 /* Amateur Radio AX.25 */ -#define AF_IPX 4 /* Novell IPX */ -#define AF_APPLETALK 5 /* Appletalk DDP */ -#define AF_NETROM 6 /* Amateur radio NetROM */ -#define AF_BRIDGE 7 /* Multiprotocol bridge */ -#define AF_AAL5 8 /* Reserved for Werner's ATM */ -#define AF_X25 9 /* Reserved for X.25 project */ -#define AF_INET6 10 /* IP version 6 */ -#define AF_MAX 12 /* For now.. */ - -/* Protocol families, same as address families. */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_AX25 AF_AX25 -#define PF_IPX AF_IPX -#define PF_APPLETALK AF_APPLETALK -#define PF_NETROM AF_NETROM -#define PF_BRIDGE AF_BRIDGE -#define PF_AAL5 AF_AAL5 -#define PF_X25 AF_X25 -#define PF_INET6 AF_INET6 - -#define PF_MAX AF_MAX - -/* Maximum queue length specificable by listen. */ -#define SOMAXCONN 128 - -/* Flags we can use with send/ and recv. */ -#define MSG_OOB 1 -#define MSG_PEEK 2 -#define MSG_DONTROUTE 4 - -/* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */ -#define SOL_SOCKET 1 -#define SOL_IP 0 -#define SOL_IPX 256 -#define SOL_AX25 257 -#define SOL_ATALK 258 -#define SOL_NETROM 259 -#define SOL_TCP 6 -#define SOL_UDP 17 - -/* For setsockoptions(2) */ -#define SO_DEBUG 1 -#define SO_REUSEADDR 2 -#define SO_TYPE 3 -#define SO_ERROR 4 -#define SO_DONTROUTE 5 -#define SO_BROADCAST 6 -#define SO_SNDBUF 7 -#define SO_RCVBUF 8 -#define SO_KEEPALIVE 9 -#define SO_OOBINLINE 10 -#define SO_NO_CHECK 11 -#define SO_PRIORITY 12 -#define SO_LINGER 13 -/* To add :#define SO_REUSEPORT 14 */ - - -#define IP_MULTICAST_IF 32 -#define IP_MULTICAST_TTL 33 -#define IP_MULTICAST_LOOP 34 -#define IP_ADD_MEMBERSHIP 35 -#define IP_DROP_MEMBERSHIP 36 - - -/* These need to appear somewhere around here */ -#define IP_DEFAULT_MULTICAST_TTL 1 -#define IP_DEFAULT_MULTICAST_LOOP 1 -#define IP_MAX_MEMBERSHIPS 20 - -/* IPX options */ -#define IPX_TYPE 1 - -/* TCP options - this way around because someone left a set in the c library includes */ -#define TCP_NODELAY 1 -#define TCP_MAXSEG 2 - -/* The various priorities. */ -#define SOPRI_INTERACTIVE 0 -#define SOPRI_NORMAL 1 -#define SOPRI_BACKGROUND 2 - -/* - * Functions - */ - -__BEGIN_DECLS - -int accept __P_((int, struct sockaddr *, socklen_t *)); -int bind __P_((int, const struct sockaddr *, socklen_t)); -int connect __P_((int, const struct sockaddr *, socklen_t)); -int listen __P_((int, int)); -int socket __P_((int, int, int)); - -int getsockopt __P_((int __s, int __level, int __optname, - void *__optval, socklen_t *__optlen)); -int setsockopt __P_((int __s, int __level, int __optname, - __const void *__optval, socklen_t optlen)); -int getsockname __P_((int __sockfd, struct sockaddr *__addr, - socklen_t *__paddrlen)); -int getpeername __P_((int __sockfd, struct sockaddr *__peer, - socklen_t *__paddrlen)); -ssize_t send __P_((int __sockfd, __const void *__buff, size_t __len, int __flags)); -ssize_t recv __P_((int __sockfd, void *__buff, size_t __len, int __flags)); -ssize_t sendto __P_((int __sockfd, __const void *__buff, size_t __len, - int __flags, __const struct sockaddr *__to, - socklen_t __tolen)); -ssize_t recvfrom __P_((int __sockfd, void *__buff, size_t __len, - int __flags, struct sockaddr *__from, - socklen_t *__fromlen)); -extern ssize_t sendmsg __P_((int __fd, __const struct msghdr *__message, - int __flags)); -extern ssize_t recvmsg __P_((int __fd, struct msghdr *__message, - int __flags)); -int shutdown __P_((int __sockfd, int __how)); - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/linux-2.0/socket.h b/mit-pthreads/machdep/linux-2.0/socket.h deleted file mode 100755 index 2a8a04f1903..00000000000 --- a/mit-pthreads/machdep/linux-2.0/socket.h +++ /dev/null @@ -1,13 +0,0 @@ -/* ==== socket.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct Linux header file. - */ - -#ifndef _PTHREAD_SOCKET_H_ -#define _PTHREAD_SOCKET_H_ - -#include "bits/socket.h" - -#endif - diff --git a/mit-pthreads/machdep/linux-2.0/socketcall.h b/mit-pthreads/machdep/linux-2.0/socketcall.h deleted file mode 100644 index e69de29bb2d..00000000000 --- a/mit-pthreads/machdep/linux-2.0/socketcall.h +++ /dev/null diff --git a/mit-pthreads/machdep/linux-2.0/timers.h b/mit-pthreads/machdep/linux-2.0/timers.h deleted file mode 100755 index 110cb27378c..00000000000 --- a/mit-pthreads/machdep/linux-2.0/timers.h +++ /dev/null @@ -1,71 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <pthread/config.h> -#include <sys/types.h> -#include <time.h> - -#ifndef _OS_HAS_TIMESPEC -struct timespec { - time_t tv_sec; - long tv_nsec; -}; -#endif - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/linux-2.0/uio.h b/mit-pthreads/machdep/linux-2.0/uio.h deleted file mode 100755 index 67af5bf76e0..00000000000 --- a/mit-pthreads/machdep/linux-2.0/uio.h +++ /dev/null @@ -1,15 +0,0 @@ -/* ==== uio.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct Linux header file. - */ - -#ifndef _PTHREAD_UIO_H_ -#define _PTHREAD_UIO_H_ - -struct iovec { - void *iov_base; - size_t iov_len; -}; - -#endif diff --git a/mit-pthreads/machdep/linux-2.0/wait.h b/mit-pthreads/machdep/linux-2.0/wait.h deleted file mode 100755 index bcc28c5ef58..00000000000 --- a/mit-pthreads/machdep/linux-2.0/wait.h +++ /dev/null @@ -1,98 +0,0 @@ -/* $NetBSD: wait.h,v 1.7 1994/06/29 06:46:23 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)wait.h 8.1 (Berkeley) 6/2/93 - */ - -/* - * This file holds definitions relevent to the wait4 system call - * and the alternate interfaces that use it (wait, wait3, waitpid). - */ - -/* - * Macros to test the exit status returned by wait and extract the - * relevant values. Union wait is no supported with pthreads. - */ -#define __W_INT(i) (i) -#define __WSTATUS(x) (__W_INT(x) & 0177) -#define __WSTOPPED 0177 /* __WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (__WSTATUS(x) == __WSTOPPED) -#define WSTOPSIG(x) (__W_INT(x) >> 8) -#define WIFSIGNALED(x) (__WSTATUS(x) != __WSTOPPED && __WSTATUS(x) != 0) -#define WTERMSIG(x) (__WSTATUS(x)) -#define WIFEXITED(x) (__WSTATUS(x) == 0) -#define WEXITSTATUS(x) (__W_INT(x) >> 8) - -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (__W_INT(x) & WCOREFLAG) -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | __WSTOPPED) -#endif - -/* - * Option bits for the third argument of wait4. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE - -/* Tokens for special values of the "pid" parameter to wait4. */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#define WSTOPPED __WSTOPPED -#endif /* _POSIX_SOURCE */ - -#include <sys/types.h> -#include <sys/cdefs.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -__BEGIN_DECLS -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -pid_t wait4 __P_((pid_t, int *, int, void *)); -#endif -__END_DECLS diff --git a/mit-pthreads/machdep/netbsd-0.9/dirent.h b/mit-pthreads/machdep/netbsd-0.9/dirent.h deleted file mode 100755 index 5226443f86b..00000000000 --- a/mit-pthreads/machdep/netbsd-0.9/dirent.h +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno /* backward compatibility */ - -/* definitions for library routines operating on directories. */ -#define DIRBLKSIZ 1024 - -#endif /* !_DIRENT_H_ */ diff --git a/mit-pthreads/machdep/netbsd-1.0/__math.h b/mit-pthreads/machdep/netbsd-1.0/__math.h deleted file mode 100755 index dc009d822f4..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/__math.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * ANSI/POSIX - */ -extern char __infinity[]; -#define HUGE_VAL (*(double *) __infinity) - diff --git a/mit-pthreads/machdep/netbsd-1.0/__path.h b/mit-pthreads/machdep/netbsd-1.0/__path.h deleted file mode 100755 index 432494daafa..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/__path.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__PATH_H_ -#define _SYS__PATH_H_ - -#define _PATH_PTY "/dev/" -#define _PATH_TZDIR "/usr/share/zoneinfo" -#define _PATH_TZFILE "/etc/localtime" - -#endif /* !_SYS__PATH_H_ */ - diff --git a/mit-pthreads/machdep/netbsd-1.0/__signal.h b/mit-pthreads/machdep/netbsd-1.0/__signal.h deleted file mode 100755 index 918955c9948..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/__signal.h +++ /dev/null @@ -1,8 +0,0 @@ -#include <sys/signal.h> - -#define __SIGEMPTYSET 0 -#define __SIGFILLSET 0xffffffff -#define __SIGADDSET(s, n) (*(s) |= 1 << ((n) - 1), 0) -#define __SIGDELSET(s, n) (*(s) &= ~(1 << ((n) - 1)), 0) -#define __SIGISMEMBER(s, n) ((*(s) & (1 << ((n) - 1))) != 0) - diff --git a/mit-pthreads/machdep/netbsd-1.0/__stdio.h b/mit-pthreads/machdep/netbsd-1.0/__stdio.h deleted file mode 100755 index d60b9df7a54..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/__stdio.h +++ /dev/null @@ -1,8 +0,0 @@ - -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -typedef pthread_fpos_t fpos_t; /* Must match off_t <sys/types.h> */ diff --git a/mit-pthreads/machdep/netbsd-1.0/__stdlib.h b/mit-pthreads/machdep/netbsd-1.0/__stdlib.h deleted file mode 100755 index 7b24491b892..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/__stdlib.h +++ /dev/null @@ -1,60 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <machine/ansi.h> - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#ifdef _BSD_WCHAR_T_ -typedef _BSD_WCHAR_T_ wchar_t; -#undef _BSD_WCHAR_T_ -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif /* _STDLIB_H_ */ diff --git a/mit-pthreads/machdep/netbsd-1.0/__string.h b/mit-pthreads/machdep/netbsd-1.0/__string.h deleted file mode 100755 index 1ebee28e708..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/__string.h +++ /dev/null @@ -1,20 +0,0 @@ - -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -/* Non-standard NetBSD string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -void strmode __P_((int, char *)); -char *strsep __P_((char **, const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/netbsd-1.0/__time.h b/mit-pthreads/machdep/netbsd-1.0/__time.h deleted file mode 100755 index 16ea9d1f0dd..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/__time.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__TIME_H_ -#define _SYS__TIME_H_ - -#include <machine/ansi.h> - -#ifdef _BSD_CLOCK_T_ -typedef _BSD_CLOCK_T_ clock_t; -#undef _BSD_CLOCK_T_ -#endif - -#ifdef _BSD_TIME_T_ -typedef _BSD_TIME_T_ time_t; -#undef _BSD_TIME_T_ -#endif - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#define CLOCKS_PER_SEC 100 - -#if !defined(_ANSI_SOURCE) -#define CLK_TCK 100 -#endif /* not ANSI */ - -#endif /* !_SYS__TIME_H_ */ diff --git a/mit-pthreads/machdep/netbsd-1.0/__unistd.h b/mit-pthreads/machdep/netbsd-1.0/__unistd.h deleted file mode 100755 index b4741ba6725..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/__unistd.h +++ /dev/null @@ -1,107 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/types.h> - -#ifndef NULL -#define NULL 0 -#endif - -/* compile-time symbolic constants */ -#define _POSIX_JOB_CONTROL /* implementation supports job control */ - -#ifdef _NOT_AVAILABLE -#define _POSIX_SAVED_IDS /* saved set-user-ID and set-group-ID */ -#endif - -#define _POSIX_VERSION 198808L -#define _POSIX2_VERSION 199212L - -/* execution-time symbolic constants */ - /* chown requires appropriate privileges */ -#define _POSIX_CHOWN_RESTRICTED 1 - /* too-long path components generate errors */ -#define _POSIX_NO_TRUNC 1 - /* may disable terminal special characters */ -#define _POSIX_VDISABLE ((unsigned char)'\377') - -/* configurable pathname variables */ -#define _PC_LINK_MAX 1 -#define _PC_MAX_CANON 2 -#define _PC_MAX_INPUT 3 -#define _PC_NAME_MAX 4 -#define _PC_PATH_MAX 5 -#define _PC_PIPE_BUF 6 -#define _PC_CHOWN_RESTRICTED 7 -#define _PC_NO_TRUNC 8 -#define _PC_VDISABLE 9 - -/* configurable system variables */ -#define _SC_ARG_MAX 1 -#define _SC_CHILD_MAX 2 -#define _SC_CLK_TCK 3 -#define _SC_NGROUPS_MAX 4 -#define _SC_OPEN_MAX 5 -#define _SC_JOB_CONTROL 6 -#define _SC_SAVED_IDS 7 -#define _SC_VERSION 8 -#define _SC_BC_BASE_MAX 9 -#define _SC_BC_DIM_MAX 10 -#define _SC_BC_SCALE_MAX 11 -#define _SC_BC_STRING_MAX 12 -#define _SC_COLL_WEIGHTS_MAX 13 -#define _SC_EXPR_NEST_MAX 14 -#define _SC_LINE_MAX 15 -#define _SC_RE_DUP_MAX 16 -#define _SC_2_VERSION 17 -#define _SC_2_C_BIND 18 -#define _SC_2_C_DEV 19 -#define _SC_2_CHAR_TERM 20 -#define _SC_2_FORT_DEV 21 -#define _SC_2_FORT_RUN 22 -#define _SC_2_LOCALEDEF 23 -#define _SC_2_SW_DEV 24 -#define _SC_2_UPE 25 -#define _SC_STREAM_MAX 26 -#define _SC_TZNAME_MAX 27 - -/* configurable system strings */ -#define _CS_PATH 1 - -#endif diff --git a/mit-pthreads/machdep/netbsd-1.0/compat.h b/mit-pthreads/machdep/netbsd-1.0/compat.h deleted file mode 100755 index e7de318aa88..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/compat.h +++ /dev/null @@ -1,43 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : COmpat header to make socket code compile. - * - * 1.00 94/08/01 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#endif diff --git a/mit-pthreads/machdep/netbsd-1.0/dirent.h b/mit-pthreads/machdep/netbsd-1.0/dirent.h deleted file mode 100755 index 5226443f86b..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/dirent.h +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno /* backward compatibility */ - -/* definitions for library routines operating on directories. */ -#define DIRBLKSIZ 1024 - -#endif /* !_DIRENT_H_ */ diff --git a/mit-pthreads/machdep/netbsd-1.0/errno.h b/mit-pthreads/machdep/netbsd-1.0/errno.h deleted file mode 100755 index 3da61d692a3..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/errno.h +++ /dev/null @@ -1,160 +0,0 @@ -/* $NetBSD: errno.h,v 1.8 1994/06/29 06:44:02 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)errno.h 8.5 (Berkeley) 1/21/94 - */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* Input/output error */ -#define ENXIO 6 /* Device not configured */ -#define E2BIG 7 /* Argument list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file descriptor */ -#define ECHILD 10 /* No child processes */ -#define EDEADLK 11 /* Resource deadlock avoided */ - /* 11 was EAGAIN */ -#define ENOMEM 12 /* Cannot allocate memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -#ifndef _POSIX_SOURCE -#define ENOTBLK 15 /* Block device required */ -#endif -#define EBUSY 16 /* Device busy */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* Operation not supported by device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* Too many open files in system */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Inappropriate ioctl for device */ -#ifndef _POSIX_SOURCE -#define ETXTBSY 26 /* Text file busy */ -#endif -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ - -/* math software */ -#define EDOM 33 /* Numerical argument out of domain */ -#define ERANGE 34 /* Result too large */ - -/* non-blocking and interrupt i/o */ -#define EAGAIN 35 /* Resource temporarily unavailable */ -#ifndef _POSIX_SOURCE -#define EWOULDBLOCK EAGAIN /* Operation would block */ -#define EINPROGRESS 36 /* Operation now in progress */ -#define EALREADY 37 /* Operation already in progress */ - -/* ipc/network software -- argument errors */ -#define ENOTSOCK 38 /* Socket operation on non-socket */ -#define EDESTADDRREQ 39 /* Destination address required */ -#define EMSGSIZE 40 /* Message too long */ -#define EPROTOTYPE 41 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 42 /* Protocol not available */ -#define EPROTONOSUPPORT 43 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 44 /* Socket type not supported */ -#define EOPNOTSUPP 45 /* Operation not supported */ -#define EPFNOSUPPORT 46 /* Protocol family not supported */ -#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ -#define EADDRINUSE 48 /* Address already in use */ -#define EADDRNOTAVAIL 49 /* Can't assign requested address */ - -/* ipc/network software -- operational errors */ -#define ENETDOWN 50 /* Network is down */ -#define ENETUNREACH 51 /* Network is unreachable */ -#define ENETRESET 52 /* Network dropped connection on reset */ -#define ECONNABORTED 53 /* Software caused connection abort */ -#define ECONNRESET 54 /* Connection reset by peer */ -#define ENOBUFS 55 /* No buffer space available */ -#define EISCONN 56 /* Socket is already connected */ -#define ENOTCONN 57 /* Socket is not connected */ -#define ESHUTDOWN 58 /* Can't send after socket shutdown */ -#define ETOOMANYREFS 59 /* Too many references: can't splice */ -#define ETIMEDOUT 60 /* Operation timed out */ -#define ECONNREFUSED 61 /* Connection refused */ - -#define ELOOP 62 /* Too many levels of symbolic links */ -#endif /* _POSIX_SOURCE */ -#define ENAMETOOLONG 63 /* File name too long */ - -/* should be rearranged */ -#ifndef _POSIX_SOURCE -#define EHOSTDOWN 64 /* Host is down */ -#define EHOSTUNREACH 65 /* No route to host */ -#endif /* _POSIX_SOURCE */ -#define ENOTEMPTY 66 /* Directory not empty */ - -/* quotas & mush */ -#ifndef _POSIX_SOURCE -#define EPROCLIM 67 /* Too many processes */ -#define EUSERS 68 /* Too many users */ -#define EDQUOT 69 /* Disc quota exceeded */ - -/* Network File System */ -#define ESTALE 70 /* Stale NFS file handle */ -#define EREMOTE 71 /* Too many levels of remote in path */ -#define EBADRPC 72 /* RPC struct is bad */ -#define ERPCMISMATCH 73 /* RPC version wrong */ -#define EPROGUNAVAIL 74 /* RPC prog. not avail */ -#define EPROGMISMATCH 75 /* Program version wrong */ -#define EPROCUNAVAIL 76 /* Bad procedure for program */ -#endif /* _POSIX_SOURCE */ - -#define ENOLCK 77 /* No locks available */ -#define ENOSYS 78 /* Function not implemented */ - -#ifndef _POSIX_SOURCE -#define EFTYPE 79 /* Inappropriate file type or format */ -#define EAUTH 80 /* Authentication error */ -#define ENEEDAUTH 81 /* Need authenticator */ -#define ELAST 81 /* Must be equal largest errno */ -#endif /* _POSIX_SOURCE */ - -#endif diff --git a/mit-pthreads/machdep/netbsd-1.0/time.h b/mit-pthreads/machdep/netbsd-1.0/time.h deleted file mode 100755 index f2cc61f8d75..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/time.h +++ /dev/null @@ -1,125 +0,0 @@ -/* $NetBSD: time.h,v 1.8 1994/06/29 06:45:44 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)time.h 8.1 (Berkeley) 6/2/93 - */ - -#ifndef _SYS_TIME_H_ -#define _SYS_TIME_H_ - -/* - * Structure returned by gettimeofday(2) system call, - * and used in other calls. - */ -struct timeval { - long tv_sec; /* seconds */ - long tv_usec; /* and microseconds */ -}; - -/* - * Structure defined by POSIX.4 to be like a timeval. - */ -struct timespec { - long tv_sec; /* seconds */ - long tv_nsec; /* and nanoseconds */ -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -struct timezone { - int tz_minuteswest; /* minutes west of Greenwich */ - int tz_dsttime; /* type of dst correction */ -}; -#define DST_NONE 0 /* not on dst */ -#define DST_USA 1 /* USA style dst */ -#define DST_AUST 2 /* Australian style dst */ -#define DST_WET 3 /* Western European dst */ -#define DST_MET 4 /* Middle European dst */ -#define DST_EET 5 /* Eastern European dst */ -#define DST_CAN 6 /* Canada */ - -/* Operations on timevals. */ -#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 -#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) -#define timercmp(tvp, uvp, cmp) \ - (((tvp)->tv_sec == (uvp)->tv_sec) ? \ - ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ - ((tvp)->tv_sec cmp (uvp)->tv_sec)) - -/* - * Names of the interval timers, and structure - * defining a timer setting. - */ -#define ITIMER_REAL 0 -#define ITIMER_VIRTUAL 1 -#define ITIMER_PROF 2 - -struct itimerval { - struct timeval it_interval; /* timer interval */ - struct timeval it_value; /* current value */ -}; - -/* - * Getkerninfo clock information structure - */ -struct clockinfo { - int hz; /* clock frequency */ - int tick; /* micro-seconds per hz tick */ - int stathz; /* statistics clock frequency */ - int profhz; /* profiling clock frequency */ -}; - -#include <time.h> - -#ifndef _POSIX_SOURCE -#include <sys/cdefs.h> - -__BEGIN_DECLS -int adjtime __P_((const struct timeval *, struct timeval *)); -int getitimer __P_((int, struct itimerval *)); -int gettimeofday __P_((struct timeval *, struct timezone *)); -int setitimer __P_((int, const struct itimerval *, struct itimerval *)); -int settimeofday __P_((const struct timeval *, const struct timezone *)); -int utimes __P_((const char *, const struct timeval *)); -__END_DECLS -#endif /* !POSIX */ - -#endif /* !_SYS_TIME_H_ */ diff --git a/mit-pthreads/machdep/netbsd-1.0/timers.h b/mit-pthreads/machdep/netbsd-1.0/timers.h deleted file mode 100755 index f9768c68c8f..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/timers.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/time.h> - -#endif diff --git a/mit-pthreads/machdep/netbsd-1.0/wait.h b/mit-pthreads/machdep/netbsd-1.0/wait.h deleted file mode 100755 index c1cd876d052..00000000000 --- a/mit-pthreads/machdep/netbsd-1.0/wait.h +++ /dev/null @@ -1,158 +0,0 @@ -/* $NetBSD: wait.h,v 1.7 1994/06/29 06:46:23 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)wait.h 8.1 (Berkeley) 6/2/93 - */ - -/* - * This file holds definitions relevent to the wait4 system call - * and the alternate interfaces that use it (wait, wait3, waitpid). - */ - -/* - * Macros to test the exit status returned by wait - * and extract the relevant values. - */ -#ifdef _POSIX_SOURCE -#define _W_INT(i) (i) -#else -#define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */ -#define WCOREFLAG 0200 -#endif - -#define _WSTATUS(x) (_W_INT(x) & 0177) -#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED) -#define WSTOPSIG(x) (_W_INT(x) >> 8) -#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) -#define WTERMSIG(x) (_WSTATUS(x)) -#define WIFEXITED(x) (_WSTATUS(x) == 0) -#define WEXITSTATUS(x) (_W_INT(x) >> 8) -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG) - -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED) -#endif - -/* - * Option bits for the third argument of wait4. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE -/* POSIX extensions and 4.2/4.3 compatability: */ - -/* - * Tokens for special values of the "pid" parameter to wait4. - */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#include <machine/endian.h> - -/* - * Deprecated: - * Structure of the information in the status word returned by wait4. - * If w_stopval==WSTOPPED, then the second structure describes - * the information returned, else the first. - */ -union wait { - int w_status; /* used in syscall */ - /* - * Terminated process status. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Termsig:7, /* termination signal */ - w_Coredump:1, /* core dump indicator */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Coredump:1, /* core dump indicator */ - w_Termsig:7; /* termination signal */ -#endif - } w_T; - /* - * Stopped process status. Returned - * only for traced children unless requested - * with the WUNTRACED option bit. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Stopval:8, /* == W_STOPPED if stopped */ - w_Stopsig:8, /* signal that stopped us */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Stopsig:8, /* signal that stopped us */ - w_Stopval:8; /* == W_STOPPED if stopped */ -#endif - } w_S; -}; -#define w_termsig w_T.w_Termsig -#define w_coredump w_T.w_Coredump -#define w_retcode w_T.w_Retcode -#define w_stopval w_S.w_Stopval -#define w_stopsig w_S.w_Stopsig - -#define WSTOPPED _WSTOPPED -#endif /* _POSIX_SOURCE */ - -#ifndef KERNEL -#include <sys/types.h> -#include <sys/cdefs.h> - -__BEGIN_DECLS -struct rusage; /* forward declaration */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -pid_t wait4 __P_((pid_t, int *, int, void *)); -#endif -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/netbsd-1.1/__math.h b/mit-pthreads/machdep/netbsd-1.1/__math.h deleted file mode 100755 index dc009d822f4..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/__math.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * ANSI/POSIX - */ -extern char __infinity[]; -#define HUGE_VAL (*(double *) __infinity) - diff --git a/mit-pthreads/machdep/netbsd-1.1/__path.h b/mit-pthreads/machdep/netbsd-1.1/__path.h deleted file mode 100755 index be7f9f6c658..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/__path.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * __path.h,v 1.1 1995/01/03 12:53:32 proven Exp - */ - -#ifndef _SYS__PATH_H_ -#define _SYS__PATH_H_ - -#define _PATH_PTY "/dev/" -#define _PATH_TZDIR "/usr/share/zoneinfo" -#define _PATH_TZFILE "/etc/localtime" - -#endif /* !_SYS__PATH_H_ */ - diff --git a/mit-pthreads/machdep/netbsd-1.1/__signal.h b/mit-pthreads/machdep/netbsd-1.1/__signal.h deleted file mode 100755 index ea2979f2b4e..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/__signal.h +++ /dev/null @@ -1,27 +0,0 @@ -#include <sys/signal.h> - -__BEGIN_DECLS - -#if NSIG <= 32 -#define __SIGEMPTYSET 0 -#define __SIGFILLSET 0xffffffff -#define __SIGADDSET(s, n) (*(s) |= 1 << ((n) - 1), 0) -#define __SIGDELSET(s, n) (*(s) &= ~(1 << ((n) - 1)), 0) -#define __SIGISMEMBER(s, n) ((*(s) & (1 << ((n) - 1))) != 0) - -#else /* XXX Netbsd >= 1.3H */ - -int sigaction __P_((int, const struct sigaction *, struct sigaction *)) __RENAME(__sigaction14); - -#define __SIGEMPTYSET { 0, 0, 0, 0} -#define __SIGFILLSET { 0xffffffff, 0xffffffff, \ - 0xffffffff, 0xffffffff } -#define __SIGMASK(n) (1 << (((n) - 1) & 31)) -#define __SIGWORD(n) (((n) - 1) >> 5) -#define __SIGADDSET(s, n) ((s)->__bits[__SIGWORD(n)] |= __SIGMASK(n)) -#define __SIGDELSET(s, n) ((s)->__bits[__SIGWORD(n)] &= ~__SIGMASK(n)) -#define __SIGISMEMBER(s, n) (((s)->__bits[__SIGWORD(n)] & __SIGMASK(n)) != 0) - -#endif - -__END_DECLS diff --git a/mit-pthreads/machdep/netbsd-1.1/__stdio.h b/mit-pthreads/machdep/netbsd-1.1/__stdio.h deleted file mode 100755 index d60b9df7a54..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/__stdio.h +++ /dev/null @@ -1,8 +0,0 @@ - -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -typedef pthread_fpos_t fpos_t; /* Must match off_t <sys/types.h> */ diff --git a/mit-pthreads/machdep/netbsd-1.1/__stdlib.h b/mit-pthreads/machdep/netbsd-1.1/__stdlib.h deleted file mode 100755 index 189bb5e8799..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/__stdlib.h +++ /dev/null @@ -1,60 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * __stdlib.h,v 1.1 1995/01/03 12:53:34 proven Exp - */ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <machine/ansi.h> - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#ifdef _BSD_WCHAR_T_ -typedef _BSD_WCHAR_T_ wchar_t; -#undef _BSD_WCHAR_T_ -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif /* _STDLIB_H_ */ diff --git a/mit-pthreads/machdep/netbsd-1.1/__string.h b/mit-pthreads/machdep/netbsd-1.1/__string.h deleted file mode 100755 index 1ebee28e708..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/__string.h +++ /dev/null @@ -1,20 +0,0 @@ - -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -/* Non-standard NetBSD string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -void strmode __P_((int, char *)); -char *strsep __P_((char **, const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/netbsd-1.1/__time.h b/mit-pthreads/machdep/netbsd-1.1/__time.h deleted file mode 100755 index 27ceb815852..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/__time.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * __time.h,v 1.1 1994/12/13 07:18:55 proven Exp - */ - -#ifndef _SYS__TIME_H_ -#define _SYS__TIME_H_ - -#include <machine/ansi.h> - -#ifdef _BSD_CLOCK_T_ -typedef _BSD_CLOCK_T_ clock_t; -#undef _BSD_CLOCK_T_ -#endif - -#ifdef _BSD_TIME_T_ -typedef _BSD_TIME_T_ time_t; -#undef _BSD_TIME_T_ -#endif - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#define CLOCKS_PER_SEC 100 - -#if !defined(_ANSI_SOURCE) -#define CLK_TCK 100 -#endif /* not ANSI */ - -#endif /* !_SYS__TIME_H_ */ diff --git a/mit-pthreads/machdep/netbsd-1.1/__unistd.h b/mit-pthreads/machdep/netbsd-1.1/__unistd.h deleted file mode 100755 index cea3165c229..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/__unistd.h +++ /dev/null @@ -1,107 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * __unistd.h,v 1.1 1995/01/03 12:53:35 proven Exp - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/types.h> - -#ifndef NULL -#define NULL 0 -#endif - -/* compile-time symbolic constants */ -#define _POSIX_JOB_CONTROL /* implementation supports job control */ - -#ifdef _NOT_AVAILABLE -#define _POSIX_SAVED_IDS /* saved set-user-ID and set-group-ID */ -#endif - -#define _POSIX_VERSION 198808L -#define _POSIX2_VERSION 199212L - -/* execution-time symbolic constants */ - /* chown requires appropriate privileges */ -#define _POSIX_CHOWN_RESTRICTED 1 - /* too-long path components generate errors */ -#define _POSIX_NO_TRUNC 1 - /* may disable terminal special characters */ -#define _POSIX_VDISABLE ((unsigned char)'\377') - -/* configurable pathname variables */ -#define _PC_LINK_MAX 1 -#define _PC_MAX_CANON 2 -#define _PC_MAX_INPUT 3 -#define _PC_NAME_MAX 4 -#define _PC_PATH_MAX 5 -#define _PC_PIPE_BUF 6 -#define _PC_CHOWN_RESTRICTED 7 -#define _PC_NO_TRUNC 8 -#define _PC_VDISABLE 9 - -/* configurable system variables */ -#define _SC_ARG_MAX 1 -#define _SC_CHILD_MAX 2 -#define _SC_CLK_TCK 3 -#define _SC_NGROUPS_MAX 4 -#define _SC_OPEN_MAX 5 -#define _SC_JOB_CONTROL 6 -#define _SC_SAVED_IDS 7 -#define _SC_VERSION 8 -#define _SC_BC_BASE_MAX 9 -#define _SC_BC_DIM_MAX 10 -#define _SC_BC_SCALE_MAX 11 -#define _SC_BC_STRING_MAX 12 -#define _SC_COLL_WEIGHTS_MAX 13 -#define _SC_EXPR_NEST_MAX 14 -#define _SC_LINE_MAX 15 -#define _SC_RE_DUP_MAX 16 -#define _SC_2_VERSION 17 -#define _SC_2_C_BIND 18 -#define _SC_2_C_DEV 19 -#define _SC_2_CHAR_TERM 20 -#define _SC_2_FORT_DEV 21 -#define _SC_2_FORT_RUN 22 -#define _SC_2_LOCALEDEF 23 -#define _SC_2_SW_DEV 24 -#define _SC_2_UPE 25 -#define _SC_STREAM_MAX 26 -#define _SC_TZNAME_MAX 27 - -/* configurable system strings */ -#define _CS_PATH 1 - -#endif diff --git a/mit-pthreads/machdep/netbsd-1.1/compat.h b/mit-pthreads/machdep/netbsd-1.1/compat.h deleted file mode 100755 index f843795cc0a..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/compat.h +++ /dev/null @@ -1,43 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * compat.h,v 1.50 1994/08/08 03:44:05 proven Exp - * - * Description : COmpat header to make socket code compile. - * - * 1.00 94/08/01 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#endif diff --git a/mit-pthreads/machdep/netbsd-1.1/dirent.h b/mit-pthreads/machdep/netbsd-1.1/dirent.h deleted file mode 100755 index cf004a274d6..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/dirent.h +++ /dev/null @@ -1,95 +0,0 @@ -/* $NetBSD: dirent.h,v 1.12 1996/04/09 20:55:25 cgd Exp $ */ - -/*- - * Copyright (c) 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 8.3 (Berkeley) 8/10/94 - */ - -/* - * The dirent structure defines the format of directory entries returned by - * the getdirentries(2) system call. - * - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_int32_t d_fileno; /* file number of entry */ - u_int16_t d_reclen; /* length of this record */ - u_int8_t d_type; /* file type, see below */ - u_int8_t d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#ifdef PTHREAD_KERNEL -#define d_ino d_fileno -#endif - -/* - * File types - */ -#define DT_UNKNOWN 0 -#define DT_FIFO 1 -#define DT_CHR 2 -#define DT_DIR 4 -#define DT_BLK 6 -#define DT_REG 8 -#define DT_LNK 10 -#define DT_SOCK 12 -#define DT_WHT 14 - -/* - * Convert between stat structure types and directory types. - */ -#define IFTODT(mode) (((mode) & 0170000) >> 12) -#define DTTOIF(dirtype) ((dirtype) << 12) - -#if defined(_KERNEL) -/* - * The DIRENT_SIZE macro gives the minimum record length which will hold - * the directory entry. This requires the amount of space in struct dirent - * without the d_name field, plus enough space for the name with a terminating - * null byte (dp->d_namlen+1), rounded up to a 4 byte boundary. - */ -#define DIRENT_SIZE(dp) \ - ((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3)) - -#endif /* !_KERNEL */ diff --git a/mit-pthreads/machdep/netbsd-1.1/errno.h b/mit-pthreads/machdep/netbsd-1.1/errno.h deleted file mode 100755 index c313b578c5a..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/errno.h +++ /dev/null @@ -1,170 +0,0 @@ -/* $NetBSD: errno.h,v 1.10 1996/01/20 01:33:53 jtc Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)errno.h 8.5 (Berkeley) 1/21/94 - */ - -#ifndef _KERNEL -extern int errno; /* global error number */ - -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -extern int sys_nerr; -extern const char *const sys_errlist[]; -#endif -#endif - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* Input/output error */ -#define ENXIO 6 /* Device not configured */ -#define E2BIG 7 /* Argument list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file descriptor */ -#define ECHILD 10 /* No child processes */ -#define EDEADLK 11 /* Resource deadlock avoided */ - /* 11 was EAGAIN */ -#define ENOMEM 12 /* Cannot allocate memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -#ifndef _POSIX_SOURCE -#define ENOTBLK 15 /* Block device required */ -#endif -#define EBUSY 16 /* Device busy */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* Operation not supported by device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* Too many open files in system */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Inappropriate ioctl for device */ -#ifndef _POSIX_SOURCE -#define ETXTBSY 26 /* Text file busy */ -#endif -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ - -/* math software */ -#define EDOM 33 /* Numerical argument out of domain */ -#define ERANGE 34 /* Result too large */ - -/* non-blocking and interrupt i/o */ -#define EAGAIN 35 /* Resource temporarily unavailable */ -#ifndef _POSIX_SOURCE -#define EWOULDBLOCK EAGAIN /* Operation would block */ -#define EINPROGRESS 36 /* Operation now in progress */ -#define EALREADY 37 /* Operation already in progress */ - -/* ipc/network software -- argument errors */ -#define ENOTSOCK 38 /* Socket operation on non-socket */ -#define EDESTADDRREQ 39 /* Destination address required */ -#define EMSGSIZE 40 /* Message too long */ -#define EPROTOTYPE 41 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 42 /* Protocol not available */ -#define EPROTONOSUPPORT 43 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 44 /* Socket type not supported */ -#define EOPNOTSUPP 45 /* Operation not supported */ -#define EPFNOSUPPORT 46 /* Protocol family not supported */ -#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ -#define EADDRINUSE 48 /* Address already in use */ -#define EADDRNOTAVAIL 49 /* Can't assign requested address */ - -/* ipc/network software -- operational errors */ -#define ENETDOWN 50 /* Network is down */ -#define ENETUNREACH 51 /* Network is unreachable */ -#define ENETRESET 52 /* Network dropped connection on reset */ -#define ECONNABORTED 53 /* Software caused connection abort */ -#define ECONNRESET 54 /* Connection reset by peer */ -#define ENOBUFS 55 /* No buffer space available */ -#define EISCONN 56 /* Socket is already connected */ -#define ENOTCONN 57 /* Socket is not connected */ -#define ESHUTDOWN 58 /* Can't send after socket shutdown */ -#define ETOOMANYREFS 59 /* Too many references: can't splice */ -#define ETIMEDOUT 60 /* Operation timed out */ -#define ECONNREFUSED 61 /* Connection refused */ - -#define ELOOP 62 /* Too many levels of symbolic links */ -#endif /* _POSIX_SOURCE */ -#define ENAMETOOLONG 63 /* File name too long */ - -/* should be rearranged */ -#ifndef _POSIX_SOURCE -#define EHOSTDOWN 64 /* Host is down */ -#define EHOSTUNREACH 65 /* No route to host */ -#endif /* _POSIX_SOURCE */ -#define ENOTEMPTY 66 /* Directory not empty */ - -/* quotas & mush */ -#ifndef _POSIX_SOURCE -#define EPROCLIM 67 /* Too many processes */ -#define EUSERS 68 /* Too many users */ -#define EDQUOT 69 /* Disc quota exceeded */ - -/* Network File System */ -#define ESTALE 70 /* Stale NFS file handle */ -#define EREMOTE 71 /* Too many levels of remote in path */ -#define EBADRPC 72 /* RPC struct is bad */ -#define ERPCMISMATCH 73 /* RPC version wrong */ -#define EPROGUNAVAIL 74 /* RPC prog. not avail */ -#define EPROGMISMATCH 75 /* Program version wrong */ -#define EPROCUNAVAIL 76 /* Bad procedure for program */ -#endif /* _POSIX_SOURCE */ - -#define ENOLCK 77 /* No locks available */ -#define ENOSYS 78 /* Function not implemented */ - -#ifndef _POSIX_SOURCE -#define EFTYPE 79 /* Inappropriate file type or format */ -#define EAUTH 80 /* Authentication error */ -#define ENEEDAUTH 81 /* Need authenticator */ -#define ELAST 81 /* Must be equal largest errno */ -#endif /* _POSIX_SOURCE */ - -#ifdef _KERNEL -/* pseudo-errors returned inside kernel to modify return to process */ -#define ERESTART -1 /* restart syscall */ -#define EJUSTRETURN -2 /* don't modify regs, just return */ -#endif diff --git a/mit-pthreads/machdep/netbsd-1.1/time.h b/mit-pthreads/machdep/netbsd-1.1/time.h deleted file mode 100755 index a701db9c62e..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/time.h +++ /dev/null @@ -1,153 +0,0 @@ -/* $NetBSD: time.h,v 1.17 1996/02/01 00:10:36 jtc Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)time.h 8.2 (Berkeley) 7/10/94 - */ - -#ifndef _SYS_TIME_H_ -#define _SYS_TIME_H_ - -#include <sys/types.h> - -/* - * Structure returned by gettimeofday(2) system call, - * and used in other calls. - */ -struct timeval { - long tv_sec; /* seconds */ - long tv_usec; /* and microseconds */ -}; - -/* - * Structure defined by POSIX.1b to be like a timeval. - */ -struct timespec { - time_t tv_sec; /* seconds */ - long tv_nsec; /* and nanoseconds */ -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -struct timezone { - int tz_minuteswest; /* minutes west of Greenwich */ - int tz_dsttime; /* type of dst correction */ -}; -#define DST_NONE 0 /* not on dst */ -#define DST_USA 1 /* USA style dst */ -#define DST_AUST 2 /* Australian style dst */ -#define DST_WET 3 /* Western European dst */ -#define DST_MET 4 /* Middle European dst */ -#define DST_EET 5 /* Eastern European dst */ -#define DST_CAN 6 /* Canada */ - -/* Operations on timevals. */ -#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 -#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) -#define timercmp(tvp, uvp, cmp) \ - (((tvp)->tv_sec == (uvp)->tv_sec) ? \ - ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ - ((tvp)->tv_sec cmp (uvp)->tv_sec)) -#define timeradd(tvp, uvp, vvp) \ - do { \ - (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ - (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ - if ((vvp)->tv_usec >= 1000000) { \ - (vvp)->tv_sec++; \ - (vvp)->tv_usec -= 1000000; \ - } \ - } while (0) -#define timersub(tvp, uvp, vvp) \ - do { \ - (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ - (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ - if ((vvp)->tv_usec < 0) { \ - (vvp)->tv_sec--; \ - (vvp)->tv_usec += 1000000; \ - } \ - } while (0) - -/* - * Names of the interval timers, and structure - * defining a timer setting. - */ -#define ITIMER_REAL 0 -#define ITIMER_VIRTUAL 1 -#define ITIMER_PROF 2 - -struct itimerval { - struct timeval it_interval; /* timer interval */ - struct timeval it_value; /* current value */ -}; - -/* - * Getkerninfo clock information structure - */ -struct clockinfo { - int hz; /* clock frequency */ - int tick; /* micro-seconds per hz tick */ - int tickadj; /* clock skew rate for adjtime() */ - int stathz; /* statistics clock frequency */ - int profhz; /* profiling clock frequency */ -}; - -#ifdef _KERNEL -int itimerfix __P_((struct timeval *tv)); -int itimerdecr __P_((struct itimerval *itp, int usec)); -void microtime __P_((struct timeval *tv)); -#else /* !_KERNEL */ -#include <time.h> - -#ifndef _POSIX_SOURCE -#include <sys/cdefs.h> - -__BEGIN_DECLS -int adjtime __P_((const struct timeval *, struct timeval *)); -int getitimer __P_((int, struct itimerval *)); -int gettimeofday __P_((struct timeval *, struct timezone *)); -int setitimer __P_((int, const struct itimerval *, struct itimerval *)); -int settimeofday __P_((const struct timeval *, const struct timezone *)); -int utimes __P_((const char *, const struct timeval *)); -__END_DECLS -#endif /* !POSIX */ - -#endif /* !_KERNEL */ - -#endif /* !_SYS_TIME_H_ */ diff --git a/mit-pthreads/machdep/netbsd-1.1/timers.h b/mit-pthreads/machdep/netbsd-1.1/timers.h deleted file mode 100755 index b603b78e6b2..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/timers.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * timers.h,v 1.50 1994/08/08 03:44:09 proven Exp - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/time.h> - -#endif diff --git a/mit-pthreads/machdep/netbsd-1.1/wait.h b/mit-pthreads/machdep/netbsd-1.1/wait.h deleted file mode 100755 index 0a1e9285e56..00000000000 --- a/mit-pthreads/machdep/netbsd-1.1/wait.h +++ /dev/null @@ -1,163 +0,0 @@ -/* $NetBSD: wait.h,v 1.11 1996/04/09 20:55:51 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993, 1994 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)wait.h 8.2 (Berkeley) 7/10/94 - */ - -#ifndef _SYS_WAIT_H_ -#define _SYS_WAIT_H_ - -/* - * This file holds definitions relevent to the wait4 system call - * and the alternate interfaces that use it (wait, wait3, waitpid). - */ - -/* - * Macros to test the exit status returned by wait - * and extract the relevant values. - */ -#ifdef _POSIX_SOURCE -#define _W_INT(i) (i) -#else -#define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */ -#define WCOREFLAG 0200 -#endif - -#define _WSTATUS(x) (_W_INT(x) & 0177) -#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED) -#define WSTOPSIG(x) (_W_INT(x) >> 8) -#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) -#define WTERMSIG(x) (_WSTATUS(x)) -#define WIFEXITED(x) (_WSTATUS(x) == 0) -#define WEXITSTATUS(x) (_W_INT(x) >> 8) -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG) - -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED) -#endif - -/* - * Option bits for the third argument of wait4. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 1 /* don't hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE -/* POSIX extensions and 4.2/4.3 compatability: */ - -/* - * Tokens for special values of the "pid" parameter to wait4. - */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#include <machine/endian.h> - -/* - * Deprecated: - * Structure of the information in the status word returned by wait4. - * If w_stopval==WSTOPPED, then the second structure describes - * the information returned, else the first. - */ -union wait { - int w_status; /* used in syscall */ - /* - * Terminated process status. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Termsig:7, /* termination signal */ - w_Coredump:1, /* core dump indicator */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Coredump:1, /* core dump indicator */ - w_Termsig:7; /* termination signal */ -#endif - } w_T; - /* - * Stopped process status. Returned - * only for traced children unless requested - * with the WUNTRACED option bit. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Stopval:8, /* == W_STOPPED if stopped */ - w_Stopsig:8, /* signal that stopped us */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Stopsig:8, /* signal that stopped us */ - w_Stopval:8; /* == W_STOPPED if stopped */ -#endif - } w_S; -}; -#define w_termsig w_T.w_Termsig -#define w_coredump w_T.w_Coredump -#define w_retcode w_T.w_Retcode -#define w_stopval w_S.w_Stopval -#define w_stopsig w_S.w_Stopsig - -#define WSTOPPED _WSTOPPED -#endif /* _POSIX_SOURCE */ - -#ifndef _KERNEL -#include <sys/types.h> -#include <sys/cdefs.h> - -__BEGIN_DECLS -struct rusage; /* forward declaration */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -pid_t wait4 __P_((pid_t, int *, int, void *)); -#endif -__END_DECLS -#endif - -#endif /* !_SYS_WAIT_H_ */ diff --git a/mit-pthreads/machdep/openbsd-2.0/__math.h b/mit-pthreads/machdep/openbsd-2.0/__math.h deleted file mode 100755 index 27ed0f2575d..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/__math.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * ANSI/POSIX - */ -extern char __infinity[]; -#define HUGE_VAL (*(double *) __infinity) - diff --git a/mit-pthreads/machdep/openbsd-2.0/__path.h b/mit-pthreads/machdep/openbsd-2.0/__path.h deleted file mode 100755 index 432494daafa..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/__path.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__PATH_H_ -#define _SYS__PATH_H_ - -#define _PATH_PTY "/dev/" -#define _PATH_TZDIR "/usr/share/zoneinfo" -#define _PATH_TZFILE "/etc/localtime" - -#endif /* !_SYS__PATH_H_ */ - diff --git a/mit-pthreads/machdep/openbsd-2.0/__signal.h b/mit-pthreads/machdep/openbsd-2.0/__signal.h deleted file mode 100755 index 918955c9948..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/__signal.h +++ /dev/null @@ -1,8 +0,0 @@ -#include <sys/signal.h> - -#define __SIGEMPTYSET 0 -#define __SIGFILLSET 0xffffffff -#define __SIGADDSET(s, n) (*(s) |= 1 << ((n) - 1), 0) -#define __SIGDELSET(s, n) (*(s) &= ~(1 << ((n) - 1)), 0) -#define __SIGISMEMBER(s, n) ((*(s) & (1 << ((n) - 1))) != 0) - diff --git a/mit-pthreads/machdep/openbsd-2.0/__stdio.h b/mit-pthreads/machdep/openbsd-2.0/__stdio.h deleted file mode 100755 index d60b9df7a54..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/__stdio.h +++ /dev/null @@ -1,8 +0,0 @@ - -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -typedef pthread_fpos_t fpos_t; /* Must match off_t <sys/types.h> */ diff --git a/mit-pthreads/machdep/openbsd-2.0/__stdlib.h b/mit-pthreads/machdep/openbsd-2.0/__stdlib.h deleted file mode 100755 index 5ee2b8ed3d9..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/__stdlib.h +++ /dev/null @@ -1,66 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <machine/ansi.h> - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#ifdef _BSD_WCHAR_T_ -typedef _BSD_WCHAR_T_ wchar_t; -#ifdef _BSD_RUNE_T_ -typedef _BSD_RUNE_T_ rune_t; -#undef _BSD_RUNE_T_ -#else -typedef _BSD_WCHAR_T_ rune_t; -#endif -#undef _BSD_WCHAR_T_ -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif /* _STDLIB_H_ */ diff --git a/mit-pthreads/machdep/openbsd-2.0/__string.h b/mit-pthreads/machdep/openbsd-2.0/__string.h deleted file mode 100755 index 93d4fcf9dd2..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/__string.h +++ /dev/null @@ -1,21 +0,0 @@ - -#include <machine/ansi.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -/* Non-standard NetBSD string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -void strmode __P_((int, char *)); -char *strsep __P_((char **, const char *)); -__END_DECLS -#endif - diff --git a/mit-pthreads/machdep/openbsd-2.0/__time.h b/mit-pthreads/machdep/openbsd-2.0/__time.h deleted file mode 100755 index 5c4b722bc3c..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/__time.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__TIME_H_ -#define _SYS__TIME_H_ - -#include <machine/ansi.h> -#include <machine/limits.h> - -#ifdef _BSD_CLOCK_T_ -typedef _BSD_CLOCK_T_ clock_t; -#undef _BSD_CLOCK_T_ -#endif - -#ifdef _BSD_TIME_T_ -typedef _BSD_TIME_T_ time_t; -#undef _BSD_TIME_T_ -#endif - -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ -#endif - -#define CLOCKS_PER_SEC 100 - -#if !defined(CLK_TCK) -#define CLK_TCK 100 -#endif /* not CLK_TCK */ - -#endif /* !_SYS__TIME_H_ */ diff --git a/mit-pthreads/machdep/openbsd-2.0/__unistd.h b/mit-pthreads/machdep/openbsd-2.0/__unistd.h deleted file mode 100755 index 41244522461..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/__unistd.h +++ /dev/null @@ -1,109 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/types.h> - -#ifndef NULL -#define NULL 0 -#endif - -#define ioctl_request_type unsigned long /* For fd.c */ - -/* compile-time symbolic constants */ -#define _POSIX_JOB_CONTROL /* implementation supports job control */ - -#ifdef _NOT_AVAILABLE -#define _POSIX_SAVED_IDS /* saved set-user-ID and set-group-ID */ -#endif - -#define _POSIX_VERSION 198808L -#define _POSIX2_VERSION 199212L - -/* execution-time symbolic constants */ - /* chown requires appropriate privileges */ -#define _POSIX_CHOWN_RESTRICTED 1 - /* too-long path components generate errors */ -#define _POSIX_NO_TRUNC 1 - /* may disable terminal special characters */ -/* #define _POSIX_VDISABLE 0xff */ - -/* configurable pathname variables */ -#define _PC_LINK_MAX 1 -#define _PC_MAX_CANON 2 -#define _PC_MAX_INPUT 3 -#define _PC_NAME_MAX 4 -#define _PC_PATH_MAX 5 -#define _PC_PIPE_BUF 6 -#define _PC_CHOWN_RESTRICTED 7 -#define _PC_NO_TRUNC 8 -#define _PC_VDISABLE 9 - -/* configurable system variables */ -#define _SC_ARG_MAX 1 -#define _SC_CHILD_MAX 2 -#define _SC_CLK_TCK 3 -#define _SC_NGROUPS_MAX 4 -#define _SC_OPEN_MAX 5 -#define _SC_JOB_CONTROL 6 -#define _SC_SAVED_IDS 7 -#define _SC_VERSION 8 -#define _SC_BC_BASE_MAX 9 -#define _SC_BC_DIM_MAX 10 -#define _SC_BC_SCALE_MAX 11 -#define _SC_BC_STRING_MAX 12 -#define _SC_COLL_WEIGHTS_MAX 13 -#define _SC_EXPR_NEST_MAX 14 -#define _SC_LINE_MAX 15 -#define _SC_RE_DUP_MAX 16 -#define _SC_2_VERSION 17 -#define _SC_2_C_BIND 18 -#define _SC_2_C_DEV 19 -#define _SC_2_CHAR_TERM 20 -#define _SC_2_FORT_DEV 21 -#define _SC_2_FORT_RUN 22 -#define _SC_2_LOCALEDEF 23 -#define _SC_2_SW_DEV 24 -#define _SC_2_UPE 25 -#define _SC_STREAM_MAX 26 -#define _SC_TZNAME_MAX 27 - -/* configurable system strings */ -#define _CS_PATH 1 - -#endif diff --git a/mit-pthreads/machdep/openbsd-2.0/compat.h b/mit-pthreads/machdep/openbsd-2.0/compat.h deleted file mode 100755 index e7de318aa88..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/compat.h +++ /dev/null @@ -1,43 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : COmpat header to make socket code compile. - * - * 1.00 94/08/01 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#endif diff --git a/mit-pthreads/machdep/openbsd-2.0/dirent.h b/mit-pthreads/machdep/openbsd-2.0/dirent.h deleted file mode 100755 index 5226443f86b..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/dirent.h +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno /* backward compatibility */ - -/* definitions for library routines operating on directories. */ -#define DIRBLKSIZ 1024 - -#endif /* !_DIRENT_H_ */ diff --git a/mit-pthreads/machdep/openbsd-2.0/errno.h b/mit-pthreads/machdep/openbsd-2.0/errno.h deleted file mode 100755 index 3da61d692a3..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/errno.h +++ /dev/null @@ -1,160 +0,0 @@ -/* $NetBSD: errno.h,v 1.8 1994/06/29 06:44:02 cgd Exp $ */ - -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)errno.h 8.5 (Berkeley) 1/21/94 - */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* Input/output error */ -#define ENXIO 6 /* Device not configured */ -#define E2BIG 7 /* Argument list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file descriptor */ -#define ECHILD 10 /* No child processes */ -#define EDEADLK 11 /* Resource deadlock avoided */ - /* 11 was EAGAIN */ -#define ENOMEM 12 /* Cannot allocate memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -#ifndef _POSIX_SOURCE -#define ENOTBLK 15 /* Block device required */ -#endif -#define EBUSY 16 /* Device busy */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* Operation not supported by device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* Too many open files in system */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Inappropriate ioctl for device */ -#ifndef _POSIX_SOURCE -#define ETXTBSY 26 /* Text file busy */ -#endif -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ - -/* math software */ -#define EDOM 33 /* Numerical argument out of domain */ -#define ERANGE 34 /* Result too large */ - -/* non-blocking and interrupt i/o */ -#define EAGAIN 35 /* Resource temporarily unavailable */ -#ifndef _POSIX_SOURCE -#define EWOULDBLOCK EAGAIN /* Operation would block */ -#define EINPROGRESS 36 /* Operation now in progress */ -#define EALREADY 37 /* Operation already in progress */ - -/* ipc/network software -- argument errors */ -#define ENOTSOCK 38 /* Socket operation on non-socket */ -#define EDESTADDRREQ 39 /* Destination address required */ -#define EMSGSIZE 40 /* Message too long */ -#define EPROTOTYPE 41 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 42 /* Protocol not available */ -#define EPROTONOSUPPORT 43 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 44 /* Socket type not supported */ -#define EOPNOTSUPP 45 /* Operation not supported */ -#define EPFNOSUPPORT 46 /* Protocol family not supported */ -#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ -#define EADDRINUSE 48 /* Address already in use */ -#define EADDRNOTAVAIL 49 /* Can't assign requested address */ - -/* ipc/network software -- operational errors */ -#define ENETDOWN 50 /* Network is down */ -#define ENETUNREACH 51 /* Network is unreachable */ -#define ENETRESET 52 /* Network dropped connection on reset */ -#define ECONNABORTED 53 /* Software caused connection abort */ -#define ECONNRESET 54 /* Connection reset by peer */ -#define ENOBUFS 55 /* No buffer space available */ -#define EISCONN 56 /* Socket is already connected */ -#define ENOTCONN 57 /* Socket is not connected */ -#define ESHUTDOWN 58 /* Can't send after socket shutdown */ -#define ETOOMANYREFS 59 /* Too many references: can't splice */ -#define ETIMEDOUT 60 /* Operation timed out */ -#define ECONNREFUSED 61 /* Connection refused */ - -#define ELOOP 62 /* Too many levels of symbolic links */ -#endif /* _POSIX_SOURCE */ -#define ENAMETOOLONG 63 /* File name too long */ - -/* should be rearranged */ -#ifndef _POSIX_SOURCE -#define EHOSTDOWN 64 /* Host is down */ -#define EHOSTUNREACH 65 /* No route to host */ -#endif /* _POSIX_SOURCE */ -#define ENOTEMPTY 66 /* Directory not empty */ - -/* quotas & mush */ -#ifndef _POSIX_SOURCE -#define EPROCLIM 67 /* Too many processes */ -#define EUSERS 68 /* Too many users */ -#define EDQUOT 69 /* Disc quota exceeded */ - -/* Network File System */ -#define ESTALE 70 /* Stale NFS file handle */ -#define EREMOTE 71 /* Too many levels of remote in path */ -#define EBADRPC 72 /* RPC struct is bad */ -#define ERPCMISMATCH 73 /* RPC version wrong */ -#define EPROGUNAVAIL 74 /* RPC prog. not avail */ -#define EPROGMISMATCH 75 /* Program version wrong */ -#define EPROCUNAVAIL 76 /* Bad procedure for program */ -#endif /* _POSIX_SOURCE */ - -#define ENOLCK 77 /* No locks available */ -#define ENOSYS 78 /* Function not implemented */ - -#ifndef _POSIX_SOURCE -#define EFTYPE 79 /* Inappropriate file type or format */ -#define EAUTH 80 /* Authentication error */ -#define ENEEDAUTH 81 /* Need authenticator */ -#define ELAST 81 /* Must be equal largest errno */ -#endif /* _POSIX_SOURCE */ - -#endif diff --git a/mit-pthreads/machdep/openbsd-2.0/timers.h b/mit-pthreads/machdep/openbsd-2.0/timers.h deleted file mode 100755 index f9768c68c8f..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/timers.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/time.h> - -#endif diff --git a/mit-pthreads/machdep/openbsd-2.0/wait.h b/mit-pthreads/machdep/openbsd-2.0/wait.h deleted file mode 100755 index 7861e3fa180..00000000000 --- a/mit-pthreads/machdep/openbsd-2.0/wait.h +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (c) 1982, 1986, 1989, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)wait.h 8.1 (Berkeley) 6/2/93 - * $Id$ - */ - -#ifndef _SYS_WAIT_H_ -#define _SYS_WAIT_H_ - -/* - * This file holds definitions relevent to the wait4 system call - * and the alternate interfaces that use it (wait, wait3, waitpid). - */ - -/* - * Macros to test the exit status returned by wait - * and extract the relevant values. - */ -#ifdef _POSIX_SOURCE -#define _W_INT(i) (i) -#else -#define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */ -#define WCOREFLAG 0200 -#endif - -#define _WSTATUS(x) (_W_INT(x) & 0177) -#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED) -#define WSTOPSIG(x) (_W_INT(x) >> 8) -#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) -#define WTERMSIG(x) (_WSTATUS(x)) -#define WIFEXITED(x) (_WSTATUS(x) == 0) -#define WEXITSTATUS(x) (_W_INT(x) >> 8) -#ifndef _POSIX_SOURCE -#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG) - -#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED) -#endif - -/* - * Option bits for the third argument of wait4. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -#ifndef _POSIX_SOURCE -/* POSIX extensions and 4.2/4.3 compatability: */ - -/* - * Tokens for special values of the "pid" parameter to wait4. - */ -#define WAIT_ANY (-1) /* any process */ -#define WAIT_MYPGRP 0 /* any process in my process group */ - -#include <machine/endian.h> - -/* - * Deprecated: - * Structure of the information in the status word returned by wait4. - * If w_stopval==WSTOPPED, then the second structure describes - * the information returned, else the first. - */ -union wait { - int w_status; /* used in syscall */ - /* - * Terminated process status. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Termsig:7, /* termination signal */ - w_Coredump:1, /* core dump indicator */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Coredump:1, /* core dump indicator */ - w_Termsig:7; /* termination signal */ -#endif - } w_T; - /* - * Stopped process status. Returned - * only for traced children unless requested - * with the WUNTRACED option bit. - */ - struct { -#if BYTE_ORDER == LITTLE_ENDIAN - unsigned int w_Stopval:8, /* == W_STOPPED if stopped */ - w_Stopsig:8, /* signal that stopped us */ - w_Filler:16; /* upper bits filler */ -#endif -#if BYTE_ORDER == BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Stopsig:8, /* signal that stopped us */ - w_Stopval:8; /* == W_STOPPED if stopped */ -#endif - } w_S; -}; -#define w_termsig w_T.w_Termsig -#define w_coredump w_T.w_Coredump -#define w_retcode w_T.w_Retcode -#define w_stopval w_S.w_Stopval -#define w_stopsig w_S.w_Stopsig - -#define WSTOPPED _WSTOPPED -#endif /* _POSIX_SOURCE */ - -#ifndef KERNEL -#include <sys/types.h> -#include <sys/cdefs.h> - -__BEGIN_DECLS -struct rusage; /* forward declaration */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); -#ifndef _POSIX_SOURCE -pid_t wait3 __P_((int *, int, void *)); -pid_t wait4 __P_((pid_t, int *, int, void *)); -#endif -__END_DECLS -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-alpha-osf1.h b/mit-pthreads/machdep/posix-alpha-osf1.h deleted file mode 100644 index 1d8bb6c5c4b..00000000000 --- a/mit-pthreads/machdep/posix-alpha-osf1.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#define __WAIT_STATUS int * -#include <pthread/types.h> - -#endif diff --git a/mit-pthreads/machdep/posix-bsdi-1.1.h b/mit-pthreads/machdep/posix-bsdi-1.1.h deleted file mode 100644 index 4c56ea93a3b..00000000000 --- a/mit-pthreads/machdep/posix-bsdi-1.1.h +++ /dev/null @@ -1,34 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * $Id$ - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#define __NORETURN - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif - diff --git a/mit-pthreads/machdep/posix-bsdi-2.0.h b/mit-pthreads/machdep/posix-bsdi-2.0.h deleted file mode 100644 index 4c56ea93a3b..00000000000 --- a/mit-pthreads/machdep/posix-bsdi-2.0.h +++ /dev/null @@ -1,34 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * $Id$ - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#define __NORETURN - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif - diff --git a/mit-pthreads/machdep/posix-freebsd-1.1.h b/mit-pthreads/machdep/posix-freebsd-1.1.h deleted file mode 100644 index e1a00e9efd1..00000000000 --- a/mit-pthreads/machdep/posix-freebsd-1.1.h +++ /dev/null @@ -1,33 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * $Id$ - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#define __NORETURN - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-freebsd-2.0.h b/mit-pthreads/machdep/posix-freebsd-2.0.h deleted file mode 100644 index 7bad77aba02..00000000000 --- a/mit-pthreads/machdep/posix-freebsd-2.0.h +++ /dev/null @@ -1,31 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * $Id$ - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-hpux-10.20.h b/mit-pthreads/machdep/posix-hpux-10.20.h deleted file mode 100644 index c7ecb429e79..00000000000 --- a/mit-pthreads/machdep/posix-hpux-10.20.h +++ /dev/null @@ -1,23 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif - diff --git a/mit-pthreads/machdep/posix-hpux-9.03.h b/mit-pthreads/machdep/posix-hpux-9.03.h deleted file mode 100644 index c7ecb429e79..00000000000 --- a/mit-pthreads/machdep/posix-hpux-9.03.h +++ /dev/null @@ -1,23 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif - diff --git a/mit-pthreads/machdep/posix-i386-sco-3.2v5.h b/mit-pthreads/machdep/posix-i386-sco-3.2v5.h deleted file mode 100644 index ab91311612d..00000000000 --- a/mit-pthreads/machdep/posix-i386-sco-3.2v5.h +++ /dev/null @@ -1,35 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * posix-freebsd-2.0.h,v 1.1 1995/03/01 01:21:30 proven Exp - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __NORETURN -#define __NORETURN -#endif - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-irix-5.2.h b/mit-pthreads/machdep/posix-irix-5.2.h deleted file mode 100644 index d387bbbbf69..00000000000 --- a/mit-pthreads/machdep/posix-irix-5.2.h +++ /dev/null @@ -1,31 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1995 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an IRIX-5.2 system to a more or less POSIX system. - * - * $Id$ - * - * 1.00 95/06/01 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-linux-1.0.h b/mit-pthreads/machdep/posix-linux-1.0.h deleted file mode 100644 index 7f665d6b44a..00000000000 --- a/mit-pthreads/machdep/posix-linux-1.0.h +++ /dev/null @@ -1,31 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993, 1994 by Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Convert a Linux-1.0 system to a more or less POSIX system. - * Mostly POSIX already - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#define __INLINE extern inline -/* - * OK now do stuff to make the code compile. - * Every OS has its own prototypes for each function - */ -#ifdef malloc -#undef malloc -#endif - -#ifdef free -#undef free -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-linux-2.0.h b/mit-pthreads/machdep/posix-linux-2.0.h deleted file mode 100644 index 7f665d6b44a..00000000000 --- a/mit-pthreads/machdep/posix-linux-2.0.h +++ /dev/null @@ -1,31 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993, 1994 by Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Convert a Linux-1.0 system to a more or less POSIX system. - * Mostly POSIX already - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#define __INLINE extern inline -/* - * OK now do stuff to make the code compile. - * Every OS has its own prototypes for each function - */ -#ifdef malloc -#undef malloc -#endif - -#ifdef free -#undef free -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-netbsd-0.9.h b/mit-pthreads/machdep/posix-netbsd-0.9.h deleted file mode 100644 index 00ff2efa327..00000000000 --- a/mit-pthreads/machdep/posix-netbsd-0.9.h +++ /dev/null @@ -1,22 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * $Id$ - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#define __NORETURN - -#endif diff --git a/mit-pthreads/machdep/posix-netbsd-1.0.h b/mit-pthreads/machdep/posix-netbsd-1.0.h deleted file mode 100644 index 7bad77aba02..00000000000 --- a/mit-pthreads/machdep/posix-netbsd-1.0.h +++ /dev/null @@ -1,31 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * $Id$ - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-netbsd-1.1.h b/mit-pthreads/machdep/posix-netbsd-1.1.h deleted file mode 100644 index f4ff1dfae05..00000000000 --- a/mit-pthreads/machdep/posix-netbsd-1.1.h +++ /dev/null @@ -1,31 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * posix-netbsd-1.0.h,v 1.53 1995/02/17 03:41:34 proven Exp - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-openbsd-2.0.h b/mit-pthreads/machdep/posix-openbsd-2.0.h deleted file mode 100644 index 7bad77aba02..00000000000 --- a/mit-pthreads/machdep/posix-openbsd-2.0.h +++ /dev/null @@ -1,31 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * $Id$ - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-romp-bsd.h b/mit-pthreads/machdep/posix-romp-bsd.h deleted file mode 100644 index 7825622b064..00000000000 --- a/mit-pthreads/machdep/posix-romp-bsd.h +++ /dev/null @@ -1,33 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert a system to a more or less POSIX system. - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -#ifndef O_NONBLOCK -#ifdef FNDELAY -#define O_NONBLOCK FNDELAY -#endif -#endif - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY|O_RDWR|O_WRONLY) -#endif - -#ifndef S_ISREG -#define S_ISREG(x) ((x & S_IFMT) == S_IFREG) -#endif - -#ifndef ENOSYS -#define ENOSYS EINVAL -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> diff --git a/mit-pthreads/machdep/posix-sco-3.2v5.h b/mit-pthreads/machdep/posix-sco-3.2v5.h deleted file mode 100644 index ab91311612d..00000000000 --- a/mit-pthreads/machdep/posix-sco-3.2v5.h +++ /dev/null @@ -1,35 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * posix-freebsd-2.0.h,v 1.1 1995/03/01 01:21:30 proven Exp - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* More stuff for compiling */ -#if defined(__GNUC__) -#define __INLINE extern inline -#else -#define __INLINE static -#endif - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __NORETURN -#define __NORETURN -#endif - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-sunos-4.1.3.h b/mit-pthreads/machdep/posix-sunos-4.1.3.h deleted file mode 100644 index 719386bc558..00000000000 --- a/mit-pthreads/machdep/posix-sunos-4.1.3.h +++ /dev/null @@ -1,27 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Do the right thing for a sunos 4.1.3 system. - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -extern long strtol(); -extern unsigned long strtoul(); - -#endif diff --git a/mit-pthreads/machdep/posix-sunos-5.3.h b/mit-pthreads/machdep/posix-sunos-5.3.h deleted file mode 100644 index 9fb765d60c3..00000000000 --- a/mit-pthreads/machdep/posix-sunos-5.3.h +++ /dev/null @@ -1,22 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Do the right thing for a sunos 4.1.3 system. - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-sunos-5.5.h b/mit-pthreads/machdep/posix-sunos-5.5.h deleted file mode 100644 index 9fb765d60c3..00000000000 --- a/mit-pthreads/machdep/posix-sunos-5.5.h +++ /dev/null @@ -1,22 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Do the right thing for a sunos 4.1.3 system. - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/posix-ultrix-4.2.h b/mit-pthreads/machdep/posix-ultrix-4.2.h deleted file mode 100644 index f21aec23ea3..00000000000 --- a/mit-pthreads/machdep/posix-ultrix-4.2.h +++ /dev/null @@ -1,24 +0,0 @@ -/* ==== posix.h ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu - * - * $Id$ - * - * Description : Convert an Ultrix-4.2 system to a more or less POSIX system. - * - * 1.00 93/07/20 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_POSIX_H_ -#define _PTHREAD_POSIX_H_ - -#include <sys/cdefs.h> - -/* Make sure we have size_t defined */ -#include <pthread/types.h> - -#ifndef __WAIT_STATUS -#define __WAIT_STATUS int * -#endif - -#endif diff --git a/mit-pthreads/machdep/sunos-4.1.3/__math.h b/mit-pthreads/machdep/sunos-4.1.3/__math.h deleted file mode 100755 index 9de1dc6d4bd..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/__math.h +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Posix (actually ansi C) section - */ -#define HUGE_VAL (__infinity()) /* Produces IEEE Infinity. */ - diff --git a/mit-pthreads/machdep/sunos-4.1.3/__path.h b/mit-pthreads/machdep/sunos-4.1.3/__path.h deleted file mode 100755 index 2665b5a0e8a..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/__path.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * $Id$ - */ - -#ifndef _SYS__PATH_H_ -#define _SYS__PATH_H_ - -#define _PATH_PTY "/dev/" -#define _PATH_TZDIR "/usr/share/zoneinfo" -#define _PATH_TZFILE "localtime" - -#endif /* !_SYS__PATH_H_ */ diff --git a/mit-pthreads/machdep/sunos-4.1.3/__signal.h b/mit-pthreads/machdep/sunos-4.1.3/__signal.h deleted file mode 100755 index f8b4fb8b6de..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/__signal.h +++ /dev/null @@ -1,11 +0,0 @@ - -#include <sys/signal.h> -#include <sys/stdtypes.h> - -typedef int sig_atomic_t; - -#define __SIGFILLSET 0xffffffff -#define __SIGEMPTYSET 0 -#define __SIGADDSET(s,n) ((*s) |= (1 << ((n) - 1))) -#define __SIGDELSET(s,n) ((*s) &= ~(1 << ((n) - 1))) -#define __SIGISMEMBER(s,n) ((*s) & (1 << ((n) - 1))) diff --git a/mit-pthreads/machdep/sunos-4.1.3/__stdio.h b/mit-pthreads/machdep/sunos-4.1.3/__stdio.h deleted file mode 100755 index 6ca5e57396d..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/__stdio.h +++ /dev/null @@ -1,4 +0,0 @@ - -typedef pthread_fpos_t fpos_t; - -#include <sys/stdtypes.h> diff --git a/mit-pthreads/machdep/sunos-4.1.3/__stdlib.h b/mit-pthreads/machdep/sunos-4.1.3/__stdlib.h deleted file mode 100755 index 7bb9093c51c..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/__stdlib.h +++ /dev/null @@ -1,28 +0,0 @@ -/* $Id$ */ - -#ifndef __sys_stdtypes_h - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <sys/stdtypes.h> /* to get size_t */ - -#if (! defined _SIZE_T_ ) && (! defined(_GCC_SIZE_T)) -#define _SIZE_T_ -#define _GCC_SIZE_T -typedef pthread_size_t size_t; -#endif - -#if (! defined _WCHAR_T_ ) && (! defined(_GCC_WCHAR_T)) -#define _WCHAR_T_ -#define _GCC_WCHAR_T -typedef unsigned int wchar_t; -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif - -#endif diff --git a/mit-pthreads/machdep/sunos-4.1.3/__string.h b/mit-pthreads/machdep/sunos-4.1.3/__string.h deleted file mode 100755 index 0859a80cf24..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/__string.h +++ /dev/null @@ -1,14 +0,0 @@ - -#include <sys/stdtypes.h> - -/* Non-standard SunOS 4.x string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -char *strdup __P_((const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/sunos-4.1.3/__time.h b/mit-pthreads/machdep/sunos-4.1.3/__time.h deleted file mode 100755 index 1ffa0e47d3f..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/__time.h +++ /dev/null @@ -1,2 +0,0 @@ - -#include <sys/stdtypes.h> diff --git a/mit-pthreads/machdep/sunos-4.1.3/__unistd.h b/mit-pthreads/machdep/sunos-4.1.3/__unistd.h deleted file mode 100755 index 3b86527252c..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/__unistd.h +++ /dev/null @@ -1,73 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/cdefs.h> -#include <sys/types.h> - -#define _SC_ARG_MAX 1 /* space for argv & envp */ -#define _SC_CHILD_MAX 2 /* maximum children per process??? */ -#define _SC_CLK_TCK 3 /* clock ticks/sec */ -#define _SC_NGROUPS_MAX 4 /* number of groups if multple supp. */ -#define _SC_OPEN_MAX 5 /* max open files per process */ -#define _SC_JOB_CONTROL 6 /* do we have job control */ -#define _SC_SAVED_IDS 7 /* do we have saved uid/gids */ -#define _SC_VERSION 8 /* POSIX version supported */ - -#define _POSIX_JOB_CONTROL 1 -#define _POSIX_SAVED_IDS 1 -#define _POSIX_VERSION 198808 - -#define _PC_LINK_MAX 1 /* max links to file/dir */ -#define _PC_MAX_CANON 2 /* max line length */ -#define _PC_MAX_INPUT 3 /* max "packet" to a tty device */ -#define _PC_NAME_MAX 4 /* max pathname component length */ -#define _PC_PATH_MAX 5 /* max pathname length */ -#define _PC_PIPE_BUF 6 /* size of a pipe */ -#define _PC_CHOWN_RESTRICTED 7 /* can we give away files */ -#define _PC_NO_TRUNC 8 /* trunc or error on >NAME_MAX */ -#define _PC_VDISABLE 9 /* best char to shut off tty c_cc */ -#define _PC_LAST 9 /* highest value of any _PC_* */ - -#ifndef NULL -#define NULL 0 /* null pointer constant */ -#endif - -typedef int ssize_t; - -#endif diff --git a/mit-pthreads/machdep/sunos-4.1.3/cdefs.h b/mit-pthreads/machdep/sunos-4.1.3/cdefs.h deleted file mode 100755 index a059fa3d3fc..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/cdefs.h +++ /dev/null @@ -1,61 +0,0 @@ -/* ==== cdefs.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Similar to the BSD cdefs.h file. - * - * 1.00 94/01/26 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -/* Stuff for compiling */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __INLINE static inline -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __INLINE extern inline -#define __CAN_DO_EXTERN_INLINE -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#endif -#else /* !__GNUC__ */ -#define __BEGIN_DECLS -#define __END_DECLS -#define __INLINE static -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#ifndef _U_INT32_T_ -#define _U_INT32_T_ -typedef unsigned int u_int32_t; -#endif - -#ifndef _U_INT16_T_ -#define _U_INT16_T_ -typedef unsigned short u_int16_t; -#endif - -#ifndef _INT32_T_ -#define _INT32_T_ -typedef int int32_t; -#endif - -#ifndef _INT16_T_ -#define _INT16_T_ -typedef short int16_t; -#endif - -#endif diff --git a/mit-pthreads/machdep/sunos-4.1.3/compat.h b/mit-pthreads/machdep/sunos-4.1.3/compat.h deleted file mode 100755 index b2a846d00ee..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/compat.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/sunos-4.1.3/dirent.h b/mit-pthreads/machdep/sunos-4.1.3/dirent.h deleted file mode 100755 index c2048b1741c..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/dirent.h +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - off_t d_off; /* offset of next disk dir entry */ - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno - -#endif /* !_SYS_DIRENT_H_ */ - - diff --git a/mit-pthreads/machdep/sunos-4.1.3/fcntlcom.h b/mit-pthreads/machdep/sunos-4.1.3/fcntlcom.h deleted file mode 100755 index 2b7acce7696..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/fcntlcom.h +++ /dev/null @@ -1,163 +0,0 @@ -/* @(#)fcntlcom.h 1.13 91/06/18 SMI; from UCB fcntl.h 5.2 1/8/86 */ - -/* - * Copyright (c) 1983 Regents of the University of California. - * All rights reserved. The Berkeley software License Agreement - * specifies the terms and conditions for redistribution. - */ - -#ifndef __sys_fcntlcom_h -#define __sys_fcntlcom_h - -#include <sys/cdefs.h> - -/* - * Rewack the FXXXXX values as _FXXXX so that _POSIX_SOURCE works. - */ -#define _FOPEN (-1) /* from sys/file.h, kernel use only */ -#define _FREAD 0x0001 /* read enabled */ -#define _FWRITE 0x0002 /* write enabled */ -#define _FNDELAY 0x0004 /* non blocking I/O (4.2 style) */ -#define _FAPPEND 0x0008 /* append (writes guaranteed at the end) */ -#define _FSETBLK 0x0010 /* use block offsets */ -#define _FASYNC 0x0040 /* signal pgrp when data ready */ -#define _FSHLOCK 0x0080 /* BSD flock() shared lock present */ -#define _FEXLOCK 0x0100 /* BSD flock() exclusive lock present */ -#define _FCREAT 0x0200 /* open with file create */ -#define _FTRUNC 0x0400 /* open with truncation */ -#define _FEXCL 0x0800 /* error on open if file exists */ -#define _FNBIO 0x1000 /* non blocking I/O (sys5 style) */ -#define _FSYNC 0x2000 /* do all writes synchronously */ -#define _FNONBLOCK 0x4000 /* non blocking I/O (POSIX style) */ -#define _FNOCTTY 0x8000 /* don't assign a ctty on this open */ -#define _FMARK 0x10000 /* internal; mark during gc() */ -#define _FDEFER 0x20000 /* internal; defer for next gc pass */ - -#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR) - -/* - * Flag values for open(2) and fcntl(2) - * The kernel adds 1 to the open modes to turn it into some - * combination of FREAD and FWRITE. - */ -#define O_RDONLY 0 /* +1 == FREAD */ -#define O_WRONLY 1 /* +1 == FWRITE */ -#define O_RDWR 2 /* +1 == FREAD|FWRITE */ -#define O_APPEND _FAPPEND -#define O_CREAT _FCREAT -#define O_TRUNC _FTRUNC -#define O_EXCL _FEXCL -/* O_SYNC _FSYNC not posix, defined below */ -/* O_NDELAY _FNDELAY set in include/fcntl.h */ -/* O_NDELAY _FNBIO set in 5include/fcntl.h */ -#define O_NONBLOCK _FNONBLOCK -#define O_NOCTTY _FNOCTTY - -#ifndef _POSIX_SOURCE - -#define O_SYNC _FSYNC - -/* - * Flags that work for fcntl(fd, F_SETFL, FXXXX) - */ -#define FAPPEND _FAPPEND -#define FSYNC _FSYNC -#define FASYNC _FASYNC -#define FNBIO _FNBIO -#define FNONBIO _FNONBLOCK /* XXX fix to be NONBLOCK everywhere */ -#define FNDELAY _FNDELAY - -/* - * Flags that are disallowed for fcntl's (FCNTLCANT); - * used for opens, internal state, or locking. - */ -#define FREAD _FREAD -#define FWRITE _FWRITE -#define FMARK _FMARK -#define FDEFER _FDEFER -#define FSETBLK _FSETBLK -#define FSHLOCK _FSHLOCK -#define FEXLOCK _FEXLOCK - -/* - * The rest of the flags, used only for opens - */ -#define FOPEN _FOPEN -#define FCREAT _FCREAT -#define FTRUNC _FTRUNC -#define FEXCL _FEXCL -#define FNOCTTY _FNOCTTY - -#endif !_POSIX_SOURCE - -/* XXX close on exec request; must match UF_EXCLOSE in user.h */ -#define FD_CLOEXEC 1 /* posix */ - -/* fcntl(2) requests */ -#define F_DUPFD 0 /* Duplicate fildes */ -#define F_GETFD 1 /* Get fildes flags (close on exec) */ -#define F_SETFD 2 /* Set fildes flags (close on exec) */ -#define F_GETFL 3 /* Get file flags */ -#define F_SETFL 4 /* Set file flags */ -#ifndef _POSIX_SOURCE -#define F_GETOWN 5 /* Get owner - for ASYNC */ -#define F_SETOWN 6 /* Set owner - for ASYNC */ -#endif /* !_POSIX_SOURCE */ -#define F_GETLK 7 /* Get record-locking information */ -#define F_SETLK 8 /* Set or Clear a record-lock (Non-Blocking) */ -#define F_SETLKW 9 /* Set or Clear a record-lock (Blocking) */ -#ifndef _POSIX_SOURCE -#define F_RGETLK 10 /* Test a remote lock to see if it is blocked */ -#define F_RSETLK 11 /* Set or unlock a remote lock */ -#define F_CNVT 12 /* Convert a fhandle to an open fd */ -#define F_RSETLKW 13 /* Set or Clear remote record-lock(Blocking) */ -#endif /* !_POSIX_SOURCE */ - -/* fcntl(2) flags (l_type field of flock structure) */ -#define F_RDLCK 1 /* read lock */ -#define F_WRLCK 2 /* write lock */ -#define F_UNLCK 3 /* remove lock(s) */ -#ifndef _POSIX_SOURCE -#define F_UNLKSYS 4 /* remove remote locks for a given system */ -#endif /* !_POSIX_SOURCE */ - -#include <sys/stdtypes.h> - -/* file segment locking set data type - information passed to system by user */ -struct flock { - short l_type; /* F_RDLCK, F_WRLCK, or F_UNLCK */ - short l_whence; /* flag to choose starting offset */ - long l_start; /* relative offset, in bytes */ - long l_len; /* length, in bytes; 0 means lock to EOF */ - short l_pid; /* returned with F_GETLK */ - short l_xxx; /* reserved for future use */ -}; - -#ifndef _POSIX_SOURCE -/* extended file segment locking set data type */ -struct eflock { - short l_type; /* F_RDLCK, F_WRLCK, or F_UNLCK */ - short l_whence; /* flag to choose starting offset */ - long l_start; /* relative offset, in bytes */ - long l_len; /* length, in bytes; 0 means lock to EOF */ - short l_pid; /* returned with F_GETLK */ - short l_xxx; /* reserved for future use */ - long l_rpid; /* Remote process id wanting this lock */ - long l_rsys; /* Remote system id wanting this lock */ -}; -#endif /* !_POSIX_SOURCE */ - -#ifndef KERNEL -#include <sys/stat.h> /* sigh. for the mode bits for open/creat */ -#include <sys/cdefs.h> - -__BEGIN_DECLS - -int open __P_((const char *path, int flags, ...)); -int creat __P_((const char *path, mode_t modes)); -int fcntl __P_((int fd, int cmd, ...)); - -__END_DECLS - -#endif /* !KERNEL */ -#endif /* !__sys_fcntlcom_h */ diff --git a/mit-pthreads/machdep/sunos-4.1.3/signal.h b/mit-pthreads/machdep/sunos-4.1.3/signal.h deleted file mode 100755 index 02a19860922..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/signal.h +++ /dev/null @@ -1,98 +0,0 @@ -#ifndef __sys_signal_h -#define __sys_signal_h - -#define NSIG 32 - -/* - * If any signal defines (SIG*) are added, deleted, or changed, the same - * changes must be made in /usr/include/signal.h as well. - */ -#define SIGHUP 1 /* hangup */ -#define SIGINT 2 /* interrupt */ -#define SIGQUIT 3 /* quit */ -#define SIGILL 4 /* illegal instruction (not reset when caught) */ -#define SIGTRAP 5 /* trace trap (not reset when caught) */ -#define SIGIOT 6 /* IOT instruction */ -#define SIGABRT 6 /* used by abort, replace SIGIOT in the future */ -#define SIGEMT 7 /* EMT instruction */ -#define SIGFPE 8 /* floating point exception */ -#define SIGKILL 9 /* kill (cannot be caught or ignored) */ -#define SIGBUS 10 /* bus error */ -#define SIGSEGV 11 /* segmentation violation */ -#define SIGSYS 12 /* bad argument to system call */ -#define SIGPIPE 13 /* write on a pipe with no one to read it */ -#define SIGALRM 14 /* alarm clock */ -#define SIGTERM 15 /* software termination signal from kill */ -#define SIGURG 16 /* urgent condition on IO channel */ -#define SIGSTOP 17 /* sendable stop signal not from tty */ -#define SIGTSTP 18 /* stop signal from tty */ -#define SIGCONT 19 /* continue a stopped process */ -#define SIGCHLD 20 /* to parent on child stop or exit */ -#define SIGCLD 20 /* System V name for SIGCHLD */ -#define SIGTTIN 21 /* to readers pgrp upon background tty read */ -#define SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */ -#define SIGIO 23 /* input/output possible signal */ -#define SIGPOLL SIGIO /* System V name for SIGIO */ -#define SIGXCPU 24 /* exceeded CPU time limit */ -#define SIGXFSZ 25 /* exceeded file size limit */ -#define SIGVTALRM 26 /* virtual time alarm */ -#define SIGPROF 27 /* profiling time alarm */ -#define SIGWINCH 28 /* window changed */ -#define SIGLOST 29 /* resource lost (eg, record-lock lost) */ -#define SIGUSR1 30 /* user defined signal 1 */ -#define SIGUSR2 31 /* user defined signal 2 */ - -struct sigvec { - void (*sv_handler)(); /* signal handler */ - int sv_mask; /* signal mask to apply */ - int sv_flags; /* see signal options below */ -}; -#define SV_ONSTACK 0x0001 /* take signal on signal stack */ -#define SV_INTERRUPT 0x0002 /* do not restart system on signal return */ -#define SV_RESETHAND 0x0004 /* reset signal handler to SIG_DFL when signal taken */ -/* - * If any SA_NOCLDSTOP or SV_NOCLDSTOP is change, the same - * changes must be made in /usr/include/signal.h as well. - */ -#define SV_NOCLDSTOP 0x0008 /* don't send a SIGCHLD on child stop */ -#define SA_ONSTACK SV_ONSTACK -#define SA_INTERRUPT SV_INTERRUPT -#define SA_RESETHAND SV_RESETHAND - -#define SA_NOCLDSTOP SV_NOCLDSTOP -#define sv_onstack sv_flags /* isn't compatibility wonderful! */ - -/* - * If SIG_ERR, SIG_DFL, SIG_IGN, or SIG_HOLD are changed, the same changes - * must be made in /usr/include/signal.h as well. - */ -#define SIG_ERR (void (*)())-1 -#define SIG_DFL (void (*)())0 -#define SIG_IGN (void (*)())1 - -/* - * Macro for converting signal number to a mask suitable for sigblock(). - */ -#define sigmask(m) (1 << ((m)-1)) - -/* - * If SIG_BLOCK, SIG_UNBLOCK, or SIG_SETMASK are changed, the same changes - * must be made in /usr/include/signal.h as well. - */ -#define SIG_BLOCK 0x0001 -#define SIG_UNBLOCK 0x0002 -#define SIG_SETMASK 0x0004 - -/* - * If changes are made to sigset_t or struct sigaction, the same changes - * must be made in /usr/include/signal.h as well. - */ -#include <sys/stdtypes.h> - -struct sigaction { - void (*sa_handler)(); - sigset_t sa_mask; - int sa_flags; -}; - -#endif /* !__sys_signal_h */ diff --git a/mit-pthreads/machdep/sunos-4.1.3/stat.h b/mit-pthreads/machdep/sunos-4.1.3/stat.h deleted file mode 100755 index 35e7f760204..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/stat.h +++ /dev/null @@ -1,94 +0,0 @@ -/* @(#)stat.h 2.19 90/01/24 SMI; from UCB 4.7 83/05/21 */ - -/* - * NOTE: changes to this file should also be made to xpg2include/sys/stat.h - */ - -#ifndef __sys_stat_h -#define __sys_stat_h - -#include <sys/cdefs.h> -#include <sys/types.h> - -struct stat { - dev_t st_dev; - ino_t st_ino; - mode_t st_mode; - short st_nlink; - uid_t st_uid; - gid_t st_gid; - dev_t st_rdev; - off_t st_size; - time_t st_atime; - int st_spare1; - time_t st_mtime; - int st_spare2; - time_t st_ctime; - int st_spare3; - long st_blksize; - long st_blocks; - long st_spare4[2]; -}; - -#define _IFMT 0170000 /* type of file */ -#define _IFDIR 0040000 /* directory */ -#define _IFCHR 0020000 /* character special */ -#define _IFBLK 0060000 /* block special */ -#define _IFREG 0100000 /* regular */ -#define _IFLNK 0120000 /* symbolic link */ -#define _IFSOCK 0140000 /* socket */ -#define _IFIFO 0010000 /* fifo */ - -#define S_ISUID 0004000 /* set user id on execution */ -#define S_ISGID 0002000 /* set group id on execution */ -#ifndef _POSIX_SOURCE -#define S_ISVTX 0001000 /* save swapped text even after use */ -#define S_IREAD 0000400 /* read permission, owner */ -#define S_IWRITE 0000200 /* write permission, owner */ -#define S_IEXEC 0000100 /* execute/search permission, owner */ - -#define S_ENFMT 0002000 /* enforcement-mode locking */ - -#define S_IFMT _IFMT -#define S_IFDIR _IFDIR -#define S_IFCHR _IFCHR -#define S_IFBLK _IFBLK -#define S_IFREG _IFREG -#define S_IFLNK _IFLNK -#define S_IFSOCK _IFSOCK -#define S_IFIFO _IFIFO -#endif !_POSIX_SOURCE - -#define S_IRWXU 0000700 /* rwx, owner */ -#define S_IRUSR 0000400 /* read permission, owner */ -#define S_IWUSR 0000200 /* write permission, owner */ -#define S_IXUSR 0000100 /* execute/search permission, owner */ -#define S_IRWXG 0000070 /* rwx, group */ -#define S_IRGRP 0000040 /* read permission, group */ -#define S_IWGRP 0000020 /* write permission, grougroup */ -#define S_IXGRP 0000010 /* execute/search permission, group */ -#define S_IRWXO 0000007 /* rwx, other */ -#define S_IROTH 0000004 /* read permission, other */ -#define S_IWOTH 0000002 /* write permission, other */ -#define S_IXOTH 0000001 /* execute/search permission, other */ - -#define S_ISBLK(m) (((m)&_IFMT) == _IFBLK) -#define S_ISCHR(m) (((m)&_IFMT) == _IFCHR) -#define S_ISDIR(m) (((m)&_IFMT) == _IFDIR) -#define S_ISFIFO(m) (((m)&_IFMT) == _IFIFO) -#define S_ISREG(m) (((m)&_IFMT) == _IFREG) -#ifndef _POSIX_SOURCE -#define S_ISLNK(m) (((m)&_IFMT) == _IFLNK) -#define S_ISSOCK(m) (((m)&_IFMT) == _IFSOCK) -#endif - -__BEGIN_DECLS -int chmod __P_((const char *path, mode_t mode)); -int fstat __P_((int fd, struct stat *sbuf)); -int mkdir __P_((char *path, mode_t mode)); -int mkfifo __P_((char *path, mode_t mode)); -int stat __P_((const char *path, struct stat *sbuf)); -mode_t umask __P_((mode_t mask)); -__END_DECLS - -#endif /* !__sys_stat_h */ diff --git a/mit-pthreads/machdep/sunos-4.1.3/time.h b/mit-pthreads/machdep/sunos-4.1.3/time.h deleted file mode 100755 index 20bb085e4d8..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/time.h +++ /dev/null @@ -1,69 +0,0 @@ -/* @(#)time.h 2.12 91/05/22 SMI; from UCB 7.1 6/4/86 */ - -/* - * Copyright (c) 1982, 1986 Regents of the University of California. - * All rights reserved. The Berkeley software License Agreement - * specifies the terms and conditions for redistribution. - */ - -#ifndef _SYS_TIME_H_ -#define _SYS_TIME_H_ - -#include <sys/cdefs.h> -/* - * Structure returned by gettimeofday(2) system call, - * and used in other calls. - */ - -struct timeval { - long tv_sec; /* seconds */ - long tv_usec; /* and microseconds */ -}; - -struct timezone { - int tz_minuteswest; /* minutes west of Greenwich */ - int tz_dsttime; /* type of dst correction */ -}; - -#define DST_NONE 0 /* not on dst */ -#define DST_USA 1 /* USA style dst */ -#define DST_AUST 2 /* Australian style dst */ -#define DST_WET 3 /* Western European dst */ -#define DST_MET 4 /* Middle European dst */ -#define DST_EET 5 /* Eastern European dst */ -#define DST_CAN 6 /* Canada */ -#define DST_GB 7 /* Great Britain and Eire */ -#define DST_RUM 8 /* Rumania */ -#define DST_TUR 9 /* Turkey */ -#define DST_AUSTALT 10 /* Australian style with shift in 1986 */ - -/* - * Operations on timevals. - * - * NB: timercmp does not work for >= or <=. - */ -#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) -#define timercmp(tvp, uvp, cmp) \ - ((tvp)->tv_sec cmp (uvp)->tv_sec || \ - (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec) -#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 - -/* - * Names of the interval timers, and structure - * defining a timer setting. - */ -#define ITIMER_REAL 0 -#define ITIMER_VIRTUAL 1 -#define ITIMER_PROF 2 - -struct itimerval { - struct timeval it_interval; /* timer interval */ - struct timeval it_value; /* current value */ -}; - -__BEGIN_DECLS -int gettimeofday __P_((struct timeval *, struct timezone *)); -__END_DECLS - - -#endif diff --git a/mit-pthreads/machdep/sunos-4.1.3/timers.h b/mit-pthreads/machdep/sunos-4.1.3/timers.h deleted file mode 100755 index 3c4d057976a..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/timers.h +++ /dev/null @@ -1,68 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/types.h> -#include <time.h> - -struct timespec { - time_t tv_sec; - long tv_nsec; -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/sunos-4.1.3/wait.h b/mit-pthreads/machdep/sunos-4.1.3/wait.h deleted file mode 100755 index 97f5fb261f7..00000000000 --- a/mit-pthreads/machdep/sunos-4.1.3/wait.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef _SYS_WAIT_H_ -#define _SYS_WAIT_H_ - -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); - -#define _W_INT(i) (i) -#define WCOREFLAG 0200 - -#define _WSTATUS(x) (_W_INT(x) & 0177) -#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */ -#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED) -#define WSTOPSIG(x) (_W_INT(x) >> 8) -#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) -#define WTERMSIG(x) (_WSTATUS(x)) -#define WIFEXITED(x) (_WSTATUS(x) == 0) -#define WEXITSTATUS(x) (_W_INT(x) >> 8) - -#endif /* _SYS_WAIT_H_ */ diff --git a/mit-pthreads/machdep/sunos-5.3/__math.h b/mit-pthreads/machdep/sunos-5.3/__math.h deleted file mode 100755 index 5404b52c661..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/__math.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * ANSI/POSIX - */ -typedef union _h_val { - unsigned long _i[2]; - double _d; -} _h_val; - -#ifdef __STDC__ -extern const _h_val __huge_val; -#else -extern _h_val __huge_val; -#endif - -#define HUGE_VAL __huge_val._d - diff --git a/mit-pthreads/machdep/sunos-5.3/__signal.h b/mit-pthreads/machdep/sunos-5.3/__signal.h deleted file mode 100755 index 638c1ca7331..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/__signal.h +++ /dev/null @@ -1,19 +0,0 @@ -#include <sys/feature_tests.h> -#include <sys/signal.h> - -/* -typedef struct { - unsigned long __sigbits[4]; -} sigset_t; -*/ - -typedef int sig_atomic_t; - -#define sigmask(n) ((unsigned int)1 << (((n) - 1) & (32 - 1))) -#define sigword(n) (((unsigned int)((n) - 1))>>5) - -#define __SIGEMPTYSET { 0, 0, 0, 0 }; -#define __SIGFILLSET { 0xffffffff,0xffffffff,0xffffffff,0xffffffff }; -#define __SIGADDSET(s, n) ((s)->__sigbits[sigword(n)] |= sigmask(n)) -#define __SIGDELSET(s, n) ((s)->__sigbits[sigword(n)] &= ~sigmask(n)) -#define __SIGISMEMBER(s, n) (sigmask(n) & (s)->__sigbits[sigword(n)]) diff --git a/mit-pthreads/machdep/sunos-5.3/__stdio.h b/mit-pthreads/machdep/sunos-5.3/__stdio.h deleted file mode 100755 index 4dd4becdbe9..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/__stdio.h +++ /dev/null @@ -1,6 +0,0 @@ -typedef pthread_fpos_t fpos_t; - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif diff --git a/mit-pthreads/machdep/sunos-5.3/__stdlib.h b/mit-pthreads/machdep/sunos-5.3/__stdlib.h deleted file mode 100755 index a0717ce3c2b..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/__stdlib.h +++ /dev/null @@ -1,27 +0,0 @@ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <sys/feature_tests.h> - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif - -#ifndef _UID_T -#define _UID_T -typedef long uid_t; -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#ifndef _WCHAR_T -#define _WCHAR_T -typedef long wchar_t; -#endif - - -#endif diff --git a/mit-pthreads/machdep/sunos-5.3/__string.h b/mit-pthreads/machdep/sunos-5.3/__string.h deleted file mode 100755 index 9cb12a07bb7..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/__string.h +++ /dev/null @@ -1,12 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -/* Non-standard NetBSD string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -char *strdup __P_((const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/sunos-5.3/__time.h b/mit-pthreads/machdep/sunos-5.3/__time.h deleted file mode 100755 index 231e997acfa..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/__time.h +++ /dev/null @@ -1,69 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : System specific time header. - * - * 1.00 94/11/07 proven - * -Started coding this file. - */ - -#ifndef _SYS___TIME_H_ -#define _SYS___TIME_H_ - -#include <sys/feature_tests.h> - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned size_t; -#endif -#ifndef _CLOCK_T -#define _CLOCK_T -typedef long clock_t; -#endif -#ifndef _TIME_T -#define _TIME_T -typedef long time_t; -#endif -#ifndef _CLOCKID_T -#define _CLOCKID_T -typedef int clockid_t; -#endif -#ifndef _TIMER_T -#define _TIMER_T -typedef int timer_t; -#endif - -#include <sys/time.h> -#include <sys/siginfo.h> - -#endif diff --git a/mit-pthreads/machdep/sunos-5.3/__unistd.h b/mit-pthreads/machdep/sunos-5.3/__unistd.h deleted file mode 100755 index 4e83a863735..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/__unistd.h +++ /dev/null @@ -1,47 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/types.h> -#include <sys/unistd.h> - -#ifndef NULL -#define NULL 0 -#endif - -#endif diff --git a/mit-pthreads/machdep/sunos-5.3/cdefs.h b/mit-pthreads/machdep/sunos-5.3/cdefs.h deleted file mode 100755 index f95f7b36958..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/cdefs.h +++ /dev/null @@ -1,59 +0,0 @@ -/* ==== cdefs.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Similar to the BSD cdefs.h file. - * - * 1.00 94/01/26 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -/* Stuff for compiling */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __INLINE static inline -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __INLINE extern inline -#define __CAN_DO_EXTERN_INLINE -#define __BEGIN_DECLS -#define __END_DECLS -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#else /* !__GNUC__ */ -#define __BEGIN_DECLS -#define __END_DECLS -#define __INLINE static -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#ifndef _U_INT32_T_ -#define _U_INT32_T_ -typedef unsigned int u_int32_t; -#endif - -#ifndef _U_INT16_T_ -#define _U_INT16_T_ -typedef unsigned short u_int16_t; -#endif - -#ifndef _INT32_T_ -#define _INT32_T_ -typedef int int32_t; -#endif - -#ifndef _INT16_T_ -#define _INT16_T_ -typedef short int16_t; -#endif - -#endif diff --git a/mit-pthreads/machdep/sunos-5.3/compat.h b/mit-pthreads/machdep/sunos-5.3/compat.h deleted file mode 100755 index b2a846d00ee..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/compat.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/sunos-5.3/dirent.h b/mit-pthreads/machdep/sunos-5.3/dirent.h deleted file mode 100755 index 303d3d7df2b..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/dirent.h +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - off_t d_off; /* offset of next disk dir entry */ - u_short d_reclen; /* length of this record */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_namlen d_reclen -#define d_ino d_fileno - -#endif /* !_SYS_DIRENT_H_ */ - - diff --git a/mit-pthreads/machdep/sunos-5.3/socket.h b/mit-pthreads/machdep/sunos-5.3/socket.h deleted file mode 100755 index 0b075622fed..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/socket.h +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (c) 1982, 1985, 1986 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * @(#)socket.h 7.3 (Berkeley) 6/27/88 - */ - -#ifndef _SYS_SOCKET_H -#define _SYS_SOCKET_H - -/* - * Types of sockets - */ -#define SOCK_STREAM 2 /* stream socket */ -#define SOCK_DGRAM 1 /* datagram socket */ -#define SOCK_RAW 4 /* raw-protocol interface */ -#define SOCK_RDM 5 /* reliably-delivered message */ -#define SOCK_SEQPACKET 6 /* sequenced packet stream */ - -/* - * Option flags per-socket. - */ -#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ - -/* - * Additional options, not kept in so_options. - */ -#define SO_SNDBUF 0x1001 /* send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ -#define SO_PROTOTYPE 0x1009 /* get/set protocol type */ - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xffff /* options for socket level */ - -/* - * Address families. - */ -#define AF_UNSPEC 0 /* unspecified */ -#define AF_UNIX 1 /* local to host (pipes, portals) */ -#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -#define AF_IMPLINK 3 /* arpanet imp addresses */ -#define AF_PUP 4 /* pup protocols: e.g. BSP */ -#define AF_CHAOS 5 /* mit CHAOS protocols */ -#define AF_NS 6 /* XEROX NS protocols */ -#define AF_NBS 7 /* nbs protocols */ -#define AF_ECMA 8 /* european computer manufacturers */ -#define AF_DATAKIT 9 /* datakit protocols */ -#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -#define AF_SNA 11 /* IBM SNA */ -#define AF_DECnet 12 /* DECnet */ -#define AF_DLI 13 /* Direct data link interface */ -#define AF_LAT 14 /* LAT */ -#define AF_HYLINK 15 /* NSC Hyperchannel */ -#define AF_APPLETALK 16 /* Apple Talk */ -#define AF_NIT 17 /* NIT */ -#define AF_802 18 /* IEEE 802.2, also ISO 8802 */ -#define AF_ISO 19 /* ISO protocols */ -#define AF_OSI AF_ISO -#define AF_X25 20 /* CCITT X.25 in particular */ -#define AF_OSINET 21 -#define AF_GOSIP 22 -#define AF_MAX 22 - -/* - * Structure used by kernel to store most - * addresses. - */ -struct sockaddr { - unsigned short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ -}; - -/* - * Structure used by kernel to pass protocol - * information in raw sockets. - */ -struct sockproto { - unsigned short sp_family; /* address family */ - unsigned short sp_protocol; /* protocol */ -}; - -/* - * Protocol families, same as address families for now. - */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_IMPLINK AF_IMPLINK -#define PF_PUP AF_PUP -#define PF_CHAOS AF_CHAOS -#define PF_NS AF_NS -#define PF_NBS AF_NBS -#define PF_ECMA AF_ECMA -#define PF_DATAKIT AF_DATAKIT -#define PF_CCITT AF_CCITT -#define PF_SNA AF_SNA -#define PF_DECnet AF_DECnet -#define PF_DLI AF_DLI -#define PF_LAT AF_LAT -#define PF_HYLINK AF_HYLINK -#define PF_APPLETALK AF_APPLETALK -#define PF_NIT AF_NIT -#define PF_802 AF_802 -#define PF_ISO AF_ISO -#define PF_OSI AF_ISO -#define PF_X25 AF_X25 -#define PF_OSINET AF_OSINET -#define PF_GOSIP AF_GOSIP -#define PF_MAX AF_MAX - -/* - * Maximum queue length specifiable by listen. - */ -#define SOMAXCONN 5 - -/* - * Message header for recvmsg and sendmsg calls. - */ -struct msghdr { - caddr_t msg_name; /* optional address */ - int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_accrights; /* access rights sent/received */ - int msg_accrightslen; -}; - -#define MSG_OOB 0x1 /* process out-of-band data */ -#define MSG_PEEK 0x2 /* peek at incoming message */ -#define MSG_DONTROUTE 0x4 /* send without using routing tables */ - -#define MSG_MAXIOVLEN 16 - -#include <sys/cdefs.h> -/* - * Functions - */ - -__BEGIN_DECLS - -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int listen __P_((int, int)); -int socket __P_((int, int, int)); -int setsockopt __P_((int, int, int, const void *, int)); -int getsockname __P_((int, struct sockaddr *, int *)); -int shutdown __P_((int, int)); -int getpeername __P_((int, struct sockaddr *, int *)); -__END_DECLS - -#endif /* _SYS_SOCKET_H */ diff --git a/mit-pthreads/machdep/sunos-5.3/timers.h b/mit-pthreads/machdep/sunos-5.3/timers.h deleted file mode 100755 index 3ee2c78f088..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/timers.h +++ /dev/null @@ -1,72 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/types.h> -#include <time.h> - -#define tv_sec tv_sec -#define tv_nsec tv_nsec - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -#ifndef NOT_USED -/* for sleep.h */ -/* int gettimeofday __P_((struct timeval *,struct timezone *)); */ -int gettimeofday __P_((struct timeval *,void *)); -#endif - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/sunos-5.3/uio.h b/mit-pthreads/machdep/sunos-5.3/uio.h deleted file mode 100755 index 7786142dd87..00000000000 --- a/mit-pthreads/machdep/sunos-5.3/uio.h +++ /dev/null @@ -1,40 +0,0 @@ -/* ==== uio.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct Solaris header file. - */ - -#ifndef _PTHREAD_UIO_H_ -#define _PTHREAD_UIO_H_ - -#include <sys/cdefs.h> - -struct iovec { - void *iov_base; - size_t iov_len; -}; - -typedef struct iovec iovec_t; - -struct uio { - iovec_t *uio_iov; /* pointer to array of iovecs */ - int uio_iovcnt; /* number of iovecs */ - /* These are all bogus */ - int _uio_offset; /* file offset */ - int uio_segflg; /* address space (kernel or user) */ - short uio_fmode; /* file mode flags */ - int _uio_limit; /* u-limit (maximum "block" offset) */ - int uio_resid; /* residual count */ -}; - -typedef struct uio uio_t; - -__BEGIN_DECLS - -int readv __P_((int, const struct iovec *, int)); -int writev __P_((int, const struct iovec *, int)); - -__END_DECLS - -#endif - diff --git a/mit-pthreads/machdep/sunos-5.5/__math.h b/mit-pthreads/machdep/sunos-5.5/__math.h deleted file mode 100755 index 5404b52c661..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/__math.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * ANSI/POSIX - */ -typedef union _h_val { - unsigned long _i[2]; - double _d; -} _h_val; - -#ifdef __STDC__ -extern const _h_val __huge_val; -#else -extern _h_val __huge_val; -#endif - -#define HUGE_VAL __huge_val._d - diff --git a/mit-pthreads/machdep/sunos-5.5/__signal.h b/mit-pthreads/machdep/sunos-5.5/__signal.h deleted file mode 100755 index 638c1ca7331..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/__signal.h +++ /dev/null @@ -1,19 +0,0 @@ -#include <sys/feature_tests.h> -#include <sys/signal.h> - -/* -typedef struct { - unsigned long __sigbits[4]; -} sigset_t; -*/ - -typedef int sig_atomic_t; - -#define sigmask(n) ((unsigned int)1 << (((n) - 1) & (32 - 1))) -#define sigword(n) (((unsigned int)((n) - 1))>>5) - -#define __SIGEMPTYSET { 0, 0, 0, 0 }; -#define __SIGFILLSET { 0xffffffff,0xffffffff,0xffffffff,0xffffffff }; -#define __SIGADDSET(s, n) ((s)->__sigbits[sigword(n)] |= sigmask(n)) -#define __SIGDELSET(s, n) ((s)->__sigbits[sigword(n)] &= ~sigmask(n)) -#define __SIGISMEMBER(s, n) (sigmask(n) & (s)->__sigbits[sigword(n)]) diff --git a/mit-pthreads/machdep/sunos-5.5/__stdio.h b/mit-pthreads/machdep/sunos-5.5/__stdio.h deleted file mode 100755 index 4dd4becdbe9..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/__stdio.h +++ /dev/null @@ -1,6 +0,0 @@ -typedef pthread_fpos_t fpos_t; - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif diff --git a/mit-pthreads/machdep/sunos-5.5/__stdlib.h b/mit-pthreads/machdep/sunos-5.5/__stdlib.h deleted file mode 100755 index a0717ce3c2b..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/__stdlib.h +++ /dev/null @@ -1,27 +0,0 @@ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <sys/feature_tests.h> - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned int size_t; -#endif - -#ifndef _UID_T -#define _UID_T -typedef long uid_t; -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#ifndef _WCHAR_T -#define _WCHAR_T -typedef long wchar_t; -#endif - - -#endif diff --git a/mit-pthreads/machdep/sunos-5.5/__string.h b/mit-pthreads/machdep/sunos-5.5/__string.h deleted file mode 100755 index 9cb12a07bb7..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/__string.h +++ /dev/null @@ -1,12 +0,0 @@ - -#ifndef _SIZE_T -#define _SIZE_T -typedef pthread_size_t size_t; -#endif - -/* Non-standard NetBSD string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -char *strdup __P_((const char *)); -__END_DECLS -#endif diff --git a/mit-pthreads/machdep/sunos-5.5/__time.h b/mit-pthreads/machdep/sunos-5.5/__time.h deleted file mode 100755 index 231e997acfa..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/__time.h +++ /dev/null @@ -1,69 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : System specific time header. - * - * 1.00 94/11/07 proven - * -Started coding this file. - */ - -#ifndef _SYS___TIME_H_ -#define _SYS___TIME_H_ - -#include <sys/feature_tests.h> - -#ifndef _SIZE_T -#define _SIZE_T -typedef unsigned size_t; -#endif -#ifndef _CLOCK_T -#define _CLOCK_T -typedef long clock_t; -#endif -#ifndef _TIME_T -#define _TIME_T -typedef long time_t; -#endif -#ifndef _CLOCKID_T -#define _CLOCKID_T -typedef int clockid_t; -#endif -#ifndef _TIMER_T -#define _TIMER_T -typedef int timer_t; -#endif - -#include <sys/time.h> -#include <sys/siginfo.h> - -#endif diff --git a/mit-pthreads/machdep/sunos-5.5/__unistd.h b/mit-pthreads/machdep/sunos-5.5/__unistd.h deleted file mode 100755 index 4e83a863735..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/__unistd.h +++ /dev/null @@ -1,47 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/types.h> -#include <sys/unistd.h> - -#ifndef NULL -#define NULL 0 -#endif - -#endif diff --git a/mit-pthreads/machdep/sunos-5.5/cdefs.h b/mit-pthreads/machdep/sunos-5.5/cdefs.h deleted file mode 100755 index f95f7b36958..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/cdefs.h +++ /dev/null @@ -1,59 +0,0 @@ -/* ==== cdefs.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Similar to the BSD cdefs.h file. - * - * 1.00 94/01/26 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -/* Stuff for compiling */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __INLINE static inline -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __INLINE extern inline -#define __CAN_DO_EXTERN_INLINE -#define __BEGIN_DECLS -#define __END_DECLS -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#else /* !__GNUC__ */ -#define __BEGIN_DECLS -#define __END_DECLS -#define __INLINE static -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#ifndef _U_INT32_T_ -#define _U_INT32_T_ -typedef unsigned int u_int32_t; -#endif - -#ifndef _U_INT16_T_ -#define _U_INT16_T_ -typedef unsigned short u_int16_t; -#endif - -#ifndef _INT32_T_ -#define _INT32_T_ -typedef int int32_t; -#endif - -#ifndef _INT16_T_ -#define _INT16_T_ -typedef short int16_t; -#endif - -#endif diff --git a/mit-pthreads/machdep/sunos-5.5/compat.h b/mit-pthreads/machdep/sunos-5.5/compat.h deleted file mode 100755 index b2a846d00ee..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/compat.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/sunos-5.5/dirent.h b/mit-pthreads/machdep/sunos-5.5/dirent.h deleted file mode 100755 index 303d3d7df2b..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/dirent.h +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - off_t d_off; /* offset of next disk dir entry */ - u_short d_reclen; /* length of this record */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_namlen d_reclen -#define d_ino d_fileno - -#endif /* !_SYS_DIRENT_H_ */ - - diff --git a/mit-pthreads/machdep/sunos-5.5/socket.h b/mit-pthreads/machdep/sunos-5.5/socket.h deleted file mode 100755 index 0b075622fed..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/socket.h +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (c) 1982, 1985, 1986 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * @(#)socket.h 7.3 (Berkeley) 6/27/88 - */ - -#ifndef _SYS_SOCKET_H -#define _SYS_SOCKET_H - -/* - * Types of sockets - */ -#define SOCK_STREAM 2 /* stream socket */ -#define SOCK_DGRAM 1 /* datagram socket */ -#define SOCK_RAW 4 /* raw-protocol interface */ -#define SOCK_RDM 5 /* reliably-delivered message */ -#define SOCK_SEQPACKET 6 /* sequenced packet stream */ - -/* - * Option flags per-socket. - */ -#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ - -/* - * Additional options, not kept in so_options. - */ -#define SO_SNDBUF 0x1001 /* send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ -#define SO_PROTOTYPE 0x1009 /* get/set protocol type */ - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xffff /* options for socket level */ - -/* - * Address families. - */ -#define AF_UNSPEC 0 /* unspecified */ -#define AF_UNIX 1 /* local to host (pipes, portals) */ -#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -#define AF_IMPLINK 3 /* arpanet imp addresses */ -#define AF_PUP 4 /* pup protocols: e.g. BSP */ -#define AF_CHAOS 5 /* mit CHAOS protocols */ -#define AF_NS 6 /* XEROX NS protocols */ -#define AF_NBS 7 /* nbs protocols */ -#define AF_ECMA 8 /* european computer manufacturers */ -#define AF_DATAKIT 9 /* datakit protocols */ -#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -#define AF_SNA 11 /* IBM SNA */ -#define AF_DECnet 12 /* DECnet */ -#define AF_DLI 13 /* Direct data link interface */ -#define AF_LAT 14 /* LAT */ -#define AF_HYLINK 15 /* NSC Hyperchannel */ -#define AF_APPLETALK 16 /* Apple Talk */ -#define AF_NIT 17 /* NIT */ -#define AF_802 18 /* IEEE 802.2, also ISO 8802 */ -#define AF_ISO 19 /* ISO protocols */ -#define AF_OSI AF_ISO -#define AF_X25 20 /* CCITT X.25 in particular */ -#define AF_OSINET 21 -#define AF_GOSIP 22 -#define AF_MAX 22 - -/* - * Structure used by kernel to store most - * addresses. - */ -struct sockaddr { - unsigned short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ -}; - -/* - * Structure used by kernel to pass protocol - * information in raw sockets. - */ -struct sockproto { - unsigned short sp_family; /* address family */ - unsigned short sp_protocol; /* protocol */ -}; - -/* - * Protocol families, same as address families for now. - */ -#define PF_UNSPEC AF_UNSPEC -#define PF_UNIX AF_UNIX -#define PF_INET AF_INET -#define PF_IMPLINK AF_IMPLINK -#define PF_PUP AF_PUP -#define PF_CHAOS AF_CHAOS -#define PF_NS AF_NS -#define PF_NBS AF_NBS -#define PF_ECMA AF_ECMA -#define PF_DATAKIT AF_DATAKIT -#define PF_CCITT AF_CCITT -#define PF_SNA AF_SNA -#define PF_DECnet AF_DECnet -#define PF_DLI AF_DLI -#define PF_LAT AF_LAT -#define PF_HYLINK AF_HYLINK -#define PF_APPLETALK AF_APPLETALK -#define PF_NIT AF_NIT -#define PF_802 AF_802 -#define PF_ISO AF_ISO -#define PF_OSI AF_ISO -#define PF_X25 AF_X25 -#define PF_OSINET AF_OSINET -#define PF_GOSIP AF_GOSIP -#define PF_MAX AF_MAX - -/* - * Maximum queue length specifiable by listen. - */ -#define SOMAXCONN 5 - -/* - * Message header for recvmsg and sendmsg calls. - */ -struct msghdr { - caddr_t msg_name; /* optional address */ - int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_accrights; /* access rights sent/received */ - int msg_accrightslen; -}; - -#define MSG_OOB 0x1 /* process out-of-band data */ -#define MSG_PEEK 0x2 /* peek at incoming message */ -#define MSG_DONTROUTE 0x4 /* send without using routing tables */ - -#define MSG_MAXIOVLEN 16 - -#include <sys/cdefs.h> -/* - * Functions - */ - -__BEGIN_DECLS - -int accept __P_((int, struct sockaddr *, int *)); -int bind __P_((int, const struct sockaddr *, int)); -int connect __P_((int, const struct sockaddr *, int)); -int listen __P_((int, int)); -int socket __P_((int, int, int)); -int setsockopt __P_((int, int, int, const void *, int)); -int getsockname __P_((int, struct sockaddr *, int *)); -int shutdown __P_((int, int)); -int getpeername __P_((int, struct sockaddr *, int *)); -__END_DECLS - -#endif /* _SYS_SOCKET_H */ diff --git a/mit-pthreads/machdep/sunos-5.5/timers.h b/mit-pthreads/machdep/sunos-5.5/timers.h deleted file mode 100755 index 3aad5f80065..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/timers.h +++ /dev/null @@ -1,70 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/types.h> -#include <time.h> - -#define tv_sec tv_sec -#define tv_nsec tv_nsec - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -#ifdef NOT_USED -int gettimeofday __P_((struct timeval *,struct timezone *)); /* for sleep.h */ -#endif - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/sunos-5.5/uio.h b/mit-pthreads/machdep/sunos-5.5/uio.h deleted file mode 100755 index 7786142dd87..00000000000 --- a/mit-pthreads/machdep/sunos-5.5/uio.h +++ /dev/null @@ -1,40 +0,0 @@ -/* ==== uio.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Correct Solaris header file. - */ - -#ifndef _PTHREAD_UIO_H_ -#define _PTHREAD_UIO_H_ - -#include <sys/cdefs.h> - -struct iovec { - void *iov_base; - size_t iov_len; -}; - -typedef struct iovec iovec_t; - -struct uio { - iovec_t *uio_iov; /* pointer to array of iovecs */ - int uio_iovcnt; /* number of iovecs */ - /* These are all bogus */ - int _uio_offset; /* file offset */ - int uio_segflg; /* address space (kernel or user) */ - short uio_fmode; /* file mode flags */ - int _uio_limit; /* u-limit (maximum "block" offset) */ - int uio_resid; /* residual count */ -}; - -typedef struct uio uio_t; - -__BEGIN_DECLS - -int readv __P_((int, const struct iovec *, int)); -int writev __P_((int, const struct iovec *, int)); - -__END_DECLS - -#endif - diff --git a/mit-pthreads/machdep/syscall-alpha-netbsd-1.1.S b/mit-pthreads/machdep/syscall-alpha-netbsd-1.1.S deleted file mode 100644 index 5b7dd017426..00000000000 --- a/mit-pthreads/machdep/syscall-alpha-netbsd-1.1.S +++ /dev/null @@ -1,206 +0,0 @@ -#include <machine/asm.h> -#define CHMK() call_pal 0x83 -#define COMPAT_43 -#include <sys/syscall.h> -#ifndef __CONCAT -#include <sys/cdefs.h> -#endif -#define CONCAT __CONCAT - -#undef SYSCALL - -/* Kernel syscall interface: - Input: - v0 - system call number - a* - arguments, as in C - Output: - a3 - zero iff successful - v0 - errno value on failure, else result - - This macro is similar to SYSCALL in asm.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - This macro expansions does not include the return instruction. - If there's no other work to be done, use something like: - SYSCALL(foo) ; ret - If there is other work to do (in fork, maybe?), do it after the - SYSCALL invocation. */ - -#define SYSCALL(x) \ - .align 4 ;\ - .globl CONCAT(machdep_sys_,x) ;\ - .ent CONCAT(machdep_sys_,x), 0 ;\ -CONCAT(machdep_sys_,x): ;\ - .frame sp,0,ra ;\ - ldiq v0, CONCAT(SYS_,x) ;\ - CHMK() ;\ - beq a3, CONCAT(Lsys_noerr_,x) ;\ - br gp, CONCAT(Lsys_err_,x) ;\ -CONCAT(Lsys_err_,x): ;\ - /* Load gp so we can find cerror to jump to. */;\ - ldgp gp, 0(gp) ;\ - jmp zero, machdep_cerror ;\ -CONCAT(Lsys_noerr_,x): - -#define XSYSCALL(x) SYSCALL(x) ; RET ; .end CONCAT(machdep_sys_,x) - - .globl machdep_cerror -machdep_cerror: - br t0, Lmachdep_cerror_setgp -Lmachdep_cerror_setgp: - ldgp gp, 0(t0) - stl v0, errno -#if 0 - ldiq v0, -1 -#else - subq zero, v0, v0 -#endif - RET - -/* The fork system call is special... */ -SYSCALL(fork) - cmovne a4, 0, v0 - RET - .end machdep_sys_fork - -/* The pipe system call is special... */ -SYSCALL(pipe) - stl v0, 0(a0) - stl a4, 4(a0) - mov zero, v0 - RET - .end machdep_sys_pipe - -/* The sigsuspend system call is special... */ - .align 4 - .globl machdep_sys_sigsuspend - .ent machdep_sys_sigsuspend, 0 -machdep_sys_sigsuspend: - ldl a0, 0(a0) /* pass *mask instead of mask */ - ldiq v0, SYS_sigsuspend - CHMK() - mov zero, v0 /* shouldn't need; just in case... */ - RET - .end machdep_sys_sigsuspend - -/* The sigprocmask system call is special... */ - .align 4 - .globl machdep_sys_sigprocmask - .ent machdep_sys_sigprocmask, 0 -machdep_sys_sigprocmask: - mov a2, a5 /* safe */ - cmoveq a1, 1, a0 /* if set == NULL, how = SIG_BLOCK */ - beq a1, Ldoit /* and set = 0, and do it. */ - ldl a1, 0(a1) /* load the set from *set */ -Ldoit: ldiq v0, SYS_sigprocmask - CHMK() - beq a5, Lret /* if they don't want old mask, done */ - stl v0, 0(a5) /* otherwise, give it to them. */ -Lret: mov zero, v0 - RET - .end machdep_sys_sigprocmask - -/* More stuff ... */ - .align 4 - .global __machdep_save_int_state - .ent __machdep_save_int_state, 0 -__machdep_save_int_state: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - - /* save integer registers */ - stq ra, ( 0 * 8)(a0) /* return address */ - stq s0, ( 1 * 8)(a0) /* callee-saved registers */ - stq s1, ( 2 * 8)(a0) - stq s2, ( 3 * 8)(a0) - stq s3, ( 4 * 8)(a0) - stq s4, ( 5 * 8)(a0) - stq s5, ( 6 * 8)(a0) - stq s6, ( 7 * 8)(a0) - stq sp, ( 9 * 8)(a0) - stq ra, ( 8 * 8)(a0) /* RA on return */ - stq pv, (10 * 8)(a0) /* and PV; we restore it */ - - mov zero, v0 - lda sp, 16(sp) - RET - .end __machdep_save_int_state - - .align 4 - .global __machdep_restore_int_state - .ent __machdep_restore_int_state, 0 -__machdep_restore_int_state: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - - /* restore integer registers */ - ldq t0, ( 0 * 8)(a0) /* return address */ - ldq s0, ( 1 * 8)(a0) /* callee-saved registers */ - ldq s1, ( 2 * 8)(a0) - ldq s2, ( 3 * 8)(a0) - ldq s3, ( 4 * 8)(a0) - ldq s4, ( 5 * 8)(a0) - ldq s5, ( 6 * 8)(a0) - ldq s6, ( 7 * 8)(a0) - ldq ra, ( 8 * 8)(a0) /* RA after return */ - ldq sp, ( 9 * 8)(a0) - ldq pv, (10 * 8)(a0) /* and PV; we restore it */ - - ldiq v0, 1 - ret zero,(t0),1 - .end __machdep_restore_int_state - - .align 4 - .global __machdep_save_fp_state - .ent __machdep_save_fp_state, 0 -__machdep_save_fp_state: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - - /* save FP registers */ - stt fs0, (0 * 8)(a0) /* callee-saved registers */ - stt fs1, (1 * 8)(a0) - stt fs2, (2 * 8)(a0) - stt fs3, (3 * 8)(a0) - stt fs4, (4 * 8)(a0) - stt fs5, (5 * 8)(a0) - stt fs6, (6 * 8)(a0) - stt fs7, (7 * 8)(a0) - mf_fpcr ft0 /* and FP control reg */ - stt ft0, (8 * 8)(a0) - - lda sp, 16(sp) - RET - .end __machdep_save_fp_state - - .align 4 - .global __machdep_restore_fp_state - .ent __machdep_restore_fp_state, 0 -__machdep_restore_fp_state: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - - /* restore FP registers */ - ldt fs0, (0 * 8)(a0) /* callee-saved registers */ - ldt fs1, (1 * 8)(a0) - ldt fs2, (2 * 8)(a0) - ldt fs3, (3 * 8)(a0) - ldt fs4, (4 * 8)(a0) - ldt fs5, (5 * 8)(a0) - ldt fs6, (6 * 8)(a0) - ldt fs7, (7 * 8)(a0) - ldt ft0, (8 * 8)(a0) - mt_fpcr ft0 /* and FP control reg */ - - lda sp, 16(sp) - RET - .end __machdep_restore_fp_state diff --git a/mit-pthreads/machdep/syscall-alpha-netbsd-1.3.S b/mit-pthreads/machdep/syscall-alpha-netbsd-1.3.S deleted file mode 100644 index 61435a729d7..00000000000 --- a/mit-pthreads/machdep/syscall-alpha-netbsd-1.3.S +++ /dev/null @@ -1,228 +0,0 @@ -#include <machine/asm.h> -#define CHMK() call_pal 0x83 -#define COMPAT_43 -#include <sys/syscall.h> -#ifndef __CONCAT -#include <sys/cdefs.h> -#endif -#define CONCAT __CONCAT - -#undef SYSCALL - -/* Kernel syscall interface: - Input: - v0 - system call number - a* - arguments, as in C - Output: - a3 - zero iff successful - v0 - errno value on failure, else result - - This macro is similar to SYSCALL in asm.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - This macro expansions does not include the return instruction. - If there's no other work to be done, use something like: - SYSCALL(foo) ; ret - If there is other work to do (in fork, maybe?), do it after the - SYSCALL invocation. */ - -#define SYSCALL(x) \ - .align 4 ;\ - .globl CONCAT(machdep_sys_,x) ;\ - .ent CONCAT(machdep_sys_,x), 0 ;\ -CONCAT(machdep_sys_,x): ;\ - .frame sp,0,ra ;\ - ldiq v0, CONCAT(SYS_,x) ;\ - CHMK() ;\ - beq a3, CONCAT(Lsys_noerr_,x) ;\ - br gp, CONCAT(Lsys_err_,x) ;\ -CONCAT(Lsys_err_,x): ;\ - /* Load gp so we can find cerror to jump to. */;\ - ldgp gp, 0(gp) ;\ - jmp zero, machdep_cerror ;\ -CONCAT(Lsys_noerr_,x): - -#define XSYSCALL(x) SYSCALL(x) ; RET ; .end CONCAT(machdep_sys_,x) - - .globl machdep_cerror -machdep_cerror: - br t0, Lmachdep_cerror_setgp -Lmachdep_cerror_setgp: - ldgp gp, 0(t0) - stl v0, errno -#if 0 - ldiq v0, -1 -#else - subq zero, v0, v0 -#endif - RET - -/* The fork system call is special... */ -SYSCALL(fork) - cmovne a4, 0, v0 - RET - .end machdep_sys_fork - -/* The pipe system call is special... */ -SYSCALL(pipe) - stl v0, 0(a0) - stl a4, 4(a0) - mov zero, v0 - RET - .end machdep_sys_pipe - -#ifndef SYS___sigsuspend14 -/* The sigsuspend system call is special... */ - .align 4 - .globl machdep_sys_sigsuspend - .ent machdep_sys_sigsuspend, 0 -machdep_sys_sigsuspend: - ldl a0, 0(a0) /* pass *mask instead of mask */ - ldiq v0, SYS_sigsuspend - CHMK() - mov zero, v0 /* shouldn't need; just in case... */ - RET - .end machdep_sys_sigsuspend -#endif /* SYS_sigsuspend14 */ - -#ifndef SYS___sigprocmask14 -/* The sigprocmask system call is special... */ - .align 4 - .globl machdep_sys_sigprocmask - .ent machdep_sys_sigprocmask, 0 -machdep_sys_sigprocmask: - mov a2, a5 /* safe */ - cmoveq a1, 1, a0 /* if set == NULL, how = SIG_BLOCK */ - beq a1, Ldoit /* and set = 0, and do it. */ - ldl a1, 0(a1) /* load the set from *set */ -Ldoit: ldiq v0, SYS_sigprocmask - CHMK() - beq a5, Lret /* if they don't want old mask, done */ - stl v0, 0(a5) /* otherwise, give it to them. */ -Lret: mov zero, v0 - RET - .end machdep_sys_sigprocmask -#endif /* SYS_sigprocmask14 */ - -/* More stuff ... */ - .align 4 - .global __machdep_save_int_state - .ent __machdep_save_int_state, 0 -__machdep_save_int_state: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - - /* save integer registers */ - stq ra, ( 0 * 8)(a0) /* return address */ - stq s0, ( 1 * 8)(a0) /* callee-saved registers */ - stq s1, ( 2 * 8)(a0) - stq s2, ( 3 * 8)(a0) - stq s3, ( 4 * 8)(a0) - stq s4, ( 5 * 8)(a0) - stq s5, ( 6 * 8)(a0) - stq s6, ( 7 * 8)(a0) - stq sp, ( 9 * 8)(a0) - stq ra, ( 8 * 8)(a0) /* RA on return */ - stq pv, (10 * 8)(a0) /* and PV; we restore it */ - - mov zero, v0 - lda sp, 16(sp) - RET - .end __machdep_save_int_state - - .align 4 - .global __machdep_restore_int_state - .ent __machdep_restore_int_state, 0 -__machdep_restore_int_state: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - - /* restore integer registers */ - ldq t0, ( 0 * 8)(a0) /* return address */ - ldq s0, ( 1 * 8)(a0) /* callee-saved registers */ - ldq s1, ( 2 * 8)(a0) - ldq s2, ( 3 * 8)(a0) - ldq s3, ( 4 * 8)(a0) - ldq s4, ( 5 * 8)(a0) - ldq s5, ( 6 * 8)(a0) - ldq s6, ( 7 * 8)(a0) - ldq ra, ( 8 * 8)(a0) /* RA after return */ - ldq sp, ( 9 * 8)(a0) - ldq pv, (10 * 8)(a0) /* and PV; we restore it */ - - ldiq v0, 1 - ret zero,(t0),1 - .end __machdep_restore_int_state - - .align 4 - .global __machdep_save_fp_state - .ent __machdep_save_fp_state, 0 -__machdep_save_fp_state: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - - /* save FP registers */ - stt fs0, (0 * 8)(a0) /* callee-saved registers */ - stt fs1, (1 * 8)(a0) - stt fs2, (2 * 8)(a0) - stt fs3, (3 * 8)(a0) - stt fs4, (4 * 8)(a0) - stt fs5, (5 * 8)(a0) - stt fs6, (6 * 8)(a0) - stt fs7, (7 * 8)(a0) - mf_fpcr ft0 /* and FP control reg */ - stt ft0, (8 * 8)(a0) - - lda sp, 16(sp) - RET - .end __machdep_save_fp_state - - .align 4 - .global __machdep_restore_fp_state - .ent __machdep_restore_fp_state, 0 -__machdep_restore_fp_state: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - - /* restore FP registers */ - ldt fs0, (0 * 8)(a0) /* callee-saved registers */ - ldt fs1, (1 * 8)(a0) - ldt fs2, (2 * 8)(a0) - ldt fs3, (3 * 8)(a0) - ldt fs4, (4 * 8)(a0) - ldt fs5, (5 * 8)(a0) - ldt fs6, (6 * 8)(a0) - ldt fs7, (7 * 8)(a0) - ldt ft0, (8 * 8)(a0) - mt_fpcr ft0 /* and FP control reg */ - - lda sp, 16(sp) - RET - .end __machdep_restore_fp_state - -/* For fstat() we actually syscall fstat13. */ - .align 4 - .globl machdep_sys_fstat - .ent machdep_sys_fstat, 0 -machdep_sys_fstat: - .frame sp,0,ra - ldiq v0, SYS___fstat13 - CHMK() - beq a3, Lsys_noerr_fstat - br gp, Lsys_err_fstat -Lsys_err_fstat: - /* Load gp so we can find cerror to jump to. */ - ldgp gp, 0(gp) - jmp zero, machdep_cerror -Lsys_noerr_fstat: - RET - .end machdep_sys_fstat diff --git a/mit-pthreads/machdep/syscall-alpha-osf1.S b/mit-pthreads/machdep/syscall-alpha-osf1.S deleted file mode 100644 index fad823a7352..00000000000 --- a/mit-pthreads/machdep/syscall-alpha-osf1.S +++ /dev/null @@ -1,97 +0,0 @@ -#include <asm.h> -#include <regdef.h> -#define COMPAT_43 -#include <syscall.h> - -#undef SYSCALL - -/* Kernel syscall interface: - Input: - v0 - system call number - a* - arguments, as in C - Output: - a3 - zero iff successful - v0 - errno value on failure, else result - - This macro is similar to SYSCALL in asm.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - This macro expansions does not include the return instruction. - If there's no other work to be done, use something like: - SYSCALL(foo) ; ret - If there is other work to do (in fork, maybe?), do it after the - SYSCALL invocation. */ - -#define SYSCALL(x) \ - .align 4 ;\ - .globl machdep_sys_##x ;\ - .ent machdep_sys_##x, 0 ;\ -machdep_sys_##x: ;\ - .frame sp,0,ra ;\ - ldiq v0, SYS_##x ;\ - CHMK() ;\ - beq a3, 2f ;\ - br gp, 1f ;\ -1: ;\ - /* Load gp so we can find cerror to jump to. */;\ - ldgp gp, 0(gp) ;\ - jmp zero, machdep_cerror ;\ -2: - -#define XSYSCALL(x) SYSCALL(x) ; ret ; .end machdep_sys_##x - - .globl machdep_cerror -machdep_cerror: - br t0, 1f -1: - ldgp gp, 0(t0) - stl v0, errno -#if 0 - ldiq v0, -1 -#else - subq zero, v0, v0 -#endif - ret - -/* The fork system call is special... */ -SYSCALL(fork) - cmovne a4, 0, v0 - ret - .end machdep_sys_fork - -/* So is the sigsuspend system call */ - .align 4 - .globl machdep_sys_sigsuspend - .ent machdep_sys_sigsuspend, 0 -machdep_sys_sigsuspend: - .frame sp,0,ra - - bis a0, a0, a1 - ldq a0, 0(a1) - ldiq v0, SYS_sigsuspend - CHMK() - ret - .end machdep_sys_sigsuspend - -/* More stuff ... */ - .align 4 - .globl machdep_restore_from_setjmp - .ent machdep_restore_from_setjmp, 0 -machdep_restore_from_setjmp: - .frame sp, 16, ra - ldgp gp, 0(t12) - lda sp, -16(sp) - stq ra, 0(sp) - ldq v0, 280(a0) - subq v0, 0x00000000acedbade, t0 - bne t0, botch - cmoveq a1, 0x1, a1 - stq a1, 32(a0) - ldiq v0, 0x67 - call_pal 0x83 -botch: - /* This should cause the program to crash. Eventually, fix it - up to print a message first. */ - jsr abort - .end machdep_restore_from_setjmp diff --git a/mit-pthreads/machdep/syscall-arm32-netbsd-1.3.S b/mit-pthreads/machdep/syscall-arm32-netbsd-1.3.S deleted file mode 100644 index 5914674b508..00000000000 --- a/mit-pthreads/machdep/syscall-arm32-netbsd-1.3.S +++ /dev/null @@ -1,193 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1993 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <machine/asm.h> -#include <sys/syscall.h> - -/* - * Initial asm stuff for all functions. - */ - .text - .align 0 - - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _C_LABEL(machdep_sys_fork); - -_C_LABEL(machdep_sys_fork):; - - swi SYS_fork - bcs 1f - sub r1, r1, #0x00000001 - and r0, r0, r1 - mov r15, r14 - - - -/* ========================================================================== - * machdep_sys_fstat() - */ - .globl _C_LABEL(machdep_sys_fstat); - -_C_LABEL(machdep_sys_fstat):; - - swi SYS___fstat13 - bcs 1f - mov r15, r14 - -/* ========================================================================== - * machdep_sys___syscall() - */ - -_machdep_sys___syscall:; - - swi SYS___syscall - bcs 1f - mov r15, r14 - - -#ifndef SYS___sigsuspend14 -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl _C_LABEL(machdep_sys_sigsuspend); - -_C_LABEL(machdep_sys_sigsuspend):; - - ldr r0, [r0] - swi SYS_sigsuspend - bcs 1f - mov r0, #0x00000000 - mov r15, r14 - -#endif - -#ifndef SYS___sigprocmask14 -/* ========================================================================== - * machdep_sys_sigprocmask() - */ - .globl _C_LABEL(machdep_sys_sigprocmask); - -_C_LABEL(machdep_sys_sigprocmask):; - - teq r1, #0x00000000 - moveq r0, #0x00000001 - moveq r1, #0x00000000 - ldrne r1, [r1] - swi SYS_sigprocmask - bcs 1f - teq r2, #0x00000000 - strne r0, [r2] - mov r0, #0x00000000 - mov r15, r14 -#endif - -/* ========================================================================== - * machdep_sys_ftruncate() - */ - .global _C_LABEL(machdep_sys_ftruncate) -_C_LABEL(machdep_sys_ftruncate): - mov r12, r13 - stmfd r13!, {r11, r12, r14, r15} - sub r13, r13, #8 - stmia r13, {r1-r2} - mov r3, #0 - sub r11, r12, #4 - mov r2, r0 - mov r1, #0 - mov r0, #201 - bl _machdep_sys___syscall - ldmea r11, {r11, r13, r15} - -/* ========================================================================== - * machdep_sys_lseek() - */ - .global _C_LABEL(machdep_sys_lseek) - -_C_LABEL(machdep_sys_lseek): - mov r12, r13 - stmfd r13!, {r11, r12, r14, r15} - str r3, [r13, #-4]! - sub r13, r13, #8 - stmia r13, {r1-r2} - sub r11, r12, #4 - mov r3, #0 - mov r2, r0 - mov r1, #0 - mov r0, #SYS_lseek - bl _machdep_sys___syscall - ldmea r11, {r11, r13, r15} - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl _C_LABEL(machdep_sys_pipe); - -_C_LABEL(machdep_sys_pipe):; - - mov r2, r0 - swi SYS_pipe - bcs 1f - str r0, [r2, #0x0000] - str r1, [r2, #0x0004] - mov r0, #0x00000000 - mov r15, r14 - - -1: - rsb r0, r0, #0x00000000 - mvn r1, #0x00000000 - mov r15, r14 diff --git a/mit-pthreads/machdep/syscall-hppa-hpux-10.20.S b/mit-pthreads/machdep/syscall-hppa-hpux-10.20.S deleted file mode 100644 index c63d845bae5..00000000000 --- a/mit-pthreads/machdep/syscall-hppa-hpux-10.20.S +++ /dev/null @@ -1,23 +0,0 @@ - .CODE - -machdep_error - sub %r0,%r28,%r28 - bv,n %r0(%r2) - -machdep_sys_fork - - .PROC - .CALLINFO NO_CALLS,FRAME=0 - - ldil -0x80000,%r1 - ble 4(%sr7,%r1) - ldi 2 ,%r22 - or,= %r0,%r22,%r0 - b,n machdep_error - or,= %r29,%r0,%r0 - copy %r0,%r28 - bv,n %r0(%r2) - - .PROCEND - .EXPORT machdep_sys_fork,ENTRY - diff --git a/mit-pthreads/machdep/syscall-hppa-hpux-9.03.S b/mit-pthreads/machdep/syscall-hppa-hpux-9.03.S deleted file mode 100644 index c63d845bae5..00000000000 --- a/mit-pthreads/machdep/syscall-hppa-hpux-9.03.S +++ /dev/null @@ -1,23 +0,0 @@ - .CODE - -machdep_error - sub %r0,%r28,%r28 - bv,n %r0(%r2) - -machdep_sys_fork - - .PROC - .CALLINFO NO_CALLS,FRAME=0 - - ldil -0x80000,%r1 - ble 4(%sr7,%r1) - ldi 2 ,%r22 - or,= %r0,%r22,%r0 - b,n machdep_error - or,= %r29,%r0,%r0 - copy %r0,%r28 - bv,n %r0(%r2) - - .PROCEND - .EXPORT machdep_sys_fork,ENTRY - diff --git a/mit-pthreads/machdep/syscall-i386-bsdi-1.1.S b/mit-pthreads/machdep/syscall-i386-bsdi-1.1.S deleted file mode 100644 index e54cd0d0773..00000000000 --- a/mit-pthreads/machdep/syscall-i386-bsdi-1.1.S +++ /dev/null @@ -1,288 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1993 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x; \ - \ -_machdep_sys_/**/x:; \ - \ - movl $(SYS_/**/x), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -/* ========================================================================== - * machdep_sys_write() - */ -SYSCALL(write) - -/* ========================================================================== - * machdep_sys_read() - */ -SYSCALL(read) - -/* ========================================================================== - * machdep_sys_open() - */ -SYSCALL(open) - -/* ========================================================================== - * machdep_sys_close() - */ -SYSCALL(close) - -/* ========================================================================== - * machdep_sys_fcntl() - */ -SYSCALL(fcntl) - -/* ========================================================================== - * machdep_sys_lseek() - */ -SYSCALL(lseek) - -/* ========================================================================== - * machdep_sys_pipe() - */ -SYSCALL(pipe) - -/* ========================================================================== - * machdep_sys_dup() - */ -SYSCALL(dup) - -/* ========================================================================== - * machdep_sys_dup2() - */ -SYSCALL(dup2) - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - movl $(SYS_fork), %eax; - .byte 0x9a; .long 0; .word 7; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - -/* ========================================================================== - * machdep_sys_execve() - */ -SYSCALL(execve) - -/* ========================================================================== - * machdep_sys_fstat() - */ -SYSCALL(fstat) - -/* ========================================================================== - * machdep_sys_fchown() - */ -SYSCALL(fchown) - -/* ========================================================================== - * machdep_sys_fchmod() - */ -SYSCALL(fchmod) - -/* ========================================================================== - * machdep_sys_chown() - */ -SYSCALL(chown) - -/* ========================================================================== - * machdep_sys_chmod() - */ -SYSCALL(chmod) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL(chdir) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL(link) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL(unlink) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL(rename) - -/* ========================================================================== - * Nonstandard calls used to make the system work - * - * ========================================================================== - * machdep_sys_select() - */ -SYSCALL(select) - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -SYSCALL(getdirentries) - -/* ========================================================================== - * machdep_sys_wait4() - */ -SYSCALL(wait4) - -/* ========================================================================== - * Berkeley socket stuff - * - * ========================================================================== - * machdep_sys_socket() - */ -SYSCALL(socket) - -/* ========================================================================== - * machdep_sys_bind() - */ -SYSCALL(bind) - -/* ========================================================================== - * machdep_sys_connect() - */ -SYSCALL(connect) - -/* ========================================================================== - * machdep_sys_accept() - */ -SYSCALL(accept) - -/* ========================================================================== - * machdep_sys_listen() - */ -SYSCALL(listen) - -/* ========================================================================== - * machdep_sys_getsockopt() - */ -SYSCALL(getsockopt) - -/* ========================================================================== - * machdep_sys_readv() - */ -SYSCALL(readv) - -/* ========================================================================== - * machdep_sys_writev() - */ -SYSCALL(writev) - -/* ========================================================================== - * machdep_sys_getpeername() - */ -SYSCALL(getpeername) - -/* ========================================================================== - * machdep_sys_getsockname() - */ -SYSCALL(getsockname) - -/* ========================================================================== - * machdep_sys_sendto() - */ -SYSCALL(sendto) - -/* ========================================================================== - * machdep_sys_recvfrom() - */ -SYSCALL(recvfrom) - -/* ========================================================================== - * machdep_sys_sendmsg() - */ -SYSCALL(sendmsg) - -/* ========================================================================== - * machdep_sys_recvmsg() - */ -SYSCALL(recvmsg) - -/* ========================================================================== - * machdep_sys_shutdown() - Is this correct? - */ -SYSCALL(shutdown) - diff --git a/mit-pthreads/machdep/syscall-i386-bsdi-2.0.S b/mit-pthreads/machdep/syscall-i386-bsdi-2.0.S deleted file mode 100644 index 8a56717da31..00000000000 --- a/mit-pthreads/machdep/syscall-i386-bsdi-2.0.S +++ /dev/null @@ -1,294 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1993 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - */ - -#ifndef lint - .text - .asciz "syscall-i386-netbsd-1.0.S,v 1.56 1995/09/26 21:04:05 raeburn Exp"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <sys/syscall.h> - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - movl $(SYS_fork), %eax; - .byte 0x9a; .long 0; .word 7; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - -/* ========================================================================== - * machdep_sys___syscall() - */ - -_machdep_sys___syscall:; - - movl $(SYS___syscall), %eax; - .byte 0x9a; .long 0; .word 7; - jb 3f; - ret - -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl _machdep_sys_sigsuspend; - -_machdep_sys_sigsuspend:; - - movl 4(%esp),%eax # fetch mask arg - movl (%eax),%eax # indirect to mask arg - movl %eax,4(%esp) - movl $(SYS_sigsuspend), %eax; - .byte 0x9a; .long 0; .word 7; - jb 3f; - ret - -3: - - neg %eax - movl $0xffffffff,%edx - ret - -/* ========================================================================== - * machdep_sys_lseek() - */ - .globl _machdep_sys_lseek; - -_machdep_sys_lseek:; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x14(%ebp); - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; - pushl 0x8(%ebp); - pushl $0x0; - pushl $(SYS_lseek); - call _machdep_sys___syscall; - leave - ret - -/* ========================================================================== - * machdep_sys_ftruncate() ; Added by Monty - */ - .globl _machdep_sys_ftruncate; - -_machdep_sys_ftruncate:; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; # Why this? - pushl 0x8(%ebp); - pushl $0x0; # And this? - pushl $(SYS_ftruncate); - call _machdep_sys___syscall; - leave - ret - - -/* BSDI DEFS.h,v 2.1 1995/02/03 06:28:24 polk Exp */ - -/*- - * Copyright (c) 1990, 1993 - * The Regents of the University of California. All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)DEFS.h 8.1 (Berkeley) 6/4/93 - */ - -#ifdef PROF -#define ENTRY(x) .globl _/**/x; .align 2; _/**/x: \ - .data; 1:; .long 0; .text; \ - pushl %ebp; movl %esp,%ebp; \ - leal 1b,%eax; call mcount; leave -#define ASENTRY(x) .globl x; .align 2; x: \ - .data; 1:; .long 0; .text; \ - pushl %ebp; movl %esp,%ebp; \ - leal 1b,%eax; call mcount; leave -#else -#define ENTRY(x) .globl _/**/x; .align 2; _/**/x: -#define ASENTRY(x) .globl x; .align 2; x: -#endif - -/*- - * Copyright (c) 1990, 1993 - * The Regents of the University of California. All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#if defined(LIBC_SCCS) && !defined(lint) - .asciz "@(#)_setjmp.s 8.1 (Berkeley) 6/4/93" -#endif /* LIBC_SCCS and not lint */ - -/* - * C library -- _setjmp, _longjmp - * - * _longjmp(a,v) - * will generate a "return(v)" from the last call to - * _setjmp(a) - * by restoring registers from the stack. - * The previous signal state is NOT restored. - */ - - -.globl __setjmp; /* Patch by Jan Legenhausen (monty) */ -.align 2; -__setjmp: - movl 4(%esp),%eax - movl 0(%esp),%edx - movl %edx, 0(%eax) /* rta */ - movl %ebx, 4(%eax) - movl %esp, 8(%eax) - movl %ebp,12(%eax) - movl %esi,16(%eax) - movl %edi,20(%eax) - movl $0,%eax - ret - -.globl __longjmp; /* Patch by Jan Legenhausen ? (monty) */ -.align 2; -__longjmp: - movl 4(%esp),%edx - movl 8(%esp),%eax - movl 0(%edx),%ecx - movl 4(%edx),%ebx - movl 8(%edx),%esp - movl 12(%edx),%ebp - movl 16(%edx),%esi - movl 20(%edx),%edi - cmpl $0,%eax - jne 1f - movl $1,%eax -1: movl %ecx,0(%esp) - ret diff --git a/mit-pthreads/machdep/syscall-i386-freebsd-1.1.S b/mit-pthreads/machdep/syscall-i386-freebsd-1.1.S deleted file mode 100644 index 5777cc5e06d..00000000000 --- a/mit-pthreads/machdep/syscall-i386-freebsd-1.1.S +++ /dev/null @@ -1,293 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1993 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x; \ - \ -_machdep_sys_/**/x:; \ - \ - movl $(SYS_/**/x), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -/* ========================================================================== - * machdep_sys_write() - */ -SYSCALL(write) - -/* ========================================================================== - * machdep_sys_read() - */ -SYSCALL(read) - -/* ========================================================================== - * machdep_sys_open() - */ -SYSCALL(open) - -/* ========================================================================== - * machdep_sys_close() - */ -SYSCALL(close) - -/* ========================================================================== - * machdep_sys_fcntl() - */ -SYSCALL(fcntl) - -/* ========================================================================== - * machdep_sys_lseek() - */ -SYSCALL(lseek) - -/* ========================================================================== - * machdep_sys_stat() - */ -SYSCALL(stat) - -/* ========================================================================== - * machdep_sys_pipe() - */ -SYSCALL(pipe) - -/* ========================================================================== - * machdep_sys_dup() - */ -SYSCALL(dup) - -/* ========================================================================== - * machdep_sys_dup2() - */ -SYSCALL(dup2) - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - movl $(SYS_fork), %eax; - .byte 0x9a; .long 0; .word 7; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - -/* ========================================================================== - * machdep_sys_execve() - */ -SYSCALL(execve) - -/* ========================================================================== - * machdep_sys_fstat() - */ -SYSCALL(fstat) - -/* ========================================================================== - * machdep_sys_fchown() - */ -SYSCALL(fchown) - -/* ========================================================================== - * machdep_sys_fchmod() - */ -SYSCALL(fchmod) - -/* ========================================================================== - * machdep_sys_chown() - */ -SYSCALL(chown) - -/* ========================================================================== - * machdep_sys_chmod() - */ -SYSCALL(chmod) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL(chdir) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL(link) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL(unlink) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL(rename) - -/* ========================================================================== - * Nonstandard calls used to make the system work - * - * ========================================================================== - * machdep_sys_select() - */ -SYSCALL(select) - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -SYSCALL(getdirentries) - -/* ========================================================================== - * machdep_sys_wait4() - */ -SYSCALL(wait4) - -/* ========================================================================== - * Berkeley socket stuff - * - * ========================================================================== - * machdep_sys_socket() - */ -SYSCALL(socket) - -/* ========================================================================== - * machdep_sys_bind() - */ -SYSCALL(bind) - -/* ========================================================================== - * machdep_sys_connect() - */ -SYSCALL(connect) - -/* ========================================================================== - * machdep_sys_accept() - */ -SYSCALL(accept) - -/* ========================================================================== - * machdep_sys_listen() - */ -SYSCALL(listen) - -/* ========================================================================== - * machdep_sys_getsockopt() - */ -SYSCALL(getsockopt) - -/* ========================================================================== - * machdep_sys_readv() - */ -SYSCALL(readv) - -/* ========================================================================== - * machdep_sys_writev() - */ -SYSCALL(writev) - -/* ========================================================================== - * machdep_sys_getpeername() - */ -SYSCALL(getpeername) - -/* ========================================================================== - * machdep_sys_getsockname() - */ -SYSCALL(getsockname) - -/* ========================================================================== - * machdep_sys_sendto() - */ -SYSCALL(sendto) - -/* ========================================================================== - * machdep_sys_recvfrom() - */ -SYSCALL(recvfrom) - -/* ========================================================================== - * machdep_sys_sendmsg() - */ -SYSCALL(sendmsg) - -/* ========================================================================== - * machdep_sys_recvmsg() - */ -SYSCALL(recvmsg) - -/* ========================================================================== - * machdep_sys_shutdown() - */ -SYSCALL(shutdown) - diff --git a/mit-pthreads/machdep/syscall-i386-freebsd-2.0.S b/mit-pthreads/machdep/syscall-i386-freebsd-2.0.S deleted file mode 100644 index b713bcac344..00000000000 --- a/mit-pthreads/machdep/syscall-i386-freebsd-2.0.S +++ /dev/null @@ -1,240 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1995 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - */ - -#ifndef lint - .text - .asciz "syscall-i386-freebsd-2.0.S,v 1.2 1995/05/26 07:44:29 proven Exp"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <sys/syscall.h> - -#ifdef __STDC__ - -#ifdef __ELF__ -#define NAME(X) machdep_sys_##X -#else -#define NAME(X) _machdep_sys_##X -#endif - -#else - -#ifdef __ELF__ -#define NAME(X) machdep_sys_/**/X -#else -#define NAME(X) _machdep_sys_/**/X -#endif - -#endif - -#ifdef __ELF__ -#define END(X) 5: ; .type NAME(X),@function ; .size NAME(X),5b - NAME(X) -#define KERNCALL int $0x80 -#else -#define END(X) -#define KERNCALL .byte 0x9a; .long 0; .word 7; -#endif - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl NAME(fork); - -NAME(fork):; - - movl $(SYS_fork), %eax; - KERNCALL; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - END(fork) - -/* ========================================================================== - * machdep_sys___syscall() - */ - -_machdep_sys___syscall:; - - movl $(SYS___syscall), %eax; - KERNCALL; - jb 3f; - ret - -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl NAME(sigsuspend); - -NAME(sigsuspend):; - - movl 4(%esp),%eax # fetch mask arg - movl (%eax),%eax # indirect to mask arg - movl %eax,4(%esp) - movl $(SYS_sigsuspend), %eax; - KERNCALL; - jb 3f; - ret -3: - neg %eax - movl $0xffffffff,%edx - ret - END(sigsuspend) - -/* ========================================================================== - * machdep_sys_sigprocmask() - */ - .globl NAME(sigprocmask); - -NAME(sigprocmask):; - - movl 8(%esp),%ecx - movl (%ecx),%ecx - movl %ecx,8(%esp) - movl $ SYS_sigprocmask , %eax - KERNCALL; - jb 4f; - ret -4: - neg %eax - movl $0xffffffff,%edx - ret - END(sigprocmask) - -/* ========================================================================== - * machdep_sys_lseek() - */ - .globl NAME(lseek); - -NAME(lseek):; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x14(%ebp); - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; - pushl 0x8(%ebp); - pushl $0x0; - pushl $(SYS_lseek); - call _machdep_sys___syscall; - leave - ret - END(lseek) - -/* ========================================================================== - * machdep_sys_ftruncate() ; Added by Monty - */ - .globl NAME(ftruncate); - -NAME(ftruncate):; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; # Why this? - pushl 0x8(%ebp); - pushl $0x0; # And this? - pushl $(SYS_ftruncate); - call _machdep_sys___syscall; - leave - ret - END(ftruncate) - -/* ========================================================================== - * machdep_sys_setjmp() - */ - .globl NAME(setjmp); - -NAME(setjmp):; - movl 4(%esp),%eax - movl 0(%esp),%edx - movl %edx, 0(%eax) /* rta */ - movl %ebx, 4(%eax) - movl %esp, 8(%eax) - movl %ebp,12(%eax) - movl %esi,16(%eax) - movl %edi,20(%eax) - xorl %eax,%eax - ret - END(setjmp) - -/* ========================================================================== - * machdep_sys_longjmp() - */ - .globl NAME(longjmp); - -NAME(longjmp):; - movl 4(%esp),%edx - movl 8(%esp),%eax - movl 0(%edx),%ecx - movl 4(%edx),%ebx - movl 8(%edx),%esp - movl 12(%edx),%ebp - movl 16(%edx),%esi - movl 20(%edx),%edi - testl %eax,%eax - jnz 1f - incl %eax -1: - movl %ecx,0(%esp) - ret - END(longjmp) diff --git a/mit-pthreads/machdep/syscall-i386-linux-1.0.S b/mit-pthreads/machdep/syscall-i386-linux-1.0.S deleted file mode 100644 index 1399c812e2f..00000000000 --- a/mit-pthreads/machdep/syscall-i386-linux-1.0.S +++ /dev/null @@ -1,406 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - * - * 1.16 94/01/30 proven - * -This file now requires gas version 2.0 or greater. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#include <sys/syscall.h> -#include <config.h> - -#ifdef __ELF__ - -#define NAME(X) machdep_sys_##X -#define END(X) 1: ; .type NAME(X),@function ; .size NAME(X),1b - NAME(X) - -#else - -#define NAME(X) _machdep_sys_##X -#define END(X) - -#endif - -#define SYSCALL0(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - \ - END(x) - -#define SYSCALL1(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - mov 8(%esp), %ebx; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - \ - END(x) - -#define SYSCALL2(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - mov 8(%esp), %ebx; \ - mov 12(%esp), %ecx; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - \ - END(x) - -#define STATCALL2(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - mov 8(%esp), %ebx; \ - mov 12(%esp), %ecx; \ - lea SYS_prev_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - END(x) - -#define SYSCALL3(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - mov 8(%esp), %ebx; \ - mov 12(%esp), %ecx; \ - mov 16(%esp), %edx; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - END(x) - - -#define SYSCALL4(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - push %esi; \ - mov 12(%esp), %ebx; \ - mov 16(%esp), %ecx; \ - mov 20(%esp), %edx; \ - mov 24(%esp), %esi; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %esi; \ - pop %ebx; \ - ret; \ - END(x) - -#define SYSCALL5(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - push %esi; \ - push %edi; \ - mov 16(%esp), %ebx; \ - mov 20(%esp), %ecx; \ - mov 24(%esp), %edx; \ - mov 28(%esp), %esi; \ - mov 32(%esp), %edi; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %edi; \ - pop %esi; \ - pop %ebx; \ - ret; \ - END(x) - -/* ========================================================================= - * exit 1 select 82 - * fork 2 fstatfs 100 - * read 3 socketcall 102 - * write 4 flock 143 - * open 5 readv 145 - * creat 8 writev 146 - * link 9 - * unlink 10 - * execve 11 - * chdir 12 - * chmod 15 - * chown 16 - * lseek 19 - * rename 38 - * dup 41 - * pipe 42 - * ioctl 54 - * fcntl 55 - * dup2 63 - * readdir 89 - * ftruncate 93 - * fchmod 94 - * fchown 95 - */ - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * machdep_sys_read() - */ -SYSCALL3(read) - -/* ========================================================================== - * machdep_sys_write() - */ -SYSCALL3(write) - -/* ========================================================================== - * machdep_sys_open() - */ -SYSCALL3(open) - -/* ========================================================================== - * machdep_sys_close() - */ -SYSCALL1(close) - -/* ========================================================================== - * machdep_sys_creat() - */ -SYSCALL2(creat) - -/* ========================================================================== - * machdep_sys_dup2() - */ -SYSCALL2(dup2) - -/* ========================================================================== - * machdep_sys_fcntl() - */ -SYSCALL3(fcntl) - -/* ========================================================================== - * machdep_sys_fchown() - */ -SYSCALL3(fchown) - -/* ========================================================================== - * machdep_sys_fchmod() - */ -SYSCALL2(fchmod) - -/* ========================================================================== - * machdep_sys_ioctl() - */ -SYSCALL3(ioctl) - -/* ========================================================================== - * machdep_sys_chown() - */ -SYSCALL3(chown) - -/* ========================================================================== - * machdep_sys_chmod() - */ -SYSCALL2(chmod) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL1(chdir) - -/* ========================================================================== - * machdep_sys_unlink() - */ -SYSCALL1(unlink) - -/* ========================================================================== - * machdep_sys_link() - */ -SYSCALL2(link) - -/* ========================================================================== - * machdep_sys_rename() - */ -SYSCALL2(rename) - -/* ========================================================================== - * machdep_sys_lseek() - */ -SYSCALL3(lseek) - -/* ========================================================================== - * machdep_sys_pipe() - */ -SYSCALL1(pipe) - -/* ========================================================================== - * machdep_sys_dup() - */ -SYSCALL1(dup) - -/* ========================================================================== - * machdep_sys_fork() - */ -SYSCALL0(fork) - -/* ========================================================================== - * machdep_sys_execve() - */ -SYSCALL3(execve) - -/* ========================================================================== - * machdep_sys_stat() - */ -#ifdef __ELF__ -STATCALL2(stat) -#else -SYSCALL2(stat) -#endif - -/* ========================================================================== - * machdep_sys_fstat() - */ -#ifdef __ELF__ -STATCALL2(fstat) -#else -SYSCALL2(fstat) -#endif - -/* ========================================================================== - * machdep_sys_lstat() - */ -#ifdef __ELF__ -STATCALL2(lstat) -#else -SYSCALL2(lstat) -#endif - -/* ========================================================================== - * machdep_sys_fstatfs() - */ -SYSCALL2(fstatfs) - - -/* ========================================================================== - * machdep_sys_ftruncate() - */ -SYSCALL2(ftruncate) - -/* ========================================================================== - * Nonstandard calls used to make the system work - * - * ========================================================================== - * machdep_sys_select() - */ - - .globl NAME(select) - -NAME(select): - - push %ebx - lea 8(%esp), %ebx - lea SYS_select, %eax - int $0x80 - pop %ebx - ret - END(select) - -/* ========================================================================== - * machdep_sys_wait4() - */ -SYSCALL4(wait4) - -/* ========================================================================== - * machdep_sys_readdir() - */ -SYSCALL3(readdir) - -/* ========================================================================== - * machdep_sys_socketcall() - */ -SYSCALL2(socketcall) - - -SYSCALL1(exit) -SYSCALL3(sigprocmask) - -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - - .globl NAME(sigsuspend) - -NAME(sigsuspend): - - push %ebp - mov %esp,%ebp - push %edi - push %esi - push %ebx - mov 8(%ebp), %edx - mov (%edx), %edx - lea SYS_sigsuspend, %eax - int $0x80 - pop %ebx - pop %esi - pop %edi - mov %ebp,%esp - pop %ebp - ret - END(sigsuspend) - -/* ========================================================================== - * machdep_sys_readv() - */ -#ifdef HAVE_SYSCALL_READV -SYSCALL3(readv) -#endif - -/* ========================================================================== - * machdep_sys_writev() - */ -#ifdef HAVE_SYSCALL_WRITEV -SYSCALL3(writev) -#endif - -/* ========================================================================== - * machdep_sys_flock() - */ -#ifdef HAVE_SYSCALL_FLOCK -SYSCALL2(flock) -#endif diff --git a/mit-pthreads/machdep/syscall-i386-linux-2.0.S b/mit-pthreads/machdep/syscall-i386-linux-2.0.S deleted file mode 100644 index d5807b2d9b4..00000000000 --- a/mit-pthreads/machdep/syscall-i386-linux-2.0.S +++ /dev/null @@ -1,389 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - * - * 1.16 94/01/30 proven - * -This file now requires gas version 2.0 or greater. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#include <sys/syscall.h> -#include <config.h> - -#ifdef __ELF__ - -#define NAME(X) machdep_sys_##X -#define END(X) 1: ; .type NAME(X),@function ; .size NAME(X),1b - NAME(X) - -#else - -#define NAME(X) _machdep_sys_##X -#define END(X) - -#endif - -#define SYSCALL0(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - \ - END(x) - -#define SYSCALL1(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - mov 8(%esp), %ebx; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - \ - END(x) - -#define SYSCALL2(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - mov 8(%esp), %ebx; \ - mov 12(%esp), %ecx; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - \ - END(x) - -#define SYSCALL3(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - mov 8(%esp), %ebx; \ - mov 12(%esp), %ecx; \ - mov 16(%esp), %edx; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - END(x) - - -#define SYSCALL4(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - push %esi; \ - mov 12(%esp), %ebx; \ - mov 16(%esp), %ecx; \ - mov 20(%esp), %edx; \ - mov 24(%esp), %esi; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %esi; \ - pop %ebx; \ - ret; \ - END(x) - -#define SYSCALL5(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - push %esi; \ - push %edi; \ - mov 16(%esp), %ebx; \ - mov 20(%esp), %ecx; \ - mov 24(%esp), %edx; \ - mov 28(%esp), %esi; \ - mov 32(%esp), %edi; \ - lea SYS_##x, %eax; \ - int $0x80; \ - pop %edi; \ - pop %esi; \ - pop %ebx; \ - ret; \ - END(x) - -/* ========================================================================= - * exit 1 select 82 - * fork 2 fstatfs 100 - * read 3 socketcall 102 - * write 4 flock 143 - * open 5 readv 145 - * creat 8 writev 146 - * link 9 - * unlink 10 - * execve 11 - * chdir 12 - * chmod 15 - * chown 16 - * lseek 19 - * rename 38 - * dup 41 - * pipe 42 - * ioctl 54 - * fcntl 55 - * dup2 63 - * readdir 89 - * ftruncate 93 - * fchmod 94 - * fchown 95 - */ - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * machdep_sys_read() - */ -SYSCALL3(read) - -/* ========================================================================== - * machdep_sys_write() - */ -SYSCALL3(write) - -/* ========================================================================== - * machdep_sys_open() - */ -SYSCALL3(open) - -/* ========================================================================== - * machdep_sys_close() - */ -SYSCALL1(close) - -/* ========================================================================== - * machdep_sys_creat() - */ -SYSCALL2(creat) - -/* ========================================================================== - * machdep_sys_dup2() - */ -SYSCALL2(dup2) - -/* ========================================================================== - * machdep_sys_fcntl() - */ -SYSCALL3(fcntl) - -/* ========================================================================== - * machdep_sys_fchown() - */ -SYSCALL3(fchown) - -/* ========================================================================== - * machdep_sys_fchmod() - */ -SYSCALL2(fchmod) - -/* ========================================================================== - * machdep_sys_ioctl() - */ -SYSCALL3(ioctl) - -/* ========================================================================== - * machdep_sys_chown() - */ -SYSCALL3(chown) - -/* ========================================================================== - * machdep_sys_chmod() - */ -SYSCALL2(chmod) - -/* ========================================================================== - * machdep_sys_chdir() - */ -SYSCALL1(chdir) - -/* ========================================================================== - * machdep_sys_unlink() - */ -SYSCALL1(unlink) - -/* ========================================================================== - * machdep_sys_link() - */ -SYSCALL2(link) - -/* ========================================================================== - * machdep_sys_rename() - */ -SYSCALL2(rename) - -/* ========================================================================== - * machdep_sys_lseek() - */ -SYSCALL3(lseek) - -/* ========================================================================== - * machdep_sys_pipe() - */ -SYSCALL1(pipe) - -/* ========================================================================== - * machdep_sys_dup() - */ -SYSCALL1(dup) - -/* ========================================================================== - * machdep_sys_fork() - */ -SYSCALL0(fork) - -/* ========================================================================== - * machdep_sys_execve() - */ -SYSCALL3(execve) - -/* ========================================================================== - * machdep_sys_stat() - */ -SYSCALL2(stat) - -/* ========================================================================== - * machdep_sys_fstat() - */ -SYSCALL2(fstat) - -/* ========================================================================== - * machdep_sys_lstat() - */ -SYSCALL2(lstat) - -/* ========================================================================== - * machdep_sys_fstatfs() - */ -SYSCALL2(fstatfs) - -/* ========================================================================== - * machdep_sys_ftruncate() - */ -SYSCALL2(ftruncate) - -/* ========================================================================== - * machdep_sys_chroot() - */ -SYSCALL1(chroot) - -/* ========================================================================== - * machdep_sys_uname() - */ -SYSCALL1(uname) - -/* ========================================================================== - * Nonstandard calls used to make the system work - * - * ========================================================================== - * machdep_sys_select() - */ - - .globl NAME(select) - -NAME(select): - - push %ebx - lea 8(%esp), %ebx - lea SYS_select, %eax - int $0x80 - pop %ebx - ret - END(select) - -/* ========================================================================== - * machdep_sys_wait4() - */ -SYSCALL4(wait4) - -/* ========================================================================== - * machdep_sys_readdir() - */ -SYSCALL3(readdir) - -/* ========================================================================== - * machdep_sys_socketcall() - */ -SYSCALL2(socketcall) - - -SYSCALL1(exit) -SYSCALL3(sigprocmask) - -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - - .globl NAME(sigsuspend) - -NAME(sigsuspend): - - push %ebp - mov %esp,%ebp - push %edi - push %esi - push %ebx - mov 8(%ebp), %edx - mov (%edx), %edx - lea SYS_sigsuspend, %eax - int $0x80 - pop %ebx - pop %esi - pop %edi - mov %ebp,%esp - pop %ebp - ret - END(sigsuspend) - -/* ========================================================================== - * machdep_sys_readv() - */ -#ifdef HAVE_SYSCALL_READV -SYSCALL3(readv) -#endif - -/* ========================================================================== - * machdep_sys_writev() - */ -#ifdef HAVE_SYSCALL_WRITEV -SYSCALL3(writev) -#endif - -/* ========================================================================== - * machdep_sys_flock() - */ -#ifdef HAVE_SYSCALL_FLOCK -SYSCALL2(flock) -#endif diff --git a/mit-pthreads/machdep/syscall-i386-netbsd-0.9.S b/mit-pthreads/machdep/syscall-i386-netbsd-0.9.S deleted file mode 100644 index 8d768a673d3..00000000000 --- a/mit-pthreads/machdep/syscall-i386-netbsd-0.9.S +++ /dev/null @@ -1,229 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1993 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <machine/asm.h> -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x; \ - \ -_machdep_sys_/**/x:; \ - \ - movl $(SYS_/**/x), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -/* ========================================================================== - * machdep_sys_write() - */ -SYSCALL(write) - -/* ========================================================================== - * machdep_sys_read() - */ -SYSCALL(read) - -/* ========================================================================== - * machdep_sys_open() - */ -SYSCALL(open) - -/* ========================================================================== - * machdep_sys_close() - */ -SYSCALL(close) - -/* ========================================================================== - * machdep_sys_fcntl() - */ -SYSCALL(fcntl) - -/* ========================================================================== - * machdep_sys_lseek() - */ -SYSCALL(lseek) - -/* ========================================================================== - * machdep_sys_pipe() - */ -SYSCALL(pipe) - -/* ========================================================================== - * machdep_sys_dup() - */ -SYSCALL(dup) - -/* ========================================================================== - * machdep_sys_dup2() - */ -SYSCALL(dup2) - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - movl $(SYS_fork), %eax; - .byte 0x9a; .long 0; .word 7; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - -/* ========================================================================== - * machdep_sys_execve() - */ -SYSCALL(execve) - -/* ========================================================================== - * machdep_sys_fstat() - */ -SYSCALL(fstat) - -/* ========================================================================== - * Nonstandard calls used to make the system work - * - * ========================================================================== - * machdep_sys_select() - */ -SYSCALL(select) - -/* ========================================================================== - * machdep_sys_getdirentries() - */ -SYSCALL(getdirentries) - -/* ========================================================================== - * Berkeley socket stuff - * - * ========================================================================== - * machdep_sys_socket() - */ -SYSCALL(socket) - -/* ========================================================================== - * machdep_sys_bind() - */ -SYSCALL(bind) - -/* ========================================================================== - * machdep_sys_connect() - */ -SYSCALL(connect) - -/* ========================================================================== - * machdep_sys_accept() - */ -SYSCALL(accept) - -/* ========================================================================== - * machdep_sys_listen() - */ -SYSCALL(listen) - -/* ========================================================================== - * machdep_sys_getsockopt() - */ -SYSCALL(getsockopt) - -/* ========================================================================== - * machdep_sys_readv() - */ -SYSCALL(readv) - -/* ========================================================================== - * machdep_sys_writev() - */ -SYSCALL(writev) - -/* ========================================================================== - * machdep_sys_getpeername() - */ -SYSCALL(getpeername) - -/* ========================================================================== - * machdep_sys_getsockname() - */ -SYSCALL(getsockname) - -/* ========================================================================== - * machdep_sys_sendto() - */ -SYSCALL(sendto) - -/* ========================================================================== - * machdep_sys_recvfrom() - */ -SYSCALL(recvfrom) - diff --git a/mit-pthreads/machdep/syscall-i386-netbsd-1.0.S b/mit-pthreads/machdep/syscall-i386-netbsd-1.0.S deleted file mode 100644 index da535dd2f80..00000000000 --- a/mit-pthreads/machdep/syscall-i386-netbsd-1.0.S +++ /dev/null @@ -1,158 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1993 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <machine/asm.h> -#include <sys/syscall.h> - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - movl $(SYS_fork), %eax; - .byte 0x9a; .long 0; .word 7; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - -/* ========================================================================== - * machdep_sys___syscall() - */ - -_machdep_sys___syscall:; - - movl $(SYS___syscall), %eax; - .byte 0x9a; .long 0; .word 7; - jb 3f; - ret - -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl _machdep_sys_sigsuspend; - -_machdep_sys_sigsuspend:; - - movl 4(%esp),%eax # fetch mask arg - movl (%eax),%eax # indirect to mask arg - movl %eax,4(%esp) - movl $(SYS_sigsuspend), %eax; - .byte 0x9a; .long 0; .word 7; - jb 3f; - ret - -3: - - neg %eax - movl $0xffffffff,%edx - ret - -/* ========================================================================== - * machdep_sys_lseek() - */ - .globl _machdep_sys_lseek; - -_machdep_sys_lseek:; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x14(%ebp); - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; - pushl 0x8(%ebp); - pushl $0x0; - pushl $(SYS_lseek); - call _machdep_sys___syscall; - leave - ret - -/* ========================================================================== - * machdep_sys_ftruncate() ; Added by Monty - */ - .globl _machdep_sys_ftruncate; - -_machdep_sys_ftruncate:; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; # Why this? - pushl 0x8(%ebp); - pushl $0x0; # And this? - pushl $(SYS_ftruncate); - call _machdep_sys___syscall; - leave - ret diff --git a/mit-pthreads/machdep/syscall-i386-netbsd-1.1.S b/mit-pthreads/machdep/syscall-i386-netbsd-1.1.S deleted file mode 100644 index a74d2ac1af6..00000000000 --- a/mit-pthreads/machdep/syscall-i386-netbsd-1.1.S +++ /dev/null @@ -1,181 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1993 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <machine/asm.h> -#include <sys/syscall.h> - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - movl $(SYS_fork), %eax; - .byte 0x9a; .long 0; .word 7; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - -/* ========================================================================== - * machdep_sys___syscall() - */ - -_machdep_sys___syscall:; - - movl $(SYS___syscall), %eax; - int $0x80; - jb 3f; - ret - -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl _machdep_sys_sigsuspend; - -_machdep_sys_sigsuspend:; - - movl 4(%esp),%eax # fetch mask arg - movl (%eax),%eax # indirect to mask arg - movl %eax,4(%esp) - movl $(SYS_sigsuspend), %eax; - int $0x80; - jb 3f; - ret - -3: - - neg %eax - movl $0xffffffff,%edx - ret - -/* ========================================================================== - * machdep_sys_lseek() - */ - .globl _machdep_sys_lseek; - -_machdep_sys_lseek:; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x14(%ebp); - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; - pushl 0x8(%ebp); - pushl $0x0; - pushl $(SYS_lseek); - call _machdep_sys___syscall; - leave - ret - -/* ========================================================================== - * machdep_sys_ftruncate() ; Added by Monty - */ - .globl _machdep_sys_ftruncate; - -_machdep_sys_ftruncate:; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; # Why this? - pushl 0x8(%ebp); - pushl $0x0; # And this? - pushl $(SYS_ftruncate); - call _machdep_sys___syscall; - leave - ret - -/* ========================================================================== - * machdep_sys_sigprocmask() - */ - .globl _machdep_sys_sigprocmask; - -_machdep_sys_sigprocmask:; - - movl 8(%esp),%ecx - movl (%ecx),%ecx - movl %ecx,8(%esp) - movl $(SYS_sigprocmask), %eax; - int $0x80; - jb 3b; - ret - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl _machdep_sys_pipe; - -_machdep_sys_pipe:; - - movl $(SYS_pipe), %eax; - int $0x80; - jb 3b; - movl 4(%esp),%ecx - movl %eax,(%ecx) - movl %edx,4(%ecx) - xorl %eax,%eax - ret - diff --git a/mit-pthreads/machdep/syscall-i386-netbsd-1.3.S b/mit-pthreads/machdep/syscall-i386-netbsd-1.3.S deleted file mode 100644 index 85dc6b3e5bc..00000000000 --- a/mit-pthreads/machdep/syscall-i386-netbsd-1.3.S +++ /dev/null @@ -1,200 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1993 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - * 1.00 93/08/26 proven - * -Started coding this file. - * - * 1.01 93/11/13 proven - * -The functions readv() and writev() added. - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <machine/asm.h> -#include <sys/syscall.h> - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _C_LABEL(machdep_sys_fork); - -_C_LABEL(machdep_sys_fork):; - - movl $(SYS_fork), %eax; - .byte 0x9a; .long 0; .word 7; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - -/* ========================================================================== - * machdep_sys___syscall() - */ - -_machdep_sys___syscall:; - - movl $(SYS___syscall), %eax; - int $0x80; - jb 3f; - ret - -#ifndef SYS___sigsuspend14 -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl _C_LABEL(machdep_sys_sigsuspend); - -_C_LABEL(machdep_sys_sigsuspend):; - - movl 4(%esp),%eax # fetch mask arg - movl (%eax),%eax # indirect to mask arg - movl %eax,4(%esp) - movl $(SYS_sigsuspend), %eax; - int $0x80; - jb 3f; - ret -#endif - -3: - - neg %eax - movl $0xffffffff,%edx - ret - -/* ========================================================================== - * machdep_sys_lseek() - */ - .globl _C_LABEL(machdep_sys_lseek); - -_C_LABEL(machdep_sys_lseek):; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x14(%ebp); - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; - pushl 0x8(%ebp); - pushl $0x0; - pushl $(SYS_lseek); - call _machdep_sys___syscall; - leave - ret - -/* ========================================================================== - * machdep_sys_ftruncate() ; Added by Monty - */ - .globl _C_LABEL(machdep_sys_ftruncate); - -_C_LABEL(machdep_sys_ftruncate):; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; # Why this? - pushl 0x8(%ebp); - pushl $0x0; # And this? - pushl $(SYS_ftruncate); - call _machdep_sys___syscall; - leave - ret - -#ifndef SYS___sigprocmask14 -/* ========================================================================== - * machdep_sys_sigprocmask() - */ - .globl _C_LABEL(machdep_sys_sigprocmask); - -_C_LABEL(machdep_sys_sigprocmask):; - - movl 8(%esp),%ecx - movl (%ecx),%ecx - movl %ecx,8(%esp) - movl $(SYS_sigprocmask), %eax; - int $0x80; - jb 3b; - ret -#endif - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl _C_LABEL(machdep_sys_pipe); - -_C_LABEL(machdep_sys_pipe):; - - movl $(SYS_pipe), %eax; - int $0x80; - jb 3b; - movl 4(%esp),%ecx - movl %eax,(%ecx) - movl %edx,4(%ecx) - xorl %eax,%eax - ret - -/* ========================================================================== - * machdep_sys_fstat() - */ - .globl _C_LABEL(machdep_sys_fstat); - -_C_LABEL(machdep_sys_fstat):; - movl $(SYS___fstat13), %eax; - int $0x80; - jb 4f; - ret -4: - neg %eax - movl $0xffffffff,%edx - ret - diff --git a/mit-pthreads/machdep/syscall-i386-openbsd-2.0.S b/mit-pthreads/machdep/syscall-i386-openbsd-2.0.S deleted file mode 100644 index cfdbbc77f73..00000000000 --- a/mit-pthreads/machdep/syscall-i386-openbsd-2.0.S +++ /dev/null @@ -1,237 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1995 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - */ - -#ifndef lint - .text - .asciz "syscall-i386-freebsd-2.0.S,v 1.2 1995/05/26 07:44:29 proven Exp"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <sys/syscall.h> - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl _machdep_sys_##x##; \ - \ -_machdep_sys_##x##:; \ - \ - movl $(SYS_##x##), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -#else - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x; \ - \ -_machdep_sys_/**/x:; \ - \ - movl $(SYS_/**/x), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - movl $(SYS_fork), %eax; - .byte 0x9a; .long 0; .word 7; - cmpl $0, %edx - je 2f - movl $0, %eax -2: - ret; - -/* ========================================================================== - * machdep_sys___syscall() - */ - -_machdep_sys___syscall:; - - movl $(SYS___syscall), %eax; - .byte 0x9a; .long 0; .word 7; - jb 3f; - ret - -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl _machdep_sys_sigsuspend; - -_machdep_sys_sigsuspend:; - - movl 4(%esp),%eax # fetch mask arg - movl (%eax),%eax # indirect to mask arg - movl %eax,4(%esp) - movl $(SYS_sigsuspend), %eax; - .byte 0x9a; .long 0; .word 7; - jb 3f; - ret - -3: - - neg %eax - movl $0xffffffff,%edx - ret - -/* ========================================================================== - * machdep_sys_sigprocmask() - */ - .globl _machdep_sys_sigprocmask; - -_machdep_sys_sigprocmask:; - - movl 8(%esp),%ecx - movl (%ecx),%ecx - movl %ecx,8(%esp) - movl $ SYS_sigprocmask , %eax - .byte 0x9a; .long 0; .word 7; - jb 4f; - ret - -4: - neg %eax - movl $0xffffffff,%edx - ret - -/* ========================================================================== - * machdep_sys_lseek() - */ - .globl _machdep_sys_lseek; - -_machdep_sys_lseek:; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x14(%ebp); - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; - pushl 0x8(%ebp); - pushl $0x0; - pushl $(SYS_lseek); - call _machdep_sys___syscall; - leave - ret - -/* ========================================================================== - * machdep_sys_ftruncate() ; Added by Monty - */ - .globl _machdep_sys_ftruncate; - -_machdep_sys_ftruncate:; - - pushl %ebp; - movl %esp,%ebp; - pushl 0x10(%ebp); - pushl 0xc(%ebp); - pushl $0x0; # Why this? - pushl 0x8(%ebp); - pushl $0x0; # And this? - pushl $(SYS_ftruncate); - call _machdep_sys___syscall; - leave - ret - -/* ========================================================================== - * machdep_sys_setjmp() - */ - .globl _machdep_sys_setjmp; - -_machdep_sys_setjmp:; - movl 4(%esp),%eax - movl 0(%esp),%edx - movl %edx, 0(%eax) /* rta */ - movl %ebx, 4(%eax) - movl %esp, 8(%eax) - movl %ebp,12(%eax) - movl %esi,16(%eax) - movl %edi,20(%eax) - xorl %eax,%eax - ret - -/* ========================================================================== - * machdep_sys_longjmp() - */ - .globl _machdep_sys_longjmp; - -_machdep_sys_longjmp:; - movl 4(%esp),%edx - movl 8(%esp),%eax - movl 0(%edx),%ecx - movl 4(%edx),%ebx - movl 8(%edx),%esp - movl 12(%edx),%ebp - movl 16(%edx),%esi - movl 20(%edx),%edi - testl %eax,%eax - jnz 1f - incl %eax -1: movl %ecx,0(%esp) - ret - diff --git a/mit-pthreads/machdep/syscall-i386-sco-3.2v5.S b/mit-pthreads/machdep/syscall-i386-sco-3.2v5.S deleted file mode 100644 index 0a60dcdd866..00000000000 --- a/mit-pthreads/machdep/syscall-i386-sco-3.2v5.S +++ /dev/null @@ -1,442 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1990 The Regents of the University of California. - * Copyright (c) 1995 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for i386/i486/i586 - * - */ - -#ifndef lint - .text - .asciz "syscall-i386-sco-3.2v5.S,v 1.2 1995/05/26 07:44:29 proven Exp"; -#endif - -#if defined(SYSLIBC_SCCS) && !defined(lint) - .asciz "@(#)syscall.s 5.1 (Berkeley) 4/23/90" -#endif /* SYSLIBC_SCCS and not lint */ - -#include <sys/errno.h> -#include <sys/syscall.h> - -#ifdef _SCO_ELF - -#define NAME(X) machdep_sys_##X -#define GETADDR(X) \ - call 1f; \ -1: \ - popl %ebx; \ - addl $NAME(X)+[.-1b], %ebx - -#define END(X) 1: ; .type NAME(X),@function ; .size NAME(X),1b - NAME(X) - -#else - -#define NAME(X) _machdep_sys_##X -#define END(X) - -#endif - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl NAME(x); \ - \ -NAME(x): \ - movl $(SYS_##x##), %eax; \ - lcall $7, $0; \ - jae 1f; \ - cmp $(ERESTART), %eax; \ - je NAME(x); \ - neg %eax; \ -1: \ - ret; \ -\ - END(x) - - -#else - -#define SYSCALL(x) \ - .globl NAME(x); \ - \ -NAME(x): \ - \ - movl $(SYS_/**/x), %eax; \ - lcall $7, $0; \ - jb 1b; \ - ret; \ - END(x) - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl NAME(fork); - -NAME(fork):; - movl $(SYS_fork), %eax - lcall $7, $0 - jae 1f - neg %eax - ret -1: - test %edx, %edx - je 2f - xor %eax, %eax -2: - ret; - END(fork) - -/* ========================================================================== - * NAME(getdents) - */ - .globl NAME(getdents); - -NAME(getdents): - movl $(SYS_getdents), %eax; - lcall $7, $0 - jae 1f - neg %eax -1: - ret; - END(getdents) - -/* ========================================================================== - * NAME(fxstat) - */ - .globl NAME(fxstat); - -NAME(fxstat):; - movl $(SYS_fxstat), %eax; - lcall $7, $0 - jae 1f - neg %eax; - ret; -1: - xor %eax, %eax; - ret; - END(fxstat) - -/* ========================================================================== - * NAME(signal) - */ - .globl NAME(signal); - -NAME(signal):; - movl 4(%esp), %ecx - movl $(SYS_signal),%eax -#if 0 - call .L1 -.L1: - popl %edx - addl $(NAME(sigreturn)+[.-.L1]), %edx -#else - movl $NAME(sigreturn), %edx -#endif - lcall $7,$0 - jae 1f -# movl %eax, 12(%esp) - neg %eax - ret -1: -# xor %eax, %eax -# movl %eax, 12(%esp) - ret - END(signal) - -/* ========================================================================== - * NAME(sigaction) - */ - .globl NAME(sigaction); - -NAME(sigaction): - movl $(SYS_sigaction),%eax -#if 0 - call .L2 -.L2: - popl %edx - addl $(NAME(sigreturn)+[.-.L2]), %edx -#else - movl $NAME(sigreturn), %edx -#endif - lcall $7, $0 - jb 1f - xor %eax, %eax - ret -1: - neg %eax - ret - END(sigaction) - - .globl NAME(sigreturn) -NAME(sigreturn): - addl $4,%esp - lcall $0xf, $0 - nop - nop - END(sigreturn) - -/* ========================================================================== - * NAME(waitpid) - */ - .globl NAME(waitpid); - -NAME(waitpid): - .byte 0x9c - popl %eax - orl $0x8c4, %eax - pushl %eax - .byte 0x9d - movl $(SYS_wait), %eax - lcall $7, $0 - jae 2f - cmpl $(ERESTART), %al - je NAME(waitpid) - neg %eax -3: - ret -2: - movl 8(%esp), %ecx - test %ecx,%ecx - je 3b - mov %edx, (%ecx) - ret - END(waitpid) - -/* ========================================================================== - * NAME(uname) - */ - .globl NAME(uname); - -NAME(uname): - pushl $0 - pushl $0 - pushl 12(%esp) - subl $4, %esp - movl $(SYS_utssys), %eax - .byte 0x9a; .long 0; .word 7; - jb 1f - addl $16, %esp - ret -1: - addl $16, %esp - neg %eax - ret - END(uname) - - -/* ========================================================================== - * machdep_sys_ftruncate - */ - -SYSCALL(ftruncate) - -/* ========================================================================== - * machdep_sys_ftime - */ - -SYSCALL(ftime) - -/* ========================================================================== - * machdep_sys_gettimeofday() - */ - -SYSCALL(gettimeofday) - -/* ========================================================================== - * machdep_sys_kill() - */ - -SYSCALL(kill) - -/* ========================================================================== - * pthread_sys_setitimer - */ - .globl NAME(setitimer); - -NAME(setitimer):; - movl $(SYS_setitimer), %eax; - lcall $7, $0 - jae 1f - neg %eax - ret -1: - xor %eax, %eax - ret; - END(setitimer) - -/* ========================================================================== - * pthread_sys_sysconf - */ - .globl NAME(sysconf); - -NAME(sysconf):; - movl $(SYS_sysconf), %eax; - lcall $7, $0 - jae 1f - neg %eax -1: - ret; - END(sysconf) - -/* ========================================================================== - * pthread_sys_sysi86() - */ - .globl NAME(sysi86); - -NAME(sysi86):; - movl $(SYS_sysi86), %eax - lcall $7, $0 - jae 1f - neg %eax -1: - ret; - END(sysi86) - - -/* ========================================================================== - * machdep_sys_brk() - */ - .globl NAME(brk); - -NAME(brk):; - movl $(SYS_break), %eax - lcall $7, $0 - jae 1f - neg %eax - ret -1: - xor %eax, %eax - ret; - END(brk) - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl NAME(pipe); - -NAME(pipe):; - movl $(SYS_pipe), %eax; - lcall $7, $0 - jae 1f - neg %eax - ret -1: - movl 4(%esp), %ecx - movl %eax, (%ecx) - movl %edx, 4(%ecx) - xor %eax, %eax - ret; - END(brk) - -/* ========================================================================== - * machdep_sys_fcntl() - */ - .globl NAME(fcntl); - -NAME(fcntl):; - movl $(SYS_fcntl), %eax - lcall $7, $0 - jae 1f - neg %eax -1: - ret - END(fcntl) - - -/* ========================================================================== - * machdep_sys_select() - */ - .globl NAME(select); - -NAME(select):; - movl $(SYS_select), %eax - lcall $7, $0 - jae 1f - cmp $(ERESTART), %eax - jne 2f - movl $(EINTR), %eax -2: - neg %eax -1: - ret - END(select) - - -/* ========================================================================== - * setjmp() - */ - .globl setjmp; - -setjmp: - movl 4(%esp),%eax - movl %ebx,(%eax) - movl %esi,4(%eax) - movl %edi,8(%eax) - movl %ebp,12(%eax) - popl %edx - movl %esp,16(%eax) - movl %edx,20(%eax) - subl %eax,%eax - jmp *%edx -1: ; .type setjmp,@function ; .size setjmp,1b - setjmp - -/* ========================================================================== - * longjmp() - */ - .globl longjmp; - -longjmp: - movl 4(%esp),%edx - movl 8(%esp),%eax - movl 0(%edx),%ebx - movl 4(%edx),%esi - movl 8(%edx),%edi - movl 12(%edx),%ebp - movl 16(%edx),%esp - test %eax,%eax - jne 1f - inc %eax -1: - jmp *20(%edx) -1: ; .type longjmp,@function ; .size longjmp,1b - longjmp diff --git a/mit-pthreads/machdep/syscall-ip22-irix-5.2.S b/mit-pthreads/machdep/syscall-ip22-irix-5.2.S deleted file mode 100644 index ded0fc55e38..00000000000 --- a/mit-pthreads/machdep/syscall-ip22-irix-5.2.S +++ /dev/null @@ -1,106 +0,0 @@ -#include <sys.s> -#include <sys/regdef.h> - -/* - Kernel syscall interface: - Input: - v0 syscall number - Output: - - This macro is similar to SYSCALL in sys/syscall.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - Compile with -DPIC for pic code. -*/ - -#ifdef PIC -#define PICOPT .option pic2 -#else -#define PICOPT -#endif - - -#define YSYSCALL(x) \ - PICOPT; \ - .globl machdep_sys_##x; \ - .ent machdep_sys_##x, 0; \ -machdep_sys_##x:; \ - .frame sp,0,ra; \ - .set noreorder; \ - li v0, SYS_##x; \ - syscall; \ - bne a3, zero, 1b; \ - nop; \ - j ra; \ - nop; \ - .end machdep_sys_##x - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - subu v0,zero,v0; - j ra; - -/* ========================================================================== - * lstat - */ - PICOPT; - .globl machdep_sys_lstat; - .ent machdep_sys_lstat, 0; -machdep_sys_lstat:; - .frame sp,0,ra; - .set noreorder; - move a2, a1 - move a1, a0 - li a0, 2 - li v0, SYS_lxstat; - syscall; - bne a3, zero, 1b; - nop; - j ra; - nop; - .end machdep_sys_lstat - -/* ========================================================================== - * fstat - */ - PICOPT; - .globl machdep_sys_fstat; - .ent machdep_sys_fstat, 0; -machdep_sys_fstat:; - .frame sp,0,ra; - .set noreorder; - move a2, a1 - move a1, a0 - li a0, 2 - li v0, SYS_fxstat; - syscall; - bne a3, zero, 1b; - nop; - j ra; - nop; - .end machdep_sys_fstat - -/* ========================================================================== - * stat - */ - PICOPT; - .globl machdep_sys_stat; - .ent machdep_sys_stat, 0; -machdep_sys_stat:; - .frame sp,0,ra; - .set noreorder; - move a2, a1 - move a1, a0 - li a0, 2 - li v0, SYS_xstat; - syscall; - bne a3, zero, 1b; - nop; - j ra; - nop; - .end machdep_sys_stat diff --git a/mit-pthreads/machdep/syscall-m68000-netbsd.S b/mit-pthreads/machdep/syscall-m68000-netbsd.S deleted file mode 100644 index f36286770a2..00000000000 --- a/mit-pthreads/machdep/syscall-m68000-netbsd.S +++ /dev/null @@ -1,83 +0,0 @@ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#include <machine/asm.h> -#include <sys/syscall.h> - -#ifdef __STDC__ -#define IMM # -#define SYSCALL(x) .even; ENTRY(machdep_sys_ ## x); \ - movl IMM SYS_ ## x,d0; trap IMM 0; jcs err; rts -#else /* !__STDC__ */ -#define SYSCALL(x) .even; ENTRY(machdep_sys_/**/x); \ - movl #SYS_/**/x,d0; trap #0; jcs err; rts -#endif /* !__STDC__ */ - -/* - * Initial asm stuff for all functions. - */ - .text - .even - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -err: - negl d0 - rts - -/* ========================================================================== - * machdep_sys_pipe - */ - .even -ENTRY(machdep_sys_pipe); - movl #SYS_pipe,d0 - trap #0 - jcs err - movl sp@(4),a0 - movl d0,a0@+ - movl d1,a0@ - clrl d0 - rts - -#ifndef SYS___sigsuspend14 - .even -ENTRY(machdep_sys_sigsuspend) - movl sp@(4),a0 - movl a0@,sp@(4) - movl #SYS_compat_13_sigsuspend13,d0 - trap #0 - jcs err - clrl d0 - rts -#endif - -#ifndef SYS___sigprocmask14 - .even -ENTRY(machdep_sys_sigprocmask) - tstl sp@(8) - jne gotptr -/* movl #0,sp@(8) /* null mask pointer; block empty set */ - movl #1,sp@(4) - jra doit -gotptr: - movl sp@(8),a0 - movl a0@,sp@(8) -doit: - movl #SYS_compat_13_sigprocmask13,d0 - trap #0 - jcs err - tstl sp@(12) - jeq out - movl sp@(12),a0 - movl d0,a0@ -out: - clrl d0 - rts -#endif diff --git a/mit-pthreads/machdep/syscall-powerpc-netbsd.S b/mit-pthreads/machdep/syscall-powerpc-netbsd.S deleted file mode 100644 index bdda457f116..00000000000 --- a/mit-pthreads/machdep/syscall-powerpc-netbsd.S +++ /dev/null @@ -1,185 +0,0 @@ -#include <machine/asm.h> -#define COMPAT_43 -#include <sys/syscall.h> -#ifndef __CONCAT -#include <sys/cdefs.h> -#endif -#define CONCAT __CONCAT - -#undef SYSCALL - -/* Kernel syscall interface: - Input: - 0 - system call number - 3-8 - arguments, as in C - Output: - so - (summary overflow) clear iff successful - - This macro is similar to SYSCALL in asm.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - This macro expansions does not include the return instruction. - If there's no other work to be done, use something like: - SYSCALL(foo) ; ret - If there is other work to do (in fork, maybe?), do it after the - SYSCALL invocation. */ - -ENTRY(machdep_cerror) - mflr 0 # Save LR in 0 - stwu 1,-16(1) # allocate new stack frame - stw 0,20(1) # Stash 0 in stack - stw 31,8(1) # Stash 31 in stack (since it's callee-saved - mr 31,3 # and we stash return there) - bl PIC_PLT(_C_LABEL(__errno)) - stw 31,0(3) # *errno() = err - lwz 0,20(1) # Restore LR from stack to 0 - neg 3,31 # return -errno to 3 - lwz 31,8(1) # Restore 31 from stack - mtlr 0 - la 1,16(1) # Restore stack frame - li 4,-1 # Put -1 in r4 for those syscalls that return - blr # two values - -/* The fork system call is special... */ -ENTRY(machdep_sys_fork) - li 0, SYS_fork - sc - bso PIC_PLT(_C_LABEL(machdep_cerror)) - addi 4,4,-1 - blr - -/* The pipe system call is special... */ -ENTRY(machdep_sys_pipe) - mr 5,3 - li 0,SYS_pipe - sc - bso PIC_PLT(_C_LABEL(machdep_cerror)) - stw 3,0(5) # Success, store fds - stw 4,4(5) - li 3,0 - blr # And return 0 - -#ifndef SYS___sigsuspend14 -/* The sigsuspend system call is special... */ -ENTRY(machdep_sys_sigsuspend) - lwz 3,0(3) - li 0,SYS_compat_13_sigsuspend13 - sc - b PIC_PLT(_C_LABEL(machdep_cerror)) -#endif /* SYS_sigsuspend14 */ - -#ifndef SYS___sigprocmask14 -/* The sigprocmask system call is special... */ -ENTRY(machdep_sys_sigprocmask) - or. 4,4,4 # Set == NULL ? - li 6,1 # how = SIG_BLOCK - beq Ldoit - lwz 4,0(4) # if not, replace it in r4 with #set - mr 6,3 -Ldoit: mr 3,6 # ... using sigprocmask(SIG_BLOCK) - li 0,SYS_compat_13_sigprocmask13 - sc - bso PIC_PLT(_C_LABEL(machdep_cerror)) - or. 5,5,5 # Check to see if oset requested - beq Ldone # if oset != NULL - stw 3,0(5) # *oset = oldmask -Ldone: - li 3,0 # return 0 - blr -#endif /* SYS_sigprocmask14 */ - -/* More stuff ... */ - -/* For fstat() we actually syscall fstat13. */ -ENTRY(machdep_sys_fstat) - li 0, SYS___fstat13 - sc - bnslr - b PIC_PLT(_C_LABEL(machdep_cerror)) - -/* Do we need to save the entire floating point state? I think so... */ -ENTRY(__machdep_save_fp_state) - stwu 1,-8(1) - stw 3,4(1) - stfd 0,0(3) - stfdu 1,8(3) - stfdu 2,8(3) - stfdu 3,8(3) - stfdu 4,8(3) - stfdu 5,8(3) - stfdu 6,8(3) - stfdu 7,8(3) - stfdu 8,8(3) - stfdu 9,8(3) - stfdu 10,8(3) - stfdu 11,8(3) - stfdu 12,8(3) - stfdu 13,8(3) - stfdu 14,8(3) - stfdu 15,8(3) - stfdu 16,8(3) - stfdu 17,8(3) - stfdu 18,8(3) - stfdu 19,8(3) - stfdu 20,8(3) - stfdu 21,8(3) - stfdu 22,8(3) - stfdu 23,8(3) - stfdu 24,8(3) - stfdu 25,8(3) - stfdu 26,8(3) - stfdu 27,8(3) - stfdu 28,8(3) - stfdu 29,8(3) - stfdu 30,8(3) - stfdu 31,8(3) - mffs 0 - stfdu 0,8(3) - lwz 3,4(1) - lwz 1,0(1) - blr - -ENTRY(__machdep_restore_fp_state) - stwu 1,-12(1) - stw 3,4(1) - stw 4,8(1) - mr 4,3 - lfdu 1,8(3) - lfdu 2,8(3) - lfdu 3,8(3) - lfdu 4,8(3) - lfdu 5,8(3) - lfdu 6,8(3) - lfdu 7,8(3) - lfdu 8,8(3) - lfdu 9,8(3) - lfdu 10,8(3) - lfdu 11,8(3) - lfdu 12,8(3) - lfdu 13,8(3) - lfdu 14,8(3) - lfdu 15,8(3) - lfdu 16,8(3) - lfdu 17,8(3) - lfdu 18,8(3) - lfdu 19,8(3) - lfdu 20,8(3) - lfdu 21,8(3) - lfdu 22,8(3) - lfdu 23,8(3) - lfdu 24,8(3) - lfdu 25,8(3) - lfdu 26,8(3) - lfdu 27,8(3) - lfdu 28,8(3) - lfdu 29,8(3) - lfdu 30,8(3) - lfdu 31,8(3) - lfdu 0,8(3) - mtfsf 127,0 - lfd 0,0(4) - lwz 3,4(1) - lwz 4,8(1) - lwz 1,0(1) - blr diff --git a/mit-pthreads/machdep/syscall-r2000-ultrix-4.2.S b/mit-pthreads/machdep/syscall-r2000-ultrix-4.2.S deleted file mode 100644 index dc891dc37bd..00000000000 --- a/mit-pthreads/machdep/syscall-r2000-ultrix-4.2.S +++ /dev/null @@ -1,166 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for decstation with r2000/r3000 - * - * 1.00 93/08/14 proven - * -Started coding this file. - */ - - .text - .ascii "$Id$"; - -#include <syscall.h> -#include <machine/regdef.h> - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. Eventually I want to load the errno value directly - * into pthread_run->error but until then ... - */ -machdep_error: - negu v0, v0 /* Return negative of errno value. */ - j ra - -/* ========================================================================== - * Syscalls already done, - * Standard Other important BSD sockets - * fork = 2 select = 93 socket = 97 - * read = 3 readv = 120 connect = 98 - * write = 4 writev = 121 accept = 99 - * open = 5 getdirentries = send = 101 - * close = 6 recv = 102 - * creat = 8 bind = 104 - * link = 9 listen = 106 - * unlink = 10 recvmsg = 113 - * chdir = 12 sendmsg = 114 - * chmod = 15 getsockopt = 118 - * chown = 16 recvfrom = 125 - * lseek = 19 sendto = 133 - * stat = 38 shutdown = 134 - * dup = 41 getpeername = 141 - * pipe = 42 - * execve = 59 - * fstat = 62 - * wait3 = 84 - * dup2 = 90 - * fcntl = 92 - * fchown = 123 - * fchmod = 124 - * rename = 128 - * waitpid = 189 - * ======================================================================= */ - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl machdep_sys_fork - .ent machdep_sys_fork - -machdep_sys_fork: - - .frame sp,0,ra /* No frame, return address in ra */ - - li v0,SYS_fork /* Load fork syscall # into v0 */ - syscall - bne a3,zero,machdep_error /* Error if a3 != 0 */ - beqz v1,__fork_parent /* Second return value = 0, if parent */ - li v0,0 -__fork_parent: - j ra - - .end machdep_sys_fork - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl machdep_sys_pipe - .ent machdep_sys_pipe - -machdep_sys_pipe: - - .frame sp,0,ra /* No frame, return address in ra */ - - li v0,SYS_pipe /* Load pipe syscall # into v0 */ - syscall - bne a3,zero,machdep_error /* Error if a3 != 0 */ - sw v0, 0(a0) - sw v1, 4(a0) - li v0, 0 - j ra - - .end machdep_sys_pipe - -/* ========================================================================== - * Other important asm routines. - * ======================================================================= */ -/* ========================================================================== - * fake_setjmp() - */ - .globl fake_setjmp - .ent fake_setjmp - -fake_setjmp: - - .frame sp,0,ra /* No frame, return address in ra */ - - /* Save all the important registers */ - sw ra,8(a0) - sw gp,124(a0) - sw sp,128(a0) - sw s0,76(a0) - /* More registers needed. */ - j ra - - .end fake_longjmp - -/* ========================================================================== - * machdep_sys_longjmp() - */ - .globl machdep_sys_longjmp - .ent machdep_sys_longjmp - -machdep_sys_longjmp: - - .frame sp,0,ra /* No frame, return address in ra */ - li a1,1 /* Load 1 into reg a1 */ - sw a1, 20(a0); /* Load a1 into address a0 + 20 */ - li v0,SYS_sigreturn /* Load sigreturn syscall # into v0 */ - syscall /* Do syscall to do longjmp */ - j ra - - .end machdep_sys_longjmp diff --git a/mit-pthreads/machdep/syscall-romp-bsd.S b/mit-pthreads/machdep/syscall-romp-bsd.S deleted file mode 100644 index 233f0b9430b..00000000000 --- a/mit-pthreads/machdep/syscall-romp-bsd.S +++ /dev/null @@ -1,327 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1993 by John F. Carr, jfc@mit.edu - * - * 1.00 93/09/xx proven - * -Started coding this file. - */ - -#ifndef lint -static const char rcsid[] = "$Id$"; -#endif - -/* DO NOT USE COLONS IN THIS FILE, GCC CAN'T HANDLE THEM */ -/* #include <copyright.h> */ - - .globl .oVncs - .text - .align 2 - -/* ========================================================================== - * machdep_sys_write() - */ - .globl _machdep_sys_write - .globl _.machdep_sys_write - - .text 2 -_machdep_sys_write: - .long _.machdep_sys_write - - .text -_.machdep_sys_write: - lcs r0,0(r3) - svc 4(r0) - bntbr r15 - store r2,_errno,r5 - brx r15 - cal r2,-1(r0) - - -/* ========================================================================== - * machdep_sys_read() - */ - .globl _machdep_sys_read - .globl _.machdep_sys_read - - .text 2 -_machdep_sys_read: - .long _.machdep_sys_read - - .text -_.machdep_sys_read: - lcs r0,0(r3) - svc 3(r0) - bntbr r15 - store r2,_errno,r5 - brx r15 - cal r2,-1(r0) - - -/* ========================================================================== - * machdep_sys_open() - */ - .globl _machdep_sys_open - .globl _.machdep_sys_open - - .text 2 -_machdep_sys_open: - .long _.machdep_sys_open - - .text -_.machdep_sys_open: - lcs r0,0(r2) - svc 5(r0) - bntbr r15 - store r2,_errno,r5 - brx r15 - cal r2,-1(r0) - - -/* ========================================================================== - * machdep_sys_bind() - */ - .globl _machdep_sys_bind - .globl _.machdep_sys_bind - - .text 2 -_machdep_sys_bind: - .long _.machdep_sys_bind - - .text -_.machdep_sys_bind: - ls r0,0(r3) - svc 104(r0) - bntbr r15 - store r2,_errno,r5 - brx r15 - cal r2,-1(r0) - - -/* ========================================================================== - * machdep_sys_socket() - */ - .globl _machdep_sys_socket - .globl _.machdep_sys_socket - - .text 2 -_machdep_sys_socket: - .long _.machdep_sys_socket - - .text - .align 2 -_.machdep_sys_socket: - svc 97(r0) - bntbr r15 - store r2,_errno,r5 - brx r15 - cal r2,-1(r0) - - -/* ========================================================================== - * machdep_sys_close() - */ - .globl _machdep_sys_close - .globl _.machdep_sys_close - - .text 2 -_machdep_sys_close: - .long _.machdep_sys_close - - .text - .align 2 -_.machdep_sys_close: - svc 6(r0) - bntbr r15 - store r2,_errno,r5 - brx r15 - cal r2,-1(r0) - - -/* ========================================================================== - * machdep_sys_connect() - */ - .globl _machdep_sys_connect - .globl _.machdep_sys_connect - - .text 2 -_machdep_sys_connect: - .long _.machdep_sys_connect - - .text -_.machdep_sys_connect: - lcs r0,0(r3) - svc 98(r0) - bntbr r15 - store r2,_errno,r5 - brx r15 - cal r2,-1(r0) - -/* ========================================================================== - * machdep_sys_accept() - */ - .globl _machdep_sys_accept - .globl _.machdep_sys_accept - - .text 2 -_machdep_sys_accept: - .long _.machdep_sys_accept - - .text -_.machdep_sys_accept: - lcs r0,0(r3) - svc 99(r0) - bntbr r15 - store r2,_errno,r5 - cal r2,-1(r0) - -/* ========================================================================== - * machdep_sys_listen() - */ - .globl _machdep_sys_listen - .globl _.machdep_sys_listen - - .text 2 - .align 2 -_machdep_sys_listen: - .long _.machdep_sys_listen - - .text - .align 2 -_.machdep_sys_listen: - svc 106(r0) - bntbr r15 - brx r15 - twoc r2,r2 - -/* ========================================================================== - * machdep_sys_fcntl() - */ - .globl _.machdep_sys_fcntl - .globl _machdep_sys_fcntl - - .text 2 -_machdep_sys_fcntl: - .long _.machdep_sys_fcntl - .text -_.machdep_sys_fcntl: - lcs r0,0(sp) - svc 92(r0) - bntbr r15 - store r2,_errno,r5 - brx r15 - cal r2,-1(r0) - -/* ========================================================================== - * machdep_sys_getpeername() - */ - .globl _machdep_sys_getpeername - .globl _.machdep_sys_getpeername - - .text 2 -_machdep_sys_getpeername: - .long _.machdep_sys_getpeername - - .text -_.machdep_sys_getpeername: - ls r0,0(sp) - svc 141(r0) - bntbr r15 - brx r15 - twoc r2,r2 - - -/* ========================================================================== - * machdep_sys_getsockopt() - */ - .globl _machdep_sys_getsockopt - .globl _.machdep_sys_getsockopt - - .text 2 -_machdep_sys_getsockopt: - .long _.machdep_sys_getsockopt - - .text -_.machdep_sys_getsockopt: - ls r0,0(sp) - svc 118(r0) - bntbr r15 - brx r15 - twoc r2,r2 - - -/* ========================================================================== - * machdep_sys_select() - */ - - .globl _.machdep_sys_select - .globl _machdep_sys_select - - .text 2 -_machdep_sys_select: - .long _.machdep_sys_select - .text -_.machdep_sys_select: - svc 93(r0) - bntbr r15 - brx r15 - twoc r2,r2 - -/* ========================================================================== - * __tsh() - */ - .globl _._tsh - .globl __tsh - .text 2 -__tsh: .long _._tsh - .text - .align 2 -_._tsh: - brx r15 - tsh r2,0(r2) - - -/* ========================================================================== - * __pthread_save() - */ - .globl __pthread_save - .globl _._pthread_save - .text 2 -__pthread_save: - .long _._pthread_save - .text - .align 2 -_._pthread_save: - ail r5,r4,0 - jne 1f - mr r4,sp - lis r5,0 - stm r4,0(r2) - brx r15 - lis r2,0 -1: - mr r0,r15 # save old return address - ls r15,0(r4) # new return address - mr r5,r4 # r0 to restore - mr r4,r3 # sp to restore - stm r4,0(r2) - brx r0 - lis r2,0 - - -/* ========================================================================== - * __pthread_restore() - */ - .globl __pthread_restore - .globl _._pthread_restore - .text 2 -__pthread_restore: - .long _._pthread_restore - .text - .align 2 -_._pthread_restore: - lm r4,0(r2) - mr r0,r5 - lis r2,1 - brx r15 - mr sp,r4 - - diff --git a/mit-pthreads/machdep/syscall-sparc-netbsd-1.1.S b/mit-pthreads/machdep/syscall-sparc-netbsd-1.1.S deleted file mode 100644 index 9c4da4b1325..00000000000 --- a/mit-pthreads/machdep/syscall-sparc-netbsd-1.1.S +++ /dev/null @@ -1,102 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _machdep_sys_##x; \ - \ -_machdep_sys_##x:; \ - \ - mov SYS_##x, %g1; \ - ta 0; \ - bcs,a 2b; \ - sub %r0,%o0,%o0; \ - retl - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl _machdep_sys_pipe - -_machdep_sys_pipe: - mov %o0, %o2 - mov SYS_pipe, %g1 - ta 0 - bcs 1b - nop - st %o0, [ %o2 ] - st %o1, [ %o2 + 4 ] - retl - mov %g0, %o0 - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - mov SYS_fork, %g1; - ta 0; - bcs 1b; - nop; - dec %o1; - retl; - and %o0, %o1, %o0; ! return 0 in child, pid in parent - -/* ========================================================================== - * machdep_sys_sigprocmask() - */ - .globl _machdep_sys_sigprocmask; - -_machdep_sys_sigprocmask:; - - ld [%o1], %o1; - mov SYS_sigprocmask, %g1; - ta 0; - bcs 1b; - nop; - retl - nop - -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl _machdep_sys_sigsuspend; - -_machdep_sys_sigsuspend:; - - ld [%o0], %o0; - mov SYS_sigsuspend, %g1; - ta 0; - bcs 1b; - nop; - retl - nop diff --git a/mit-pthreads/machdep/syscall-sparc-netbsd-1.3.S b/mit-pthreads/machdep/syscall-sparc-netbsd-1.3.S deleted file mode 100644 index 74a51e756b7..00000000000 --- a/mit-pthreads/machdep/syscall-sparc-netbsd-1.3.S +++ /dev/null @@ -1,172 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#include <machine/asm.h> -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _C_LABEL(machdep_sys_##x); \ - \ -_C_LABEL(machdep_sys_##x):; \ - \ - mov SYS_##x, %g1; \ - ta 0; \ - bcs,a 2b; \ - sub %r0,%o0,%o0; \ - retl - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl _C_LABEL(machdep_sys_pipe) - -_C_LABEL(machdep_sys_pipe): - mov %o0, %o2 - mov SYS_pipe, %g1 - ta 0 - bcs 1b - nop - st %o0, [ %o2 ] - st %o1, [ %o2 + 4 ] - retl - mov %g0, %o0 - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _C_LABEL(machdep_sys_fork); - -_C_LABEL(machdep_sys_fork):; - - mov SYS_fork, %g1; - ta 0; - bcs 1b; - nop; - dec %o1; - retl; - and %o0, %o1, %o0; ! return 0 in child, pid in parent - -#ifndef SYS___sigprocmask14 -/* ========================================================================== - * machdep_sys_sigprocmask() - */ - .globl _C_LABEL(machdep_sys_sigprocmask); - -_C_LABEL(machdep_sys_sigprocmask):; - - ld [%o1], %o1; - mov SYS_sigprocmask, %g1; - ta 0; - bcs 1b; - nop; - retl - nop -#endif - -#ifndef SYS___sigsuspend14 -/* ========================================================================== - * machdep_sys_sigsuspend() - */ - .globl _C_LABEL(machdep_sys_sigsuspend); - -_C_LABEL(machdep_sys_sigsuspend):; - - ld [%o0], %o0; - mov SYS_sigsuspend, %g1; - ta 0; - bcs 1b; - nop; - retl - nop -#endif - -/* ========================================================================== - * machdep_sys_fstat() - */ - .globl _C_LABEL(machdep_sys_fstat); - -_C_LABEL(machdep_sys_fstat):; - - mov SYS___fstat13, %g1; - ta 0; - bcs 1b; - nop; - retl - nop - -/* ========================================================================== - * machdep_sys___syscall() - */ -_machdep_sys___syscall:; - - mov SYS___syscall, %g1; - ta 0; - bcs 1b; - nop; - retl - nop - -/* ========================================================================== - * machdep_sys_lseek() - */ - .global _C_LABEL(machdep_sys_lseek) - -_C_LABEL(machdep_sys_lseek): - save %sp,-112,%sp - mov %i1,%o4 - mov %i2,%o5 - st %i3,[%sp+92] - mov 0,%o0 - mov SYS_lseek,%o1 - mov %i0,%o2 - call _machdep_sys___syscall,0 - mov 0,%o3 - mov %o0,%i0 - mov %o1,%i1 - ret - restore - -/* ========================================================================== - * machdep_sys_ftruncate() - */ - .global _C_LABEL(machdep_sys_ftruncate) - -_C_LABEL(machdep_sys_ftruncate): - save %sp,-104,%sp - mov %i1,%o4 - mov %i2,%o5 - mov 0,%o0 - mov SYS_ftruncate,%o1 - mov %i0,%o2 - call _machdep_sys___syscall,0 - mov 0,%o3 - mov %o0,%o1 - sra %o0,31,%o0 - ret - restore %g0,%o1,%o0 diff --git a/mit-pthreads/machdep/syscall-sparc-sunos-4.1.3.S b/mit-pthreads/machdep/syscall-sparc-sunos-4.1.3.S deleted file mode 100644 index ec293b0ca3f..00000000000 --- a/mit-pthreads/machdep/syscall-sparc-sunos-4.1.3.S +++ /dev/null @@ -1,113 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _machdep_sys_##x; \ - \ -_machdep_sys_##x:; \ - \ - mov SYS_##x, %g1; \ - ta 0; \ - bcs,a 2b; \ - sub %r0,%o0,%o0; \ - retl - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl _machdep_sys_pipe - -_machdep_sys_pipe: - mov %o0, %o2 - mov SYS_pipe, %g1 - ta 0 - bcs 1b - nop - st %o0, [ %o2 ] - st %o1, [ %o2 + 4 ] - retl - mov %g0, %o0 - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - mov SYS_fork, %g1; - ta 0; - bcs 1b; - nop; - tst %o1 - bne,a __fork_parent - mov %g0, %o0 -__fork_parent:; - retl - -/* POSIX-compliant getpgrp() takes no arguments. The SunOS syscall wants - one, and gives the POSIXy result if that argument is zero. */ - .globl _getpgrp -_getpgrp: - mov SYS_getpgrp, %g1 - mov 0, %i0 - ta 0 - bcs 1b - nop - retl - nop - -#if 0 -/* I think this bit of magic will do the right thing for other syscalls. - We get here with the new `errno' code in %o0. It should get stored in - *__error(), and -1 returned to the caller. */ - .globl cerror -cerror: - save %sp,-104,%sp - /* Now value is in %i0. Store it in *__error(). */ - call ___error - nop - st %i0,[%o0] - - /* Now also store a copy in global variable errno, for routines - like isatty that want to examine it and which haven't been - converted yet. */ - sethi %hi(_errno), %o0 - st %i0,[%o0+%lo(_errno)] - -#if 0 /* use this if you want -errno returned */ - sub %r0,%i0,%i0 -#else /* return -1 */ - mov -1,%i0 -#endif - retl - restore -#endif diff --git a/mit-pthreads/machdep/syscall-sparc-sunos-5.3.S b/mit-pthreads/machdep/syscall-sparc-sunos-5.3.S deleted file mode 100644 index 822055ad04e..00000000000 --- a/mit-pthreads/machdep/syscall-sparc-sunos-5.3.S +++ /dev/null @@ -1,65 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#define _ASM -#include <sys/syscall.h> - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl machdep_sys_fork; - -machdep_sys_fork:; - - mov SYS_fork, %g1; - ta 0; - bcs 1b; - nop; - tst %o1 - bne,a __fork_parent - mov %g0, %o0 -__fork_parent:; - retl - nop; /* Added by monty to keep sparc assembler happy */ - -/* ========================================================================== - * Berkeley socket stuff - * - * ========================================================================== - * machdep_sys_socketcall() - */ - .globl machdep_sys_socketcall; - -machdep_sys_socketcall:; - - mov 83, %g1; - ta 0; - bcs,a 2b; - sub %r0,%o0,%o0; - retl - nop; /* Added by monty to keep sparc assembler happy */ diff --git a/mit-pthreads/machdep/syscall-sparc-sunos4.S b/mit-pthreads/machdep/syscall-sparc-sunos4.S deleted file mode 100644 index ec293b0ca3f..00000000000 --- a/mit-pthreads/machdep/syscall-sparc-sunos4.S +++ /dev/null @@ -1,113 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _machdep_sys_##x; \ - \ -_machdep_sys_##x:; \ - \ - mov SYS_##x, %g1; \ - ta 0; \ - bcs,a 2b; \ - sub %r0,%o0,%o0; \ - retl - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -/* ========================================================================== - * machdep_sys_pipe() - */ - .globl _machdep_sys_pipe - -_machdep_sys_pipe: - mov %o0, %o2 - mov SYS_pipe, %g1 - ta 0 - bcs 1b - nop - st %o0, [ %o2 ] - st %o1, [ %o2 + 4 ] - retl - mov %g0, %o0 - -/* ========================================================================== - * machdep_sys_fork() - */ - .globl _machdep_sys_fork; - -_machdep_sys_fork:; - - mov SYS_fork, %g1; - ta 0; - bcs 1b; - nop; - tst %o1 - bne,a __fork_parent - mov %g0, %o0 -__fork_parent:; - retl - -/* POSIX-compliant getpgrp() takes no arguments. The SunOS syscall wants - one, and gives the POSIXy result if that argument is zero. */ - .globl _getpgrp -_getpgrp: - mov SYS_getpgrp, %g1 - mov 0, %i0 - ta 0 - bcs 1b - nop - retl - nop - -#if 0 -/* I think this bit of magic will do the right thing for other syscalls. - We get here with the new `errno' code in %o0. It should get stored in - *__error(), and -1 returned to the caller. */ - .globl cerror -cerror: - save %sp,-104,%sp - /* Now value is in %i0. Store it in *__error(). */ - call ___error - nop - st %i0,[%o0] - - /* Now also store a copy in global variable errno, for routines - like isatty that want to examine it and which haven't been - converted yet. */ - sethi %hi(_errno), %o0 - st %i0,[%o0+%lo(_errno)] - -#if 0 /* use this if you want -errno returned */ - sub %r0,%i0,%i0 -#else /* return -1 */ - mov -1,%i0 -#endif - retl - restore -#endif diff --git a/mit-pthreads/machdep/syscall-template-alpha-netbsd-1.1.S b/mit-pthreads/machdep/syscall-template-alpha-netbsd-1.1.S deleted file mode 100644 index a2941ece7c9..00000000000 --- a/mit-pthreads/machdep/syscall-template-alpha-netbsd-1.1.S +++ /dev/null @@ -1,46 +0,0 @@ -#include <machine/asm.h> -#define COMPAT_43 -#include <sys/syscall.h> -#define CHMK() call_pal 0x83 - -#undef SYSCALL - -/* Kernel syscall interface: - Input: - v0 - system call number - a* - arguments, as in C - Output: - a3 - zero iff successful - v0 - errno value on failure, else result - - This macro is similar to SYSCALL in asm.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - This macro expansions does not include the return instruction. - If there's no other work to be done, use something like: - SYSCALL(foo) ; ret - If there is other work to do (in fork, maybe?), do it after the - SYSCALL invocation. */ - -#define SYSCALL(x) \ - .align 4 ;\ - .globl machdep_sys_##x ;\ - .ent machdep_sys_##x, 0 ;\ -machdep_sys_##x: ;\ - .frame sp,0,ra ;\ - ldiq v0, SYS_##x ;\ - CHMK() ;\ - beq a3, Lsys_noerr_##x ;\ - br gp, Lsys_err_##x ;\ -Lsys_err_##x: ;\ - /* Load gp so we can find cerror to jump to. */;\ - ldgp gp, 0(gp) ;\ - jmp zero, machdep_cerror ;\ -Lsys_noerr_##x: - -#define SIMPLE_SYSCALL(x) SYSCALL(x) ; ret ; .end machdep_sys_##x - -#define XSYSCALL(x) SIMPLE_SYSCALL(x) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-alpha-netbsd-1.3.S b/mit-pthreads/machdep/syscall-template-alpha-netbsd-1.3.S deleted file mode 100644 index 12595feabc1..00000000000 --- a/mit-pthreads/machdep/syscall-template-alpha-netbsd-1.3.S +++ /dev/null @@ -1,53 +0,0 @@ -#include <machine/asm.h> -#define COMPAT_43 -#include <sys/syscall.h> -#define CHMK() call_pal 0x83 - -#ifdef SYS___sigsuspend14 -#define SYS_sigsuspend SYS___sigsuspend14 -#endif -#ifdef SYS___sigprocmask14 -#define SYS_sigprocmask SYS___sigprocmask14 -#endif - -#undef SYSCALL - -/* Kernel syscall interface: - Input: - v0 - system call number - a* - arguments, as in C - Output: - a3 - zero iff successful - v0 - errno value on failure, else result - - This macro is similar to SYSCALL in asm.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - This macro expansions does not include the return instruction. - If there's no other work to be done, use something like: - SYSCALL(foo) ; ret - If there is other work to do (in fork, maybe?), do it after the - SYSCALL invocation. */ - -#define SYSCALL(x) \ - .align 4 ;\ - .globl machdep_sys_##x ;\ - .ent machdep_sys_##x, 0 ;\ -machdep_sys_##x: ;\ - .frame sp,0,ra ;\ - ldiq v0, SYS_##x ;\ - CHMK() ;\ - beq a3, Lsys_noerr_##x ;\ - br gp, Lsys_err_##x ;\ -Lsys_err_##x: ;\ - /* Load gp so we can find cerror to jump to. */;\ - ldgp gp, 0(gp) ;\ - jmp zero, machdep_cerror ;\ -Lsys_noerr_##x: - -#define SIMPLE_SYSCALL(x) SYSCALL(x) ; ret ; .end machdep_sys_##x - -#define XSYSCALL(x) SIMPLE_SYSCALL(x) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-alpha-osf1.S b/mit-pthreads/machdep/syscall-template-alpha-osf1.S deleted file mode 100644 index bc4653b5f9e..00000000000 --- a/mit-pthreads/machdep/syscall-template-alpha-osf1.S +++ /dev/null @@ -1,46 +0,0 @@ -#include <asm.h> -#include <regdef.h> -#define COMPAT_43 -#include <syscall.h> - -#undef SYSCALL - -/* Kernel syscall interface: - Input: - v0 - system call number - a* - arguments, as in C - Output: - a3 - zero iff successful - v0 - errno value on failure, else result - - This macro is similar to SYSCALL in asm.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - This macro expansions does not include the return instruction. - If there's no other work to be done, use something like: - SYSCALL(foo) ; ret - If there is other work to do (in fork, maybe?), do it after the - SYSCALL invocation. */ - -#define SYSCALL(x) \ - .align 4 ;\ - .globl machdep_sys_##x ;\ - .ent machdep_sys_##x, 0 ;\ -machdep_sys_##x: ;\ - .frame sp,0,ra ;\ - ldiq v0, SYS_##x ;\ - CHMK() ;\ - beq a3, 2f ;\ - br gp, 1f ;\ -1: ;\ - /* Load gp so we can find cerror to jump to. */;\ - ldgp gp, 0(gp) ;\ - jmp zero, machdep_cerror ;\ -2: - -#define SIMPLE_SYSCALL(x) SYSCALL(x) ; ret ; .end machdep_sys_##x - -#define XSYSCALL(x) SIMPLE_SYSCALL(x) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-arm32-netbsd-1.3.S b/mit-pthreads/machdep/syscall-template-arm32-netbsd-1.3.S deleted file mode 100644 index 923d2c03a75..00000000000 --- a/mit-pthreads/machdep/syscall-template-arm32-netbsd-1.3.S +++ /dev/null @@ -1,55 +0,0 @@ -#include <machine/asm.h> -#include <sys/syscall.h> - -#ifdef SYS___sigsuspend14 -#define SYS_sigsuspend SYS___sigsuspend14 -#endif -#ifdef SYS___sigprocmask14 -#define SYS_sigprocmask SYS___sigprocmask14 -#endif - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl _C_LABEL(machdep_sys_##x); \ - \ -_C_LABEL(machdep_sys_##x):; \ - \ - swi SYS_##x; \ - bcs 1b; \ - mov r15, r14; - -#else - -#define SYSCALL(x) \ - .globl _C_LABEL(_machdep_sys_/**/x); \ - \ -_C_LABEL(machdep_sys_/**/x):; \ - \ - swi SYS_/**/x; \ - bcs 1b; \ - mov r15, r14; - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 0 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - rsb r0, r0, #0x00000000 - mvn r1, #0x00000000 - mov r15, r14 - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-hppa-hpux-10.20.S b/mit-pthreads/machdep/syscall-template-hppa-hpux-10.20.S deleted file mode 100644 index 0123b1deee7..00000000000 --- a/mit-pthreads/machdep/syscall-template-hppa-hpux-10.20.S +++ /dev/null @@ -1,27 +0,0 @@ -/* ==== syscall.S ============================================================ - * Written 1996 by Stefan Grefen, grefen@convex.com - */ - -#include <sys/syscall.h> - -#define _CAT(a,b)a##b -#define CAT(a,b)_CAT(a,b) - -#define MKNAME(a)CAT(a,SYSCALL_NAME) - - .CODE -machdep_error - sub %r0,%r28,%r28 - bv,n %r0(%r2) - - .label MKNAME(machdep_sys_) - .PROC - .CALLINFO NO_CALLS,FRAME=0 - ldil -0x80000,%r1 - ble 4(%sr7,%r1) - ldi MKNAME(SYS_),%r22 - or,= %r0,%r22,%r0 - b,n machdep_error - bv,n %r0(%r2) - .PROCEND - .EXPORT MKNAME(machdep_sys_) diff --git a/mit-pthreads/machdep/syscall-template-hppa-hpux-9.03.S b/mit-pthreads/machdep/syscall-template-hppa-hpux-9.03.S deleted file mode 100644 index 0123b1deee7..00000000000 --- a/mit-pthreads/machdep/syscall-template-hppa-hpux-9.03.S +++ /dev/null @@ -1,27 +0,0 @@ -/* ==== syscall.S ============================================================ - * Written 1996 by Stefan Grefen, grefen@convex.com - */ - -#include <sys/syscall.h> - -#define _CAT(a,b)a##b -#define CAT(a,b)_CAT(a,b) - -#define MKNAME(a)CAT(a,SYSCALL_NAME) - - .CODE -machdep_error - sub %r0,%r28,%r28 - bv,n %r0(%r2) - - .label MKNAME(machdep_sys_) - .PROC - .CALLINFO NO_CALLS,FRAME=0 - ldil -0x80000,%r1 - ble 4(%sr7,%r1) - ldi MKNAME(SYS_),%r22 - or,= %r0,%r22,%r0 - b,n machdep_error - bv,n %r0(%r2) - .PROCEND - .EXPORT MKNAME(machdep_sys_) diff --git a/mit-pthreads/machdep/syscall-template-i386-bsdi-2.0.S b/mit-pthreads/machdep/syscall-template-i386-bsdi-2.0.S deleted file mode 100644 index 3299f49195f..00000000000 --- a/mit-pthreads/machdep/syscall-template-i386-bsdi-2.0.S +++ /dev/null @@ -1,48 +0,0 @@ -#include <sys/syscall.h> - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl _machdep_sys_##x##; \ - \ -_machdep_sys_##x##:; \ - \ - movl $(SYS_##x##), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -#else - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x/**/; \ - \ -_machdep_sys_/**/x/**/:; \ - \ - movl $(SYS_/**/x/**/), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-i386-freebsd-2.0.S b/mit-pthreads/machdep/syscall-template-i386-freebsd-2.0.S deleted file mode 100644 index 1906a949c8b..00000000000 --- a/mit-pthreads/machdep/syscall-template-i386-freebsd-2.0.S +++ /dev/null @@ -1,59 +0,0 @@ -#include <sys/syscall.h> - -#ifdef __STDC__ - -#define SYS(X) SYS_##X -#ifdef __ELF__ -#define NAME(X) machdep_sys_##X -#else -#define NAME(X) _machdep_sys_##X -#endif - -#else - -#define SYS(X) SYS_/**/X -#ifdef __ELF__ -#define NAME(X) machdep_sys_/**/X -#else -#define NAME(X) _machdep_sys_/**/X -#endif - -#endif - -#ifdef __ELF__ -#define END(X) 5: ; .type NAME(X),@function ; .size NAME(X),5b - NAME(X) -#define KERNCALL int $0x80 -#else -#define END(X) -#define KERNCALL .byte 0x9a; .long 0; .word 7; -#endif - -#define SYSCALL(x) \ - .globl NAME(x); \ - \ -NAME(x):; \ - movl $(SYS(x)), %eax; \ - KERNCALL; \ - jb 1b; \ - ret; \ - END(x) - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-i386-netbsd-1.1.S b/mit-pthreads/machdep/syscall-template-i386-netbsd-1.1.S deleted file mode 100644 index c5e76bb4538..00000000000 --- a/mit-pthreads/machdep/syscall-template-i386-netbsd-1.1.S +++ /dev/null @@ -1,49 +0,0 @@ -#include <machine/asm.h> -#include <sys/syscall.h> - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl _machdep_sys_##x; \ - \ -_machdep_sys_##x:; \ - \ - movl $(SYS_##x), %eax; \ - int $0x80; \ - jb 1b; \ - ret; - -#else - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x; \ - \ -_machdep_sys_/**/x:; \ - \ - movl $(SYS_/**/x), %eax; \ - int $0x80; \ - jb 1b; \ - ret; - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-i386-netbsd-1.3.S b/mit-pthreads/machdep/syscall-template-i386-netbsd-1.3.S deleted file mode 100644 index d6dffc35132..00000000000 --- a/mit-pthreads/machdep/syscall-template-i386-netbsd-1.3.S +++ /dev/null @@ -1,56 +0,0 @@ -#include <machine/asm.h> -#include <sys/syscall.h> - -#ifdef SYS___sigsuspend14 -#define SYS_sigsuspend SYS___sigsuspend14 -#endif -#ifdef SYS___sigprocmask14 -#define SYS_sigprocmask SYS___sigprocmask14 -#endif - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl _C_LABEL(machdep_sys_##x); \ - \ -_C_LABEL(machdep_sys_##x):; \ - \ - movl $(SYS_##x), %eax; \ - int $0x80; \ - jb 1b; \ - ret; - -#else - -#define _SYSCALL(x) \ - .globl _C_LABEL(machdep_sys_/**/x); \ - \ -_C_LABEL(machdep_sys_/**/x):; \ - \ - movl $(SYS_/**/x), %eax; \ - int $0x80; \ - jb 1b; \ - ret; - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-i386-netbsd1.0.S b/mit-pthreads/machdep/syscall-template-i386-netbsd1.0.S deleted file mode 100644 index 83a2405ed51..00000000000 --- a/mit-pthreads/machdep/syscall-template-i386-netbsd1.0.S +++ /dev/null @@ -1,49 +0,0 @@ -#include <machine/asm.h> -#include <sys/syscall.h> - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl _machdep_sys_##x; \ - \ -_machdep_sys_##x:; \ - \ - movl $(SYS_##x), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -#else - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x; \ - \ -_machdep_sys_/**/x:; \ - \ - movl $(SYS_/**/x), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-i386-openbsd-2.0.S b/mit-pthreads/machdep/syscall-template-i386-openbsd-2.0.S deleted file mode 100644 index 34fb5caaa43..00000000000 --- a/mit-pthreads/machdep/syscall-template-i386-openbsd-2.0.S +++ /dev/null @@ -1,48 +0,0 @@ -#include <sys/syscall.h> - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl _machdep_sys_##x##; \ - \ -_machdep_sys_##x:##; \ - \ - movl $(SYS_##x##), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -#else - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x; \ - \ -_machdep_sys_/**/x:; \ - \ - movl $(SYS_/**/x), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jb 1b; \ - ret; - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - neg %eax - ret - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-i386-sco-3.2v5.S b/mit-pthreads/machdep/syscall-template-i386-sco-3.2v5.S deleted file mode 100644 index 753475b5c3d..00000000000 --- a/mit-pthreads/machdep/syscall-template-i386-sco-3.2v5.S +++ /dev/null @@ -1,67 +0,0 @@ -#include <sys/errno.h> -#include <sys/syscall.h> - -#ifdef _SCO_ELF - -#define NAME(X) machdep_sys_##X -#define END(X) 1: ; .type NAME(X),@function ; .size NAME(X),1b - NAME(X) -#define GETBX(X) \ - push %ebx; \ - call 1f; \ -1: \ - popl %ebx; -#else - -#define NAME(X) _machdep_sys_##X -#define END(X) - -#endif - -#ifdef __STDC__ - -#define SYSCALL(x) \ - .globl NAME(x); \ - \ -NAME(x):; \ - movl $(SYS_##x##), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jae 1f; \ - cmp $(ERESTART), %eax; \ - je NAME(x); \ - neg %eax; \ -1: \ - ret; \ - END(x) - -#else - -#define SYSCALL(x) \ - .globl _machdep_sys_/**/x; \ - \ -machdep_sys_/**/x:; \ - \ - movl $(SYS_/**/x), %eax; \ - .byte 0x9a; .long 0; .word 7; \ - jae 1f; \ - neg %eax; -1: \ - ret; - -#endif - - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-ip22-irix-5.2.S b/mit-pthreads/machdep/syscall-template-ip22-irix-5.2.S deleted file mode 100644 index 722b001671b..00000000000 --- a/mit-pthreads/machdep/syscall-template-ip22-irix-5.2.S +++ /dev/null @@ -1,51 +0,0 @@ -#include <sys.s> -#include <sys/regdef.h> -/* #include <sys/asm.h> */ - -/* - Kernel syscall interface: - Input: - v0 syscall number - Output: - - This macro is similar to SYSCALL in sys/syscall.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - Compile with -DPIC for pic code. -*/ - -#ifdef PIC -#define PICOPT .option pic2 -#else -#define PICOPT -#endif - - -#define YSYSCALL(x) \ - PICOPT; \ - .globl machdep_sys_##x; \ - .ent machdep_sys_##x, 0; \ -machdep_sys_##x:; \ - .frame sp,0,ra; \ - .set noreorder; \ - li v0, SYS_##x; \ - syscall; \ - bne a3, zero, 1b; \ - nop; \ - j ra; \ - nop; \ - .end machdep_sys_##x - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - subu v0,zero,v0; - j ra; - -#define XSYSCALL(x) YSYSCALL(x) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-m68000-netbsd.S b/mit-pthreads/machdep/syscall-template-m68000-netbsd.S deleted file mode 100644 index ce16bb5523c..00000000000 --- a/mit-pthreads/machdep/syscall-template-m68000-netbsd.S +++ /dev/null @@ -1,43 +0,0 @@ -#include <machine/asm.h> -#include <sys/syscall.h> - -#ifdef SYS___sigsuspend14 -#define SYS_sigsuspend SYS___sigsuspend14 -#endif -#ifdef SYS___sigprocmask14 -#define SYS_sigprocmask SYS___sigprocmask14 -#endif - - -#ifdef __STDC__ -#define IMM # -#define SYSCALL(x) .even; \ - ENTRY(machdep_sys_ ## x); \ - movl IMM SYS_ ## x,d0; \ - trap IMM 0; \ - jcs err; \ - rts -#else /* !__STDC__ */ -#define SYSCALL(x) .even; ENTRY(machdep_sys_/**/x); \ - movl #SYS_/**/x,d0; trap #0; jcs err; rts -#endif /* !__STDC__ */ - -/* - * Initial asm stuff for all functions. - */ - .text - .even - - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -err: - negl d0 - rts - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-powerpc-netbsd.S b/mit-pthreads/machdep/syscall-template-powerpc-netbsd.S deleted file mode 100644 index 1755c1ab2e8..00000000000 --- a/mit-pthreads/machdep/syscall-template-powerpc-netbsd.S +++ /dev/null @@ -1,45 +0,0 @@ -#include <machine/asm.h> -#define COMPAT_43 -#include <sys/syscall.h> - -#ifdef SYS___sigsuspend14 -#define SYS_sigsuspend SYS___sigsuspend14 -#endif - -#ifdef SYS___sigaction14 -#define SYS_sigaction SYS___sigaction14 -#endif - -#ifdef SYS___sigprocmask14 -#define SYS_sigprocmask SYS___sigprocmask14 -#endif - -#undef SYSCALL - -/* Kernel syscall interface: - Input: - 0 - system call number - 3-8 - arguments, as in C - Output: - so - (summary overflow) clear iff successful - - This macro is similar to SYSCALL in asm.h, but not completely. - There's room for optimization, if we assume this will continue to - be assembled as one file. - - This macro expansions does not include the return instruction. - If there's no other work to be done, use something like: - SYSCALL(foo) ; ret - If there is other work to do (in fork, maybe?), do it after the - SYSCALL invocation. */ - -#define SYSCALL(x) \ - ENTRY(machdep_sys_ ## x) \ - li 0, SYS_ ## x ; \ - sc ; \ - bnslr ; \ - b PIC_PLT(_C_LABEL(machdep_cerror)) - -#define XSYSCALL(x) SYSCALL(x) ; blr - - XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-r2000-ultrix-4.2.S b/mit-pthreads/machdep/syscall-template-r2000-ultrix-4.2.S deleted file mode 100644 index 575fe3c3d74..00000000000 --- a/mit-pthreads/machdep/syscall-template-r2000-ultrix-4.2.S +++ /dev/null @@ -1,77 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1993 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Description : Machine dependent syscalls for decstation with r2000/r3000 - * - * 1.00 93/08/14 proven - * -Started coding this file. - */ - - .text - .ascii "$Id$"; - -#include <syscall.h> -#include <machine/regdef.h> - -#define SYSCALL(x) \ - \ - .globl machdep_sys_##x; \ - .ent machdep_sys_##x; \ - \ -machdep_sys_##x:; \ - \ - .frame sp,0,ra; /* No frame, return address in ra */ \ - \ - li v0,SYS_##x; /* Load syscall # into v0 */ \ - syscall; \ - bne a3,zero,machdep_error; /* Error if a3 != 0 */ \ - j ra; \ - \ - .end machdep_sys_##x - -/* - * Initial asm stuff for all functions. - */ - .text - .align 2 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. Eventually I want to load the errno value directly - * into pthread_run->error but until then ... - */ -machdep_error: - negu v0, v0 /* Return negative of errno value. */ - j ra - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-sparc-netbsd-1.1.S b/mit-pthreads/machdep/syscall-template-sparc-netbsd-1.1.S deleted file mode 100644 index 2d07892a315..00000000000 --- a/mit-pthreads/machdep/syscall-template-sparc-netbsd-1.1.S +++ /dev/null @@ -1,40 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _machdep_sys_##x; \ - \ -_machdep_sys_##x:; \ - \ - mov SYS_##x, %g1; \ - ta 0; \ - bcs,a 2b; \ - sub %r0,%o0,%o0; \ - retl; \ - nop - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-sparc-netbsd-1.3.S b/mit-pthreads/machdep/syscall-template-sparc-netbsd-1.3.S deleted file mode 100644 index 2caad5c3437..00000000000 --- a/mit-pthreads/machdep/syscall-template-sparc-netbsd-1.3.S +++ /dev/null @@ -1,48 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#include <machine/asm.h> -#include <sys/syscall.h> - -#ifdef SYS___sigsuspend14 -#define SYS_sigsuspend SYS___sigsuspend14 -#endif -#ifdef SYS___sigprocmask14 -#define SYS_sigprocmask SYS___sigprocmask14 -#endif - -#define SYSCALL(x) \ - .globl _C_LABEL(machdep_sys_##x); \ - \ -_C_LABEL(machdep_sys_##x):; \ - \ - mov SYS_##x, %g1; \ - ta 0; \ - bcs,a 2b; \ - sub %r0,%o0,%o0; \ - retl; \ - nop - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/syscall-template-sparc-sunos-5.3.S b/mit-pthreads/machdep/syscall-template-sparc-sunos-5.3.S deleted file mode 100644 index 65a796a057d..00000000000 --- a/mit-pthreads/machdep/syscall-template-sparc-sunos-5.3.S +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#ifndef lint - .text - .asciz "$Id$"; -#endif - -#define _ASM -#include <sys/syscall.h> - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -#define concat2(a,b) a ## b -#define concat(a,b) concat2(a,b) -#define SYSval concat(SYS_,SYSCALL_NAME) -#define procname concat(machdep_sys_,SYSCALL_NAME) - - .globl procname - -procname: - mov SYSval, %g1 - ta 0 - bcs,a 2b - sub %r0,%o0,%o0 - retl - nop diff --git a/mit-pthreads/machdep/syscall-template-sparc-sunos4.S b/mit-pthreads/machdep/syscall-template-sparc-sunos4.S deleted file mode 100644 index 2d07892a315..00000000000 --- a/mit-pthreads/machdep/syscall-template-sparc-sunos4.S +++ /dev/null @@ -1,40 +0,0 @@ -/* ==== syscall.S ============================================================ - * Copyright (c) 1994 Chris Provenzano, proven@mit.edu - * All rights reserved. - * - */ - -#include <sys/syscall.h> - -#define SYSCALL(x) \ - .globl _machdep_sys_##x; \ - \ -_machdep_sys_##x:; \ - \ - mov SYS_##x, %g1; \ - ta 0; \ - bcs,a 2b; \ - sub %r0,%o0,%o0; \ - retl; \ - nop - -/* - * Initial asm stuff for all functions. - */ - .text - .align 4 - -/* ========================================================================== - * error code for all syscalls. The error value is returned as the negative - * of the errno value. - */ - -1: - sub %r0, %o0, %o0 -2: - retl - nop - -#define XSYSCALL(NAME) SYSCALL(NAME) - -XSYSCALL(SYSCALL_NAME) diff --git a/mit-pthreads/machdep/ultrix-4.2/__math.h b/mit-pthreads/machdep/ultrix-4.2/__math.h deleted file mode 100755 index 6249d720039..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/__math.h +++ /dev/null @@ -1,2 +0,0 @@ -#define HUGE_VAL 1.8e+308 - diff --git a/mit-pthreads/machdep/ultrix-4.2/__signal.h b/mit-pthreads/machdep/ultrix-4.2/__signal.h deleted file mode 100755 index 68364772a6a..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/__signal.h +++ /dev/null @@ -1,66 +0,0 @@ -#include <ansi_compat.h> - -#define NSIG 32 - -#define SIGHUP 1 /* hangup */ -#define SIGINT 2 /* interrupt */ -#define SIGQUIT 3 /* quit */ -#define SIGILL 4 /* illegal instruction (not reset when caught) */ -#define SIGTRAP 5 /* trace trap (not reset when caught) */ -#define SIGIOT 6 /* IOT instruction */ -#define SIGEMT 7 /* EMT instruction */ -#define SIGFPE 8 /* floating point exception */ -#define SIGKILL 9 /* kill (cannot be caught or ignored) */ -#define SIGBUS 10 /* bus error */ -#define SIGSEGV 11 /* segmentation violation */ -#define SIGSYS 12 /* bad argument to system call */ -#define SIGPIPE 13 /* write on a pipe with no one to read it */ -#define SIGALRM 14 /* alarm clock */ -#define SIGTERM 15 /* software termination signal from kill */ -#define SIGURG 16 /* urgent condition on IO channel */ -#define SIGSTOP 17 /* sendable stop signal not from tty */ -#define SIGTSTP 18 /* stop signal from tty */ -#define SIGCONT 19 /* continue a stopped process */ -#define SIGCHLD 20 /* to parent on child stop or exit */ -#define SIGTTIN 21 /* to readers pgrp upon background tty read */ -#define SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */ -#define SIGIO 23 /* input/output possible signal */ -#define SIGXCPU 24 /* exceeded CPU time limit */ -#define SIGXFSZ 25 /* exceeded file size limit */ -#define SIGVTALRM 26 /* virtual time alarm */ -#define SIGPROF 27 /* profiling time alarm */ -#define SIGWINCH 28 /* window size changes */ -#define SIGLOST 29 /* Sys-V rec lock: notify user upon server crash */ -#define SIGUSR1 30 /* User signal 1 (from SysV) */ -#define SIGUSR2 31 /* User signal 2 (from SysV) */ - -/* Add System V signal definitions (DLB001) */ -#define SIGCLD SIGCHLD /* System V name for SIGCHLD */ -#define SIGABRT SIGIOT - -typedef long sig_atomic_t; -typedef unsigned int sigset_t; - -struct sigaction { - void (*sa_handler)(); /* signal handler */ - sigset_t sa_mask; /* signal mask to apply */ - int sa_flags; /* see signal options below */ -}; - -/* Defines for sigprocmask() call. POSIX. - */ -#define SIG_BLOCK 1 /* Add these signals to block mask */ -#define SIG_UNBLOCK 2 /* Remove these signals from block mask */ -#define SIG_SETMASK 3 /* Set block mask to this mask */ - -#define SIG_ERR ((void (*)())(-1)) -#define SIG_DFL ((void (*)())( 0)) -#define SIG_IGN ((void (*)())( 1)) - - -#define __SIGFILLSET 0xffffffff -#define __SIGEMPTYSET 0 -#define __SIGADDSET(s,n) ((*s) |= (1 << ((n) - 1))) -#define __SIGDELSET(s,n) ((*s) &= ~(1 << ((n) - 1))) -#define __SIGISMEMBER(s,n) ((*s) & (1 << ((n) - 1))) - diff --git a/mit-pthreads/machdep/ultrix-4.2/__stdio.h b/mit-pthreads/machdep/ultrix-4.2/__stdio.h deleted file mode 100755 index 3f6aee47de3..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/__stdio.h +++ /dev/null @@ -1,7 +0,0 @@ - -#if ! defined(_SIZE_T_) -#define _SIZE_T_ -typedef pthread_size_t size_t; -#endif - -typedef pthread_fpos_t fpos_t; diff --git a/mit-pthreads/machdep/ultrix-4.2/__stdlib.h b/mit-pthreads/machdep/ultrix-4.2/__stdlib.h deleted file mode 100755 index e2e52cc41c9..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/__stdlib.h +++ /dev/null @@ -1,21 +0,0 @@ - -#ifndef _SYS___STDLIB_H_ -#define _SYS___STDLIB_H_ - -#include <ansi_compat.h> - -#ifndef _SIZE_T_ -#define _SIZE_T_ -typedef unsigned int size_t; -#endif - -#ifndef _WCHAR_T_ -#define _WCHAR_T_ -typedef unsigned int wchar_t; -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif diff --git a/mit-pthreads/machdep/ultrix-4.2/__string.h b/mit-pthreads/machdep/ultrix-4.2/__string.h deleted file mode 100755 index 03039b5cf73..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/__string.h +++ /dev/null @@ -1,17 +0,0 @@ - -#if ! defined(_SIZE_T_) -#define _SIZE_T_ -typedef pthread_size_t size_t; -#endif - -/* Non-standard Ultrix string routines. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -__BEGIN_DECLS -int bcmp __P_((const void *, const void *, size_t)); -void bcopy __P_((const void *, void *, size_t)); -void bzero __P_((void *, size_t)); -char *index __P_((const char *, int)); -char *rindex __P_((const char *, int)); -__END_DECLS -#endif - diff --git a/mit-pthreads/machdep/ultrix-4.2/__time.h b/mit-pthreads/machdep/ultrix-4.2/__time.h deleted file mode 100755 index dddc54430bc..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/__time.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS__TIME_H_ -#define _SYS__TIME_H_ - -#include <ansi_compat.h> - -#ifndef _CLOCK_T_ -#define _CLOCK_T_ -typedef int clock_t; -#endif - -#ifndef _TIME_T_ -#define _TIME_T_ -typedef int time_t; -#endif - -#ifndef _SIZE_T_ -#define _SIZE_T_ -typedef unsigned int size_t; -#endif - -#define CLOCKS_PER_SEC 1000000 - -#if !defined(_ANSI_SOURCE) -#define CLK_TCK 60 -#endif /* not ANSI */ - -#endif /* !_SYS__TIME_H_ */ diff --git a/mit-pthreads/machdep/ultrix-4.2/__unistd.h b/mit-pthreads/machdep/ultrix-4.2/__unistd.h deleted file mode 100755 index f570242ef0d..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/__unistd.h +++ /dev/null @@ -1,51 +0,0 @@ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id$ - */ - -#ifndef _SYS___UNISTD_H_ -#define _SYS___UNISTD_H_ - -#include <sys/types.h> - -#ifndef _SSIZE_T_ -#define _SSIZE_T_ -typedef int ssize_t; -#endif - -#ifndef NULL -#define NULL 0 -#endif - -#endif diff --git a/mit-pthreads/machdep/ultrix-4.2/cdefs.h b/mit-pthreads/machdep/ultrix-4.2/cdefs.h deleted file mode 100755 index 4e1dc1c280d..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/cdefs.h +++ /dev/null @@ -1,66 +0,0 @@ -/* ==== cdefs.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@athena.mit.edu - * - * Description : Similar to the BSD cdefs.h file. - * - * 1.00 94/01/26 proven - * -Started coding this file. - */ - -#ifndef _PTHREAD_SYS_CDEFS_H_ -#define _PTHREAD_SYS_CDEFS_H_ - -/* Stuff for compiling */ -#if defined(__GNUC__) -#if defined(__cplusplus) -#define __INLINE static inline -#define __BEGIN_DECLS extern "C" { -#define __END_DECLS }; -#else -#define __INLINE extern inline -#define __CAN_DO_EXTERN_INLINE -#define __BEGIN_DECLS -#define __END_DECLS -#if !defined(__STDC__) -#define const __const -#define inline __inline -#define signed __signed -#define volatile __volatile -#endif -#endif -#else /* !__GNUC__ */ -#define __INLINE static -#define __BEGIN_DECLS -#define __END_DECLS -#endif - -#ifndef __NORETURN -#define __NORETURN -#endif /* __NORETURN not defined. */ - -#ifndef _U_INT32_T_ -#define _U_INT32_T_ -typedef unsigned int u_int32_t; -#endif - -#ifndef _U_INT16_T_ -#define _U_INT16_T_ -typedef unsigned short u_int16_t; -#endif - -#ifndef _INT32_T_ -#define _INT32_T_ -typedef int int32_t; -#endif - -#ifndef _INT16_T_ -#define _INT16_T_ -typedef short int16_t; -#endif - -#ifndef _SSIZE_T_ -#define _SSIZE_T_ -typedef int ssize_t; -#endif - -#endif diff --git a/mit-pthreads/machdep/ultrix-4.2/compat.h b/mit-pthreads/machdep/ultrix-4.2/compat.h deleted file mode 100755 index b2a846d00ee..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/compat.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ==== compat.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_COMPAT_H_ -#define _SYS_COMPAT_H_ - -#define omsghdr msghdr - -#endif diff --git a/mit-pthreads/machdep/ultrix-4.2/dirent.h b/mit-pthreads/machdep/ultrix-4.2/dirent.h deleted file mode 100755 index 5f17af345db..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/dirent.h +++ /dev/null @@ -1,61 +0,0 @@ -/*- - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dirent.h 5.18 (Berkeley) 2/23/91 - */ - -#ifndef _SYS_DIRENT_H_ -#define _SYS_DIRENT_H_ - -/* - * A directory entry has a struct dirent at the front of it, containing its - * inode number, the length of the entry, and the length of the name - * contained in the entry. These are followed by the name padded to a 4 - * byte boundary with null bytes. All names are guaranteed null terminated. - * The maximum length of a name in a directory is MAXNAMLEN. - */ - -struct dirent { - u_long d_fileno; /* file number of entry */ - u_short d_reclen; /* length of this record */ - u_short d_namlen; /* length of string in d_name */ -#ifdef _POSIX_SOURCE - char d_name[255 + 1]; /* name must be no longer than this */ -#else -#define MAXNAMLEN 255 - char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ -#endif -}; - -#define d_ino d_fileno - -#endif /* !_SYS_DIRENT_H_ */ diff --git a/mit-pthreads/machdep/ultrix-4.2/errno.h b/mit-pthreads/machdep/ultrix-4.2/errno.h deleted file mode 100755 index b47633a9456..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/errno.h +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (c) 1982, 1986, 1989 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)errno.h 7.13 (Berkeley) 2/19/91 - * errno.h,v 1.3 1993/05/20 16:22:09 cgd Exp - */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* Input/output error */ -#define ENXIO 6 /* Device not configured */ -#define E2BIG 7 /* Argument list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file descriptor */ -#define ECHILD 10 /* No child processes */ -#define EAGAIN 11 /* No more processes */ -#define ENOMEM 12 /* Cannot allocate memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -/* 15 Non POSIX */ -/* 16 Non POSIX */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* Operation not supported by device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* Too many open files in system */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Inappropriate ioctl for device */ -/* 26 Non POSIX */ -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ - -/* math software */ -#define EDOM 33 /* Numerical argument out of domain */ -#define ERANGE 34 /* Result too large */ -/* 35 Non POSIX */ -/* 36 Non POSIX */ -/* 37 Non POSIX */ -/* 38 Non POSIX */ -/* 39 Non POSIX */ -/* 40 Non POSIX */ -/* 41 Non POSIX */ -/* 42 Non POSIX */ -/* 43 Non POSIX */ -/* 44 Non POSIX */ -/* 45 Non POSIX */ -/* 46 Non POSIX */ -/* 47 Non POSIX */ -/* 48 Non POSIX */ -/* 49 Non POSIX */ -/* 50 Non POSIX */ -/* 51 Non POSIX */ -/* 52 Non POSIX */ -/* 53 Non POSIX */ -/* 54 Non POSIX */ -/* 55 Non POSIX */ -/* 56 Non POSIX */ -/* 57 Non POSIX */ -/* 58 Non POSIX */ -/* 59 Non POSIX */ -/* 60 Non POSIX */ -/* 61 Non POSIX */ -/* 62 Non POSIX */ -#define ENAMETOOLONG 63 /* File name too long */ -/* 64 Non POSIX */ -/* 65 Non POSIX */ -#define ENOTEMPTY 66 /* Directory not empty */ -/* 67 Non POSIX */ -/* 68 Non POSIX */ -/* 69 Non POSIX */ -/* 70 Non POSIX */ -/* 71 Non POSIX */ -/* 72 Non POSIX */ -/* 73 Non POSIX */ -/* 74 Non POSIX */ -#define ENOLCK 75 /* No locks available */ -#define ENOSYS 76 /* Function not implemented */ - -#ifndef _POSIX_SOURCE -#define ENOTBLK 15 /* Block device required */ -#define EBUSY 16 /* Device busy */ -#define ETXTBSY 26 /* Text file busy */ - -/* non-blocking and interrupt i/o */ -#define EWOULDBLOCK 35 /* Operation would block */ -#define EDEADLK EWOULDBLOCK /* Resource deadlock avoided */ -#define EINPROGRESS 36 /* Operation now in progress */ -#define EALREADY 37 /* Operation already in progress */ - -/* ipc/network software -- argument errors */ -#define ENOTSOCK 38 /* Socket operation on non-socket */ -#define EDESTADDRREQ 39 /* Destination address required */ -#define EMSGSIZE 40 /* Message too long */ -#define EPROTOTYPE 41 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 42 /* Protocol not available */ -#define EPROTONOSUPPORT 43 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 44 /* Socket type not supported */ -#define EOPNOTSUPP 45 /* Operation not supported on socket */ -#define EPFNOSUPPORT 46 /* Protocol family not supported */ -#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ -#define EADDRINUSE 48 /* Address already in use */ -#define EADDRNOTAVAIL 49 /* Can't assign requested address */ - -/* ipc/network software -- operational errors */ -#define ENETDOWN 50 /* Network is down */ -#define ENETUNREACH 51 /* Network is unreachable */ -#define ENETRESET 52 /* Network dropped connection on reset */ -#define ECONNABORTED 53 /* Software caused connection abort */ -#define ECONNRESET 54 /* Connection reset by peer */ -#define ENOBUFS 55 /* No buffer space available */ -#define EISCONN 56 /* Socket is already connected */ -#define ENOTCONN 57 /* Socket is not connected */ -#define ESHUTDOWN 58 /* Can't send after socket shutdown */ -#define ETOOMANYREFS 59 /* Too many references: can't splice */ -#define ETIMEDOUT 60 /* Connection timed out */ -#define ECONNREFUSED 61 /* Connection refused */ - -#define ELOOP 62 /* Too many levels of symbolic links */ - -#define EHOSTDOWN 64 /* Host is down */ -#define EHOSTUNREACH 65 /* No route to host */ - -/* quotas & mush */ -#define EPROCLIM 67 /* Too many processes */ -#define EUSERS 68 /* Too many users */ -#define EDQUOT 69 /* Disc quota exceeded */ - -/* Network File System */ -#define ESTALE 70 /* Stale NFS file handle */ -#define EREMOTE 71 /* Too many levels of remote in path */ - -/* IPC errors */ -#define ENOMSG 72 /* RPC struct is bad */ -#define EIDRM 73 /* RPC version wrong */ - -/* Alignment error of some type (i.e., cluster, page, block ...) */ -#define EALIGN 74 /* RPC prog. not avail */ -#endif /* _POSIX_SOURCE */ - -#endif /* _SYS_ERRNO_H_ */ diff --git a/mit-pthreads/machdep/ultrix-4.2/time.h b/mit-pthreads/machdep/ultrix-4.2/time.h deleted file mode 100755 index 1dbb32b67a4..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/time.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 1989 The Regents of the University of California. - * All rights reserved. - * - * (c) UNIX System Laboratories, Inc. - * All or some portions of this file are derived from material licensed - * to the University of California by American Telephone and Telegraph - * Co. or Unix System Laboratories, Inc. and are reproduced herein with - * the permission of UNIX System Laboratories, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)time.h 5.12 (Berkeley) 3/9/91 - * $Id$ - */ - -#ifndef _SYS_TIME_H_ -#define _SYS_TIME_H_ - -#include <time.h> -#include <sys/cdefs.h> - -struct timeval { - long tv_sec; /* seconds */ - long tv_usec; /* microseconds */ -}; - -struct timezone { - int tz_minuteswest; /* minutes west of Greenwich */ - int tz_dsttime; /* dst correction */ -}; -#define DST_NONE 0 /* not on dst */ -#define DST_USA 1 /* USA style dst */ -#define DST_AUST 2 /* Australian style dst */ -#define DST_WET 3 /* Western European dst */ -#define DST_MET 4 /* Middle European dst */ -#define DST_EET 5 /* Eastern European dst */ - - -struct itimerval { - struct timeval it_interval; /* timer interval */ - struct timeval it_value; /* current value */ -}; -#define ITIMER_REAL 0 -#define ITIMER_VIRTUAL 1 -#define ITIMER_PROF 2 - -/* - * Functions - */ -__BEGIN_DECLS - -int gettimeofday __P_((struct timeval *, struct timezone *)); - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/ultrix-4.2/timers.h b/mit-pthreads/machdep/ultrix-4.2/timers.h deleted file mode 100755 index 3c4d057976a..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/timers.h +++ /dev/null @@ -1,68 +0,0 @@ -/* ==== timers.h ============================================================ - * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Chris Provenzano. - * 4. The name of Chris Provenzano may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $Id$ - * - * Description : Basic timers header. - * - * 1.00 94/06/13 proven - * -Started coding this file. - */ - -#ifndef _SYS_TIMERS_H_ -#define _SYS_TIMERS_H_ - -#include <sys/types.h> -#include <time.h> - -struct timespec { - time_t tv_sec; - long tv_nsec; -}; - -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} - -/* - * New functions - */ - -__BEGIN_DECLS - -__END_DECLS - -#endif diff --git a/mit-pthreads/machdep/ultrix-4.2/wait.h b/mit-pthreads/machdep/ultrix-4.2/wait.h deleted file mode 100755 index 8114f7e461d..00000000000 --- a/mit-pthreads/machdep/ultrix-4.2/wait.h +++ /dev/null @@ -1,121 +0,0 @@ - -#ifndef _SYS_WAIT_H_ -#define _SYS_WAIT_H_ - -#include <ansi_compat.h> -#include <sys/cdefs.h> - -#if !defined(_POSIX_SOURCE) -union wait { -#else -union __wait { -#endif /* !defined(_POSIX_SOURCE) */ -#ifdef __vax - int w_status; /* used in syscall */ -#endif /* __vax */ -#ifdef __mips__ - unsigned int w_status; /* used in syscall */ -#endif /* __mips */ - /* - * Terminated process status. - */ - struct { -#ifdef __vax - unsigned short w_Termsig:7; /* termination signal */ - unsigned short w_Coredump:1; /* core dump indicator */ - unsigned short w_Retcode:8; /* exit code if w_termsig==0 */ -#endif /* __vax */ -#ifdef __mips__ -#ifdef __MIPSEL__ - unsigned int w_Termsig:7; /* termination signal */ - unsigned int w_Coredump:1; /* core dump indicator */ - unsigned int w_Retcode:8; /* exit code if w_termsig==0 */ - unsigned int w_Filler:16; /* pad to word boundary */ -#endif /* __MIPSEL */ -#ifdef __MIPSEB__ - unsigned int w_Filler:16; /* pad to word boundary */ - unsigned int w_Retcode:8; /* exit code if w_termsig==0 */ - unsigned int w_Coredump:1; /* core dump indicator */ - unsigned int w_Termsig:7; /* termination signal */ -#endif /* __MIPSEB */ -#endif /* __mips */ - } w_T; - /* - * Stopped process status. Returned - * only for traced children unless requested - * with the WUNTRACED option bit. - */ - struct { -#ifdef __vax - unsigned short w_Stopval:8; /* == W_STOPPED if stopped */ - unsigned short w_Stopsig:8; /* signal that stopped us */ -#endif /* __vax */ -#ifdef __mips__ -#ifdef __MIPSEL__ - unsigned int w_Stopval:8; /* == W_STOPPED if stopped */ - unsigned int w_Stopsig:8; /* signal that stopped us */ - unsigned int w_Filler:16; /* pad to word boundary */ -#endif /* __MIPSEL */ -#ifdef __MIPSEB__ - unsigned int w_Filler:16; /* pad to word boundary */ - unsigned int w_Stopsig:8; /* signal that stopped us */ - unsigned int w_Stopval:8; /* == W_STOPPED if stopped */ -#endif /* __MIPSEB */ -#endif /* __mips */ - } w_S; -}; - -#if !defined(_POSIX_SOURCE) -#define w_termsig w_T.w_Termsig -#define w_coredump w_T.w_Coredump -#define w_retcode w_T.w_Retcode -#define w_stopval w_S.w_Stopval -#define w_stopsig w_S.w_Stopsig -#define WSTOPPED 0177 /* value of s.stopval if process is stopped */ -#endif /* !defined(_POSIX_SOURCE) */ - -#ifdef WSTOPPED -#define _WSTOPPED WSTOPPED -#else -#define _WSTOPPED 0177 -#endif - -/* - * Option bits for the second argument of wait3. WNOHANG causes the - * wait to not hang if there are no stopped or terminated processes, rather - * returning an error indication in this case (pid==0). WUNTRACED - * indicates that the caller should receive status about untraced children - * which stop due to signals. If children are stopped and a wait without - * this option is done, it is as though they were still running... nothing - * about them is returned. - */ -#define WNOHANG 1 /* dont hang in wait */ -#define WUNTRACED 2 /* tell about stopped, untraced children */ - -/* - * Must cast as union wait * because POSIX defines the input to these macros - * as int. - */ - -#ifdef _POSIX_SOURCE -#define WIFSTOPPED(x) (((union __wait *)&(x))->w_S.w_Stopval == _WSTOPPED) -#define WIFSIGNALED(x) (((union __wait *)&(x))->w_S.w_Stopval != _WSTOPPED && ((union __wait *)&(x))->w_T.w_Termsig != 0) -#define WIFEXITED(x) (((union __wait *)&(x))->w_S.w_Stopval != _WSTOPPED && ((union __wait *)&(x))->w_T.w_Termsig == 0) -#define WEXITSTATUS(x) (((union __wait *)&(x))->w_T.w_Retcode) -#define WTERMSIG(x) (((union __wait *)&(x))->w_T.w_Termsig) -#define WSTOPSIG(x) (((union __wait *)&(x))->w_S.w_Stopsig) -#endif /* _POSIX_SOURCE */ - -#if !defined(_POSIX_SOURCE) -#define WIFSTOPPED(x) (((union wait *)&(x))->w_stopval == WSTOPPED) -#define WIFSIGNALED(x) (((union wait *)&(x))->w_stopval != WSTOPPED && ((union wait *)&(x))->w_termsig != 0) -#define WIFEXITED(x) (((union wait *)&(x))->w_stopval != WSTOPPED && ((union wait *)&(x))->w_termsig == 0) -#define WEXITSTATUS(x) (((union wait *)&(x))->w_retcode) -#define WTERMSIG(x) (((union wait *)&(x))->w_termsig) -#define WSTOPSIG(x) (((union wait *)&(x))->w_stopsig) -#endif /* !defined(_POSIX_SOURCE) */ - -pid_t wait __P_((int *)); -pid_t waitpid __P_((pid_t, int *, int)); - -#endif /* _SYS_WAIT_H_ */ diff --git a/mit-pthreads/machdep/unistd-i386-freebsd-1.1.h b/mit-pthreads/machdep/unistd-i386-freebsd-1.1.h deleted file mode 100644 index 033e70de5e5..00000000000 --- a/mit-pthreads/machdep/unistd-i386-freebsd-1.1.h +++ /dev/null @@ -1,178 +0,0 @@ -/*- - * Copyright (c) 1991 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)unistd.h 5.13 (Berkeley) 6/17/91 - */ - -#ifndef _UNISTD_H_ -#define _UNISTD_H_ - -#include <sys/cdefs.h> -#include <sys/types.h> -#include <sys/unistd.h> - -#define STDIN_FILENO 0 /* standard input file descriptor */ -#define STDOUT_FILENO 1 /* standard output file descriptor */ -#define STDERR_FILENO 2 /* standard error file descriptor */ - -#ifndef NULL -#define NULL 0 /* null pointer constant */ -#endif - -typedef int ssize_t; /* count of bytes or error indication */ - -__BEGIN_DECLS -void _exit __P_((int)); -int access __P_((const char *, int)); -u_int alarm __P_((u_int)); -int chdir __P_((const char *)); -int chown __P_((const char *, uid_t, gid_t)); -int close __P_((int)); -char *cuserid __P_((char *)); -int dup __P_((int)); -int dup2 __P_((int, int)); -int execl __P_((const char *, const char *, ...)); -int execle __P_((const char *, const char *, ...)); -int execlp __P_((const char *, const char *, ...)); -int execv __P_((const char *, char * const *)); -int execve __P_((const char *, char * const *, char * const *)); -int execvp __P_((const char *, char * const *)); -pid_t fork __P_((void)); -long fpathconf __P_((int, int)); /* not yet */ -char *getcwd __P_((char *, size_t)); -gid_t getegid __P_((void)); -uid_t geteuid __P_((void)); -gid_t getgid __P_((void)); -int getgroups __P_((int, int *)); /* XXX (gid_t *) */ -char *getlogin __P_((void)); -pid_t getpgrp __P_((void)); -pid_t getpid __P_((void)); -pid_t getppid __P_((void)); -uid_t getuid __P_((void)); -int isatty __P_((int)); -int link __P_((const char *, const char *)); -off_t lseek __P_((int, off_t, int)); -long pathconf __P_((const char *, int)); /* not yet */ -int pause __P_((void)); -int pipe __P_((int *)); -ssize_t read __P_((int, void *, size_t)); -int rmdir __P_((const char *)); -int setgid __P_((gid_t)); -int setpgid __P_((pid_t, pid_t)); -pid_t setsid __P_((void)); -int setuid __P_((uid_t)); -u_int sleep __P_((u_int)); -long sysconf __P_((int)); /* not yet */ -pid_t tcgetpgrp __P_((int)); -int tcsetpgrp __P_((int, pid_t)); -char *ttyname __P_((int)); -int unlink __P_((const char *)); -ssize_t write __P_((int, const void *, size_t)); - -#ifndef _POSIX_SOURCE - -/* structure timeval required for select() */ -#include <sys/time.h> - -int acct __P_((const char *)); -int async_daemon __P_((void)); -char *brk __P_((const char *)); -int chflags __P_((const char *, long)); -int chroot __P_((const char *)); -char *crypt __P_((const char *, const char *)); -int des_cipher __P_((const char *, char *, long, int)); -int des_setkey __P_((const char *key)); -int encrypt __P_((char *, int)); -void endusershell __P_((void)); -int exect __P_((const char *, char * const *, char * const *)); -int fchdir __P_((int)); -int fchflags __P_((int, long)); -int fchown __P_((int, uid_t, gid_t)); -int fsync __P_((int)); -int ftruncate __P_((int, off_t)); -int getdtablesize __P_((void)); -long gethostid __P_((void)); -int gethostname __P_((char *, int)); -mode_t getmode __P_((const void *, mode_t)); -int getpagesize __P_((void)); -char *getpass __P_((const char *)); -char *getusershell __P_((void)); -char *getwd __P_((char *)); /* obsoleted by getcwd() */ -int initgroups __P_((const char *, int)); -int mknod __P_((const char *, mode_t, dev_t)); -int mkstemp __P_((char *)); -char *mktemp __P_((char *)); -int nfssvc __P_((int)); -int nice __P_((int)); -void psignal __P_((u_int, const char *)); -extern char *sys_siglist[]; -int profil __P_((char *, int, int, int)); -int rcmd __P_((char **, int, const char *, - const char *, const char *, int *)); -char *re_comp __P_((const char *)); -int re_exec __P_((const char *)); -int readlink __P_((const char *, char *, int)); -int reboot __P_((int)); -int revoke __P_((const char *)); -int rresvport __P_((int *)); -int ruserok __P_((const char *, int, const char *, const char *)); -char *sbrk __P_((int)); -int select __P_((int, fd_set *, fd_set *, fd_set *, struct timeval *)); -int setegid __P_((gid_t)); -int seteuid __P_((uid_t)); -int setgroups __P_((int, const int *)); -void sethostid __P_((long)); -int sethostname __P_((const char *, int)); -int setkey __P_((const char *)); -int setlogin __P_((const char *)); -void *setmode __P_((const char *)); -int setpgrp __P_((pid_t pid, pid_t pgrp)); /* obsoleted by setpgid() */ -int setregid __P_((int, int)); -int setreuid __P_((int, int)); -int setrgid __P_((gid_t)); -int setruid __P_((uid_t)); -void setusershell __P_((void)); -int swapon __P_((const char *)); -int symlink __P_((const char *, const char *)); -void sync __P_((void)); -int syscall __P_((int, ...)); -int truncate __P_((const char *, off_t)); -int ttyslot __P_((void)); -u_int ualarm __P_((u_int, u_int)); -void usleep __P_((u_int)); -void *valloc __P_((size_t)); /* obsoleted by malloc() */ -int vfork __P_((void)); - -#endif /* !_POSIX_SOURCE */ -__END_DECLS - -#endif /* !_UNISTD_H_ */ diff --git a/mit-pthreads/machdep/unistd-i386-linux-1.0.h b/mit-pthreads/machdep/unistd-i386-linux-1.0.h deleted file mode 100644 index e7a3c5de1e4..00000000000 --- a/mit-pthreads/machdep/unistd-i386-linux-1.0.h +++ /dev/null @@ -1,59 +0,0 @@ -/*- - * Copyright (c) 1991 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)unistd.h 5.13 (Berkeley) 6/17/91 - */ - -#ifndef _UNISTD_H_ -#define _UNISTD_H_ - -#include <features.h> - -/* POSIX Standard approved as IEEE Std 1003.1 as of August, 1988. */ -#define _POSIX_VERSION 199009L -#define _POSIX2_C_BIND 1 -#define _POSIX2_C_DEV 1 -#define _POSIX2_SW_DEV 1 - -#define __need_size_t - -#include <posix_opt.h> -#include <sys/types.h> -#include <stddef.h> - -#define STDIN_FILENO 0 /* standard input file descriptor */ -#define STDOUT_FILENO 1 /* standard output file descriptor */ -#define STDERR_FILENO 2 /* standard error file descriptor */ - -#include <pthread/unistd.h> - -#endif /* !_UNISTD_H_ */ diff --git a/mit-pthreads/machdep/unistd-i386-linux-2.0.h b/mit-pthreads/machdep/unistd-i386-linux-2.0.h deleted file mode 100644 index e7a3c5de1e4..00000000000 --- a/mit-pthreads/machdep/unistd-i386-linux-2.0.h +++ /dev/null @@ -1,59 +0,0 @@ -/*- - * Copyright (c) 1991 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)unistd.h 5.13 (Berkeley) 6/17/91 - */ - -#ifndef _UNISTD_H_ -#define _UNISTD_H_ - -#include <features.h> - -/* POSIX Standard approved as IEEE Std 1003.1 as of August, 1988. */ -#define _POSIX_VERSION 199009L -#define _POSIX2_C_BIND 1 -#define _POSIX2_C_DEV 1 -#define _POSIX2_SW_DEV 1 - -#define __need_size_t - -#include <posix_opt.h> -#include <sys/types.h> -#include <stddef.h> - -#define STDIN_FILENO 0 /* standard input file descriptor */ -#define STDOUT_FILENO 1 /* standard output file descriptor */ -#define STDERR_FILENO 2 /* standard error file descriptor */ - -#include <pthread/unistd.h> - -#endif /* !_UNISTD_H_ */ diff --git a/mit-pthreads/machdep/unistd-sparc-sunos-4.1.3.h b/mit-pthreads/machdep/unistd-sparc-sunos-4.1.3.h deleted file mode 100644 index 4d2161b628f..00000000000 --- a/mit-pthreads/machdep/unistd-sparc-sunos-4.1.3.h +++ /dev/null @@ -1,215 +0,0 @@ -/*- - * Copyright (c) 1991 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)unistd.h 5.13 (Berkeley) 6/17/91 - * $Id$ - */ - -#ifndef _UNISTD_H_ -#define _UNISTD_H_ - -#include <sys/cdefs.h> -#include <sys/types.h> - -#define _NO_STDIO_SIZE_T - -#define _SC_ARG_MAX 1 /* space for argv & envp */ -#define _SC_CHILD_MAX 2 /* maximum children per process??? */ -#define _SC_CLK_TCK 3 /* clock ticks/sec */ -#define _SC_NGROUPS_MAX 4 /* number of groups if multple supp. */ -#define _SC_OPEN_MAX 5 /* max open files per process */ -#define _SC_JOB_CONTROL 6 /* do we have job control */ -#define _SC_SAVED_IDS 7 /* do we have saved uid/gids */ -#define _SC_VERSION 8 /* POSIX version supported */ - -#define _POSIX_JOB_CONTROL 1 -#define _POSIX_SAVED_IDS 1 -#define _POSIX_VERSION 198808 - -#define _PC_LINK_MAX 1 /* max links to file/dir */ -#define _PC_MAX_CANON 2 /* max line length */ -#define _PC_MAX_INPUT 3 /* max "packet" to a tty device */ -#define _PC_NAME_MAX 4 /* max pathname component length */ -#define _PC_PATH_MAX 5 /* max pathname length */ -#define _PC_PIPE_BUF 6 /* size of a pipe */ -#define _PC_CHOWN_RESTRICTED 7 /* can we give away files */ -#define _PC_NO_TRUNC 8 /* trunc or error on >NAME_MAX */ -#define _PC_VDISABLE 9 /* best char to shut off tty c_cc */ -#define _PC_LAST 9 /* highest value of any _PC_* */ - - -#define STDIN_FILENO 0 /* standard input file descriptor */ -#define STDOUT_FILENO 1 /* standard output file descriptor */ -#define STDERR_FILENO 2 /* standard error file descriptor */ - -#ifndef NULL -#define NULL 0 /* null pointer constant */ -#endif - -typedef int ssize_t; - -__BEGIN_DECLS -void _exit __P_((int)); -int access __P_((const char *, int)); -unsigned alarm __P_((unsigned)); -int chdir __P_((const char *)); -int chown __P_((const char *, uid_t, gid_t)); -int close __P_((int)); -size_t confstr __P_((int, char *, size_t)); -char *cuserid __P_((char *)); -int dup __P_((int)); -int dup2 __P_((int, int)); -int execl __P_((const char *, const char *, ...)); -int execle __P_((const char *, const char *, ...)); -int execlp __P_((const char *, const char *, ...)); -int execv __P_((const char *, char * const *)); -int execve __P_((const char *, char * const *, char * const *)); -int execvp __P_((const char *, char * const *)); -pid_t fork __P_((void)); -long fpathconf __P_((int, int)); /* not yet */ -char *getcwd __P_((char *, size_t)); -gid_t getegid __P_((void)); -uid_t geteuid __P_((void)); -gid_t getgid __P_((void)); -int getgroups __P_((int, int *)); /* XXX (gid_t *) */ -char *getlogin __P_((void)); -pid_t getpgrp __P_((void)); -pid_t getpid __P_((void)); -pid_t getppid __P_((void)); -uid_t getuid __P_((void)); -int isatty __P_((int)); -int link __P_((const char *, const char *)); -off_t lseek __P_((int, off_t, int)); -long pathconf __P_((const char *, int)); /* not yet */ -int pause __P_((void)); -int pipe __P_((int *)); -ssize_t read __P_((int, void *, size_t)); -int rmdir __P_((const char *)); -int setgid __P_((gid_t)); -int setpgid __P_((pid_t, pid_t)); -pid_t setsid __P_((void)); -int setuid __P_((uid_t)); -unsigned sleep __P_((unsigned)); -long sysconf __P_((int)); /* not yet */ -pid_t tcgetpgrp __P_((int)); -int tcsetpgrp __P_((int, pid_t)); -char *ttyname __P_((int)); -int unlink __P_((const char *)); -ssize_t write __P_((int, const void *, size_t)); - -#ifndef _POSIX_SOURCE - -/* structure timeval required for select() */ -#include <sys/time.h> - -int acct __P_((const char *)); -int async_daemon __P_((void)); -char *brk __P_((const char *)); -int chflags __P_((const char *, long)); -int chroot __P_((const char *)); -char *crypt __P_((const char *, const char *)); -int des_cipher __P_((const char *, char *, long, int)); -int des_setkey __P_((const char *key)); -int encrypt __P_((char *, int)); -void endusershell __P_((void)); -int exect __P_((const char *, char * const *, char * const *)); -int fchdir __P_((int)); -int fchflags __P_((int, long)); -int fchown __P_((int, uid_t, gid_t)); -int fsync __P_((int)); -int ftruncate __P_((int, off_t)); -int getdomainname __P_((char *, int)); -int getdtablesize __P_((void)); -long gethostid __P_((void)); -int gethostname __P_((char *, int)); -mode_t getmode __P_((const void *, mode_t)); -int getpagesize __P_((void)); -char *getpass __P_((const char *)); -char *getusershell __P_((void)); -char *getwd __P_((char *)); /* obsoleted by getcwd() */ -int initgroups __P_((const char *, int)); -int mknod __P_((const char *, mode_t, dev_t)); -int mkstemp __P_((char *)); -char *mktemp __P_((char *)); -int nfssvc __P_((int)); -int nice __P_((int)); -void psignal __P_((u_int, const char *)); -extern const char *const sys_siglist[]; -int profil __P_((char *, int, int, int)); -int rcmd __P_((char **, int, const char *, - const char *, const char *, int *)); -char *re_comp __P_((const char *)); -int re_exec __P_((const char *)); -int readlink __P_((const char *, char *, int)); -int reboot __P_((int)); -int revoke __P_((const char *)); -int rresvport __P_((int *)); -int ruserok __P_((const char *, int, const char *, const char *)); -char *sbrk __P_((int)); -int select __P_((int, fd_set *, fd_set *, fd_set *, struct timeval *)); -int setdomainname __P_((const char *, int)); -int setegid __P_((gid_t)); -int seteuid __P_((uid_t)); -int setgroups __P_((int, const int *)); -void sethostid __P_((long)); -int sethostname __P_((const char *, int)); -int setkey __P_((const char *)); -int setlogin __P_((const char *)); -void *setmode __P_((const char *)); -int setpgrp __P_((pid_t pid, pid_t pgrp)); /* obsoleted by setpgid() */ -int setregid __P_((int, int)); -int setreuid __P_((int, int)); -int setrgid __P_((gid_t)); -int setruid __P_((uid_t)); -void setusershell __P_((void)); -int swapon __P_((const char *)); -int symlink __P_((const char *, const char *)); -void sync __P_((void)); -int syscall __P_((int, ...)); -int truncate __P_((const char *, off_t)); -int ttyslot __P_((void)); -u_int ualarm __P_((u_int, u_int)); -void usleep __P_((u_int)); -void *valloc __P_((size_t)); /* obsoleted by malloc() */ -pid_t vfork __P_((void)); - -int getopt __P_((int, char * const *, const char *)); -extern char *optarg; /* getopt(3) external variables */ -extern int opterr; -extern int optind; -extern int optopt; -int getsubopt __P_((char **, char * const *, char **)); -extern char *suboptarg; /* getsubopt(3) external variable */ -#endif /* !_POSIX_SOURCE */ -__END_DECLS - -#endif /* !_UNISTD_H_ */ |