1. open() O_RONLY O_WONLY O_RDWR 返回值为 文件描述符fd2. creat() 创建新文件,这个函数的产生是因为最开始open函数没有O_CREAT 功能,所以单独开发的该函数注:不是create,没有e3. read() 读取fd对应的文件内容4. write(.....
分类:
其他好文 时间:
2015-02-28 00:14:06
阅读次数:
165
Windows环境和Unix环境都能够实现数据库的自动启动
Windows环境下:
实验方法相对简单,通过修改注册表或用oradim命令来实现:
oradim -edit -startmode [auto|manual] -shutmode [nomal|immediate|abort]
Unix环境下:
通过数据库自带的dbstart命令来实验.
命令: dbstart + ...
分类:
数据库 时间:
2015-02-26 13:30:42
阅读次数:
213
对于windows用户假设用Cygwin模拟unix环境的话,里面没有带curl命令,要自己装,所以建议用Gow来模拟,它已经自带了curl工具,安装后直接在cmd环境中用curl命令就可,由于路径已经自己主动给你配置好了。 linux curl是一个利用URL规则在命令行下工作的文件传输工具。.....
分类:
Web程序 时间:
2015-02-19 09:37:56
阅读次数:
254
对于windows用户假设用Cygwin模拟unix环境的话,里面没有带curl命令,要自己装,所以建议用Gow来模拟,它已经自带了curl工具,安装后直接在cmd环境中用curl命令就可,由于路径已经自己主动给你配置好了。 linux curl是一个利用URL规则在命令行下工作的文件传输工具。.....
分类:
Web程序 时间:
2015-02-13 09:40:01
阅读次数:
248
数据库及数据导入导出(informix) 1.原数据库:将nrmdb库sysc_linkset表表结构导入tt.sql文件 dbschema -d nrmdb -t sysc_linkset >tt.sql 2.目地数据库:在nrmdb库中建导入tt.sql文件的sysc_linkset表 dbaccess...
分类:
其他好文 时间:
2015-02-11 12:53:04
阅读次数:
200
// apue.h
#ifndef APUE_SUNYJ
#define APUE_SUNYJ void err_quit(const char *fmt, ...);
void err_sys(const char *fmt, ...); #endif
// error.cpp
#include ...
分类:
系统相关 时间:
2015-02-10 18:37:05
阅读次数:
495
#include struct msg { struct msg *m_next; /* ... more stuff here ... */ int m_id;
}; msg* workq;
pthread_cond_t qready = PTHREAD_COND_INITIALIZER;
pth...
分类:
其他好文 时间:
2015-02-09 19:48:56
阅读次数:
293
对于windows用户假设用Cygwin模拟unix环境的话,里面没有带curl命令,要自己装,所以建议用Gow来模拟,它已经自带了curl工具,安装后直接在cmd环境中用curl命令就可,由于路径已经自己主动给你配置好了。 linux curl是一个利用URL规则在命令行下工作的文件传输工具。.....
分类:
Web程序 时间:
2015-02-08 19:29:15
阅读次数:
233
http://www.apuebook.com/errata2e.html Welcome to the web site dedicated to the support of the second edition of Advanced Programming in the UNIX® Envi...
分类:
其他好文 时间:
2015-02-07 18:50:47
阅读次数:
228
// threads/mutex1.c 11-5
#include #include #include struct foo { int f_count; pthread_mutex_t f_lock; int f_id; /* ... more stuff her...
分类:
编程语言 时间:
2015-02-07 18:42:17
阅读次数:
227