| View previous topic :: View next topic |
| Author |
Message |
Mike Guest
|
Posted: Sun Feb 27, 2005 6:53 am Post subject: How to get file descriptor permissions? |
|
|
Hi,
I have a file descriptor of an open file and I would like to know
through C/C++ API how to query its read/write/exec permissions.
Thanks.
|
|
| Back to top |
|
 |
Ivan Vecerina Guest
|
Posted: Sun Feb 27, 2005 7:30 am Post subject: Re: How to get file descriptor permissions? |
|
|
"Mike" <luri_uri (AT) yahoo (DOT) com> wrote
| Quote: | I have a file descriptor of an open file and I would like to know
through C/C++ API how to query its read/write/exec permissions.
|
File permissions are out of the scope of the C++ standard.
You need to use platform-specific APIs to access these
(and this is OT in this forum).
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
|
|
| Back to top |
|
 |
Matthias Kaeppler Guest
|
Posted: Sun Feb 27, 2005 11:58 am Post subject: Re: How to get file descriptor permissions? |
|
|
Mike wrote:
| Quote: | Hi,
I have a file descriptor of an open file and I would like to know
through C/C++ API how to query its read/write/exec permissions.
Thanks.
|
But to answer your question: Look up chapter "14.9 File Attributes" in
your glibc-documentation. It explains everything.
--
Matthias Kaeppler
|
|
| Back to top |
|
 |
|