OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [include/] [wordexp.h] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* Copyright (C) 2002 by  Red Hat, Incorporated. All rights reserved.
2
 *
3
 * Permission to use, copy, modify, and distribute this software
4
 * is freely granted, provided that this notice is preserved.
5
 */
6
 
7
#ifndef _WORDEXP_H_
8
#define _WORDEXP_H_
9
 
10
#include <sys/types.h>
11
 
12
struct _wordexp_t
13
{
14
  size_t we_wordc;      /* Count of words matched by words. */
15
  char **we_wordv;      /* Pointer to list of expanded words. */
16
  size_t we_offs;       /* Slots to reserve at the beginning of we_wordv. */
17
};
18
 
19
typedef struct _wordexp_t wordexp_t;
20
 
21
#define WRDE_DOOFFS     0x0001  /* Use we_offs. */
22
#define WRDE_APPEND     0x0002  /* Append to output from previous call. */
23
#define WRDE_NOCMD      0x0004  /* Don't perform command substitution. */
24
#define WRDE_REUSE      0x0008  /* pwordexp points to a wordexp_t struct returned from
25
                                   a previous successful call to wordexp. */
26
#define WRDE_SHOWERR    0x0010  /* Print error messages to stderr. */
27
#define WRDE_UNDEF      0x0020  /* Report attempt to expand undefined shell variable. */
28
 
29
enum {
30
  WRDE_SUCCESS,
31
  WRDE_NOSPACE,
32
  WRDE_BADCHAR,
33
  WRDE_BADVAL,
34
  WRDE_CMDSUB,
35
  WRDE_SYNTAX,
36
  WRDE_NOSYS
37
};
38
 
39
/* Note: This implementation of wordexp requires a version of bash
40
   that supports the --wordexp and --protected arguments to be present
41
   on the system.  It does not support the WRDE_UNDEF flag. */
42
int wordexp(const char *, wordexp_t *, int);
43
void wordfree(wordexp_t *);
44
 
45
#endif /* _WORDEXP_H_  */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.