summaryrefslogtreecommitdiffstats
path: root/doc/posix1003.1/ch05.t
blob: eb46875d20ad6e95f74359d4c61660b971b285f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
@c
@c  COPYRIGHT (c) 1988-1998.
@c  On-Line Applications Research Corporation (OAR).
@c  All rights reserved.
@c
@c  $Id$
@c

@chapter Files and Directories

@section Directories

@subsection Format of Directory Entries

@subsection Directory Operations

@example
opendir(), Function
readdir(), Function
readdir_r(), Function
rewinddir(), Function
closedir(), Function
@end example

@section Working Directory

@subsection Change Current Working Directory

@example
chdir(), Function
@end example

@subsection Get Working Directory Pathname

@example
getcwd(), Function
@end example

@section General File Creation

@subsection Open a File

@example
open(), Function
@end example

@subsection Create a New File or Rewrite an Existing One

@example
creat(), Function
@end example

@subsection Set File Creation Mask

@example
umask(), Function
@end example

@subsection Link to a File

@example
link(), Function
@end example

@section Special File Creation

@subsection Make a Directory

@example
mkdir(), Function
@end example

@subsection Make a FIFO Special File

@example
mkfifo(), Function
@end example

@section File Removal

@subsection Remove Directory Entries

@example
unlink(), Function
@end example

@subsection Remove a Directory

@example
rmdir(), Function
@end example

@subsection Rename a File

@example
rename(), Function
@end example

@section File Characteristics

@subsection File Characteristics Header and Data Structure

@subsection Get File Status

@example
stat(), Function
fstat(), Function
@end example

@subsection Check File Accessibility

@example
access(), Function
@end example

@subsection Change File Modes

@example
chmod(), Function
fchmod(), Function
@end example

@subsection Change Owner and Group of a File

@example
chown(), Function
@end example

@subsection Set File Access and Modification Times

@example
utime(), Function
@end example

@subsection Truncate a File to a Specified Length

@example
ftruncate(), Function
@end example

@section Configurable Pathname Variable

@example
pathconf(), Function
fpathconf(), Function
@end example

@subsection Get Configurable Pathname Variables