- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file descriptor to DIR *
Operating System - HP-UX
1752584
Members
4190
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО05-17-2004 12:47 AM
тАО05-17-2004 12:47 AM
file descriptor to DIR *
Hi,
Is there any syscall on HP-UX which converts file decriptor (of type int) to Directory pointer (DIR *).
On solaris and Linux, there is fdopendir:
DIR *fdopendir(int fildes)
But this is not available on HP-UX.
I want to try avoiding opendir().
Thanks!
Is there any syscall on HP-UX which converts file decriptor (of type int) to Directory pointer (DIR *).
On solaris and Linux, there is fdopendir:
DIR *fdopendir(int fildes)
But this is not available on HP-UX.
I want to try avoiding opendir().
Thanks!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 01:10 AM
тАО05-17-2004 01:10 AM
Re: file descriptor to DIR *
See the link below for Directory Operations:
http://www.informatik.uni-frankfurt.de/doc/man/hpux/directory.3c.html
Hope that helps
http://www.informatik.uni-frankfurt.de/doc/man/hpux/directory.3c.html
Hope that helps
You need to know a lot to actually know how little you know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 01:15 AM
тАО05-17-2004 01:15 AM
Re: file descriptor to DIR *
Hi,
None of the syscalls mentioned in the link you have given, does what I am expecting.
Also note : I know I can use opendir directly to ger DIR *.But in one specific case I want to use open and then convert fd to DIR * only if required.
Thanks!
None of the syscalls mentioned in the link you have given, does what I am expecting.
Also note : I know I can use opendir directly to ger DIR *.But in one specific case I want to use open and then convert fd to DIR * only if required.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 02:09 AM
тАО05-17-2004 02:09 AM
Re: file descriptor to DIR *
Well, to be precise, fdopendir() is not a system call but rather is a library function. This is a BSD based function and there is no direct equivalent in the System V derivatives. This is a common problem when tryingh to port UNIX code; you really have to look at what tools are available on all the platforms and choose a common set of tools or else be prepared to fill the code with #ifdef's.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP