leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

amiroot.c
Go to the documentation of this file.
1/* amiroot.c - A program that exits 0 (true) if euid == 0
2 *
3 * (C) 2001 by Matthias Andree
4 * redistributable under the Lesser GNU Public License v2.1,
5 * see the file COPYING.LGPL.
6 */
7
8#include <sys/types.h>
9#include <unistd.h>
10
11int
12main(void)
13{
14 return geteuid()? 1 : 0;
15}
int main(void)
Definition: amiroot.c:12