摘要:
#include <stdio.h> #include <sys/resource.h> int main() { struct rlimit rlim; if(getrlimit(RLIMIT_MEMLOCK, &rlim) == -1) { fprintf(stderr, "getrlimit 阅读全文
posted @ 2021-07-14 17:17
东宫得臣
阅读(189)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <unistd.h> int main(int argc, char *arg 阅读全文
posted @ 2021-07-14 15:43
东宫得臣
阅读(136)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <sys/wait.h> #include <unistd.h> #include <string.h> #define BUF_SIZE 10 int main(int argc, char *argv[]) { int pfd[2]; ch 阅读全文
posted @ 2021-07-14 12:08
东宫得臣
阅读(61)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> static void atexitFunc1(void) { printf("atexit function 1 called.\n"); } static void atexitFunc2(void) { printf 阅读全文
posted @ 2021-07-14 09:04
东宫得臣
阅读(59)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <unistd.h> static int idata = 111; int main() { int istack = 222; pid_t childPid; switch(childPid = fork()) { case -1: fpr 阅读全文
posted @ 2021-07-14 08:44
东宫得臣
阅读(141)
评论(0)
推荐(0)