摘要:        
http://blog.sina.com.cn/s/blog_6a1837e90100uh5d.html access():判断是否具有存取文件的权限 相关函数 stat,open,chmod,chown,setuid,setgid表头文件 #include<unistd.h>定义函数 int ac    阅读全文
posted @ 2017-11-07 22:10
wjbooks
阅读(22054)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Linux C -> symlink 和 readlink -> 符号链接 symlink() 函数创建符号连接。 概要 POSIX #include <unistd.h> int symlink(const char *path1, const char *path2); symlink("/ro    阅读全文
posted @ 2017-11-07 20:33
wjbooks
阅读(3096)
评论(0)
推荐(0)
        
            
        
        
摘要:        
有时候,希望程序退出时能进行一些处理,比如保存状态,释放一些资源。c语言开发的linux程序,有可能正常退出(exit),有可能异常crash,而异常crash可能是响应了某信号的默认处理。这里总结一下这些情况,如何获取一个统一的退出处理的点,说白了就是写一个回调函数,让他在程序正常或异常退出时调用    阅读全文
posted @ 2017-11-07 20:05
wjbooks
阅读(6747)
评论(0)
推荐(2)
        
            
        
        
摘要:        
遍历目录    阅读全文
posted @ 2017-11-07 15:37
wjbooks
阅读(7102)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号