equal
deleted
inserted
replaced
1 // glob.h |
1 // glob.h |
2 // |
2 |
3 // © Portions copyright (c) 2006 Symbian Software Ltd. All rights reserved. |
|
4 // |
|
5 |
3 |
6 /* |
4 /* |
7 * Copyright (c) 1989, 1993 |
5 * Copyright (c) 1989, 1993 |
8 * The Regents of the University of California. All rights reserved. |
6 * The Regents of the University of California. All rights reserved. |
9 * |
7 * |
35 * SUCH DAMAGE. |
33 * SUCH DAMAGE. |
36 * |
34 * |
37 * @(#)glob.h 8.1 (Berkeley) 6/2/93 |
35 * @(#)glob.h 8.1 (Berkeley) 6/2/93 |
38 * $FreeBSD: src/include/glob.h,v 1.7 2002/07/17 04:58:09 mikeh Exp $ |
36 * $FreeBSD: src/include/glob.h,v 1.7 2002/07/17 04:58:09 mikeh Exp $ |
39 */ |
37 */ |
|
38 /* Portions Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. */ |
40 |
39 |
41 #ifndef _GLOB_H_ |
40 #ifndef _GLOB_H_ |
42 #define _GLOB_H_ |
41 #define _GLOB_H_ |
43 |
42 |
44 #include <sys/cdefs.h> |
43 #include <sys/cdefs.h> |
62 struct dirent *(*gl_readdir)(void *); |
61 struct dirent *(*gl_readdir)(void *); |
63 void *(*gl_opendir)(const char *); |
62 void *(*gl_opendir)(const char *); |
64 int (*gl_lstat)(const char *, struct stat *); |
63 int (*gl_lstat)(const char *, struct stat *); |
65 int (*gl_stat)(const char *, struct stat *); |
64 int (*gl_stat)(const char *, struct stat *); |
66 } glob_t; |
65 } glob_t; |
|
66 |
|
67 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS) |
|
68 #define glob64_t glob_t |
|
69 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */ |
67 |
70 |
68 #if __POSIX_VISIBLE >= 199209 |
71 #if __POSIX_VISIBLE >= 199209 |
69 /* Believed to have been introduced in 1003.2-1992 */ |
72 /* Believed to have been introduced in 1003.2-1992 */ |
70 #define GLOB_APPEND 0x0001 /* Append to output from previous call. */ |
73 #define GLOB_APPEND 0x0001 /* Append to output from previous call. */ |
71 #define GLOB_DOOFFS 0x0002 /* Use gl_offs. */ |
74 #define GLOB_DOOFFS 0x0002 /* Use gl_offs. */ |
99 __BEGIN_DECLS |
102 __BEGIN_DECLS |
100 |
103 |
101 IMPORT_C int glob(const char *, int, int (*)(const char *, int), glob_t *); |
104 IMPORT_C int glob(const char *, int, int (*)(const char *, int), glob_t *); |
102 IMPORT_C void globfree(glob_t *); |
105 IMPORT_C void globfree(glob_t *); |
103 |
106 |
|
107 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS) |
|
108 #define glob64 glob |
|
109 #define globfree64 globfree |
|
110 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */ |
|
111 |
104 __END_DECLS |
112 __END_DECLS |
105 |
113 |
106 #endif /* !_GLOB_H_ */ |
114 #endif /* !_GLOB_H_ */ |