7 int posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t *restrict fa, const char *restrict path)
9 struct fdop *op = malloc(sizeof *op + strlen(path) + 1);
10 if (!op) return ENOMEM;
13 strcpy(op->path, path);
14 if ((op->next = fa->__actions)) op->next->prev = op;