E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
fcntl
c/c++宏的使用总结
endif上面在看到头文件时会看到作用就是阻止这个头文件被多次include多次include就会出现重复的定义情况所以需要在每个头文件中都使用这个定义如果还不是很了解要怎样使用可以看看c的标准头文件如
fcntl
.h2
PuttyTree
·
2011-07-01 11:00
建议性锁和强制性锁
下面是原文(原文地址:http://blog.csdn.net/ptn3900/archive/2011/06/16/6548404.aspx)
fcntl
有强大的功能,它能够复制一个现有的描述符,获得/
zhenhuibox
·
2011-06-30 18:00
Linux下
fcntl
函数用法说明
Linux下
fcntl
函数用法说明功能描述:根据文件描述词来操作文件的特性。
yanyiyyy
·
2011-06-19 13:00
c
linux
struct
cmd
File
library
强制性锁建议性锁
fcntl
有强大的功能,它能够复制一个现有的描述符,获得/设置文件描述符标记,获得/设置文件状态标记,获得/设置异步I/O所有权,获得/设置纪录锁。
ptn3900
·
2011-06-16 14:00
linux
Linux下串口程序开发(二)
char buff[1024];int Len;int readByte=read(fd,buff,Len);可以使用操作文件的函数来实现异步读取,如
fcntl
,或者select等来操作。
stonesharp
·
2011-06-14 09:00
linux
struct
socket
null
Descriptor
程序开发
tslib编译出错解决(gcc版本问题)
configure --prefix=/opt/tslib/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes 之前报错/usr/include/bits/
fcntl
2
lanxinyuchs
·
2011-06-03 17:00
C++
c
linux
gcc
C#
Unix下测试指定IP的端口是否开放
nbsp; #include <stdio.h> #include <strings.h> #include <stdlib.h> #include <
fcntl
.h
pipal
·
2011-06-02 11:00
C++
c
unix
socket
C#
open函数使用
open(打开文件) 相关函数 read,write,
fcntl
,close,link,stat,umask,unlink,fopen 表头文件 #include#include#include 定义函数
chenyong19870904
·
2011-05-30 13:00
fcntl
函数中的建议性锁和强制性锁
所谓建议性锁就是假定人们都会遵守某些规则去干一件事。例如,人与车看到红灯都会停,而看到绿灯才会继续走,我们可以称红绿等为建议锁。但这只是一种规则而已,你并不防止某些人强闯红灯。而强制性锁是你想闯红灯也闯不了。 建议性锁只在cooperatingprocesses之间才有用,对cooperatingprocess的理解是最重要的,它指的是会影响其它进程的进程或被别的进程所影响的进程,举两个例子:(
liuchao1986105
·
2011-05-25 15:00
数据结构
function
测试
ubuntu
ext
咨询
简单文件I/O编程之
fcntl
在文件I/O编程之一的基础上,本文主要讨论函数
fcntl
的用法及其注意事项。
jarvis_xian
·
2011-05-20 22:00
编程
linux
struct
cmd
测试
终端
Linux Epoll
/epoll.h> #include<netinet/in.h> #include<arpa/inet.h> #include<
fcntl
.h
isiqi
·
2011-05-13 15:00
数据结构
linux
socket
F#
IO多路复用模型的探讨
select 和epoll只是用来提供多路复用的功能的,真正设置 非阻塞的socket还得用setsockopt,iocntl,
fcntl
libev模型: http://www.ibm.com/developerworks
wapysun
·
2011-05-11 15:00
linux
.net
socket
Blog
IBM
Aio
aio.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <
fcntl
.h
isiqi
·
2011-05-10 15:00
socket
V4L2摄像头获取单幅图片测试程序(MMAP模式)
stdlib.h> #include <string.h> #include <assert.h> #include <getopt.h> #include <
fcntl
.h
isiqi
·
2011-05-09 13:00
linux
V4L2摄像头获取单幅图片测试程序(MMAP模式)
stdlib.h> #include <string.h> #include <assert.h> #include <getopt.h> #include <
fcntl
.h
isiqi
·
2011-05-09 13:00
linux
从海量数据中找中位数(c语言实现)
实现: #include <assert.h> #include <
fcntl
.h> #include <stdio.h> #
kenby
·
2011-05-05 12:00
c
算法
中位数
select函数的用法一
gt; #include <sys/stat.h> #include <assert.h> #include <unistd.h> #include <
fcntl
.h
canlynet
·
2011-05-04 14:00
C++
c
C#
Python - 让程序只运行一个实例
作者:liuyuan_jq2011-04-28import
fcntl
deflockFile(lockfile):fp=open(lockfile,'w')try:
fcntl
.lockf(fp,
fcntl
.LOCK_EX
wapysun
·
2011-04-28 13:00
Python
FP
Python - 让程序只运行一个实例
作者:liuyuan_jq 2011-04-28 import
fcntl
def lockFile(lockfile): fp = open(lockfile, 'w') try:
fcntl
.lockf
isiqi
·
2011-04-28 13:00
python
FP
Python - 让程序只运行一个实例
作者:liuyuan_jq2011-04-28 import
fcntl
deflockFile(lockfile):fp=open(lockfile,'w')try:
fcntl
.lockf(fp,
fcntl
.LOCK_EX
liuyuan_jq
·
2011-04-28 13:00
python
import
FP
Python - 让程序只运行一个实例
作者:liuyuan_jq 2011-04-28 import
fcntl
def lockFile(lockfile): fp = open(lockfile, 'w') try:
fcntl
.lockf
wapysun
·
2011-04-28 13:00
python
FP
fcntl
的close-on-exec标志
这是两个程序://file:
fcntl
intmain(){pid_tpid;fd=open("test.txt",O_RDWR|O_APPEND);if(fd
sunlylorn
·
2011-04-26 11:00
null
信号编程实例:父进程拷贝文件,子进程定期询问进度
#include <stdio.h>#include <
fcntl
.h>#include <unistd.h>#include <stdlib.h>#
braveyly
·
2011-04-26 10:00
编程
关于off_t的小短文
今天使用
fcntl
函数是突然发现啦off_t这个数据类型靠。
ccccdddxxx
·
2011-04-22 19:00
linux 串口发送
#include<stdio.h> #include<sys/types.h> #include<sys/stat.h> #include<
fcntl
.h
lovnet
·
2011-04-21 20:00
linux
linux 串口接收
Code: #include<stdio.h> #include<sys/types.h> #include<
fcntl
.h> #include
lovnet
·
2011-04-21 20:00
linux
Linux下socket设置为非阻塞方式和
fcntl
系统调用
用以下方法将socket设置为非阻塞方式 int flags =
fcntl
(socket, F_GETFL, 0);
fcntl
(socket, F_SETFL, flags | O_NONBLOCK
hejianhua
·
2011-04-15 11:00
linux
socket
struct
cmd
delete
symlink
Linux下socket设置为非阻塞方式和
fcntl
系统调用
用以下方法将socket设置为非阻塞方式 int flags =
fcntl
(socket, F_GETFL, 0);
fcntl
(socket, F_SETFL, flags | O_NONBLOCK
hejianhua
·
2011-04-15 11:00
文件属性
fcntl
函数和文件输入输出控制ioctl()函数
一、文件属性
fcntl
()函数
fcntl
()函数用于获得和改变已经打开文件的性质。1、
fcntl
()函数介绍
fcntl
()函数向打开的文件fd发送命令,更改其属性。
mycoolx
·
2011-04-13 11:00
struct
cmd
input
output
文件操作经典概括
#define ICE_PATCH2_OS_H #include <Ice/Config.h> #include <sys/stat.h> #include <
fcntl
.h
灵动的水
·
2011-04-08 17:00
数据结构
C++
linux
C#
OS
linux
fcntl
()函数
linux
fcntl
()函数 功能描述:根据文件描述词来操作文件的特性。
灵动的水
·
2011-04-08 16:00
数据结构
linux
F#
flock和
fcntl
的区别
fcntl
的锁丢失。execve的时候,无论是Linux还是freebsd,无论是flock还是
fcntl
,锁依然保持。
changrui82
·
2011-04-01 10:00
Linux高级进程间通信:纪录锁
加锁与解锁/*lockit---demonstrationof
fcntl
locking*/ #include #include #include #include intmain(void) { intfd
hai836045106
·
2011-03-29 21:00
close_on_exec标志位的作用
lose_on_exec是一个进程所有文件描述符(文件句柄)的位图标志,每个比特位代表一个打开的文件描述符,用于确定在调用系统调用execve()时需要关闭的文件句柄(参见include/
fcntl
.h
dongzhongshu
·
2011-03-23 10:00
linux
close_on_exec标志位的作用
lose_on_exec是一个进程所有文件描述符(文件句柄)的位图标志,每个比特位代表一个打开的文件描述符,用于确定在调用系统调用execve()时需要关闭的文件句柄(参见include/
fcntl
.h
dongzhongshu
·
2011-03-23 10:00
Sample Code of the Usage of /dev/zero
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <
fcntl
.h
yaojingguo
·
2011-03-09 22:00
sample
linux extern关键字的作用2
extern int O_RDONLY; #include <stdio.h> //包含include <
fcntl
.h>时,会报错 /* main.c:5: error
envy2002
·
2011-03-09 17:00
C++
c
linux
C#
D语言
open函数中O_CLOEXEC标志的开关
在以往的内核版本(2.6.23以前)中,需要调用
fcntl
(fd,F_SETFD,FD_CLOEXEC)来设置这个属性。
hiawui
·
2011-02-27 15:00
thread
linux
function
unix
Security
compiler
c语言copy函数实现
; #include<unistd.h> #include<sys/types.h> #include<sys/stat.h> #include<
fcntl
.h
bestscw
·
2011-02-24 18:00
C++
c
C#
Access
FP
2011年2月1日usr的include目下的文件
lsaalib.h faac.h monetary.h slang.haf_vfs.h faad.h mqueue.h slcurses.haio.h
fcntl
.h
commshare
·
2011-02-01 12:00
thread
python
ubuntu
include
protocols
math.h
linux tty core 源码分析(7)
为了实现异步通知机制,应用程序需要为数据源设置一个属主进程即用
fcntl
的F_SETOWN来设置属主进程,以及用
fcntl
的F_SETFL设置FASYNC标志来开启文件的异步通知机制。
sirzjp
·
2011-01-19 11:00
[APUE] Exercise3.2
3.2Writeyourowndup2functionthatperformsthesameserviceasthedup2functiondescribedinSection3.12,withoutcallingthe
fcntl
function.Besuretohandleerrorscorrectly
BSKnight
·
2011-01-19 10:00
linux下串口的开发
char buff[1024];int Len;int readByte=read(fd,buff,Len);可以使用操作文件的函数来实现异步读取,如
fcntl
,或者select等来操作。
lishaman
·
2011-01-16 00:00
Nonblock I/O 及其使用
有可能会block的地方有:1.open2.read3.write一般情况下,文件的读写是阻塞的,可以通过
fcntl
()函数来设置为非阻塞读写。且这一点需要driver的配合 。
浪端之渡鸟
·
2011-01-14 10:00
RTEMS文件系统(4):系统调用开发信息(上)
access()chdir()chmod()chown()close()closedir()dup()dup2()fchmod()
fcntl
()fdatasync()fp
coolbacon
·
2011-01-13 22:00
网络
Access
Path
Comments
Descriptor
permissions
RTEMS文件系统(4):系统调用开发信息(上)
access()chdir()chmod()chown()close()closedir()dup()dup2()fchmod()
fcntl
()fdatasync()fp
coolbacon
·
2011-01-13 22:00
网络
Access
Path
Comments
Descriptor
permissions
nio
include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <
fcntl
haoningabc
·
2011-01-10 15:00
C++
c
C#
Blog
nio
include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <
fcntl
haoningabc
·
2011-01-10 15:00
C++
c
Blog
C#
Linux——ioctl
ioctl函数的部分功能可由一些POSIX的库函数替代,部分功能和
fcntl
重合!另外参见这里:http://vic295.blog.163.com/blog/static/740335
firo_baidu
·
2011-01-03 21:00
数据结构
linux
struct
socket
table
delete
Get disk physical size by ioctl
/run-as-root * * */ #include <stdio.h> #include <unistd.h> #include <
fcntl
.h&
socol
·
2010-12-29 13:00
C++
c
linux
C#
gcc
上一页
20
21
22
23
24
25
26
27
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他