2013年9月13日
摘要: fgets从指定的文件中读一行字符到调用者提供的缓冲区中,gets从标准输入读一行字符到调用者提供的缓冲区中。#include char *fgets(char *s, int size, FILE *stream);char *gets(char *s);返回值:成功时s指向哪返回的指针就指向哪,出错或者读到文件末尾时返回NULL 阅读全文
posted @ 2013-09-13 15:50 语辰 阅读(188) 评论(0) 推荐(0) 编辑
摘要: http://pubs.opengroup.org/onlinepubs/009695399/functions/pathconf.html 阅读全文
posted @ 2013-09-13 15:47 语辰 阅读(121) 评论(0) 推荐(0) 编辑
摘要: CMSG_COMPAT_ALIGN函数是什么的使用方法? 阅读全文
posted @ 2013-09-13 15:04 语辰 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Nameget_user -- Get a simple variable from user space.Synopsisget_user ( x, ptr);ArgumentsxVariable to store result.ptrSource address, in user space.ContextUser context only. This function may sleep.DescriptionThis macro copies a single simple variable from user space to kernel space. It supports si 阅读全文
posted @ 2013-09-13 14:58 语辰 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 1. put_userNameput_user -- Write a simple value into user space.Synopsisput_user ( x, ptr);ArgumentsxValue to copy to user space.ptrDestination address, in user space.ContextUser context only. This function may sleep.DescriptionThis macro copies a single simple value from kernel space to user space. 阅读全文
posted @ 2013-09-13 14:57 语辰 阅读(578) 评论(0) 推荐(0) 编辑
摘要: size_t是unsigned_int既然是无符号的,一般只能用在没有负数的地方了.比如我们的年龄啊,身高啊.在c标准函数中,最一般的就是strlen,返回字符数.字符数当然不可能是负的啊,所以函数原型是size_t strlen(const char*)摘自:http://zhidao.baidu.com/link?url=p95SGkoMxPk7oW2UTWy31ekizKpzTPNkAxRIg9e1GRF29R8lynSalwBAwKWzFHvBVhtnjZqiNygptLVlkMtDIq 阅读全文
posted @ 2013-09-13 14:37 语辰 阅读(201) 评论(0) 推荐(0) 编辑
摘要: http://www.lehman.cuny.edu/cgi-bin/man-cgi?kmem_alloc+9 阅读全文
posted @ 2013-09-13 14:32 语辰 阅读(120) 评论(0) 推荐(0) 编辑
摘要: copyout Kernel ServicePurposeCopies data between user and kernel memory.Syntax#include #include int copyout ( kaddr,uaddr,count)char *kaddr;char *uaddr;int count;ParametersItemDescriptionkaddr Specifies the address of kernel data.uaddr Specifies the address of user data.count Specifies the number... 阅读全文
posted @ 2013-09-13 14:18 语辰 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 详见:http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.kerneltechref%2Fdoc%2Fktechrf1%2Fcopyin.htmcopyin Kernel ServicePurposeCopies data between user and kernel memory.Syntax#include #include int copyin ( uaddr,kaddr,count)char *uaddr;char *kaddr;int count;ParametersItemDescri 阅读全文
posted @ 2013-09-13 14:14 语辰 阅读(826) 评论(0) 推荐(0) 编辑
摘要: ints,i,len,err=0这个是只给err赋了值还是这四个都有? 阅读全文
posted @ 2013-09-13 14:10 语辰 阅读(263) 评论(0) 推荐(0) 编辑
摘要: c语言中 ->符号是什么意思? 比如c=a->ba为结构体或联合体的指针,->表示调用其成员 阅读全文
posted @ 2013-09-13 14:05 语辰 阅读(1733) 评论(0) 推荐(0) 编辑