Skip to contentSkip to conversation

execveat.2: Remove unused include

PATCH In review Alejandro Colomar 2 participants 2 messages May 10, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 execveat.2: Remove unused include

This complements commit e3eba861bd966911b38b7ebc572f0c092ca7bdee.

Since we don't need syscall(2) anymore, we don't need SYS_* definitions.

---
 man2/execveat.2 | 1 -
 1 file changed, 1 deletion(-)
man2/execveat.2 +0 -1
index 11ae04a9f..495617b09 100644
@@ -29,7 +29,6 @@ execveat \- execute program relative to a directory file descriptor
 .SH SYNOPSIS
 .nf
 .BR "#include <linux/fcntl.h>" "      /* Definition of " AT_* " constants */"
-.BR "#include <sys/syscall.h>" "      /* Definition of " SYS_* " constants */"
 .B #include <unistd.h>
 .PP
 .BI "int execveat(int " dirfd ", const char *" pathname ,
Signature · 1 line
2.31.1
#1 lore raw

Hi Alex,

Quoted 14 lines · Alejandro Colomar

This complements commit e3eba861bd966911b38b7ebc572f0c092ca7bdee.

Since we don't need syscall(2) anymore, we don't need SYS_* definitions.

---
 man2/execveat.2 | 1 -
 1 file changed, 1 deletion(-)
man2/execveat.2 +0 -0
index 11ae04a9f..495617b09 100644

man2/execveat.2 execveat \- execute program relative to a directory file descriptor · line 34

Quoted 7 lines
man2/execveat.2 +0 -1
@@ -29,7 +29,6 @@ execveat \- execute program relative to a directory file descriptor
 .SH SYNOPSIS
 .nf
 .BR "#include <linux/fcntl.h>" "      /* Definition of " AT_* " constants */"
-.BR "#include <sys/syscall.h>" "      /* Definition of " SYS_* " constants */"
 .B #include <unistd.h>
 .PP
 .BI "int execveat(int " dirfd ", const char *" pathname ,

Thanks. Patch applied.

I've now pushed everything from you that I have applied. ("[PATCH] Makefile: Simplify error handling" remains open.)

Cheers,

Michael

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/