wordexp.h (7c478bd9) wordexp.h (ba3594ba)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 6 unchanged lines hidden (view full) ---

15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 6 unchanged lines hidden (view full) ---

15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 *
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27/*
28 * Copyright 1985, 1992 by Mortice Kern Systems Inc. All rights reserved.
29 */
30
31#ifndef _WORDEXP_H
32#define _WORDEXP_H
33
25 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
26 * Use is subject to license terms.
27 */
28
29/*
30 * Copyright 1985, 1992 by Mortice Kern Systems Inc. All rights reserved.
31 */
32
33#ifndef _WORDEXP_H
34#define _WORDEXP_H
35
34#pragma ident "%Z%%M% %I% %E% SMI"
35
36#include <sys/feature_tests.h>
37#include <sys/types.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43typedef struct wordexp_t {

--- 21 unchanged lines hidden (view full) ---

65#define WRDE_ERRNO (2) /* error in "errno" */
66#define WRDE_BADCHAR (3) /* shell syntax character */
67#define WRDE_BADVAL (4) /* undefined variable expanded */
68#define WRDE_CMDSUB (5) /* prohibited $() */
69#define WRDE_NOSPACE (6) /* no memory */
70#define WRDE_SYNTAX (7) /* bad syntax */
71#define WRDE_NOSYS (8) /* function not supported (XPG4) */
72
36#include <sys/feature_tests.h>
37#include <sys/types.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43typedef struct wordexp_t {

--- 21 unchanged lines hidden (view full) ---

65#define WRDE_ERRNO (2) /* error in "errno" */
66#define WRDE_BADCHAR (3) /* shell syntax character */
67#define WRDE_BADVAL (4) /* undefined variable expanded */
68#define WRDE_CMDSUB (5) /* prohibited $() */
69#define WRDE_NOSPACE (6) /* no memory */
70#define WRDE_SYNTAX (7) /* bad syntax */
71#define WRDE_NOSYS (8) /* function not supported (XPG4) */
72
73#ifdef __STDC__
74extern int wordexp(const char *_RESTRICT_KYWD, wordexp_t *_RESTRICT_KYWD, int);
75extern void wordfree(wordexp_t *);
73extern int wordexp(const char *_RESTRICT_KYWD, wordexp_t *_RESTRICT_KYWD, int);
74extern void wordfree(wordexp_t *);
76#else
77extern int wordexp();
78extern void wordfree();
79#endif
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif /* _WORDEXP_H */
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif /* _WORDEXP_H */