Package: libc6-dev Version: 2.2.5-11.2 Severity: normal In "man 2 kill" the required include files for the function: int kill(pid_t pid, int sig); are: #include <sys/types.h> #include <signal.h>
However when a program is compiled in -ansi mode the required prototype is not included. In the normal compilation mode the prototype is included from /usr/include/signal.h For example:- --- BEGIN LOG --- sjm217@maxwell:~/tmp$ cat libc6-dev-test.c #include <sys/types.h> #include <signal.h> int main(void) { kill(0,0); return 0; } sjm217@maxwell:~/tmp$ gcc -Wall -ansi -pedantic libc6-dev-test.c libc6-dev-test.c: In function `main': libc6-dev-test.c:5: warning: implicit declaration of function `kill' sjm217@maxwell:~/tmp$ gcc -Wall -ansi libc6-dev-test.c libc6-dev-test.c: In function `main': libc6-dev-test.c:5: warning: implicit declaration of function `kill' sjm217@maxwell:~/tmp$ gcc -Wall libc6-dev-test.c sjm217@maxwell:~/tmp$ --- END LOG --- I would have expected that either the kill(2) manpage noted the correct header files that need to be included, or the sys/types.h and signal.h header files to be modified to include the prototype of kill. Please let me know if any more information is required. Thank you, Steven Murdoch. -- System Information Debian Release: 3.0 Architecture: i386 Kernel: Linux maxwell 2.4.19 #1 Tue Oct 22 19:58:25 BST 2002 i686 Locale: LANG=C, LC_CTYPE=C Versions of packages libc6-dev depends on: ii libc6 2.2.5-11.2 GNU C Library: Shared libraries an -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]