lkml.org 
[lkml]   [1997]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: another little proposal
|> Followup to:  <x7u3gopdv1.fsf@sl-kb05.rz.uni-karlsruhe.de>
|> By author: Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
|> In newsgroup: linux.dev.kernel
|>>
|>> 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.)
|>>

Doesn't fcntl(F_GETFL) already do that?

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