![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
dblion
这个作者很懒,什么都没留下…
展开
-
渥瑞达 Linux Unix下C语言软件开发视频教程 笔记2
File system securityIn your unix stuff directory, type% ls –l (l for long listing!)You will see that you now get lots of details about the contents of you directory, similar to the example below原创 2013-05-04 10:54:00 · 2581 阅读 · 1 评论 -
学习 Linux高级编程06_B
Atexit1.c#include#include void fun(){ printf("over\n");} main(){ atexit(fun); printf("Process!\n");} Setlock1.c原创 2013-06-09 10:55:23 · 705 阅读 · 0 评论 -
学习 Linux高级编程09_B
19semA.c#include#include#include#include#include //exit()main(){ key_t key; int semid; //1 创建信号量 key = ftok(".", 99);原创 2013-06-15 11:27:40 · 738 阅读 · 0 评论 -
学习 Linux高级编程09_A
一、信号量(同步) 1.回顾: 一个进程控制另外一个进程 逻辑变量+pause/sleep+信号 2.信号量(semaphore)信号灯 三个数据:红灯/绿灯/黄灯原创 2013-06-15 11:26:36 · 754 阅读 · 0 评论 -
学习 Linux高级编程08_A
一、基于文件的通信 1.普通文件(io/mmap) 2.有名管道文件 3.匿名管道文件 4.Socket二、基于内存的通信 0.一组内核内存的工具 ipcs ipcs-m原创 2013-06-15 11:23:33 · 680 阅读 · 0 评论 -
学习 Linux高级编程07_B
Sighandle.c#include#includevoid handle(int s){ printf("hello start\n"); sleep(10); printf("hello end\n");}main(){ signal(SIGINT, handle原创 2013-06-15 11:22:12 · 689 阅读 · 0 评论 -
学习 Linux高级编程08_B
Ipcs shmA.c#include#include#include#include#include#include#include //ftok() main(){ key_t key; int shmid;原创 2013-06-15 11:24:18 · 711 阅读 · 0 评论 -
学习 Linux高级编程07_A
回顾: 1.信号的作用 2.理解信号: 软中断 可靠与不可靠 kill-l 3.信号发送与注册kill/raise alarm setitimer signal 4.信号的屏蔽sigprocmask sigemptyset sigfills原创 2013-06-15 11:20:49 · 760 阅读 · 0 评论 -
学习 Linux高级编程05_B
创建文件 Euser.c#include#include#include //bzero()#include#includemain(){ int fd; char buf[1025]; int r;原创 2013-06-05 10:45:35 · 1123 阅读 · 1 评论 -
学习 Linux高级编程05_A
一、IO与文件目录管理 1.pread= lseek + read pread读取以后不改变读写位置 2.mmap映射: /proc/${pid}/mem无法映射 3.IO的有效用户与实际用户 su- 用户 (su加原创 2013-06-05 10:40:32 · 862 阅读 · 0 评论 -
学习 Linux高级编程03
AM 一、make与makefile 1.回顾: 目标的语法 目标名:依赖目标 @命令 @命令 make的命令行使用原创 2013-06-05 10:38:41 · 779 阅读 · 0 评论 -
学习 Linux高级编程02
DAY02AM 回顾: brk/sbrk intbrk(void *p) void*sbrk(int); 补充:全新的类型。 永远记住:C的基本类型就:整数(1.char2.short 4.int)、小数(4.float 8.double)原创 2013-06-03 21:23:48 · 699 阅读 · 0 评论 -
学习 Linux高级编程01
DAY01AM 一、约定 1.作业完成 2.50-200lines codes. 二、课程体系 语言 C C++ 算法 算法原创 2013-06-03 20:58:12 · 590 阅读 · 0 评论 -
学习 Linux高级编程06_A
问题解答: 1.exit(状态码)返回状态码有什么意义? 返回值被系统得到:系统根据状态码进行日志记录。 返回值被调用者得到:system/wait程序会根据返回状态码进行对应处理。 exit(状态码) == main函数中的return状态码;原创 2013-06-09 10:54:21 · 796 阅读 · 0 评论 -
渥瑞达 Linux Unix下C语言软件开发视频教程 笔记4
Chapter 2 Data Types and Variables1. VARIABLE AND BASEIC DATATYPESAs a programmer, you will frequently wantyour program to “remember” a value. For example, if your program requests avalue原创 2013-05-05 13:55:57 · 2621 阅读 · 2 评论 -
渥瑞达 Linux Unix下C语言软件开发视频教程 笔记3
Chapter 1 Getting Started1.ASIMPLE EXAMPLEThis program prints out the message “Thisis a C program”Example1:#include int main(){ printf( "This is a C Program\n" );原创 2013-05-05 12:08:07 · 2325 阅读 · 0 评论 -
渥瑞达 Linux Unix下C语言软件开发视频教程 笔记1
UNIX Development EnvironmentThe Basic KnowledgeThe General CommandUnix ShellMakefile The Basic KnowledgUnix/Linux systems are multi-user and multi-taskingHave multiple users on the sam原创 2013-05-04 10:52:58 · 2817 阅读 · 0 评论 -
安装LUA报错
1.在官网下载下载地址原创 2014-07-28 13:25:05 · 2009 阅读 · 0 评论