- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- systemcall uname return with errno 72
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
Discussions
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
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
01-25-2011 01:53 AM
01-25-2011 01:53 AM
systemcall uname return with errno 72
For some reason the hostname must change, and it from "jftest1" to "TEST-BILLING-APP-002".
After the chages, my c++ application use systemcall 'uname()' returns errno 72.
It seems the hostname is too long(I found the limit of hostname is 8 characters).
What happened when change the hostname
Here are some informations about the host:
OS info:
Nodename: TEST-BILLING-APP-002
Release: HP-UX B.11.31
Version: U (unlimited-user license)
Machine: ia64
My question:
the function uname() return the struct value:
struct utsname {
char sysname[9];
char nodename[9];
char release[9];
char version[9];
char machine[9];
char __idnumber[15];
};
Which file(s) the values come from?
/etc/hosts or /etc/rc.config.d/netconf?
and what is the relationship of the fields?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2011 04:05 AM - last edited on 08-08-2011 12:23 PM by Kevin_Paul
01-25-2011 04:05 AM - last edited on 08-08-2011 12:23 PM by Kevin_Paul
Re: systemcall uname return with errno 72
See this recent thread:
http://h30499.www3.hp.com/t5/Languages-and-Scripting/HP-UX-11-23-uname-issue-with-c-programm/m-p/4742994#M29490
HOSTNAME comes from /etc/rc.config.d/netconf. This is used if NODENAME isn't set.
By default, HOSTNAME has a limit of 64 and NODENAME of 8.