Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!jsq From: eggert@twinsun.uucp (Paul Eggert) Newsgroups: comp.std.unix Subject: How should one test for seteuid()'s existence? Message-ID: <17833@cs.utexas.edu> Date: 8 Feb 91 21:43:19 GMT Sender: jsq@cs.utexas.edu Organization: Twin Sun, Inc Lines: 14 Approved: jsq@cs.utexas.edu (Moderator, John S. Quarterman) X-Submissions: std-unix@uunet.uu.net Submitted-by: eggert@twinsun.uucp (Paul Eggert) I've heard that IEEE will publish a separate supplement to IEEE Std 1003.1 (ISO/IEC 9945-1) that covers seteuid(), among other issues. In the latest draft of this supplement, how should a program test for the existence of seteuid()? Will the following test work? #include #if _POSIX_VERSION > 199009L ... seteuid() exists ... #endif Volume-Number: Volume 22, Number 119