Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1645879
  • 博文数量: 1493
  • 博客积分: 38
  • 博客等级: 民兵
  • 技术积分: 5834
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-19 17:28
文章分类

全部博文(1493)

文章存档

2016年(11)

2015年(38)

2014年(137)

2013年(253)

2012年(1054)

2011年(1)

发布时间:2013-03-26 09:56:07

一、文件的IO操作1.系统调用是指操作系统提供给用户程序调用的一组“特殊”接口。系统是一个软中断机制向内核提交请求,通常程序员调用用户编程接口(API),但不是所有的函数都一一对应一个系统调用。POSIX标准2.3.Linux 中对.........【阅读全文】

阅读(251) | 评论(0) | 转发(0)

发布时间:2013-03-26 09:56:03

1,字符串连接char *strcat(char *dest, const char *src);char *strncat(char *dest, const char *src, size_t n);英文manual并不难,直接上英文:The  strcat()  function appends the src string to the dest string, over‐writing the terminating null byte ('\0') at the end of  dest,  an.........【阅读全文】

阅读(363) | 评论(0) | 转发(0)

发布时间:2013-03-26 09:55:57

本文通过讲解Linux下的内存映射,从而知道怎么将设备地址映射到用户空间。......【阅读全文】

阅读(275) | 评论(0) | 转发(0)

发布时间:2013-03-26 09:55:51

truct file_operations是一个字符设备把驱动的操作和设备号联系在一起的纽带,是一系列指针的集合,每个被打开的文件都对应于一系列的操作,这就是file_operations,用来执行一系列的系统调用。linux-2.6.22/include/linux/fs.hstruct file_operations {        struct module *owne.........【阅读全文】

阅读(250) | 评论(0) | 转发(0)

发布时间:2013-03-26 09:55:47

废话不多说,直接上代码:#include <stdio.h>#include <mysql/mysql.h>#define HOST "192.168.56.2"#define DB "webdevtest"#define USER "webdev"#define PWD "webdev"#define PORT 3306int main(){&nbs.........【阅读全文】

阅读(240) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册