Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / venus / test / idtest.c
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 #include <afsconfig.h>
11 #include <afs/param.h>
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <unistd.h>
15
16 int
17 main(int argc, char **argv)
18 {
19 int uid;
20
21 uid = geteuid();
22 printf("My effective UID is %d, ", uid);
23 uid = getuid();
24 printf("and my real UID is %d.\n", uid);
25 exit(0);
26 }