本文共 809 字,大约阅读时间需要 2 分钟。
???????POSIX???????????????????????????????????????
*mkdir(const char pathname, mode_t mode)
?????????0??????-1?*rmdir(const char pathname)
??????????0??????-1?**DIR opendir(const char pathname)
?????????DIR????????NULL?**struct dirent readdir(DIR dp)
???????????????????struct dirent????????NULL?*void rewinddir(DIR dp)
?????????????????0??????-1?*int closedir(DIR dp)
?????????0??????-1?*int chdir(const char pathname)
???????????0??????-1?**char getcwd(char buf, size_t size)
?????????????buf??????NULL?????????????????????????
opendir?????????DIR???readdir?????????????????????ls *.txt???????????????????????popen?pclose?????????????????
popen?pclose??????????fork??????????????????????
?????????????????????????? POSIX ?????
转载地址:http://lmwp.baihongyu.com/