Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 382614 Details for
Bug 518650
sys-libs/glibc-2.19-r1: static linking breaks getaddrinfo
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test app
getaddrinfo.c (text/x-csrc), 561 bytes, created by
SpanKY
on 2014-08-10 04:22:21 UTC
(
hide
)
Description:
test app
Filename:
MIME Type:
Creator:
SpanKY
Created:
2014-08-10 04:22:21 UTC
Size:
561 bytes
patch
obsolete
>#define _GNU_SOURCE >#include <stdio.h> >#include <stdlib.h> >#include <netinet/in.h> >#include <net/if.h> >#include <sys/socket.h> >#include <sys/types.h> >#include <netdb.h> >#include <string.h> > >int main(int argc, char *argv[]) >{ > const char *host = argv[1]; > int rc; > struct addrinfo *result = NULL; > struct addrinfo hint; > > memset(&hint, 0 , sizeof(hint)); > hint.ai_family = AF_INET; > hint.ai_socktype = SOCK_STREAM; > hint.ai_flags = AF_UNSPEC; > rc = getaddrinfo(host, NULL, &hint, &result); > if (rc || !result) > printf("bad address '%s'\n", host); > > return 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 518650
: 382614