~ubuntu-branches/ubuntu/lucid/openssh/lucid

« back to all changes in this revision

Viewing changes to openbsd-compat/glob.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-09-30 23:09:58 UTC
  • mfrom: (1.13.3 upstream) (29 hardy)
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: james.westby@ubuntu.com-20080930230958-o6vsgn8c4mm959s0
Tags: 1:5.1p1-3
* Remove unnecessary ssh-vulnkey output in non-verbose mode when no
  compromised or unknown keys were found (closes: #496495).
* Configure with --disable-strip; dh_strip will deal with stripping
  binaries and will honour DEB_BUILD_OPTIONS (thanks, Bernhard R. Link;
  closes: #498681).
* Fix handling of zero-length server banners (thanks, Tomas Mraz; closes:
  #497026).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $OpenBSD: glob.h,v 1.9 2004/10/07 16:56:11 millert Exp $        */
 
1
/*      $OpenBSD: glob.h,v 1.10 2005/12/13 00:35:22 millert Exp $       */
2
2
/*      $NetBSD: glob.h,v 1.5 1994/10/26 00:55:56 cgd Exp $     */
3
3
 
4
4
/*
39
39
 
40
40
#if !defined(HAVE_GLOB_H) || !defined(GLOB_HAS_ALTDIRFUNC) || \
41
41
    !defined(GLOB_HAS_GL_MATCHC) || \
42
 
    !defined(HAVE_DECL_GLOB_NOMATCH) || HAVE_DECL_GLOB_NOMATCH == 0
 
42
    !defined(HAVE_DECL_GLOB_NOMATCH) || HAVE_DECL_GLOB_NOMATCH == 0 || \
 
43
    defined(BROKEN_GLOB)
43
44
 
44
45
#ifndef _GLOB_H_
45
46
#define _GLOB_H_
66
67
        int (*gl_stat)(const char *, struct stat *);
67
68
} glob_t;
68
69
 
69
 
/* Flags */
70
70
#define GLOB_APPEND     0x0001  /* Append to output from previous call. */
71
71
#define GLOB_DOOFFS     0x0002  /* Use gl_offs. */
72
72
#define GLOB_ERR        0x0004  /* Return on error. */
75
75
#define GLOB_NOSORT     0x0020  /* Don't sort. */
76
76
#define GLOB_NOESCAPE   0x1000  /* Disable backslash escaping. */
77
77
 
 
78
/* Error values returned by glob(3) */
 
79
#define GLOB_NOSPACE    (-1)    /* Malloc call failed. */
 
80
#define GLOB_ABORTED    (-2)    /* Unignored error. */
 
81
#define GLOB_NOMATCH    (-3)    /* No match and GLOB_NOCHECK not set. */
 
82
#define GLOB_NOSYS      (-4)    /* Function not supported. */
 
83
#define GLOB_ABEND      GLOB_ABORTED
 
84
 
78
85
#define GLOB_ALTDIRFUNC 0x0040  /* Use alternately specified directory funcs. */
79
86
#define GLOB_BRACE      0x0080  /* Expand braces ala csh. */
80
87
#define GLOB_MAGCHAR    0x0100  /* Pattern had globbing characters. */
83
90
#define GLOB_TILDE      0x0800  /* Expand tilde names from the passwd file. */
84
91
#define GLOB_LIMIT      0x2000  /* Limit pattern match output to ARG_MAX */
85
92
 
86
 
/* Error values returned by glob(3) */
87
 
#define GLOB_NOSPACE    (-1)    /* Malloc call failed. */
88
 
#define GLOB_ABORTED    (-2)    /* Unignored error. */
89
 
#define GLOB_NOMATCH    (-3)    /* No match and GLOB_NOCHECK not set. */
90
 
#define GLOB_NOSYS      (-4)    /* Function not supported. */
91
 
#define GLOB_ABEND      GLOB_ABORTED
92
 
 
93
93
int     glob(const char *, int, int (*)(const char *, int), glob_t *);
94
94
void    globfree(glob_t *);
95
95