1.概述PCNTL函数和POSIX函数。PCNTL函数需要在编译时加上--enable-pcntl;至于POSIX函数默认开启的,只要不再编译时disable就可以。常用函数:pcntl_fork,pcntl_getmypid,pcntl_wait,pcntl_signal,pcntl_signal...
分类:
Web程序 时间:
2014-09-03 11:00:36
阅读次数:
273
方法一: #locale (locale命令用于查看使用语言详细信息,为中文语言) #export LC_ALL=POSIX (export命令导出修改LC_ALL语言选项) #locale (再次查看,信息已经改变了) 该方法在用户注销或重启后将失效,要想保存设置,见方...
分类:
其他好文 时间:
2014-09-01 17:13:43
阅读次数:
296
There are three separate approaches to pattern matching provided by?PostgreSQL: the traditional?SQL?LIKE?operator, the more recent?SIMILAR TO?operator (added in SQL:1999), and?POSIX-style r...
分类:
数据库 时间:
2014-09-01 12:44:23
阅读次数:
380
1. 概述Posix IPC 包括:Posix消息队列、Posix信号量、Posix共享内存区Posix IPC在访问它们的函数和描述它们的信息上有一些类似点。本章讲述所有这些共同属性:用于标识的路径名、打开或创建时指定的标志、访问权限。Posix IPC 函数汇总2. IPC名字三种类型的Posi...
分类:
其他好文 时间:
2014-09-01 01:37:50
阅读次数:
342
POSIX.1 将 read函数的原型做了修改,经典的定义为1 int read(int filedes, char *buf, unsigned nbytes);修改为1 ssize_t read(int filedes, void *buf, size_t nbytes);主要从以下几个方面考虑...
分类:
其他好文 时间:
2014-09-01 00:11:52
阅读次数:
239
本篇紧接着boost上篇叙述Boost::DateTime的时间处理。在C++中,常见的时间有time_t, FILETIME和tm,而boost中用ptime。构造ptime1.ptime的构造函数有四种:1: using namespace boost::posix_time;2: ...
分类:
其他好文 时间:
2014-08-27 12:35:47
阅读次数:
206
前言: Hadoop实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS。HDFS有高容错性的特点,并且设计用来部署在低廉的(low-cost)硬件上;而且它提供高吞吐量(high throughput)来访问应用程序的数据,适合那些有着超大数据集(large data set)的应用程序。HDFS放宽了(relax)POSIX的要求,...
分类:
其他好文 时间:
2014-08-26 09:51:26
阅读次数:
502
转载:http://blog.chinaunix.net/uid-1877180-id-3011232.htmlsigaction函数的功能是检查或修改与指定信号相关联的处理动作(可同时两种操作)。他是POSIX的信号接口,而signal()是标准C的信号接口(如果程序必须在非POSIX系统上运行,...
分类:
其他好文 时间:
2014-08-25 18:40:14
阅读次数:
300
问题:
在刚装好的 Mint/Ubuntu 可能会出现 man pthread_mutex 相关的函数没结果,如下图...
分类:
其他好文 时间:
2014-08-24 12:57:55
阅读次数:
251
SYNOPSIS /* According to POSIX.1-2001 */ #include /* According to earlier standards */ #include #include #include int select(int nfds, fd_set *readfds...
分类:
系统相关 时间:
2014-08-24 00:18:21
阅读次数:
401