1.依赖的头文件
#include
2.函数定义:
//通过传入path的方式,改变和文件的拥有关系,如果他是一个符号链接,则跟踪它
int chown(const char *path, uid_t owner, gid_t group);
//通过文件描述的方式进行修改用户所有组等的情况
int fchown(int fd, uid_t owner, gid_t group);
...
分类:
系统相关 时间:
2014-09-14 18:03:07
阅读次数:
321
原文:http://www.huamanshu.com/blog/2014-05-18.html起源写时复制英文名字叫“copy-on-write”,简称“cow”,又名“靠”今天查了下这个"cow",原来起源于*nix内存管理机制,后来广泛应用在其它开发语言上,C++的STL,还有PHP,相信很多...
分类:
Web程序 时间:
2014-09-14 16:39:07
阅读次数:
458
1.依赖的头文件
#include
2.函数定义:
//通过传入path中给定的文件名的方式来改变文件制定的权限
int chmod(const char *path,mode_t mode);
//通过传入文件描述符的方式为一个文件重设权限
int fchmod(int fd,mode_t mode);
注意:如果使用Linux的chmod命令时,得有root权...
分类:
系统相关 时间:
2014-09-14 15:26:47
阅读次数:
273
测试一$begin = time();for ($i=0; $itsts内容not pass9797...989810错误分析:php的fwrite是带buffer的,写入一行的内容大于buffer的长度,进程A和进程B是轮流调用write到同一行,就导致了这种结果测试三顺序写$begin = ti...
分类:
Web程序 时间:
2014-09-14 15:15:57
阅读次数:
224
# -*- coding: cp936 -*-import sys,os,stringd=0;path="F://test"srcfile=os.listdir(path)for i in srcfile: src=path+"//"+i dst=path+"//"+str(d)+".t...
分类:
编程语言 时间:
2014-09-14 14:04:47
阅读次数:
184
1.依赖的头文件
#include
#include
#include
2.函数定义:
//通过传入文件路径,struct stat结构体指针的方式
int stat(const char *path, struct stat *buf);
//通过文件描述符获取文件对应的属性。文件打开后这样操作
int fstat(int fd, struct stat *buf)...
分类:
系统相关 时间:
2014-09-14 12:52:37
阅读次数:
352
官方定义:JSON(JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to pa...
分类:
Web程序 时间:
2014-09-14 12:37:17
阅读次数:
211
BindingOperations.SetBinding( exp, Expander.IsExpandedProperty, new Binding() { Path = new PropertyPath("SelectedExpander"), Mode = BindingMode.TwoWa....
分类:
其他好文 时间:
2014-09-14 03:39:16
阅读次数:
301
由于内存管理的一些机制,进程的用户空间是相互独立的,一般是不能相互访问的,唯一例外的是共享内存。因此我们需要利用一些介质来完成进程间的通信。进程间通信方式:(1)管道linux中的管道分为无名管道和有名管道,前者用于父进程和子进程间的通信,后者用于任意两个进程间..
分类:
其他好文 时间:
2014-09-14 02:36:27
阅读次数:
226
最近使用unity读取各个平台路径,特别对移动平台路径的处理简直是各种蛋疼 各种坑在此与大家分享下IOS:Application.dataPath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/DataApplication.s...
分类:
其他好文 时间:
2014-09-14 01:19:36
阅读次数:
166