获取文件属性(struct stat):int stat(const char* restrict pathname,struct stat* restrict buf);int fstat(int fd,struct stat* restrict buf);int lstat(const char...
分类:
其他好文 时间:
2014-11-14 17:15:34
阅读次数:
252
1. 选定其中一台服务器作为基准服务器,即提供时钟服务。 (1)首先确定ntp是否存在,若不存在则通过以下命令安装: yum?install?ntp ? (2)修改配置文件/etc/ntp.conf,在其中插入: restrict?192.168.20....
分类:
系统相关 时间:
2014-11-13 22:40:29
阅读次数:
230
1 引言本文将描述文件系统的一些特征和文件的性质,从stat函数开始,逐个讲解stat结构的成员以了解文件的属性。2 stat,fstat 和 lstat函数#include int stat(const char *restrict pathname,struct stat *restrict b...
分类:
其他好文 时间:
2014-11-13 22:07:18
阅读次数:
183
除了对文件进行打开,读写等操作。文件系统还有其他的特征和性质等着我们去研究哦。stat、fstat、lstat函数#include int stat(const char *restrice pathname, struct stat *restrict buf);int fstat(int fie...
分类:
其他好文 时间:
2014-11-04 14:27:41
阅读次数:
276
指令1、restrict:指令声明四种表现形式:A(属性)、C(类)、E(元素)、M(注释),使用“restrict”来进行配置。2、template:指令中生成的字符串html模版3、templateUrl:模版的地址4、replace:将原指令所在标签替换为模版内容时,是否保存原指令html,为...
分类:
Web程序 时间:
2014-11-01 00:53:47
阅读次数:
280
如果一个函数被频繁地调用很多很多次的时候,我们就应该从细节入手。有时候我们对代码本身的逻辑无从下手,往往这些细节能够带给我们意想不到的结果。类型修饰符就是其中之一。
const关键词无需多说,但是我们往往也能忽视,所以尽量养成一个习惯:在设计一个函数参数或者申明一个变量(无论是局部的还是全局的)的时候,下意识地考虑一下这个变量我们可不可以设计为不可更改的。
NOTE: 如果是指针的...
分类:
其他好文 时间:
2014-10-30 11:46:06
阅读次数:
204
语法:
删表
DROP TABLE Syntax
DROP [TEMPORARY] TABLE [IF EXISTS]
tbl_name [, tbl_name] ...
[RESTRICT | CASCADE]
可一次删除一张或多张表。需具有所删除表上的DROP权限。表定义文件和数据文件均被移除。表被删除后表上的用户权限不会被自动删除。参数里表中指定的表名不存在则报错,但对...
分类:
数据库 时间:
2014-10-28 15:38:36
阅读次数:
287
http://www.delphipages.com/forum/showthread.php?t=58391Hi,How would I restrict a form from being resized smaller than say a height of 400 and a width ...
SYNOPSIS#include /* only timer_create need this header */#include int timer_create(clockid_t clockid, struct sigevent *restrict evp, timer_t *restric....
分类:
其他好文 时间:
2014-10-27 00:19:33
阅读次数:
203
ubuntu server ntp时间同步服务器安装及使用一、服务端1 apt-get install ntp2 安装后默认启动服务,如果没有启动,启动之。/etc/init.d/ntp start3 vi /etc/ntp.conf 修改为如下restrict default nomodify n...
分类:
其他好文 时间:
2014-10-22 20:05:35
阅读次数:
365