码迷,mamicode.com
首页 >  
搜索关键字:creat inode    ( 9478个结果
单链表
struct Node{ int data; Node *next;};//创建链表 输入为数字,如果输入0 链表结束(0不计)Node *creat(){ Node *head,*p,*s; int x,cycle=1; head=(Node *)malloc(siz...
分类:其他好文   时间:2014-08-02 20:50:24    阅读次数:292
创建索引的方法有两种
创建索引的方法有两种:创建表的同时创建索引,在已有表上创建索引。方法一:创建表的同时创建索引。使用这种方法创建索引时,可以一次性地创建一个表的多个索引(例如唯一性索引、普通索引、复合索引等),其语法格式与创建的语法格式基本相同(注意粗体字部分的代码)。Creat..
分类:其他好文   时间:2014-08-01 20:18:32    阅读次数:247
文件I/O学习笔记
Linux内核的VFS子系统:文件描述符对于内核而言,所有打开的文件都通过文件描述符引用。文件描述符是一个非负整数。当打开一个现有文件或创建一个新文件时,内核向进程返回一个文件描述符。当读或写一个文件时,使用open或creat返回的文件描述符标识该文件,将其作为参数传递给read或write。 按...
分类:其他好文   时间:2014-08-01 12:48:01    阅读次数:430
Mysql管理表和索引
1.创建数据库: mysql>helpcreatedatabase; Name:‘CREATEDATABASE‘ Description: Syntax: CREATE{DATABASE|SCHEMA}[IFNOTEXISTS]db_name [create_specification]... create_specification: [DEFAULT]CHARACTERSET[=]charset_name |[DEFAULT]COLLATE[=]collation_name CREAT..
分类:数据库   时间:2014-08-01 07:04:32    阅读次数:426
8. 文件系统——文件的删除、移动、复制过程以及链接文件
一、删除、移动、复制和文件系统的关联关系1.删除文件的过程以/var/log/messages这个文件为例,删除messages这个文件的过程大致如下:①找到/var/log/messages所在的inode(查找文件的过程见前一章节);②删除/var/log目录上有关messages的条目;③清空索引中/var/log/message..
分类:移动开发   时间:2014-08-01 00:13:41    阅读次数:473
error: unknown field 'ioctl' specified in initializer
error message:原因: 从2.6.36开始,file_operations结构发生了重大变化具体看 xx../include/linux/fs.h定义:取消了原先的int (*ioctl)(struct inode*, struct file*, unsigned int, unsign...
分类:其他好文   时间:2014-07-31 16:19:37    阅读次数:275
ctime、atime、mtime的区别
st_atimeTimewhenfiledatawaslastaccessed.Changedbythefollowingfunctions:creat(),mknod(),pipe(),utime(2),andread(2).st_mtimeTimewhendatawaslastmodified.Changedbythefol-lowingfunctions:creat(),mknod(),pipe(),utime(),andwrite(2).st_ctimeTimewhenfilestatuswaslas..
分类:其他好文   时间:2014-07-29 18:17:52    阅读次数:225
Linux C代码分析文件权限
判断/home下有没有文件aaa.txt,如果存在则提示错误,如果文件不存在则创建且文件最终权限为644。#include<stdio.h> #include<fcntl.h> intmain(void){ intfd; fd=open("/home/aaa.txt",O_WRONLY|O_CREAT|O_EXCL,0666); if(fd==-1) printf("Error:Fileexists.\n");..
分类:系统相关   时间:2014-07-29 16:01:59    阅读次数:328
linux内核头文件 cdev.h 解析
#include #include #include struct file_operations; struct inode; struct module; struct cdev {         struct kobject kobj;         struct module *owner;         const struct file_opera...
分类:系统相关   时间:2014-07-29 14:18:28    阅读次数:280
nodejs phantom add click event
page.evaluate( function() { // find element to send click to var element = document.querySelector( 'span.control.critical.closer' ); // creat...
分类:Web程序   时间:2014-07-26 00:11:26    阅读次数:310
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!