linrrzqqq commented on code in PR #67312:
URL: https://github.com/apache/doris/pull/67312#discussion_r3887290023


##########
be/src/glibc-compatibility/musl/posix_spawnp.c:
##########
@@ -0,0 +1,16 @@
+#include <spawn.h>
+
+int __execvpe(const char* file, char* const argv[], char* const envp[]);
+
+int __posix_spawnx(pid_t* restrict result, const char* restrict path,
+                   int (*exec)(const char*, char* const*, char* const*),
+                   const posix_spawn_file_actions_t* file_actions,
+                   const posix_spawnattr_t* restrict attr, char* const 
argv[restrict],
+                   char* const envp[restrict]);
+
+int posix_spawnp(pid_t* restrict result, const char* restrict file,
+                 const posix_spawn_file_actions_t* file_actions,
+                 const posix_spawnattr_t* restrict attr, char* const 
argv[restrict],
+                 char* const envp[restrict]) {
+    return __posix_spawnx(result, file, __execvpe, file_actions, attr, argv, 
envp);

Review Comment:
   fork from 
https://github.com/amosbird/ldb_toolchain_gen/blob/v0.27/glibc-compatibility/glibc-compatibility.c#L187-L427



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to