On 31 January 2010 22:40, anonymous <aim0s...@lavabit.com> wrote: >> If you need mkstemp you have have two options: either you restrict >> your program to run only on platforms that include it, or you >> implement your own version. In either case there is *zero* advantage >> of finding out at build time whatever your system includes it or not. > > What if there is different APIs on different systems? Example is > clone/rfork. With configure you can choose one of them at compile time. > And even if you want, you can't implement your own version in userspace.
clone/rfork is the typical case for a program that won't be portable from Linux to other Unix-like platforms. So if you use clone/rfork you have to live with the fact that this will only work on Linux. If you can't then write portable code instead and use fork and don't use clone. Cheers, Anselm