- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: getdents() and vxfs_nattr_open()
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2012 09:20 PM
тАО08-09-2012 09:20 PM
getdents() and vxfs_nattr_open()
Hi,
I am reading up on VxFS named attributes and would like to experiment. The call to list the named attributes associated with a file is:
int vxfs_nattr_open(int fd, char *path, int *oflag, /* mode_t mode */);
where fd is the file descriptor of the file whose extended attributes we want to list. This call returns a second file descriptor that is processed as a directory using getdents(). An interface returning a DIR * for use with readdir() is not provided, and getdents() is documented as not supported on HP-UX.
Using nm on libc.so shows that getdents is present:
[888] | 69359520| 128|FUNC |LOCAL|0| .text|libc.so:_getdents
[4043] | 69359520| 128|FUNC |WEAK |0| .text|libc.so:getdents
But no prototype is present in the system headers. :-(
Easy enough to add a getdents prototype and call it anyway, but what are the risks?
Thanks,
Jim Gallagher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2012 10:57 PM
тАО08-09-2012 10:57 PM
Re: getdents() and vxfs_nattr_open()
Hmm, where are you getting your documentation? Here?
http://sfdoccentral.symantec.com/sf/5.0/hpux11iv3/html/vxfs_ref/pr_ch_datastreams_fs.html
I seem to only get a "directory" when I pass in ".".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2012 06:17 AM
тАО08-10-2012 06:17 AM
Re: getdents() and vxfs_nattr_open()
That matches what I read, and the example uses getdents()...