易截截图软件、单文件、免安装、纯绿色、仅160KB

查看linux 错误码的程序

为了方便查看Linux系统下的错误码以及它的含义,写了一个程序来打印这些信息。
listerrno.c
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#define MAX_ERRNO 256
int main(int argc, char* argv[])
{
int n = 0;
printf("----------------------- Errno --------------------\n");
for(n=0; n < MAX_ERRNO; n++)
{
printf("#%d, %s\n", n, strerror(n));
}
printf("--------------------------------------------------\n");
return 0;
}
Makefile:
E_TARGET = listerrno
all: $(E_TARGET)
listerrno:
gcc -o $@ listerrno.c
clean:
rm -rf $(E_TARGET) *.o
在Redhat Enterprise Linux 5 上的打印结果:
----------------------- Errno --------------------
#0, Success
#1, Operation not permitted
#2, No such file or directory
#3, No such process
#4, Interrupted system call
#5, Input/output error
#6, No such device or address
#7, Argument list too long
#8, Exec format error
#9, Bad file descriptor
#10, No child processes
#11, Resource temporarily unavailable
#12, Cannot allocate memory
#13, Permission denied
#14, Bad address
#15, Block device required
#16, Device or resource busy
#17, File exists
#18, Invalid cross-device link
#19, No such device
#20, Not a directory
#21, Is a directory
#22, Invalid argument
#23, Too many open files in system
#24, Too many open files
#25, Inappropriate ioctl for device
#26, Text file busy
#27, File too large
#28, No space left on device
#29, Illegal seek
#30, Read-only file system
#31, Too many links
#32, Broken pipe
#33, Numerical argument out of domain
#34, Numerical result out of range
#35, Resource deadlock avoided
#36, File name too long
#37, No locks available
#38, Function not implemented
#39, Directory not empty
#40, Too many levels of symbolic links
#41, Unknown error 41
#42, No message of desired type
#43, Identifier removed
#44, Channel number out of range
#45, Level 2 not synchronized
#46, Level 3 halted
#47, Level 3 reset


相关文档:

获取Linux 2.6.x sys_call_table


在linux中所有的syscall都是调用int 0x80, int 0x80的中断服务程序为system_call(arch/x86/kernel/traps_32.c:set_system_gate(SYSCALL_VECTOR,&system_call).  system_call (arch/x86/entry_32.S)最终call *sys_call_table(,%eax,4)来完成一个syscall调用. 
即 int 0x80 -> system_call -> s ......

linux下bin文件安装

At first you have to open a terminal/bash and then enter:
file /path/file.bin
for example file /home/user/file.bin (file is the command)
Now you should see a sentence including the word “executable” and not “non-executable, not executable,… or something completely differ ......

关于linux忘记密码的一个最简单的方法

网上有很多的方法,关于忘记linux登录密码之后应该怎么办。有五种方法,都很好。
本人以为用grub引导的那种最实用,呵呵!试了一下,果然可以!!
grub引导

1. 在出现grub画面时,选择linux引导项,然后按e键
2. 选择以kernel开头的一行,再按e 键,在此行的末尾,按空格键后输入single,以回车键来退出编辑模式; ......

linux 下载工具 multiget 安装。

multiget号称为linux下的讯雷,下载速度很快,支持断点续传,且有讯雷一样的悬浮框,很是方便。但由于其于2007年停止更新和开发,而
linux的编译软件却在不断更新,gcc等编译程序对程序代码的语法和参数要求越来越严格,所以现在就造成了大多数linux会出现编译安装
multiget1.2失败的现象,上面附件是我修改后的multiget, ......

linux中apache配置

一、
      
背景
1
.什么是
Apache

Apache,是一种开放源码的
HTTP服务器,可以在大多数操作系统中运行,由于其多平台和安全性所以被广泛使用,是目前最流行的
Web服务器软件之一。
Apache 起初由
Illinois 大学
Urbana-Champaign 的国家高级计算程序中心开发,开始
A ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号