X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Ffile-socket.lisp;h=7f2fa16b13e97e519c6e9e609db74956bc0d5c28;hb=54929de80ac68bb7ef45a28e70945c7243d39c82;hp=67fe8869a0aa3a044d633eb39a5c0b422ad9a50c;hpb=a95b9a217335917d96b8c0cced4f49c3e4846115;p=uffi.git diff --git a/examples/file-socket.lisp b/examples/file-socket.lisp index 67fe886..7f2fa16 100644 --- a/examples/file-socket.lisp +++ b/examples/file-socket.lisp @@ -7,13 +7,10 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Jul 2002 ;;;; -;;;; $Id: file-socket.lisp,v 1.1 2002/09/30 10:02:36 kevin Exp $ +;;;; $Id$ ;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg ;;;; -;;;; UFFI users are granted the rights to distribute and use this software -;;;; as governed by the terms of the Lisp Lesser GNU Public License -;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* (in-package :cl-user) @@ -33,10 +30,10 @@ (serv-addr :void-pointer) (addr-len :int)) :returning :int) - + (defun connect-to-file-socket (filename) (let ((socket (c-socket PF_UNIX SOCK_STREAM 0))) (if (plusp socket) - (let ((stream (c-connect socket filename (length filename)))) - stream) + (let ((stream (c-connect socket filename (length filename)))) + stream) (error "Unable to create socket"))))