@@ -90,23 +90,23 @@ struct dirent64 { __DIRENT64_BODY };
90
90
typedef struct DIR DIR ;
91
91
92
92
/**
93
- * [opendir(3)](http ://man7.org/linux/man-pages/man3/opendir.3.html)
93
+ * [opendir(3)](https ://man7.org/linux/man-pages/man3/opendir.3.html)
94
94
* opens a directory stream for the directory at `__path`.
95
95
*
96
96
* Returns null and sets `errno` on failure.
97
97
*/
98
98
DIR * _Nullable opendir (const char * _Nonnull __path );
99
99
100
100
/**
101
- * [fopendir(3)](http ://man7.org/linux/man-pages/man3/opendir.3.html)
101
+ * [fopendir(3)](https ://man7.org/linux/man-pages/man3/opendir.3.html)
102
102
* opens a directory stream for the directory at `__dir_fd`.
103
103
*
104
104
* Returns null and sets `errno` on failure.
105
105
*/
106
106
DIR * _Nullable fdopendir (int __dir_fd );
107
107
108
108
/**
109
- * [readdir(3)](http ://man7.org/linux/man-pages/man3/readdir.3.html)
109
+ * [readdir(3)](https ://man7.org/linux/man-pages/man3/readdir.3.html)
110
110
* returns the next directory entry in the given directory.
111
111
*
112
112
* Returns a pointer to a directory entry on success,
@@ -116,7 +116,7 @@ DIR* _Nullable fdopendir(int __dir_fd);
116
116
struct dirent * _Nullable readdir (DIR * _Nonnull __dir );
117
117
118
118
/**
119
- * [readdir64(3)](http ://man7.org/linux/man-pages/man3/readdir.3.html)
119
+ * [readdir64(3)](https ://man7.org/linux/man-pages/man3/readdir.3.html)
120
120
* returns the next directory entry in the given directory.
121
121
*
122
122
* Returns a pointer to a directory entry on success,
@@ -129,21 +129,21 @@ int readdir_r(DIR* _Nonnull __dir, struct dirent* _Nonnull __entry, struct diren
129
129
int readdir64_r (DIR * _Nonnull __dir , struct dirent64 * _Nonnull __entry , struct dirent64 * _Nullable * _Nonnull __buffer ) __attribute__((__deprecated__ ("readdir64_r is deprecated; use readdir64 instead" )));
130
130
131
131
/**
132
- * [closedir(3)](http ://man7.org/linux/man-pages/man3/closedir.3.html)
132
+ * [closedir(3)](https ://man7.org/linux/man-pages/man3/closedir.3.html)
133
133
* closes a directory stream.
134
134
*
135
135
* Returns 0 on success and returns -1 and sets `errno` on failure.
136
136
*/
137
137
int closedir (DIR * _Nonnull __dir );
138
138
139
139
/**
140
- * [rewinddir(3)](http ://man7.org/linux/man-pages/man3/rewinddir.3.html)
140
+ * [rewinddir(3)](https ://man7.org/linux/man-pages/man3/rewinddir.3.html)
141
141
* rewinds a directory stream to the first entry.
142
142
*/
143
143
void rewinddir (DIR * _Nonnull __dir );
144
144
145
145
/**
146
- * [seekdir(3)](http ://man7.org/linux/man-pages/man3/seekdir.3.html)
146
+ * [seekdir(3)](https ://man7.org/linux/man-pages/man3/seekdir.3.html)
147
147
* seeks a directory stream to the given entry, which must be a value returned
148
148
* by telldir().
149
149
*
@@ -152,7 +152,7 @@ void rewinddir(DIR* _Nonnull __dir);
152
152
void seekdir (DIR * _Nonnull __dir , long __location ) __INTRODUCED_IN (23 );
153
153
154
154
/**
155
- * [telldir(3)](http ://man7.org/linux/man-pages/man3/telldir.3.html)
155
+ * [telldir(3)](https ://man7.org/linux/man-pages/man3/telldir.3.html)
156
156
* returns a value representing the current position in the directory
157
157
* for use with seekdir().
158
158
*
@@ -163,27 +163,27 @@ void seekdir(DIR* _Nonnull __dir, long __location) __INTRODUCED_IN(23);
163
163
long telldir (DIR * _Nonnull __dir ) __INTRODUCED_IN (23 );
164
164
165
165
/**
166
- * [dirfd(3)](http ://man7.org/linux/man-pages/man3/dirfd.3.html)
166
+ * [dirfd(3)](https ://man7.org/linux/man-pages/man3/dirfd.3.html)
167
167
* returns the file descriptor backing the given directory stream.
168
168
*
169
169
* Returns a file descriptor on success and returns -1 and sets `errno` on failure.
170
170
*/
171
171
int dirfd (DIR * _Nonnull __dir );
172
172
173
173
/**
174
- * [alphasort](http ://man7.org/linux/man-pages/man3/alphasort.3.html) is a
174
+ * [alphasort](https ://man7.org/linux/man-pages/man3/alphasort.3.html) is a
175
175
* comparator for use with scandir() that uses strcoll().
176
176
*/
177
177
int alphasort (const struct dirent * _Nonnull * _Nonnull __lhs , const struct dirent * _Nonnull * _Nonnull __rhs );
178
178
179
179
/**
180
- * [alphasort64](http ://man7.org/linux/man-pages/man3/alphasort.3.html) is a
180
+ * [alphasort64](https ://man7.org/linux/man-pages/man3/alphasort.3.html) is a
181
181
* comparator for use with scandir64() that uses strcmp().
182
182
*/
183
183
int alphasort64 (const struct dirent64 * _Nonnull * _Nonnull __lhs , const struct dirent64 * _Nonnull * _Nonnull __rhs );
184
184
185
185
/**
186
- * [scandir(3)](http ://man7.org/linux/man-pages/man3/scandir.3.html)
186
+ * [scandir(3)](https ://man7.org/linux/man-pages/man3/scandir.3.html)
187
187
* scans all the directory `__path`, filtering entries with `__filter` and
188
188
* sorting them with qsort() using the given `__comparator`, and storing them
189
189
* into `__name_list`. Passing NULL as the filter accepts all entries.
@@ -195,7 +195,7 @@ int alphasort64(const struct dirent64* _Nonnull * _Nonnull __lhs, const struct d
195
195
int scandir (const char * _Nonnull __path , struct dirent * _Nonnull * _Nonnull * _Nonnull __name_list , int (* _Nullable __filter )(const struct dirent * _Nonnull), int (* _Nullable __comparator )(const struct dirent * _Nonnull * _Nonnull, const struct dirent * _Nonnull * _Nonnull));
196
196
197
197
/**
198
- * [scandir64(3)](http ://man7.org/linux/man-pages/man3/scandir.3.html)
198
+ * [scandir64(3)](https ://man7.org/linux/man-pages/man3/scandir.3.html)
199
199
* scans all the directory `__path`, filtering entries with `__filter` and
200
200
* sorting them with qsort() using the given `__comparator`, and storing them
201
201
* into `__name_list`. Passing NULL as the filter accepts all entries.
@@ -209,7 +209,7 @@ int scandir64(const char* _Nonnull __path, struct dirent64* _Nonnull * _Nonnull
209
209
#if defined(__USE_GNU )
210
210
211
211
/**
212
- * [scandirat64(3)](http ://man7.org/linux/man-pages/man3/scandirat.3.html)
212
+ * [scandirat64(3)](https ://man7.org/linux/man-pages/man3/scandirat.3.html)
213
213
* scans all the directory referenced by the pair of `__dir_fd` and `__path`,
214
214
* filtering entries with `__filter` and sorting them with qsort() using the
215
215
* given `__comparator`, and storing them into `__name_list`. Passing NULL as
@@ -224,7 +224,7 @@ int scandir64(const char* _Nonnull __path, struct dirent64* _Nonnull * _Nonnull
224
224
int scandirat64 (int __dir_fd , const char * _Nonnull __path , struct dirent64 * _Nonnull * _Nonnull * _Nonnull __name_list , int (* _Nullable __filter )(const struct dirent64 * _Nonnull), int (* _Nullable __comparator )(const struct dirent64 * _Nonnull * _Nonnull, const struct dirent64 * _Nonnull * _Nonnull)) __INTRODUCED_IN (24 );
225
225
226
226
/**
227
- * [scandirat(3)](http ://man7.org/linux/man-pages/man3/scandirat.3.html)
227
+ * [scandirat(3)](https ://man7.org/linux/man-pages/man3/scandirat.3.html)
228
228
* scans all the directory referenced by the pair of `__dir_fd` and `__path`,
229
229
* filtering entries with `__filter` and sorting them with qsort() using the
230
230
* given `__comparator`, and storing them into `__name_list`. Passing NULL as
0 commit comments