![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linuxc
胡致云
联系电话:15527523006
展开
-
锁定物理内存-mlockall
/* mlockall -- lock in core all the pages in this process. Hurd version. Copyright (C) 2001-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify ...原创 2021-11-07 15:11:46 · 433 阅读 · 0 评论 -
sshd-修改后可完全调试的代码
/* $OpenBSD: sshd.c,v 1.516 2018/09/21 12:23:17 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved * This program is the ssh daemo.原创 2021-03-03 16:37:52 · 246 阅读 · 1 评论 -
系统通知
#define __NR_inotify_init 253 #define __NR_inotify_add_watch 254 #define __NR_inotify_rm_watch 255 #define MAX_EVENTS 4096 #define MAX_STRLEN 4096 /* the following are legal, implemented events that user-space can watch for */ #define IN_ACCESS 0x00000..原创 2021-02-20 16:29:38 · 151 阅读 · 0 评论 -
mkstemp.txt
使用mkstemp创建临时文件 ---------------- 编程范式 ------- #include <stdio.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> void name(...) { int tid; int ret; char str[512]={0}; char name[]...原创 2021-02-24 07:14:30 · 124 阅读 · 0 评论