
linux C
文章平均质量分 82
神秘博士来袭
这个作者很懒,什么都没留下…
展开
-
删除一个非空目录
#include int stat(const char *path, struct stat *buf); int fstat(int fd, struct stat *buf); int lstat(const char *path, struct stat *buf);原创 2015-12-04 18:54:37 · 4781 阅读 · 0 评论 -
liunx基本命令
一,Linux安装中文man: 1. sudo apt-get install manpages-zh 2. vim .bashrc 3.在文件中最后添加 alias cman='man -M /usr/share/man/zh_CN' 4.重启终端原创 2016-02-23 18:01:43 · 408 阅读 · 0 评论 -
简单socket通信示例
相关函数1.创建一个网络套接字int socket(int domain, int type, int protocol); domain:地址族 - AF_UNIX, AF_LOCAL Local communication Unix域协议族 - AF_INET IPv4 Internet protocols - AF_INET6原创 2016-02-26 14:37:32 · 1347 阅读 · 0 评论