Re: How to open file descriptor with CLISP?

Sam Steingold <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <86d1dm9edk.fsf@sdsGazPro>
> * Jean Louis <[email protected]> [2017-03-11 21:04:37 +0300]:
>
> On Wed, Jan 25, 2017 at 02:42:14PM -0500, Sam Steingold wrote:
>> > * Jean Louis <[email protected]> [2017-01-25 12:35:40 +0300]:
>> >
>> > I am looking into solution to open file descriptor in CLISP, and to
>> > get its fileno, that I can feed files to GNU mailutils, mail program
>> > to file descriptors.
>> >
>> > Basically, into functionality that is shown in the sample Perl program
>> > here: http://mailutils.org/wiki/Mail:_sending_attachments -- relating
>> > to opening file descriptor and getting its number.
>> 
>> There is function ext:stream-handles which should be documented in
>> http://clisp.org/impnotes/stream-handles.html
>> I have no idea why it is only documented in the beta docs
>> http://clisp.org/beta/impnotes/stream-handles.html.
>
>          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?
>
> As now I am searching again for the documentation.

wfm


--8<---------------cut here---------------start------------->8---
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+        Last modified: 2016-09-05
--8<---------------cut here---------------end--------------->8---



-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 16.10 (yakkety) X 11.0.11804000
http://www.childpsy.net/ http://ffii.org http://www.dhimmitude.org
http://jihadwatch.org http://camera.org http://honestreporting.com
Murphy's Law was probably named after the wrong guy.

------------------------------------------------------------------------------
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.