/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* 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> *
* *
***********************************************************************/
#pragma prototyped
/*
* posix glob interface definitions with gnu extensions
*/
#ifndef _GLOB_H
#define _GLOB_H
#include <stdlib.h>
struct dirent;
struct stat;
struct _glob_;
struct _globlist_;
struct _globlist_
{
char* gl_begin;
unsigned char gl_flags;
};
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;
void* gl_handle;
/* gnu extensions -- but how do you synthesize dirent and stat? */
void* (*gl_opendir)(const char*);
void (*gl_closedir)(void*);
/* 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 */
/* error return values */
#if _BLD_ast && defined(__EXPORT__)
#define extern __EXPORT__
#endif
#undef extern
#endif /* _GLOB_H */