Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 145071 Details for
Bug 213700
automount does not mount /net
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test program to check host name translation
name.c (text/x-csrc), 680 bytes, created by
Ian Kent
on 2007-01-08 16:27:45 UTC
(
hide
)
Description:
Test program to check host name translation
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2007-01-08 16:27:45 UTC
Size:
680 bytes
patch
obsolete
> >#include <stdio.h> >#include <sys/types.h> >#include <sys/socket.h> >#include <netdb.h> >#include <rpc/types.h> >#include <string.h> > >int main(int argc, char **argv) >{ > const char myname[MAXHOSTNAMELEN + 1] = "\0"; > struct addrinfo hints, *ni; > int ret; > > if (gethostname(myname, MAXHOSTNAMELEN)) { > printf("failed to get my hostname\n"); > exit(1); > } > > memset(&hints, 0, sizeof(hints)); > hints.ai_flags = AI_CANONNAME; > hints.ai_family = 0; > hints.ai_socktype = 0; > > ret = getaddrinfo(myname, NULL, &hints, &ni); > if (ret) { > printf("name lookup failed: %s\n", gai_strerror(ret)); > exit(1); > } > > printf("myname %s ni->ai_canonname %s\n", myname, ni->ai_canonname); > > exit(0); >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 213700
:
143205
| 145071 |
146678