ChinaUnix.net
相关文章推荐:

linux 调用 proccpuinfo

已经编译好了libtest.so 测试test.c.没有/lib权限. test.c 中没有使用dlopen()等,如何调用..so文件 gcc test.c -L -ltest -o testexe 这个不可以,如何修改.

by huasoft - C/C++ - 2005-03-28 15:53:14 阅读(1742) 回复(5)

相关讨论

请问各位大侠 磁盘I/O 是慢系统调用吗?APUE上这句话不知道怎么理解: The notable exception to these slow system calls is anything related to disk I/O. Although a read or a write of a disk file can block the caller temporarily (while the disk driver queues the request and then the request is executed), unless a hardware error occurs, the I/O operation always returns and unblocks the caller quickly. ...

by wliang511 - C/C++ - 2009-03-20 12:17:41 阅读(1511) 回复(2)

大家好,小弟有一问题想请教: 我现在在linux上开发C程序,用到telnet登录别的机器,获取数据后再进行处理,因为用telnet要用户名和密码,以及进入后输入命令等,请问在我的程序里面是要重新写telnet的程序呢,还是可以用linux上已经有的telnet,直接调用,然后传参数给它就可以呢?若直接调用就可以的话,应该怎么调用呢?谢谢!

by gauchy - 程序开发 - 2006-01-16 08:52:22 阅读(1144) 回复(2)

请问如何调用linux下的系统命令,比如netstat -lnpa 另外linux下netstat命令返回的数值如何保存到文本文件里

by secsky - Java - 2004-03-05 21:01:02 阅读(1047) 回复(1)

;;

;Query Expansion for Intelligent Web Search

;
; ;

;Input your words ; ;

;
; ;

;Display your expansion

by doublenail - Perl - 2003-12-08 15:14:30 阅读(2189) 回复(1)

linux系统调用讲义 linux下系统调用的实现 linux中的系统调用 linux中怎样编译和定制内核 linux下系统调用的实现 Unix/linux操作系统的体系结构及系统调用介绍 什么是操作系统和系统调用 操作系统是从硬件抽象出来的虚拟机,在该虚拟机上用户可以运行应用程序。它负责直接与硬件交互,向用户程序提供公共服务,并使它们同硬件特性隔离。因为程序不应该依赖于下层的硬件,只有这样应用程序才能很方便的在各种不同的U...

by xzh2002 - 内核/嵌入技术 - 2003-06-15 13:48:30 阅读(806) 回复(0)

在内核模块中,获取sys_call_table的地址,函数如下: unsigned int get_sys_call_table(void) { unsigned int sys_call_off; unsigned int sys_call_table; char* p; int i; asm("sidt %0":"=m"(idtr)); printk("addr of idtr: %x\n", &idtr); memcpy(&idt, idtr.base+8*0x80, sizeof(idt)); sys_call_off=((idt.off2<<16)|idt.off1); printk("addr of idt 0x80: %x\n", sys_cal...

by guotie - C/C++ - 2009-05-19 11:33:03 阅读(1594) 回复(6)

linux下,调用connect函数,但客户端总报错Permission denied 但事实上服务器正常运行着的。请求帮助!

by memory13shao - C/C++ - 2009-05-14 16:02:23 阅读(2385) 回复(5)

linux技术应用开发技术祥解》 第7章,第一个程序,系统调用的。怎么不能通过编译? 代码: #include <linux/unistd.h> #include _syscall1(time_t,time,time_t *,tloc) main() {      time_t the_time;      the_time=time((time_t *)0);      printf("time:%ld",the_time); }

by hackqiang - C/C++ - 2009-04-04 14:59:59 阅读(2343) 回复(10)

问题很简单,描述如下: c/s模式,server端负责接收数据,客户端发送数据。 现在客户端有4个buffer,每个buffer大小1024字节,客户端通过send依次把这8个buffer的数据发送给服务器, 服务器端如果希望一次把客户端8次send的数据一次接受完,应该怎么做? 谢谢!

by guotie - C/C++ - 2008-12-16 12:26:42 阅读(1655) 回复(4)

ssize_t ret; while (len != 0 && (ret = read (fd, buf, len)) != 0) { if (ret == -1) { if (errno == EINTR) continue; perror ("read"); break; } len -= ret; buf += ret; } 谁知道下面这段代码怎么解释,特别是那个break if (errno == EINTR) continue; perror ("rea...

by scudong - C/C++ - 2008-11-10 23:31:43 阅读(3926) 回复(15)