Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

files and folders 1

Status
Not open for further replies.

peterve

IS-IT--Management
Mar 19, 2000
1,348
NL
Hi,

I want to read file and folder properties (name, timestamp, acl (rwx), ...) from within a c application, on linux.
Additionally, I want to be able to change the acl (rwx) on files/folders from within c.

where/how do I start ?
Can someone point me to some resources on this topic ?

thanks

--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
how can I do from within c ? I don't want to launch an external application

--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
[tt]$ man 1 stat
$ man 2 stat[/tt]
The first one gets you a command line program
The second one is the system call you can call directly from your C program.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top