上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 130 下一页
摘要: 1 #include "apue.h" 2 #include 3 4 int main(void) 5 { 6 if(chdir("/home/zsf/book/unix/source_code/apue.3e/mycode/test") < 0) 7 err_sys("chdir failed"); 8 printf("success chd... 阅读全文
posted @ 2017-06-08 18:06 请给我倒杯茶 阅读(736) 评论(0) 推荐(0)
摘要: 1 #include "apue.h" 2 #include 3 4 int main(int argc,char *argv[]) 5 { 6 7 int i,fd; 8 struct stat statbuf; 9 struct timespec times[2]; 10 11 for(i = 1;i < argc;i ++){ 1... 阅读全文
posted @ 2017-06-08 17:45 请给我倒杯茶 阅读(938) 评论(0) 推荐(0)
摘要: 1 #include "apue.h" 2 #include 3 4 int main(void) 5 { 6 if(open("tempfile",O_RDWR) < 0) 7 err_sys("open error"); 8 if(unlink("tempfile") < 0) 9 err_sys("unlink erro... 阅读全文
posted @ 2017-06-08 17:10 请给我倒杯茶 阅读(1066) 评论(0) 推荐(0)
摘要: 1 #include "apue.h" 2 3 4 int main(int argc,char *argv[]) 5 { 6 struct stat stabuf; 7 8 if(stat("zbzhuang",&stabuf) < 0) 9 err_sys("stat error for foo"); 10 if(chmod("... 阅读全文
posted @ 2017-06-08 16:43 请给我倒杯茶 阅读(324) 评论(0) 推荐(0)
摘要: 1 #include "apue.h" 2 #include 3 4 #define RWRWRW (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) 5 6 int main(int argc,char *argv[]) 7 { 8 umask(0); 9 if(creat("zbzhuang",RW... 阅读全文
posted @ 2017-06-08 16:27 请给我倒杯茶 阅读(361) 评论(0) 推荐(0)
摘要: 1 #include "apue.h" 2 #include 3 4 5 int main(int argc,char **argv) 6 { 7 if(argc != 2) 8 err_quit("usage:a.out "); 9 if(access(argv[1],R_OK) < 0) 10 err_ret("acce... 阅读全文
posted @ 2017-06-08 16:10 请给我倒杯茶 阅读(406) 评论(0) 推荐(0)
摘要: 通过lstat函数获取文件的类型的代码如下。 执行文件之后的显示结果如下:通过lstat函数可以正确的获取文件的类型 阅读全文
posted @ 2017-06-07 20:49 请给我倒杯茶 阅读(811) 评论(0) 推荐(0)
摘要: 本文转载自:http://blog.csdn.net/czg13548930186/article/details/53434566 uboot主Makefile分析1 1、uboot version确定(Makefile的24-29行) Makefile代码部分: [plain] view pla 阅读全文
posted @ 2017-06-07 17:49 请给我倒杯茶 阅读(2601) 评论(0) 推荐(0)
摘要: 本文转载自:http://blog.sina.com.cn/s/blog_963453200101eiuq.html 1、检出svn co http://路径(目录或文件的全路径) [本地目录全路径] --username 用户名 --password 密码svn co svn://路径(目录或文件 阅读全文
posted @ 2017-06-07 16:33 请给我倒杯茶 阅读(289) 评论(0) 推荐(0)
摘要: 本文转载自:http://blog.csdn.net/jscese/article/details/16860833 TTL接口:属于并行方式传输数据的接口,采用这种接口时,不必在液晶显示器的驱动板端和液晶面板端使用专用的接口电路,而是由驱动板主控芯片输出的TTL数据信号经电缆线直接传送到液晶面板的 阅读全文
posted @ 2017-06-06 20:00 请给我倒杯茶 阅读(4194) 评论(0) 推荐(0)
上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 130 下一页