Skip to content

Commit

Permalink
0.8.3.24
Browse files Browse the repository at this point in the history
	Duh.  A working version of socket-accept would be an improvement
  • Loading branch information
telent committed Sep 2, 2003
1 parent b7eed59 commit 40176ef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions contrib/sb-bsd-sockets/sockets.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ values"))

(defmethod socket-accept ((socket socket))
(let ((sockaddr (make-sockaddr-for socket)))
(sb-ext::with-pointers-preserved (sockaddr)
(sb-sys:with-pinned-objects (sockaddr)
(let ((fd (sockint::accept (socket-file-descriptor socket)
(sockint::array-data-address sickint)
(sockint::array-data-address sockaddr)
(size-of-sockaddr socket))))
(apply #'values
(if (= fd -1)
Expand Down
16 changes: 8 additions & 8 deletions contrib/sb-bsd-sockets/sockopt.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ Code for options that not every system has should be conditionalised:
`(progn
(export ',lisp-name)
(defun ,lisp-name (socket &aux (fd (socket-file-descriptor socket)))
(sb-sys:without-gcing
(let ((buf (make-array sockint::size-of-int
:element-type '(unsigned-byte 8)
:initial-element 0)))
(if (= -1 (sockint::getsockopt
fd ,find-level ,number (sockint::array-data-address buf) ,size))
(socket-error "getsockopt")
(,mangle-return buf ,size)))))
(let ((buf (make-array sockint::size-of-int
:element-type '(unsigned-byte 8)
:initial-element 0)))
(sb-sys:with-pinned-objects (buf)
(if (= -1 (sockint::getsockopt
fd ,find-level ,number (sockint::array-data-address buf) ,size))
(socket-error "getsockopt")
(,mangle-return buf ,size)))))
(defun (setf ,lisp-name) (new-val socket
&aux (fd (socket-file-descriptor socket)))
(if (= -1
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
"0.8.3.23"
"0.8.3.24"

0 comments on commit 40176ef

Please sign in to comment.