Messages in this thread | | | From | Andreas Schwab <> | Date | Mon, 18 Aug 97 11:45:03 +0200 | Subject | Re: 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?
| |