Re: How to open file descriptor with CLISP?

Karsten Poeck <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
On 11.03.17 19:04, Jean Louis wrote:
>          An error has been encountered in accessing this page.
>
>          1. Server: clisp.sourceforge.net
>          2. URL path: /impnotes/stream-handles.html
>          3. Error notes: NONE
>          4. Error type: 404
>          5. Request method: GET
>          6. Request query string: NONE
>          7. Time: 2017-03-11 18:05:21 UTC (1489255521)
>
> Do you know what happened with it?
Works for me

21.18. Function EXT:STREAM-HANDLES

The function (EXT:STREAM-HANDLES stream) returns two values:

The OS file descriptor for the input side of the stream, or NIL if the 
stream is an output-only STREAM or if there is no file descriptor 
associated with it.
The OS file descriptor for the output side of the stream, or NIL if the 
stream is an input-only STREAM or if there is no file descriptor 
associated with it.
Warning

It is dangerous to CLOSE the file descriptors returned by this function. 
This may lead to EBADF OS ERRORs and, eventually, segmentation faults. 
Always use CLOSE on the original Lisp streams instead.

These notes document CLISP version 2.49+


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.