Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6881925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:11:25+00:00 2026-05-27T05:11:25+00:00

I’m editing linux v2.18.8 (CentOS5) to include file attributes for a project for school.

  • 0

I’m editing linux v2.18.8 (CentOS5) to include file attributes for a project for school. One of the things we have to implement as a group is to list all attribute names (Attributes are text files stored in hidden directories at the same level as the file).

Just an example:

this.jpg is a file in /Desktop/Testing. When you add a custom user attribute a folder is created that holds the attributes. So if I add the attribute “Creator” and have it’s value as “bob” you get a dir /Desktop/Testing/.this.jpg_attr/Creator (and if you open Creator, it’s contents will be “bob”).

What I’m interested in doing is listing all of the user created attributes in the attributes folder (or from the example all the files in /Desktop/Testing/.this.jpg_attr/) I know that I want to use the readdir call, but I don’t know where to find it in the linux setup. If anyone could give me any guidance as to where to look for readdir, I think I can figure out how to manipulate it.

I’M NOT ASKING FOR ANY CODE. JUST A FILE PATH FOR WHERE READDIR IS, OR THE SYSTEM CALL THAT CALLS READDIR.

Thanks in advanced.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:11:26+00:00Added an answer on May 27, 2026 at 5:11 am

    It’s not exactly clear what you mean. The readdir function you want to use is part of the standard library and will be linked in automatically.

    Perhaps you’re asking how to include the header file that declares readdir. In that case:

    #include <dirent.h>
    

    You can get more information about the readdir function using this command:

    man 3 readdir
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a reasonable size flat file database of text documents mostly saved in
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.