glob.h revision 3e14f97f673e8a630f076077de35afdd43dc1587
/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
/*
* posix glob interface definitions with gnu extensions
*/
#ifndef _GLOB_H
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__ /* 2004-08-11 transition */
#endif
#define _GLOB_H
#define GLOB_VERSION 20060717L
#include <stdlib.h>
struct dirent;
struct stat;
struct _glob_;
struct _globlist_;
typedef struct _globlist_ globlist_t;
struct _globlist_
{
char* gl_begin;
unsigned char gl_flags;
char gl_path[1];
};
struct _glob_
{
char** gl_pathv;
int gl_flags;
/* GLOB_DISC data -- memset(&gl,0,sizeof(gl)) before using! */
const char* gl_fignore;
const char* gl_suffix;
unsigned char* gl_intr;
int gl_delim;
/* gnu extensions -- but how do you synthesize dirent and stat? */
/* ast additions */
unsigned long gl_status;
unsigned long gl_version;
unsigned short gl_extra;
#ifdef _GLOB_PRIVATE_
#else
char* gl_pad[23];
#endif
};
/* standard interface */
/* extended interface */
/* gl_status */
/* gl_type return */
#define GLOB_NOTFOUND 0 /* does not exist */
/* error return values */
#define GLOB_ABORTED 1
#define GLOB_NOMATCH 2
#define GLOB_NOSPACE 3
#define GLOB_INTR 4
#define GLOB_APPERR 5
#define GLOB_NOSYS 6
#if _BLD_ast && defined(__EXPORT__)
#endif
#define __MANGLE__ __LINKAGE__
#endif /* _GLOB_H */