HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- aCC 3.70 and C I/O functions
Operating System - Linux
1828633
Members
1960
Online
109983
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
01-19-2007 09:26 AM
01-19-2007 09:26 AM
I have serveral C functions that I would like to use in my C++ program (without having to rewrite them) that contain functions such as access(), open(), read(), write(), etc. It compiles fine, but returns a -1 when using access() or open().
It has no problems with fread...
Any ideas?
Thanks.
It has no problems with fread...
Any ideas?
Thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 01:46 PM
01-19-2007 01:46 PM
Solution
As long as you use the appropriate system header file, you should should be able to use stdio or other libc functions in C++.
If access(2) or open(2) return -1, you should be looking at errno to see what's wrong. You can use strerror(3) to decode errno.
Make sure you include.
If access(2) or open(2) return -1, you should be looking at errno to see what's wrong. You can use strerror(3) to decode errno.
Make sure you include
- Tags:
- stdio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 12:41 AM
01-22-2007 12:41 AM
Re: aCC 3.70 and C I/O functions
Thanks for the response, yes I was using perror().
Found problem, changed base directory from old /users user directory to /home in new version and needed to be changed in the old C code.
Found problem, changed base directory from old /users user directory to /home in new version and needed to be changed in the old C code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 02:20 PM
01-22-2007 02:20 PM
Re: aCC 3.70 and C I/O functions
Oops, a typo in my reply above:
Make sure you include or .
Make sure you include
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP