tools/t0: Use version of setpgrp that takes no arguments.
PATCH 1/1 tools/t0: Use version of setpgrp that takes no arguments.
IEEE Std 1003.1, 2004 Edition and IEEE Std 1003.1-2008 only have the version of setpgrp that takes no arguments.
http://pubs.opengroup.org/onlinepubs/009695299/functions/setpgrp.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setpgrp.html
Also fixes build error on Mac OS X 10.7.
--- testcases/open_posix_testsuite/tools/t0.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/open_posix_testsuite/tools/t0.c +1 -1
@@ -101,7 +101,7 @@ int main (int argc, char * argv[])perror ("fork failed" );exit (1 );case 0 : -setpgrp (0 ,0 ); +setpgrp ();execvp (argv[2 ], &argv[2 ]);perror ("execvp failed" );exit (1 );
Signature · 13 lines
1.7.7.5 (Apple Git-26) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Quoted 18 lines
IEEE Std 1003.1, 2004 Edition and IEEE Std 1003.1-2008 only have the version of setpgrp that takes no arguments.
http://pubs.opengroup.org/onlinepubs/009695299/functions/setpgrp.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setpgrp.htmlAlso fixes build error on Mac OS X 10.7.
Signed-off-by Vinson Lee <[email protected]>--- testcases/open_posix_testsuite/tools/t0.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)testcases/open_posix_testsuite/tools/t0.c +0
-0
testcases/open_posix_testsuite/tools/t0.c int main (int argc, char * argv[]) · line 107
Quoted 8 lines
testcases/open_posix_testsuite/tools/t0.c +1
-1@@ -101,7 +101,7 @@ int main (int argc, char * argv[])perror ("fork failed" );exit (1 );case 0 : -setpgrp (0 ,0 ); +setpgrp ();execvp (argv[2 ], &argv[2 ]);perror ("execvp failed" );exit (1 );
Hmm, that is not enough to make it work in Linux, appereantly glibc doesn't expose any of the setpgrp() definitions unless you specify which one you want. And it's market as obsolete even in POSIX what about replacing it with with more up to date interface?
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list