会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
平安1111
博客园
首页
新随笔
联系
订阅
管理
2021年11月20日
系统调用原理
摘要: 以fork()为例 int main() { fork(); } fork()是一个对系统调用fork的封装,可用下列宏来定义 _syscall0(pit_t, fork); _syscall0是一个宏函数,i386版本定义如下: #define _syscall0(type, name) \ ty
阅读全文
posted @ 2021-11-20 23:42 平安1111
阅读(152)
评论(0)
推荐(0)
2021年11月15日
最“小”的Hello world C程序, From《程序员的自我修养--链接、装载与库》
摘要: 最“小”的Hello world C程序
阅读全文
posted @ 2021-11-15 00:01 平安1111
阅读(154)
评论(1)
推荐(0)
2021年10月7日
c/c++ 调用python程序实例(QT)
摘要: c/c++ 调用python程序实例(QT)
阅读全文
posted @ 2021-10-07 23:37 平安1111
阅读(234)
评论(0)
推荐(0)
2021年10月1日
QT 快捷键
摘要: QT 快捷键
阅读全文
posted @ 2021-10-01 11:53 平安1111
阅读(360)
评论(0)
推荐(0)
2021年8月15日
epoll例程
摘要: gdb调试遇到 “Address already in use” 处理: netstat -napt 查看对应的端口号的pid,然后 kill -9 pid #include <stdio.h>#include <sys/types.h>#include <stdlib.h>#include <un
阅读全文
posted @ 2021-08-15 12:32 平安1111
阅读(90)
评论(0)
推荐(0)
linux gdb使用
摘要: 1、调试带参数的程序: list 打印代码 b linenumber 设置断点 gdb xxx(程序名) (gdb) set args a b c(gdb) run或者(gdb) run a bc也可以的 n 执行下一步, s 执行下一步进入函数,c continue; p 变量, 查看变量值 多个
阅读全文
posted @ 2021-08-15 12:30 平安1111
阅读(61)
评论(0)
推荐(0)
2021年8月3日
ubuntu 和 centos shell/samba/network等设置
摘要: 彩色shell提示符: ubuntu: vim ~/.bashrc将#force_color_prompt=yes改为force_color_prompt=yes Linux登录过程中加载配置文件顺序: /etc/profile → /etc/profile.d/*.sh → ~/.bash_pro
阅读全文
posted @ 2021-08-03 00:29 平安1111
阅读(59)
评论(0)
推荐(0)
Ubuntu20.04启动显示错误: ln: /tmp/mountroot-fail-hooks.d//scripts/init-premount/lvm2: No such file or directory
摘要: 修改步骤:a)Edit /usr/share/initramfs-tools/scripts/functionsChange necessary lines (marked with blue) Exact commands:sudo vim /usr/share/initramfs-tools/s
阅读全文
posted @ 2021-08-03 00:28 平安1111
阅读(674)
评论(0)
推荐(0)
算法导论 第三版 习题答案 及红黑树讲解视频
摘要: https://walkccc.me/CLRS/Chap02/2.2/ https://www.bilibili.com/video/BV135411h7wJ?p=13 红黑树原理 新增,删除,打印: https://www.cnblogs.com/hongdada/p/12165636.html
阅读全文
posted @ 2021-08-03 00:27 平安1111
阅读(334)
评论(0)
推荐(0)
2021年7月19日
linux kernel(内核)代码理解 几个记录(属性、内联汇编、__builtin()、 likely()等)
摘要: linux kernel(内核)代码理解 几个记录(属性、内联汇编、__builtin()、 likely()等)
阅读全文
posted @ 2021-07-19 01:57 平安1111
阅读(260)
评论(0)
推荐(0)
下一页
公告