Linuxã®ãããã¯ã¼ã¯ã¤ã³ã¿ãã§ã¼ã¹ã«æ¡ç¨ããã¦ãããBSDã½ã±ããã§ãããWhere is the socket()?ãåèã«ãsocket()ã·ã¹ãã ã³ã¼ã«ã®æ·±è¿½ãããã¾ãããç´°ããã¨ããã§ãééã£ã¦ãããçªã£è¾¼ãã§ãã ãããã«ã¼ãã«ã®ãã¼ã¸ã§ã³ã¯ã2.6.20-16-genericã§ãã socktest.c #include <sys/socket.h> int main(int argc, char** argv){ int res = socket(AF_INET, SOCK_STREAM, 0); } åç´ã«ã½ã±ãããä½æããã ãã®ããã°ã©ã ã§ãã $ gcc socktest.c $ nm a.out ã»ã»ã» 08049588 d p.5756 U socket@@GLIBC_2.0 $socket()ã¯ãglibc2.0ã®ã©ã¤ãã©ãªé¢æ°ã§ãããã¨ããããã¾ããLinux
{{#tags}}- {{label}}
{{/tags}}