X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-bsd-sockets%2Fsockopt.lisp;h=fb438f1ecfc3689d2d9df77360698c47437baebd;hb=e072a8570d0fc3513ec7639b9c1c5d3b03e2695e;hp=e689a4807b50a8ade1d11cf2f1616fb1bddda6a7;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/contrib/sb-bsd-sockets/sockopt.lisp b/contrib/sb-bsd-sockets/sockopt.lisp index e689a48..fb438f1 100644 --- a/contrib/sb-bsd-sockets/sockopt.lisp +++ b/contrib/sb-bsd-sockets/sockopt.lisp @@ -43,7 +43,7 @@ Code for options that not every system has should be conditionalised: (if (numberp (eval level)) level `(get-protocol-by-name ,(string-downcase (symbol-name level))))) - (supportedp (or (null features) (featurep features)))) + (supportedp (or (null features) (sb-int:featurep features)))) `(progn (export ',lisp-name) (defun ,lisp-name (socket) @@ -102,6 +102,13 @@ Code for options that not every system has should be conditionalised: sockopt-priority sockint::sol-socket sockint::so-priority :linux "Available only on Linux.") +(define-socket-option-int + sockopt-tcp-keepcnt :tcp sockint::tcp-keepcnt :linux "Available only on Linux.") +(define-socket-option-int + sockopt-tcp-keepidle :tcp sockint::tcp-keepidle :linux "Available only on Linux.") +(define-socket-option-int + sockopt-tcp-keepintvl :tcp sockint::tcp-keepintvl :linux "Available only on Linux.") + ;;; boolean options are integers really (defun foreign-int-to-bool (x size)