Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / posix / wordexp2.h
blob2030832b781e7a37678810469c4d1182df1073df
1 /* Copyright (C) 2012 by Peter Rosin. All rights reserved.
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
6 #ifndef _WORDEXP2_H_
8 struct ewords_entry {
9 SLIST_ENTRY(ewords_entry) next;
10 char ewords[1];
13 typedef struct {
14 SLIST_HEAD(ewords_head, ewords_entry) list;
15 char *we_wordv[1];
16 } ext_wordv_t;
18 #define WE_WORDV_TO_EXT_WORDV(wordv) \
19 (ext_wordv_t *)((void *)(wordv) - offsetof(ext_wordv_t, we_wordv))
21 #endif /* !_WORDEXP2_H_ */