X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fsb-posix%2FREADME;h=e62ea0047949409da18cd306fbc341d79c773852;hb=4ed3f0d08c3a57a6762018d9622f253ab9d0f2b6;hp=0bb884afd96bcd17e6e778dd8d6fdd0c49923a45;hpb=4373334c459af4a06a08db880e613c7aeb4876f7;p=sbcl.git diff --git a/contrib/sb-posix/README b/contrib/sb-posix/README index 0bb884a..e62ea00 100644 --- a/contrib/sb-posix/README +++ b/contrib/sb-posix/README @@ -81,13 +81,20 @@ results if the stream is buffered. A filename is a string. A pathname is a designator for a file-descriptor: the filename is -computed as if by NAMESTRING +computed using the same mechanism as the implementation would +use to map pathnames to OS filenames internally. + +In an implementation that supports pathnames to files on other hosts, +using mechanisms not available to the underlying OS (for example, +using an FTP or HTTP client in the Lisp implementation), the effect +of supplying this interface with a pathname to such a file is undefined. + ** buffer -A buffer is an opaque object with accessors BUFFER-START and -BUFFER-LENGTH, which represents an area of memory that system calls -may access. A buffer can be created using ALLOCATE-BUFFER or GET-BUFFER. +A buffer is an opaque object which represents an area of memory that +system calls may access. It has accessors BUFFER-START and +BUFFER-LENGTH, and can be created using ALLOCATE-BUFFER or GET-BUFFER. [ TODO: GET-BUFFER is a silly name. Come up with a better one ] @@ -184,7 +191,12 @@ of the error number] We do not automatically translate the returned value into "Lispy" objects - for example, SB-POSIX:OPEN returns a small integer, not a -stream. +stream. Exception: boolean-returning functions (or, more commonly, +macros) do not return a C integer, but instead a lisp boolean [ or +maybe "true"/"false" in CLtS parlance ]; the rationale behind this +exception is that there is nothing that can be meaningfully done with +the boolean except test for truth or falsity -- it cannot be passed +meaningfully to other POSIX functions. [ Rationale: This is an interface to POSIX, not a high-level interface that uses POSIX, and many people using it will actually want to mess @@ -212,3 +224,15 @@ See designator.lisp, add a define-designator form The use of DEFINE-CALL macro in interface.lisp should be obvious from the existing examples, if less so from the macroexpansion + + + + +GC issues + +buffers that refer to C stuff are probably not movable by GC anyway + +a buffer that refers to a Lisp object may have trouble if the Lisp +object is moved + +