上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: #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 东宫得臣 阅读(176) 评论(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 东宫得臣 阅读(128) 评论(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 东宫得臣 阅读(51) 评论(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 东宫得臣 阅读(49) 评论(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 东宫得臣 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 发现一篇文章,讲解这两个之间的区别,很详细。 find -exec vs find | xargs (everythingcli.org) 阅读全文
posted @ 2021-07-12 14:31 东宫得臣 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <sstream> #include <algorithm> #include <iterator> #include <cmath> template<class T> struct chainNode{ T element; chainN 阅读全文
posted @ 2021-07-08 13:09 东宫得臣 阅读(42) 评论(0) 推荐(0) 编辑
摘要: uname()系统调用返回了一系列关于主机系统的标识信息。 #include <sys/utsname.h> int uname(struct utsname *utsbuf); Returns 0 on success, or -1 on error #define _UTSNAME_LENGTH 阅读全文
posted @ 2021-07-06 13:34 东宫得臣 阅读(358) 评论(0) 推荐(0) 编辑
摘要: #include <unistd.h> #include <stdio.h> int main() { enum {PATHMAX = 256}; char buf[PATHMAX]; int val; char *cwd; cwd = getcwd(buf, PATHMAX); /*remembe 阅读全文
posted @ 2021-07-05 11:14 东宫得臣 阅读(129) 评论(0) 推荐(0) 编辑
摘要: package mypackage import ( "encoding/json" "fmt" "io/ioutil" "log" "os" "database/sql" _ "github.com/lib/pq" ) func LoadConfig(path string) Config { j 阅读全文
posted @ 2021-07-05 09:25 东宫得臣 阅读(1009) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页