projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* tests/foreign-loader.lisp: Commit patch from Luis Oliveira
[uffi.git]
/
examples
/
file-socket.lisp
diff --git
a/examples/file-socket.lisp
b/examples/file-socket.lisp
index 67fe8869a0aa3a044d633eb39a5c0b422ad9a50c..7f2fa16b13e97e519c6e9e609db74956bc0d5c28 100644
(file)
--- a/
examples/file-socket.lisp
+++ b/
examples/file-socket.lisp
@@
-7,13
+7,10
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Jul 2002
;;;;
;;;; 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)
;;;; *************************************************************************
(in-package :cl-user)
@@
-33,10
+30,10
@@
(serv-addr :void-pointer)
(addr-len :int))
:returning :int)
(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)
(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"))))
(error "Unable to create socket"))))