i want to add some informations to a file in C under linux, can i save that information in its notes tab using C ?
Thanks a lot
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe you want to set the attributes of a file (file properties that gets displayed when you see file properties from a GUI shell) from your C code. You may want to check out
*xattrsyscalls:http://www.kernel.org/doc/man-pages/online/pages/man2/listxattr.2.html
http://www.kernel.org/doc/man-pages/online/pages/man2/getxattr.2.html
http://www.kernel.org/doc/man-pages/online/pages/man2/setxattr.2.html
Here’s some info that you might be interested in:
https://superuser.com/questions/191385/saving-notes-against-a-file-on-linux