04 2013 档案

摘要:unpipc.h/* include unpipch *//* Our own header. Tabs are set for 4 spaces, not 8 */#ifndef __unpipc_h#define __unpipc_h#include "../config.h" /* configuration options for current OS */ /* "../config.h" is generated by configure *//* If anything changes in the following list of #i 阅读全文
posted @ 2013-04-17 20:40 静之深 阅读(382) 评论(0) 推荐(0) 编辑
摘要:fcntl()/mmap()1、fcntl#include <sys/types.h>#include <unistd.h>#include <fcntl.h>定义函数 int fcntl(int fd, int cmd); int fcntl(int fd, int cmd, long arg); int fcntl(int fd, int cmd, struct flock *lock); fcntl()针对(文件)描述符提供控制.参数fd 是被参数cmd操作(如下面的描述)的描述符. 针对cmd的值,fcntl能够接受第三个参数int arg1. 参数 阅读全文
posted @ 2013-04-17 17:28 静之深 阅读(308) 评论(0) 推荐(0) 编辑
摘要:#include #include #include #include #include #include #include #include #include #include #include typedef long LONG;typedef char CHAR;#define CONST const#ifndef SUCCESS#define SUCCESS 0#endif#ifndef FAIL#define FAIL -1#endifLONG GetMac(CONST CHAR *pcIfName, CHAR *pcMac... 阅读全文
posted @ 2013-04-17 14:32 静之深 阅读(7693) 评论(2) 推荐(0) 编辑