[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a file_t from a file descriptor

From: Alfred M. Szmidt
Subject: Re: Getting a file_t from a file descriptor
Date: Thu, 27 Jul 2006 10:39:51 +0200 (CEST)

   > While I'm not that proficient in these issues,

   Nor am i.

But I am.

   > /* Return the io server port for file descriptor FD.  This adds a
   >    Mach user reference to the returned port.  On error, sets
   >    `errno' and returns MACH_PORT_NULL.  */

   Thanks, that looks quite promising.  Is a "Mach user reference" the
   sort of thing that mach_port_deallocate removes?

Yep (and mach_port_get_refs creates IIRC), it is a just port.

   Is the diagnostic appropriate?

Not mentioning the dtable would be better, since it is a internal
structure in glibc.

I haven't had time (or a machine) to test the patch, but I don't see
any real reasons why it shouldn't.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]