TacOS
0.2
Page principale
Structures de données
Fichiers
Liste des fichiers
Variables globale
Tout
Structures de données
Fichiers
Fonctions
Variables
Définitions de type
Énumérations
Macros
libc
include
fcntl.h
Aller à la documentation de ce fichier.
1
30
#ifndef _FCNTL_H_
31
#define _FCNTL_H_
32
33
#include <
sys/cdefs.h
>
34
35
__BEGIN_DECLS
36
37
// Define pour open.
38
39
#define O_ACCMODE 00000003
40
#define O_RDONLY 00000000
41
#define O_WRONLY 00000001
42
#define O_RDWR 00000002
43
#ifndef O_CREAT
44
#define O_CREAT 00000100
45
#endif
46
#ifndef O_EXCL
47
#define O_EXCL 00000200
/* not fcntl */
48
#endif
49
#ifndef O_NOCTTY
50
#define O_NOCTTY 00000400
/* not fcntl */
51
#endif
52
#ifndef O_TRUNC
53
#define O_TRUNC 00001000
54
#endif
55
#ifndef O_APPEND
56
#define O_APPEND 00002000
57
#endif
58
#ifndef O_NONBLOCK
59
#define O_NONBLOCK 00004000
60
#endif
61
#ifndef O_SYNC
62
#define O_SYNC 00010000
63
#endif
64
#ifndef FASYNC
65
#define FASYNC 00020000
/* fcntl, for BSD compatibility */
66
#endif
67
#ifndef O_DIRECT
68
#define O_DIRECT 00040000
69
#endif
70
#ifndef O_DIRECTORY
71
#define O_DIRECTORY 00200000
72
#endif
73
#ifndef O_NOFOLLOW
74
#define O_NOFOLLOW 00400000
75
#endif
76
#ifndef O_NOATIME
77
#define O_NOATIME 01000000
78
#endif
79
#ifndef O_CLOEXEC
80
#define O_CLOEXEC 02000000
81
#endif
82
83
#define F_SETFL 4
84
#define F_GETFL 5
85
94
int
open
(
const
char
*pathname,
int
flags);
95
103
int
close
(
int
id
);
104
114
int
fcntl
(
int
fd,
unsigned
int
request,
void
* data);
115
116
__END_DECLS
117
118
#endif
fcntl
int fcntl(int fd, unsigned int request, void *data)
Definition:
fcntl.c:53
open
int open(const char *pathname, int flags)
Definition:
fcntl.c:34
cdefs.h
close
int close(int id)
Definition:
fcntl.c:47
Généré le Samedi 3 Janvier 2015 13:22:30 pour TacOS par
1.8.7