Messages in this thread | | | Subject | another little proposal | From | Ulrich Drepper <> | Date | 18 Aug 1997 01:51:46 +0200 |
| |
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 `------------------------
| |