geteuid.c revision 20120a7c0174b82c10a30ab711e93ffd8619096b
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross/*
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * CDDL HEADER START
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross *
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * The contents of this file are subject to the terms of the
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * Common Development and Distribution License, Version 1.0 only
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * (the "License"). You may not use this file except in compliance
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * with the License.
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross *
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * or http://www.opensolaris.org/os/licensing.
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * See the License for the specific language governing permissions
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * and limitations under the License.
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross *
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * When distributing Covered Code, include this CDDL HEADER in each
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * If applicable, add the following below this CDDL HEADER, with the
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * fields enclosed by brackets "[]" replaced with your own identifying
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * information: Portions Copyright [yyyy] [name of copyright owner]
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross *
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * CDDL HEADER END
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross */
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross/*
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross * Use is subject to license terms.
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross */
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross#pragma ident "%Z%%M% %I% %E% SMI"
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Rossint
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Rossmain(int argc, char **argv)
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross{
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross printf("%i\n", getuid());
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross return (0);
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross}
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross