
linux相关
lkkey80
这个作者很懒,什么都没留下…
展开
-
通过samba让windows访问linux
由于windows不区分大小写及linux下链接文件等问题,会造成linux下的源码包在windows下解压时出现问题。同时为了使用windows下的source insight查看源代码。为此要将linux的一个目录共享出来供windows访问。环境:windows下通过虚拟机安装的redhat 5。首先要确保linux下安装了samba软件,然后通过chkconfig --list 查原创 2013-02-28 12:48:12 · 617 阅读 · 0 评论 -
linux /proc/buddyinfo 解读
The Linux kernel doesn't consider all of your physical RAM to be one great big undifferentiated pool of memory. Instead, it divides it up into a number of different memory regions (at least for kernel转载 2014-04-20 00:18:33 · 3018 阅读 · 0 评论 -
定位“栈溢出”导致的程序崩溃问题
程序在莫名其妙的地方崩溃了,原创 2014-04-20 00:03:31 · 5524 阅读 · 0 评论 -
linux打印函数调用堆栈
以下内容引自http://www.kernel.org/doc/man-pages/online/pages/man3/backtrace.3.html 作备忘之用。NAME top backtrace, backtrace_symbols, backtrace_symbols_fd - support for application s转载 2014-04-20 00:20:37 · 941 阅读 · 0 评论 -
GDB总结
1,core dump 文件生成于其他机器上原创 2014-11-08 15:10:18 · 1072 阅读 · 0 评论 -
Gcc Inline 函数
1. 编译时使用–Winline,让gcc对标志成inline但不能被展开的函数给出警告信息。2. Inline是一种优化,只在有优化的编译选项中起作用,若编译时没使用-O选项,任何函数都不会被内联。3. Inline 不能被展开的常见情况(1) 使用了可变参数;(2) 非局部goto语句;(3) 对inline函数地址的引用,递原创 2014-12-17 12:39:38 · 1228 阅读 · 0 评论 -
SELINUX 导致rsync无法同步文件
问题描述:写了一个脚本update.sh调用rsync同步更新服务器上的文件,将update.sh加入Linux 自启动脚本/etc/rc.local由系统自动拉起后,rsync会无缘无故的失败,在终端手动运行update.sh就可以正常同步文件。原因:查看/var/log/messages发现是SELINUX限制了rsync的执行。解决办法:使用ls -Z 查原创 2015-09-11 10:40:07 · 2528 阅读 · 1 评论 -
eventfd - create a file descriptor for event notification
NAME top eventfd - create a file descriptor for event notificationSYNOPSIS top #include int eventfd(unsigned int initval, int flags);DESCRIPTION转载 2016-04-28 10:20:30 · 679 阅读 · 0 评论