diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-06-19 00:52:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 00:52:04 +0200 |
commit | 897d9050a31f798a86d84f4f3881903604e8cb3a (patch) | |
tree | 093babd206894ced7a42a8844f3e72c26c7a3a66 /pkgs/build-support | |
parent | ac070b89d43d5684ecbf8859aa8da57d08a9c4d8 (diff) | |
parent | b75a43f9e0bc525c9dbb601cb935f97c7d9f04fd (diff) | |
download | nixlib-897d9050a31f798a86d84f4f3881903604e8cb3a.tar nixlib-897d9050a31f798a86d84f4f3881903604e8cb3a.tar.gz nixlib-897d9050a31f798a86d84f4f3881903604e8cb3a.tar.bz2 nixlib-897d9050a31f798a86d84f4f3881903604e8cb3a.tar.lz nixlib-897d9050a31f798a86d84f4f3881903604e8cb3a.tar.xz nixlib-897d9050a31f798a86d84f4f3881903604e8cb3a.tar.zst nixlib-897d9050a31f798a86d84f4f3881903604e8cb3a.zip |
Merge pull request #63447 from jtojnar/sublime-cleanup
sublime3: clean up
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/libredirect/libredirect.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/build-support/libredirect/libredirect.c b/pkgs/build-support/libredirect/libredirect.c index 655399af58f5..8e8da00b02a2 100644 --- a/pkgs/build-support/libredirect/libredirect.c +++ b/pkgs/build-support/libredirect/libredirect.c @@ -160,6 +160,19 @@ int posix_spawn(pid_t * pid, const char * path, return posix_spawn_real(pid, rewrite(path, buf), file_actions, attrp, argv, envp); } +int posix_spawnp(pid_t * pid, const char * file, + const posix_spawn_file_actions_t * file_actions, + const posix_spawnattr_t * attrp, + char * const argv[], char * const envp[]) +{ + int (*posix_spawnp_real) (pid_t *, const char *, + const posix_spawn_file_actions_t *, + const posix_spawnattr_t *, + char * const argv[], char * const envp[]) = dlsym(RTLD_NEXT, "posix_spawnp"); + char buf[PATH_MAX]; + return posix_spawnp_real(pid, rewrite(file, buf), file_actions, attrp, argv, envp); +} + int execv(const char *path, char *const argv[]) { int (*execv_real) (const char *path, char *const argv[]) = dlsym(RTLD_NEXT, "execv"); |