Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Side by Side Diff: ports/glibc-compat/include/sys/dirent.h

Issue 1260083004: Add needed functions to glibc-compat for pkg (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: fix wrong c++ lib Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ports/glibc-compat/include/fts.h ('k') | ports/glibc-compat/include/sys/fcntl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 #ifndef _GLIBCEMU_SYS_DIRENT_H 6 #ifndef _GLIBCEMU_SYS_DIRENT_H
7 #define _GLIBCEMU_SYS_DIRENT_H 7 #define _GLIBCEMU_SYS_DIRENT_H
8 8
9 #include <sys/cdefs.h> 9 #include <sys/cdefs.h>
10 #include_next <sys/dirent.h> 10 #include_next <sys/dirent.h>
11 11
12 /* Work around a dirent.h wrapping includes in extern "C". */ 12 /* Work around a dirent.h wrapping includes in extern "C". */
13 #if defined(_DIRENT_H_) 13 #if defined(_DIRENT_H_)
14 __BEGIN_DECLS 14 __BEGIN_DECLS
15 #endif 15 #endif
16 16
17 int dirfd(DIR *dirp);
17 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); 18 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
19 int alphasort(const void *a, const void *b);
20 int scandir(const char *dirp, struct dirent ***namelist,
21 int (*filter)(const struct dirent *),
22 int (*compar)(const struct dirent **, const struct dirent **));
23 DIR *fdopendir(int fd);
18 24
19 /* Work around a dirent.h wrapping includes in extern "C". */ 25 /* Work around a dirent.h wrapping includes in extern "C". */
20 #if defined(_DIRENT_H_) 26 #if defined(_DIRENT_H_)
21 __END_DECLS 27 __END_DECLS
22 #endif 28 #endif
23 29
24 #endif 30 #endif
OLDNEW
« no previous file with comments | « ports/glibc-compat/include/fts.h ('k') | ports/glibc-compat/include/sys/fcntl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698