Loading...
--- Libc/Libc-1725.40.4/include/wordexp.h
+++ Libc/Libc-391/include/wordexp.h
@@ -42,21 +42,21 @@
*
*/
-/* $Id: wordexp.h,v 1.5 1994/05/12 20:46:40 davis Exp $ */
+/* $Id: wordexp.h,v 1.4 2004/11/25 19:38:10 emoy Exp $ */
#ifndef _WORDEXP_H
#define _WORDEXP_H
#include <sys/cdefs.h>
-#include <_bounds.h>
#include <_types.h>
-#include <sys/_types/_size_t.h>
-#include <Availability.h>
-_LIBC_SINGLE_BY_DEFAULT()
+#ifndef _SIZE_T
+#define _SIZE_T
+typedef __darwin_size_t size_t;
+#endif
typedef struct {
size_t we_wordc;
- char *_LIBC_CSTR *_LIBC_COUNT(we_wordc) we_wordv;
+ char **we_wordv;
size_t we_offs;
} wordexp_t;
@@ -75,14 +75,14 @@
#define WRDE_BADCHAR 1
#define WRDE_BADVAL 2
#define WRDE_CMDSUB 3
-#define WRDE_NOSPACE 4
-#define WRDE_NOSYS 5
+#define WRDE_NOSPACE 4
+#define WRDE_NOYS 5
#define WRDE_SYNTAX 6
__BEGIN_DECLS
-int wordexp(const char * __restrict, wordexp_t * __restrict, int) __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA);
-void wordfree(wordexp_t *) __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA);
+int wordexp(const char *words, wordexp_t *pwordexp, int flags);
+void wordfree(wordexp_t *pwordexp);
__END_DECLS
#endif /* _WORDEXP_H */