Message-ID: <015901c2b663$31c29b10$0600000a@broadpark.no> From: "Gisle Vanem" To: Subject: fd_props, what is it? Date: Tue, 7 Jan 2003 16:41:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Reply-To: djgpp-workers AT delorie DOT com Hi, this is my 1st post to the workers list. I've been lurking in the 'djgpp' list for years.. I skimmed the 2.04 alpha sources and noticed the '__set_fd_properties()' function. What is the main use of this function? The info-doc didn't give an overall picture. Can it be used for FSext'ed handles? I'm the maintainer of Watt-32 tcp/ip, where sockets are FSext handles. Can I use something like this to auto-close a socket? (when last dup'ed socket is closed): char dev_name[20]; sprintf (dev_name, "/dev/socket/%d", s); __set_fd_properties (s, dev_name, 0); /* what's the last arg? */ __set_fd_flags (s, FILE_DESC_TEMPORARY); Can it be used (or extended) to make some sort of virtual dir-list of "/dev/socket/"? Gisle V. # rm /bin/laden /bin/laden: Not found