Ŀ¼
Linux C . ´íÎó!䶨ÒåÊéÇ©¡£
1 ×Ö·û²âÊÔƪ ... ´íÎó!䶨ÒåÊéÇ©¡£
1.1 isalnum£¨²âÊÔ×Ö·ûÊÇ·ñΪӢÎÄ»òÊý×Ö£© . 11
1.2 isalpha £¨²âÊÔ×Ö·ûÊÇ·ñΪӢÎÄ×Öĸ£©.....12
1.3 isascii£¨²âÊÔ×Ö·ûÊÇ·ñΪASCII Âë×Ö·û£©........12
1.4 iscntrl£¨²âÊÔ×Ö·ûÊÇ·ñΪASCII ÂëµÄ¿ØÖÆ×Ö·û£©.....13
1.5 isdigit£¨²âÊÔ×Ö·ûÊÇ·ñΪ°¢À²®Êý×Ö£©....13
1.6 isgraphis£¨²âÊÔ×Ö·ûÊÇ·ñΪ¿É´òÓ¡×Ö·û£© ........14
1.7 islower£¨²âÊÔ×Ö·ûÊÇ·ñΪСд×Öĸ£© ......15
1.8 isprint£¨²âÊÔ×Ö·ûÊÇ£¨·ñΪ¿É´òÓ¡×Ö·û£©15
1.9 isspace£¨²âÊÔ×Ö·ûÊÇ·ñΪ¿Õ¸ñ×Ö·û£© ......16
1.10 ispunct£¨²âÊÔ×Ö·ûÊÇ·ñΪ±êµã·ûºÅ»òÌØÊâ·ûºÅ£© ....17
1.11 isupper£¨²âÊÔ×Ö·ûÊÇ·ñΪ´óдӢÎÄ×Öĸ£© .......17
1.12 isxdigit£¨²âÊÔ×Ö·ûÊÇ·ñΪ16½øÖÆÊý×Ö£©18
2 ×Ö·û´®×ª»»Æª ´íÎó!䶨ÒåÊéÇ©¡£
2.1 atof£¨½«×Ö·û´®×ª»»³É¸¡µãÐÍÊý£©...19
2.2 atoi£¨½«×Ö·û´®×ª»»³ÉÕûÐÍÊý£©.......19
2.3 atol£¨½«×Ö·û´®×ª»»³É³¤ÕûÐÍÊý£©...20
2.4 gcvt£¨½«¸¡µãÐÍÊýת»»Îª×Ö·û´®£¬È¡ËÄÉáÎåÈ룩 .....21
2.5 strtod£¨½«×Ö·û´®×ª»»³É¸¡µãÊý£©....21
2.6 strtol£¨½«×Ö·û´®×ª»»³É³¤ÕûÐÍÊý£©.22
2.7 strtoul£¨½«×Ö·û´®×ª»»³ÉÎÞ·ûºÅ³¤ÕûÐÍÊý£©.....23
2.8 toascii£¨½«ÕûÐÍÊýת»»³ÉºÏ·¨µÄASCII Âë×Ö·û£© ....24
2.9 tolower£¨½«´óд×Öĸת»»³ÉСд×Öĸ£©..24
2.10 toupper£¨½«Ð¡Ð´×Öĸת»»³É´óд×Öĸ£©..25
3 ÄÚ´æ¿ØÖÆƪ ... ´íÎó!䶨ÒåÊéÇ©¡£
3.1 calloc£¨ÅäÖÃÄÚ´æ¿Õ¼ä£© .26
3.2 free£¨ÊÍ·ÅÔÏÈÅäÖõÄÄڴ棩..26
3.3 getpagesize£¨È¡µÃÄÚ´æ·ÖÒ³´óС£© ..27
3.4 malloc£¨ÅäÖÃÄÚ´æ¿Õ¼ä£©27
3.5 mmap£¨½¨Á¢ÄÚ´æÓ³É䣩.28
3.6 munmap£¨½â³ýÄÚ´æÓ³É䣩......30
4 ÈÕÆÚʱ¼äƪ ... ´íÎó!䶨ÒåÊéÇ©¡£
4.1 asctime£¨½«Ê±¼äºÍÈÕÆÚÒÔ×Ö·û´®¸ñʽ±íʾ£©...31
4.2 ctime£¨½«Ê±¼äºÍÈÕÆÚÒÔ×Ö·û´®¸ñʽ±íʾ£© ......31
4.3 gettimeofday£¨È¡µÃÄ¿Ç°µÄʱ¼ä£©....32
4.4 gmtime£¨È¡µÃĿǰʱ¼äºÍÈÕÆÚ£©.....33
4.5 localtime£¨È¡µÃµ±µØĿǰʱ¼äºÍÈÕÆÚ£© ...34
4.6 mktime£¨½«Ê±¼ä½á¹¹Êý¾Ýת»»³É¾¹ýµÄÃëÊý£©........35
4.7 settimeofday£¨ÉèÖÃĿǰʱ¼ä£© ........36
4.8 time£¨È¡µÃÄ¿Ç°µÄʱ¼ä£©36
5 ÄÚ´æ¼°×Ö·û´®²Ù×÷ƪ ...... ´íÎó!䶨ÒåÊéÇ©¡£
5.1 bcmp£¨±È½ÏÄÚ´æÄÚÈÝ£©..37
5.2 bcopy£¨¿½±´ÄÚ´æÄÚÈÝ£©.37
5.3 bzero£¨½«Ò»¶ÎÄÚ´æÄÚÈÝÈ«ÇåΪÁ㣩38
5.4 index£¨²éÕÒ×Ö·û´®ÖеÚÒ»¸ö³öÏÖµÄÖ¸¶¨×Ö·û£© .......38
5.5 memccpy£¨¿½±´ÄÚ´æÄÚÈÝ£© ....39
5.6 memchr£¨ÔÚijһÄڴ淶ΧÖвéÕÒÒ»Ìض¨×Ö·û£©.......39
5.7 memcmp£¨±È½ÏÄÚ´æÄÚÈÝ£©.....40
5.8 memcpy£¨¿½±´ÄÚ´æÄÚÈÝ£© ......41
5.9 memmove£¨¿½±´ÄÚ´æÄÚÈÝ£©...42
5.10 memset£¨½«Ò»¶ÎÄÚ´æ¿Õ¼äÌîÈëijֵ£© .....42
5.11 rindex£¨²éÕÒ×Ö·û´®ÖÐ×îºóÒ»¸ö³öÏÖµÄÖ¸¶¨×Ö·û£©..43
5.12 strcasecmp£¨ºöÂÔ´óСд±È½Ï×Ö·û´®£© ....43
5.13 strcat£¨Á¬½ÓÁ½×Ö·û´®£© ..44
5.14 strchr£¨²éÕÒ×Ö·û´®ÖеÚÒ»¸ö³öÏÖµÄÖ¸¶¨×Ö·û£©.......44
5.15 strcmp£¨±È½Ï×Ö·û´®£©....45
5.16 strcoll£¨²ÉÓÃÄ¿Ç°ÇøÓòµÄ×Ö·ûÅÅÁдÎÐòÀ´±È½Ï×Ö·û´®£© ...46
5.17 strcpy£¨¿½±´×Ö·û´®£©.....46
5.18 strcspn£¨·µ»Ø×Ö·û´®ÖÐÁ¬Ðø²»º¬Ö¸¶¨×Ö·û´®ÄÚÈݵÄ×Ö·ûÊý£©...47
5.19 strdup£¨¸´ÖÆ×Ö·û´®£©.....47
5.20 strlen£¨·µ»Ø×Ö·û´®³¤¶È£©.......48
5.21 strncasecmp£¨ºöÂÔ´óСд±È½Ï×Ö·û´®£© ..49
5.22 strncat£¨Á¬½ÓÁ½×Ö·û´®£© 49
5.23 strncpy£¨¿½±´×Ö·û´®£©...50
5.24 strpbrk£¨²éÕÒ×Ö·û´®ÖеÚÒ»¸ö³öÏÖµÄÖ¸¶¨×Ö·û£©.....50
5.25 strrchr£¨²éÕÒ×Ö·û´®ÖÐ×îºó³öÏÖµÄÖ¸¶¨×Ö·û£©.51
5.26 strspn£¨·µ»Ø×Ö·û´®ÖÐÁ¬Ðø²»º¬Ö¸¶¨×Ö·û´®ÄÚÈݵÄ×Ö·ûÊý£©.....52
5.27 strstr£¨ÔÚÒ»×Ö·û´®ÖвéÕÒÖ¸¶¨µÄ×Ö·û´®£©.......52
5.28 strtok£¨·Ö¸î×Ö·û´®£©......53
6 ³£ÓÃÊýѧº¯Êýƪ ..... ´íÎó!䶨ÒåÊéÇ©¡£
6.1 abs£¨¼ÆËãÕûÐÍÊýµÄ¾ø¶ÔÖµ£© ..54
6.2 acos£¨È¡·´ÓàÏÒº¯ÊýÊýÖµ£©.....54
6.3 asin£¨È¡·´ÕýÏÒº¯ÊýÖµ£© 55
6.4 atan£¨È¡·´ÕýÇк¯ÊýÖµ£© 55
6.5 atan2£¨È¡µÃ·´ÕýÇк¯ÊýÖµ£© ...56
6.6 ceil£¨È¡²»Ð¡ÓÚ²ÎÊýµÄ×îСÕûÐÍÊý£© ........57
6.7 cos£¨È¡ÓàÐþº¯ÊýÖµ£© .....57
6.8 cosh£¨È¡Ë«ÇúÏßÓàÐþº¯ÊýÖµ£© 58
6.9 exp£¨¼ÆËãÖ¸Êý£©....58
6.10 frexp£¨½«¸¡µãÐÍÊý·ÖΪµ×ÊýÓëÖ¸Êý£© .....59
6.11 ldexp£¨¼ÆËã2µÄ´Î·½Öµ£©.......59
6.12 log£¨¼ÆËãÒÔe Ϊµ×µÄ¶ÔÊýÖµ£©.......60
6.13 log10£¨¼ÆËãÒÔ10 Ϊµ×µÄ¶ÔÊýÖµ£©.61
6.14 pow£¨¼ÆËã´Î·½Öµ£©........61
6.15 sin£¨È¡ÕýÐþº¯ÊýÖµ£© ......62
6.16 sinh£¨È¡Ë«ÇúÏßÕýÐþº¯ÊýÖµ£© .62
6.17 sqrt£¨¼ÆËãƽ·½¸ùÖµ£©.....63
6.18 tan£¨È¡ÕýÇк¯ÊýÖµ£©......63
6.19 tanh£¨È¡Ë«ÇúÏßÕýÇк¯ÊýÖµ£©.64
7 Óû§×éƪ ....... ´íÎó!䶨ÒåÊéÇ©¡£
7.1 endgrent£¨¹Ø±Õ×éÎļþ£©.65
7.2 endpwent£¨¹Ø±ÕÃÜÂëÎļþ£© ....65
7.3 endutent£¨¹Ø±Õutmp Îļþ£©...66
7.4 fgetgrent£¨´ÓÖ¸¶¨µÄÎļþÀ´¶ÁÈ¡×é¸ñʽ£© ........66
7.5 fgetpwent£¨´ÓÖ¸¶¨µÄÎļþÀ´¶ÁÈ¡ÃÜÂë¸ñʽ£©...67
7.6 getegid£¨È¡µÃÓÐЧµÄ×éʶ±ðÂ룩 .....68
7.7 geteuid£¨È¡µÃÓÐЧµÄÓû§Ê¶±ðÂ룩 .69
7.8 getgid£¨È¡µÃÕæʵµÄ×éʶ±ðÂ룩.......69
7.9 getgrent£¨´Ó×éÎļþÖÐÈ¡µÃÕ˺ŵÄÊý¾Ý£©.70
7.10 getgrgid£¨´Ó×éÎļþÖÐÈ¡µÃÖ¸¶¨gid µÄÊý¾Ý£©..71
7.11 getgrnam£¨´Ó×éÎļþÖÐÈ¡µÃÖ¸¶¨×éµÄÊý¾Ý£©....72
7.12 getgroups£¨È¡µÃ×é´úÂ룩 ........73
7.13 getpw£¨È¡µÃÖ¸¶¨Óû§µÄÃÜÂëÎļþÊý¾Ý£© 73
7.14 getpwent£¨´ÓÃÜÂëÎļþÖÐÈ¡µÃÕ˺ŵÄÊý¾Ý£© ....74
7.15 getpwnam£¨´ÓÃÜÂëÎļþÖÐÈ¡µÃÖ¸¶¨Õ˺ŵÄÊý¾Ý£© ...76
7.16 getpwuid£¨´ÓÃÜÂëÎļþÖÐÈ¡µÃÖ¸¶¨uid µÄÊý¾Ý£© .....76
7.17 getuid£¨È¡µÃÕæʵµÄÓû§Ê¶±ðÂ룩...77
7.18 getutent£¨´Óutmp ÎļþÖÐÈ¡µÃÕ˺ŵǼÊý¾Ý£©........77
7.19 getutid£¨´Óutmp ÎļþÖвéÕÒÌض¨µÄ¼Ç¼£©.....79
7.20 getutline£¨´Óutmp ÎļþÖвéÕÒÌض¨µÄ¼Ç¼£©..80
7.21 initgroups£¨³õʼ»¯×éÇåµ¥£©....80
7.22 pututline£¨½«utmp ¼Ç¼дÈëÎļþ£© ........81
7.23 seteuid£¨ÉèÖÃÓÐЧµÄÓû§Ê¶±ðÂ룩..81
7.24 setfsgid£¨ÉèÖÃÎļþϵͳµÄ×éʶ±ðÂ룩 .....82
7.25 setfsuid£¨ÉèÖÃÎļþϵͳµÄÓû§Ê¶±ðÂ룩 .82
7.26 setgid£¨ÉèÖÃÕæʵµÄ×éʶ±ðÂ룩 .......83
7.27 setgrent£¨´ÓÍ·¶ÁÈ¡×éÎļþÖеÄ×éÊý¾Ý£© .83
7.28 setgroups£¨ÉèÖÃ×é´úÂ룩 ........83
7.29 setpwent£¨´ÓÍ·¶ÁÈ¡ÃÜÂëÎļþÖеÄÕ˺ÅÊý¾Ý£©.84
7.30 setregid£¨ÉèÖÃÕæʵ¼°ÓÐЧµÄ×éʶ±ðÂ룩 .85
7.31 setreuid£¨ÉèÖÃÕæʵ¼°ÓÐЧµÄÓû§Ê¶±ðÂ룩 ......85
7.32 setuid£¨ÉèÖÃÕæʵµÄÓû§Ê¶±ðÂ룩 ...85
7.33 setutent£¨´ÓÍ·¶ÁÈ¡utmp ÎļþÖеĵǼÊý¾Ý£© ........86
7.34 utmpname£¨ÉèÖÃutmp Îļþ·¾¶£©.86
8 Êý¾Ý½á¹¹¼°Ë㷨ƪ . ´íÎó!䶨ÒåÊéÇ©¡£
8.1 crypt£¨½«ÃÜÂë»òÊý¾Ý±àÂ룩....87
8.2 bsearch£¨¶þÔªËÑË÷£©.......88
8.3 lfind£¨ÏßÐÔËÑË÷£© ..89
8.4 lsearch£¨ÏßÐÔËÑË÷£© .......90
8.5 qsort£¨ÀûÓÿìËÙÅÅÐò·¨ÅÅÁÐÊý×飩.91
8.6 rand£¨²úÉúËæ»úÊý£©........92
8.7 srand£¨ÉèÖÃËæ»úÊýÖÖ×Ó£© .......93
9 Îļþ²Ù×÷ƪ ... ´íÎó!䶨ÒåÊéÇ©¡£
9.1 close£¨¹Ø±ÕÎļþ£© .94
9.2 creat£¨½¨Á¢Îļþ£©..94
9.3 dup£¨¸´ÖÆÎļþÃèÊö´Ê£©.95
9.4 dup2£¨¸´ÖÆÎļþÃèÊö´Ê£©........95
9.5 fcntl£¨ÎļþÃèÊö´Ê²Ù×÷£© ........96
9.6 flock£¨Ëø¶¨Îļþ»ò½â³ýËø¶¨£©97
9.7 fsync£¨½«»º³åÇøÊý¾Ýд»Ø´ÅÅÌ£© ....97
9.8 lseek£¨Òƶ¯ÎļþµÄ¶ÁдλÖã©98
9.9 mkstemp£¨½¨Á¢Î¨Ò»µÄÁÙʱÎļþ£© ..98
9.10 open£¨´ò¿ªÎļþ£©..99
9.11 read£¨ÓÉÒÑ´ò¿ªµÄÎļþ¶ÁÈ¡Êý¾Ý£©101
9.12 sync£¨½«»º³åÇøÊý¾Ýд»Ø´ÅÅÌ£©....102
9.13 write£¨½«Êý¾ÝдÈëÒÑ´ò¿ªµÄÎļþÄÚ£©....102
10 ÎļþÄÚÈݲÙ×÷ƪ . ´íÎó!䶨ÒåÊéÇ©¡£
10.1 clearerr£¨Çå³ýÎļþÁ÷µÄ´íÎóÆì±ê£©........103
10.2 fclose£¨¹Ø±ÕÎļþ£© .......103
10.3 fdopen£¨½«ÎļþÃèÊö´ÊתΪÎļþÖ¸Õ룩.103
10.4 feof£¨¼ì²éÎļþÁ÷ÊÇ·ñ¶Áµ½ÁËÎļþ⣩ .104
10.5 fflush£¨¸üлº³åÇø£© ...104
10.6 fgetc£¨ÓÉÎļþÖжÁÈ¡Ò»¸ö×Ö·û£©...105
10.7 fgets£¨ÓÉÎļþÖжÁÈ¡Ò»×Ö·û´®£© ...105
10.8 fileno£¨·µ»ØÎļþÁ÷ËùʹÓõÄÎļþÃèÊö´Ê£©....106
10.9 fopen£¨´ò¿ªÎļþ£©........107
10.10 fputc£¨½«Ò»Ö¸¶¨×Ö·ûдÈëÎļþÁ÷ÖУ©108
10.11 fputs£¨½«Ò»Ö¸¶¨µÄ×Ö·û´®Ð´ÈëÎļþÄÚ£©.....108
10.12 fread£¨´ÓÎļþÁ÷¶ÁÈ¡Êý¾Ý£©.......108
10.13 freopen£¨´ò¿ªÎļþ£©.109
10.14 fseek£¨Òƶ¯ÎļþÁ÷µÄ¶ÁдλÖã© ....... 110
10.15 ftell£¨È¡µÃÎļþÁ÷µÄ¶ÁȡλÖã© 111
10.16 fwrite£¨½«Êý¾ÝдÖÁÎļþÁ÷£© ..... 111
10.17 getc£¨ÓÉÎļþÖжÁÈ¡Ò»¸ö×Ö·û£© 112
10.18 getchar£¨Óɱê×¼ÊäÈëÉ豸ÄÚ¶Á½øÒ»×Ö·û£© . 113
10.19 gets£¨Óɱê×¼ÊäÈëÉ豸ÄÚ¶Á½øÒ»×Ö·û´®£©... 113
10.20 mktemp£¨²úÉúΨһµÄÁÙʱÎļþÃû£©... 114
10.21 putc£¨½«Ò»Ö¸¶¨×Ö·ûдÈëÎļþÖУ© ..... 114
10.22 putchar£¨½«Ö¸¶¨µÄ×Ö·ûдµ½±ê×¼Êä³öÉ豸£©...... 115
10.23 rewind£¨ÖØÉèÎļþÁ÷µÄ¶ÁдλÖÃΪÎļþ¿ªÍ·£©... 115
10.24 setbuf£¨ÉèÖÃÎļþÁ÷µÄ»º³åÇø£© . 115
10.25 setbuffer£¨ÉèÖÃÎļþÁ÷µÄ»º³åÇø£©...... 116
10.26 setlinebuf£¨ÉèÖÃÎļþÁ÷ΪÏßÐÔ»º³åÇø£© ..... 116
10.27 setvbuf£¨ÉèÖÃÎļþÁ÷µÄ»º³åÇø£© ........ 117
10.28 ungetc£¨½«Ö¸¶¨×Ö·ûд»ØÎļþÁ÷ÖУ© . 117
11 ½ø³Ì²Ù×÷ƪ ´íÎó!䶨ÒåÊéÇ©¡£
11.1 atexit£¨ÉèÖóÌÐòÕý³£½áÊøÇ°µ÷Óõĺ¯Êý£© .... 118
11.2 execl£¨Ö´ÐÐÎļþ£© ........ 118
11.3 execlp£¨´ÓPATH »·¾³±äÁ¿ÖвéÕÒÎļþ²¢Ö´ÐУ©... 119
11.4 execv£¨Ö´ÐÐÎļþ£© ....... 119
11.5 execve£¨Ö´ÐÐÎļþ£©......120
11.6 execvp£¨Ö´ÐÐÎļþ£© .....121
11.7 exit£¨Õý³£½áÊø½ø³Ì£©...122
11.8 exit£¨½áÊø½ø³ÌÖ´ÐУ©...122
11.9 vfork£¨½¨Á¢Ò»¸öеĽø³Ì£© .122
11.10 getpgid£¨È¡µÃ½ø³Ì×éʶ±ðÂ룩...123
11.11 getpgrp£¨È¡µÃ½ø³Ì×éʶ±ðÂ룩...124
11.12 getpid£¨È¡µÃ½ø³Ìʶ±ðÂ룩124
11.13 getppid£¨È¡µÃ¸¸½ø³ÌµÄ½ø³Ìʶ±ðÂ룩125
11.14 getpriority£¨È¡µÃ³ÌÐò½ø³ÌÖ´ÐÐÓÅÏÈȨ£© ....125
11.15 nice£¨¸Ä±ä½ø³ÌÓÅÏÈ˳Ðò£© ........126
11.16 on_exit£¨ÉèÖóÌÐòÕý³£½áÊøÇ°µ÷Óõĺ¯Êý£©......126
11.17 setpgid£¨ÉèÖýø³Ì×éʶ±ðÂ룩 ...127
11.18 setpgrp£¨ÉèÖýø³Ì×éʶ±ðÂ룩 ...127
11.19 setpriority£¨ÉèÖóÌÐò½ø³ÌÖ´ÐÐÓÅÏÈȨ£©.....128
11.20 system£¨Ö´ÐÐshell ÃüÁ 128
11.21 wait£¨µÈ´ý×Ó½ø³ÌÖжϻò½áÊø£©129
11.22 waitpid£¨µÈ´ý×Ó½ø³ÌÖжϻò½áÊø£©....130
11.23 fprintf£¨¸ñʽ»¯Êä³öÊý¾ÝÖÁÎļþ£©......131
11.24 fscanf£¨¸ñʽ»¯×Ö·û´®ÊäÈ룩 .....131
11.25 printf£¨¸ñʽ»¯Êä³öÊý¾Ý£©.132
11.26 sacnf£¨¸ñʽ»¯×Ö·û´®ÊäÈ룩 ......134
11.27 sprintf£¨¸ñʽ»¯×Ö·û´®¸´ÖÆ£© ....135
11.28 sscanf£¨¸ñʽ»¯×Ö·û´®ÊäÈ룩.....135
11.29 vfprintf£¨¸ñʽ»¯Êä³öÊý¾ÝÖÁÎļþ£©....136
11.30 vfscanf£¨¸ñʽ»¯×Ö·û´®ÊäÈ룩 ...136
11.31 vprintf£¨¸ñʽ»¯Êä³öÊý¾Ý£©........137
11.32 vscanf£¨¸ñʽ»¯×Ö·û´®ÊäÈ룩 ....137
11.33 vsprintf£¨¸ñʽ»¯×Ö·û´®¸´ÖÆ£© ..138
11.34 vsscanf£¨¸ñʽ»¯×Ö·û´®ÊäÈ룩...138
12 ÎļþȨÏÞ¿ØÖÆƪ . ´íÎó!䶨ÒåÊéÇ©¡£
12.1 access£¨ÅжÏÊÇ·ñ¾ßÓдæÈ¡ÎļþµÄȨÏÞ£©.......139
12.2 alphasort£¨ÒÀ×Öĸ˳ÐòÅÅÐòĿ¼½á¹¹£© .140
12.3 chdir£¨¸Ä±äµ±Ç°µÄ¹¤×÷£¨Ä¿Â¼£©...141
12.4 chmod£¨¸Ä±äÎļþµÄȨÏÞ£©...141
12.5 chown£¨¸Ä±äÎļþµÄËùÓÐÕߣ© ........142
12.6 chroot£¨¸Ä±ä¸ùĿ¼£©...143
12.7 closedir£¨¹Ø±ÕĿ¼£© ....144
12.8 fchdir£¨¸Ä±äµ±Ç°µÄ¹¤×÷Ŀ¼£© .....144
12.9 fchmod£¨¸Ä±äÎļþµÄȨÏÞ£©..145
12.10 fchown£¨¸Ä±äÎļþµÄËùÓÐÕߣ©...145
12.11 fstat£¨ÓÉÎļþÃèÊö´ÊÈ¡µÃÎļþ״̬£© .146
12.12 ftruncate£¨¸Ä±äÎļþ´óС£©147
12.13 getcwd£¨È¡µÃµ±Ç°µÄ¹¤×÷Ŀ¼£© ........147
12.14 link£¨½¨Á¢ÎļþÁ¬½Ó£©........148
12.15 lstat£¨ÓÉÎļþÃèÊö´ÊÈ¡µÃÎļþ״̬£© .149
12.16 opendir£¨´ò¿ªÄ¿Â¼£©.149
12.17 readdir£¨¶ÁȡĿ¼£© .149
12.18 readlink£¨È¡µÃ·ûºÅÁ¬½ÓËùÖ¸µÄÎļþ£©........151
12.19 remove£¨É¾³ýÎļþ£©.151
12.20 rename£¨¸ü¸ÄÎļþÃû³Æ»òλÖã© ........152
12.21 rewinddir£¨ÖØÉè¶ÁȡĿ¼µÄλÖÃΪ¿ªÍ·Î»Öã© ..152
12.22 seekdir£¨ÉèÖÃÏ»ضÁȡĿ¼µÄλÖã© 154
12.23 stat£¨È¡µÃÎļþ״̬£© ........155
12.24 symlink£¨½¨Á¢Îļþ·ûºÅÁ¬½Ó£©..157
12.25 telldir£¨È¡µÃĿ¼Á÷µÄ¶ÁȡλÖã© ......158
12.26 truncate£¨¸Ä±äÎļþ´óС£©.159
12.27 umask£¨ÉèÖý¨Á¢ÐÂÎļþʱµÄȨÏÞÕÚÕÖ£©...160
12.28 unlink£¨É¾³ýÎļþ£©...160
12.29 utime£¨ÐÞ¸ÄÎļþµÄ´æȡʱ¼äºÍ¸ü¸Äʱ¼ä£©161
12.30 utimes£¨ÐÞ¸ÄÎļþµÄ´æȡʱ¼äºÍ¸ü¸Äʱ¼ä£© .......161
13 ÐźŴ¦Àíƪ ´íÎó!䶨ÒåÊéÇ©¡£
13.1 alarm£¨ÉèÖÃÐźŴ«ËÍÄÖÖÓ£©.162
13.2 kill£¨´«ËÍÐźŸøÖ¸¶¨µÄ½ø³Ì£©......163
13.3 pause£¨Èýø³ÌÔÝÍ£Ö±µ½ÐźųöÏÖ£©.......164
13.4 sigaction£¨²éѯ»òÉèÖÃÐźŴ¦Àí·½Ê½£© .164
13.5 sigaddset£¨Ôö¼ÓÒ»¸öÐźÅÖÁÐźż¯£© .....166
13.6 sigdelset£¨´ÓÐźż¯Àïɾ³ýÒ»¸öÐźţ©..166
13.7 sigemptyset£¨³õʼ»¯Ðźż¯£©........166
13.8 sigfillset£¨½«ËùÓÐÐźżÓÈëÖÁÐźż¯£© ..167
13.9 sigismember£¨²âÊÔij¸öÐźÅÊÇ·ñÒѼÓÈëÖÁÐźż¯À...167
13.10 signal£¨ÉèÖÃÐźŴ¦Àí·½Ê½£© .....167
13.11 sigpending£¨²éѯ±»¸éÖõÄÐźţ© ......168
13.12 sigprocmask£¨²éѯ»òÉèÖÃÐźÅÕÚÕÖ£©168
13.13 sleep£¨Èýø³ÌÔÝÍ£Ö´ÐÐÒ»¶Îʱ¼ä£©....169
13.14 ferror£¨¼ì²éÎļþÁ÷ÊÇ·ñÓдíÎó·¢Éú£©........169
13.15 perror£¨´òÓ¡³ö´íÎóÔÒòÐÅÏ¢×Ö·û´®£© .......169
13.16 strerror£¨·µ»Ø´íÎóÔÒòµÄÃèÊö×Ö·û´®£© .....170
13.17 mkfifo£¨½¨Á¢¾ßÃû¹ÜµÀ£©...171
13.18 pclose£¨¹Ø±Õ¹ÜµÀI/O£© .....172
13.19 pipe£¨½¨Á¢¹ÜµÀ£©......172
13.20 popen£¨½¨Á¢¹ÜµÀI/O£©......173
14 ½Ó¿Ú´¦Àíƪ ´íÎó!䶨ÒåÊéÇ©¡£
14.1 accept£¨½ÓÊÜsocketÁ¬Ïߣ© ...175
14.2 bind£¨¶Ôsocket¶¨Î»£© .175
14.3 connect£¨½¨Á¢socketÁ¬Ïߣ© .176
14.4 endprotoent£¨½áÊøÍøÂçÐÒéÊý¾ÝµÄ¶ÁÈ¡£©......178
14.5 endservent£¨½áÊøÍøÂç·þÎñÊý¾ÝµÄ¶ÁÈ¡£©........178
14.6 getsockopt£¨È¡µÃsocket״̬£© .....179
14.7 htonl£¨½«32λÖ÷»ú×Ö·û˳Ðòת»»³ÉÍøÂç×Ö·û˳Ðò£©.....179
14.8 htons£¨½«16λÖ÷»ú×Ö·û˳Ðòת»»³ÉÍøÂç×Ö·û˳Ðò£© ....180
14.9 inet_addr£¨½«ÍøÂçµØַת³É¶þ½øÖƵÄÊý×Ö£©..180
14.10 inet_aton£¨½«ÍøÂçµØַת³ÉÍøÂç¶þ½øÖƵÄÊý×Ö£© ........180
14.11 inet_ntoa£¨½«ÍøÂç¶þ½øÖƵÄÊý×Öת»»³ÉÍøÂçµØÖ·£© ....181
14.12 listen£¨µÈ´ýÁ¬½Ó£© ....181
14.13 ntohl£¨½«32λÍøÂç×Ö·û˳Ðòת»»³ÉÖ÷»ú×Ö·û˳Ðò£©.183
14.14 ntohs£¨½«16λÍøÂç×Ö·û˳Ðòת»»³ÉÖ÷»ú×Ö·û˳Ðò£© 184
14.15 recv£¨¾socket½ÓÊÕÊý¾Ý£©........184
14.16 recvfrom£¨¾socket½ÓÊÕÊý¾Ý£©185
14.17 recvmsg£¨¾socket½ÓÊÕÊý¾Ý£© .186
14.18 send£¨¾socket´«ËÍÊý¾Ý£© .......187
14.19 sendmsg£¨¾socket´«ËÍÊý¾Ý£©.187
14.20 sendto£¨¾socket´«ËÍÊý¾Ý£© ....188
14.21 setprotoent£¨´ò¿ªÍøÂçÐÒéµÄÊý¾ÝÎļþ£© ...190
14.22 setservent£¨´ò¿ªÖ÷»úÍøÂç·þÎñµÄÊý¾ÝÎļþ£©......190
14.23 setsockopt£¨ÉèÖÃsocket״̬£©..190
14.24 shutdown£¨ÖÕÖ¹socketͨÐÅ£© ...191
14.25 socket£¨½¨Á¢Ò»¸ösocketͨÐÅ£© 191
15 »·¾³±äÁ¿Æª ´íÎó!䶨ÒåÊéÇ©¡£
15.1 getenv£¨È¡µÃ»·¾³±äÁ¿ÄÚÈÝ£© ........193
15.2 putenv£¨¸Ä±ä»òÔö¼Ó»·¾³±äÁ¿£©....193
15.3 setenv£¨¸Ä±ä»òÔö¼Ó»·¾³±äÁ¿£©.....194
16 Öն˿ØÖÆƪ ´íÎó!䶨ÒåÊéÇ©¡£
16.1 getopt£¨·ÖÎöÃüÁîÐвÎÊý£©....195
16.2 isatty£¨ÅжÏÎļþÃèÊö´ÊÊÇ·ñÊÇΪÖն˻ú£© ....196
16.3 select£¨I/O¶à¹¤»úÖÆ£© .196
16.4 ttyname£¨·µ»ØÒ»Öն˻úÃû³Æ£©......197
dsimun ÓÚ 2016-04-29 14:01:16·¢±í:
Óеã¶à¡£¡£¡£ÑÛ»¨çÔÂÒÁË
ÔÂÊÇÒ¹µÄÃ÷ ÓÚ 2015-10-14 22:13:02·¢±í:
ºÃÏêϸ°¡°¡Ð»Ð»Â¥Ö÷ÁË
dddrecall ÓÚ 2015-05-11 21:24:31·¢±í:
¶¥.......
oscarwpm ÓÚ 2014-07-24 14:47:18·¢±í:
ÄáÂ꣬¶à´Î¿ÛÁËÎҵķ֣¬²»Ëµ»¹²»ÄÜÏÂÔØ
oscarwpm ÓÚ 2014-07-24 14:42:46·¢±í:
¿´¿´Å¶
devil5975 ÓÚ 2014-07-24 10:03:37·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:33·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:29·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:25·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:17·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:14·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:11·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:09·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:05·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:03·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:03:00·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:57·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:53·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:45·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:39·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:33·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:30·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:23·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:19·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:14·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:07·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
devil5975 ÓÚ 2014-07-24 10:02:00·¢±í:
Linux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯ÊýLinux C±à³Ì³£ÓÃAPI½Ó¿Ú º¯Êý
luowanqian ÓÚ 2013-12-06 21:42:41·¢±í:
лл¥Ö÷·ÖÏí
dylyyc ÓÚ 2013-11-24 18:06:24·¢±í:
¸Ðл¥Ö÷×ܽᣬ¥Ö÷ÐÁ¿àÁË¡£
аÁúÖ®Ó° ÓÚ 2013-11-23 10:26:56·¢±í:
Èç±¾ÈËÁôÑÔÎ¥·´¹ú¼ÒÓйط¨ÂÉ£¬ÇëÍøÂç¹ÜÀíÔ±¼°Ê±É¾³ý±¾È˸úÌù¡£±¾»ØÌù²»°µÊ¾¡¢¹ÄÀø¡¢
Ö§³Ö»òÓ³Éä¶ÁÕß×÷³öÉú»î·½Ê½¡¢¹¤×÷̬¶È¡¢»éÒö½»ÓÑ¡¢×ÓÅ®½ÌÓýµÄ»ý¼«»òÏû¼«Åжϡ£
dongyeslp ÓÚ 2013-11-23 08:32:22·¢±í:
¿ÉÒÔÓÃÀ´ËÙ²é
hml1006 ÓÚ 2013-11-23 01:32:28·¢±í:
¿ÉÒÔÓÃÀ´ËÙ²é
hawayii ÓÚ 2013-11-22 19:46:10·¢±í:
Óеã¶à¡£¡£¡£ÑÛ»¨çÔÂÒÁË