Lines Matching defs:words
51 * Perform shell word expansion on `words' and place the resulting list
52 * of words in `we'. See wordexp(3).
57 wordexp(const char * __restrict words, wordexp_t * __restrict we, int flags)
69 if ((error = we_check(words)) != 0) {
73 if ((error = we_askshell(words, we, flags)) != 0) {
123 we_askshell(const char *words, wordexp_t *we, int flags)
125 int pdesw[2]; /* Pipe for writing words */
129 long nwords, nbytes; /* Number of words, bytes from child */
170 * We are the child; make /bin/sh expand `words'.
192 * We are the parent; write the words.
196 if (!we_write_fully(pdesw[1], words, strlen(words))) {
204 * which is a byte indicating that the words were parsed successfully,
207 * expanded words separated by nulls.
228 * and string storage buffers for the expanded words we're about to
301 we_check(const char *words)
313 while ((c = *words++) != '\0') {