Lines Matching refs:ffi
30 from pkg._pspawn import lib, ffi
38 @ffi.callback("int (*)(void *, int)", error=-1)
40 wd = ffi.cast("walk_data *", data)
76 self.fa = ffi.new("posix_spawn_file_actions_t *")
78 self.fa = ffi.gc(self.fa, lib.posix_spawn_file_actions_destroy)
133 wd = ffi.new("walk_data *", [0])
134 wd.skip_fd = ffi.cast("int", except_fd)
135 wd.start_fd = ffi.cast("int", start_fd)
158 pid = ffi.new("pid_t *")
166 spawn_args.append(ffi.new("char []", arg))
167 spawn_args.append(ffi.NULL)
175 spawn_env.append(ffi.new("char []", arg))
176 spawn_env.append(ffi.NULL)
179 s_action = ffi.NULL
186 rc = lib.posix_spawnp(pid, filename.encode(), s_action, ffi.NULL,