lkml.org 
[lkml]   [1997]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectanother little proposal
From
Date
Hi,

Again for the libc, I need an ioctl option which allows me to query
the mode of a descriptor which was used in open. I.e.,

int fd, mode;
fd = open ("foo", O_RDONLY);
ioctl (fd, FIGMODE, &mode);

would fill `mode' with O_RDONLY etc. This should be pretty easy to add.
(If something like this is already available please educate me.)

Thanks,

-- Uli
---------------. drepper@cygnus.com ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper@gnu.ai.mit.edu `------------------------

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.044 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site