mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +00:00
whoops - forgot to commit header files
svn path=/trunk/; revision=2635
This commit is contained in:
parent
ad8ae0a2f5
commit
e858ec1801
64 changed files with 4508 additions and 0 deletions
80
posix/include/glob.h
Normal file
80
posix/include/glob.h
Normal file
|
@ -0,0 +1,80 @@
|
|||
/*
|
||||
* glob.h
|
||||
*
|
||||
* pathname pattern-matching types. Based on the Single UNIX(r)
|
||||
* Specification, Version 2
|
||||
*
|
||||
* This file is part of the ReactOS Operating System.
|
||||
*
|
||||
* Contributors:
|
||||
* Created by KJK::Hyperion <noog@libero.it>
|
||||
*
|
||||
* THIS SOFTWARE IS NOT COPYRIGHTED
|
||||
*
|
||||
* This source code is offered for use in the public domain. You may
|
||||
* use, modify or distribute it freely.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
*/
|
||||
#ifndef __GLOB_H_INCLUDED__
|
||||
#define __GLOB_H_INCLUDED__
|
||||
|
||||
/* INCLUDES */
|
||||
#ifdef __PSXDLL__
|
||||
|
||||
/* headers for internal usage by psxdll.dll and ReactOS */
|
||||
|
||||
#else /* ! __PSXDLL__ */
|
||||
|
||||
/* standard POSIX headers */
|
||||
|
||||
#endif
|
||||
|
||||
/* OBJECTS */
|
||||
|
||||
/* TYPES */
|
||||
typedef struct _tag_glob_t
|
||||
{
|
||||
size_t gl_pathc /* count of paths matched by pattern */
|
||||
char **gl_pathv /* pointer to a list of matched pathnames */
|
||||
size_t gl_offs /* slots to reserve at the beginning of gl_pathv */
|
||||
} glob_t;
|
||||
|
||||
/* CONSTANTS */
|
||||
/* Values for the flags argument */
|
||||
#define GLOB_APPEND (0x00000001) /* Append generated pathnames to
|
||||
those previously obtained. */
|
||||
#define GLOB_DOOFFS (0x00000002) /* Specify how many null pointers to
|
||||
add to the beginning of */
|
||||
#define GLOB_ERR (0x00000004) /* Cause glob() to return on error. */
|
||||
#define GLOB_MARK (0x00000008) /* Each pathname that is a directory
|
||||
that matches pattern has a slash
|
||||
appended. */
|
||||
#define GLOB_NOCHECK (0x00000010) /* If pattern does not match any pathname,
|
||||
then return a list consisting of only
|
||||
pattern. */
|
||||
#define GLOB_NOESCAPE (0x00000020) /* Disable backslash escaping. */
|
||||
#define GLOB_NOSORT (0x00000040) /* Do not sort the pathnames returned. */
|
||||
|
||||
/* Error return values */
|
||||
#define GLOB_ABORTED (-1) /* The scan was stopped because GLOB_ERR was set
|
||||
or errfunc returned non-zero. */
|
||||
#define GLOB_NOMATCH (-2) /* The pattern does not match any existing pathname,
|
||||
and GLOB_NOCHECK was not set in flags. */
|
||||
#define GLOB_NOSPACE (-3) /* An attempt to allocate memory failed. */
|
||||
#define GLOB_NOSYS (-4) /* The implementation does not support this function. */
|
||||
|
||||
/* PROTOTYPES */
|
||||
int glob(const char *, int, int (*)(const char *, int), glob_t *);
|
||||
void globfree (glob_t *);
|
||||
|
||||
/* MACROS */
|
||||
|
||||
#endif /* __GLOB_H_INCLUDED__ */
|
||||
|
||||
/* EOF */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue