r2259: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 31 Jul 2002 20:59:06 +0000 (20:59 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 31 Jul 2002 20:59:06 +0000 (20:59 +0000)
examples/file-socket.cl [new file with mode: 0644]
tests/file-socket.cl [new file with mode: 0644]

diff --git a/examples/file-socket.cl b/examples/file-socket.cl
new file mode 100644 (file)
index 0000000..f5a3b6d
--- /dev/null
@@ -0,0 +1,32 @@
+;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
+;;;; *************************************************************************
+;;;; FILE IDENTIFICATION
+;;;;
+;;;; Name:          file-socket.cl
+;;;; Purpose:       UFFI Example file to get a socket on a file
+;;;; Programmer:    Kevin M. Rosenberg
+;;;; Date Started:  Jul 2002
+;;;;
+;;;; $Id: file-socket.cl,v 1.1 2002/07/31 20:59:06 kevin Exp $
+;;;;
+;;;; This file, part of UFFI, is Copyright (c) 2002 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)
+
+(uffi:def-function ("socket" c-socket)
+    ((family :int)
+     (type :int)
+     (protocol :int))
+    :returning :int)
+
+(uffi:def-function ("connect" c-connect)
+    ((sockfd :int)
+     (serv-addr :void-pointer)
+     (addr-len :int))
+    :returning :int)
+                 
diff --git a/tests/file-socket.cl b/tests/file-socket.cl
new file mode 100644 (file)
index 0000000..f5a3b6d
--- /dev/null
@@ -0,0 +1,32 @@
+;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
+;;;; *************************************************************************
+;;;; FILE IDENTIFICATION
+;;;;
+;;;; Name:          file-socket.cl
+;;;; Purpose:       UFFI Example file to get a socket on a file
+;;;; Programmer:    Kevin M. Rosenberg
+;;;; Date Started:  Jul 2002
+;;;;
+;;;; $Id: file-socket.cl,v 1.1 2002/07/31 20:59:06 kevin Exp $
+;;;;
+;;;; This file, part of UFFI, is Copyright (c) 2002 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)
+
+(uffi:def-function ("socket" c-socket)
+    ((family :int)
+     (type :int)
+     (protocol :int))
+    :returning :int)
+
+(uffi:def-function ("connect" c-connect)
+    ((sockfd :int)
+     (serv-addr :void-pointer)
+     (addr-len :int))
+    :returning :int)
+