From c7465608a7f99333c7cf594b040f5d7f00a02ee4 Mon Sep 17 00:00:00 2001 From: Aofei Sheng Date: Thu, 15 Aug 2024 20:32:54 +0800 Subject: [PATCH] c/os: fix `Execl`, `Execle`, and `Execlp` func signatures --- c/os/os.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c/os/os.go b/c/os/os.go index bcd97fe6..59401763 100644 --- a/c/os/os.go +++ b/c/os/os.go @@ -236,12 +236,12 @@ func Isatty(fd c.Int) c.Int // Execl requires the full path of the program to be provided. // //go:linkname Execl C.execl -func Execl(path *c.Char, __llgo_va_list ...any) c.Int +func Execl(path *c.Char, arg0 *c.Char, __llgo_va_list ...any) c.Int // Execle(const char *path, const char *arg0, ..., /* (char *)0, char *const envp[] */) // //go:linkname Execle C.execle -func Execle(path *c.Char, __llgo_va_list ...any) c.Int +func Execle(path *c.Char, arg0 *c.Char, __llgo_va_list ...any) c.Int // Execlp(const char *file, const char *arg0, ..., /*, (char *)0, */) // @@ -249,7 +249,7 @@ func Execle(path *c.Char, __llgo_va_list ...any) c.Int // paths specified in the PATH environment variable. // //go:linkname Execlp C.execlp -func Execlp(file *c.Char, __llgo_va_list ...any) c.Int +func Execlp(file *c.Char, arg0 *c.Char, __llgo_va_list ...any) c.Int //go:linkname Execv C.execv func Execv(path *c.Char, argv **c.Char) c.Int