From 3b91bf9e9daf110b35dd8d5b6ca5a88e0fb0f13b Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 21 Feb 2003 16:21:02 +0000 Subject: [PATCH] 0.7.12.50 It's easier to port a shell than a shell script. -- Larry Wall Contrib-related fixes - ... multiple uses of test -e are now test -f ... don't run make test in install, it's more work than we want to do as root ... instead, touch $i/test-passed in make-target-contrib.sh (if, indeed, it has) and test for presence of that file when installing ... Rationalise AF-* constants in sb-bsd-sockets: AF-LOCAL is the One True Name. ... In sb-bsd-sockets build, don't hardcode gcc to be in /usr/bin --- binary-distribution.sh | 2 +- contrib/sb-bsd-sockets/Makefile | 2 ++ contrib/sb-bsd-sockets/constants.lisp | 13 +++++----- contrib/sb-bsd-sockets/defpackage.lisp | 13 +++++----- contrib/sb-bsd-sockets/local.lisp | 40 +++++++++++++++++++++++++++++ contrib/sb-bsd-sockets/sb-bsd-sockets.asd | 7 +++-- contrib/sb-bsd-sockets/tests.lisp | 8 +++--- contrib/sb-bsd-sockets/unix.lisp | 40 ----------------------------- install.sh | 4 +-- make-target-contrib.sh | 10 ++++---- version.lisp-expr | 2 +- 11 files changed, 72 insertions(+), 69 deletions(-) create mode 100644 contrib/sb-bsd-sockets/local.lisp delete mode 100644 contrib/sb-bsd-sockets/unix.lisp diff --git a/binary-distribution.sh b/binary-distribution.sh index 0bd5557..fc6cd37 100755 --- a/binary-distribution.sh +++ b/binary-distribution.sh @@ -18,7 +18,7 @@ tar -cf $b-binary.tar \ $b/pubring.pgp \ $b/contrib/vanilla-module.mk \ `for dir in $b/contrib/*; do - if test -d $dir && test -e $dir/Makefile; then + if test -d $dir && test -f $dir/test-passed; then echo $dir fi done` diff --git a/contrib/sb-bsd-sockets/Makefile b/contrib/sb-bsd-sockets/Makefile index ebb6c68..0cfab33 100644 --- a/contrib/sb-bsd-sockets/Makefile +++ b/contrib/sb-bsd-sockets/Makefile @@ -1,4 +1,6 @@ SYSTEM=sb-bsd-sockets +CC=gcc +export CC all: $(MAKE) -C ../asdf diff --git a/contrib/sb-bsd-sockets/constants.lisp b/contrib/sb-bsd-sockets/constants.lisp index e792888..e52aab1 100644 --- a/contrib/sb-bsd-sockets/constants.lisp +++ b/contrib/sb-bsd-sockets/constants.lisp @@ -11,12 +11,13 @@ ;;; then the stuff we're looking for ((:integer af-inet "AF_INET" "IP Protocol family") (:integer af-unspec "AF_UNSPEC" "Unspecified.") -#-solaris (:integer af-local "AF_LOCAL" "Local to host (pipes and file-domain).") - (:integer af-unix "AF_UNIX" "Old BSD name for af-local. ") -#-(or solaris freebsd) (:integer af-file "AF_FILE" "POSIX name for af-local. ") -#+linux (:integer af-inet6 "AF_INET6" "IP version 6. ") -#+linux (:integer af-route "AF_NETLINK" "Alias to emulate 4.4BSD ") - + (:integer af-local + #+(or sunos solaris) "AF_UNIX" + #-(or sunos solaris) "AF_LOCAL" + "Local to host (pipes and file-domain).") + #+linux (:integer af-inet6 "AF_INET6" "IP version 6. ") + #+linux (:integer af-route "AF_NETLINK" "Alias to emulate 4.4BSD ") + (:integer sock-stream "SOCK_STREAM" "Sequenced, reliable, connection-based byte streams.") (:integer sock-dgram "SOCK_DGRAM" diff --git a/contrib/sb-bsd-sockets/defpackage.lisp b/contrib/sb-bsd-sockets/defpackage.lisp index 58e5270..f424ee8 100644 --- a/contrib/sb-bsd-sockets/defpackage.lisp +++ b/contrib/sb-bsd-sockets/defpackage.lisp @@ -30,8 +30,8 @@ (add-package-nickname "SYSTEM" "SB-SYS")) (defpackage "SB-BSD-SOCKETS" - (:export socket unix-socket inet-socket - make-unix-socket make-inet-socket + (:export socket local-socket inet-socket + make-local-socket make-inet-socket socket-bind socket-accept socket-connect socket-send socket-receive socket-recv socket-name socket-peername socket-listen @@ -92,7 +92,7 @@ arguments to fit Lisp style more closely.
  • Methods applicable to a particular subclass
    1. INET-SOCKET - Internet Protocol (TCP, UDP, raw) sockets -
    2. Methods on UNIX-SOCKET - Unix-domain sockets +
    3. Methods on LOCAL-SOCKET - Local-domain sockets
  • Name resolution (DNS, /etc/hosts, &c) @@ -105,11 +105,12 @@ available on a variety of systems, and documented. There are some differences in approach where we have taken advantage of some of the more useful features of Common Lisp - briefly