Re: unix structure does not support stderr ?

brian <briand-/[email protected]> Sun, 3 Jun 2007 17:47:10 -0700
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
Sorry, I wasn't clear.

The Unix structure supports assigning stdin and stdout to output and  
input streams respectively.  It would be useful to have an input  
stream also tied to stderr.

I have, in fact, already written a posix program driver which  
provides access stdout/stderr.

The problem is that I find myself also writing input and output  
buffering for it which is silly, since the Unix struct already takes  
care of this.

Incidentally I created my own version of the Basis Unix structure  
that does this.  E-mail message about the strange problem I have  
encountered to follow.

Brian

On Jun 3, 2007, at 5:20 PM, Brian P. O'Hanlon wrote:

> On 6/3/07, brian <briand-/[email protected]> wrote:
>> Shouldn't it ?
>>
>> After all if it is unix, then stderr should always be there.
>> It also provides the appropriate mechanism to monitor exec'd
>> applications for errors.
>
> Posix.FileSys.stderr
> http://www.standardml.org/Basis/posix-file-sys.html
>
> Is that all you need?
>
> -Brian


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/