C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get file descriptor permissions?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Mike
Guest





PostPosted: Sun Feb 27, 2005 6:53 am    Post subject: How to get file descriptor permissions? Reply with 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.

Back to top
Ivan Vecerina
Guest





PostPosted: Sun Feb 27, 2005 7:30 am    Post subject: Re: How to get file descriptor permissions? Reply with quote



"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





PostPosted: Sun Feb 27, 2005 11:58 am    Post subject: Re: How to get file descriptor permissions? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.