1*0a1278f2SGary Mills /* 2*0a1278f2SGary Mills * CDDL HEADER START 3*0a1278f2SGary Mills * 4*0a1278f2SGary Mills * The contents of this file are subject to the terms of the 5*0a1278f2SGary Mills * Common Development and Distribution License, Version 1.0 only 6*0a1278f2SGary Mills * (the "License"). You may not use this file except in compliance 7*0a1278f2SGary Mills * with the License. 8*0a1278f2SGary Mills * 9*0a1278f2SGary Mills * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0a1278f2SGary Mills * or http://www.opensolaris.org/os/licensing. 11*0a1278f2SGary Mills * See the License for the specific language governing permissions 12*0a1278f2SGary Mills * and limitations under the License. 13*0a1278f2SGary Mills * 14*0a1278f2SGary Mills * When distributing Covered Code, include this CDDL HEADER in each 15*0a1278f2SGary Mills * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0a1278f2SGary Mills * If applicable, add the following below this CDDL HEADER, with the 17*0a1278f2SGary Mills * fields enclosed by brackets "[]" replaced with your own identifying 18*0a1278f2SGary Mills * information: Portions Copyright [yyyy] [name of copyright owner] 19*0a1278f2SGary Mills * 20*0a1278f2SGary Mills * CDDL HEADER END 21*0a1278f2SGary Mills */ 22*0a1278f2SGary Mills /* 23*0a1278f2SGary Mills * Copyright (c) 2013 Gary Mills 24*0a1278f2SGary Mills * 25*0a1278f2SGary Mills * For old programs that handle long names correctly, 26*0a1278f2SGary Mills * getlogin() returns a long login name without change. 27*0a1278f2SGary Mills * 28*0a1278f2SGary Mills * Use: 29*0a1278f2SGary Mills * LD_PRELOAD=getloginx.so.1 program args ... 30*0a1278f2SGary Mills * 31*0a1278f2SGary Mills */ 32*0a1278f2SGary Mills 33*0a1278f2SGary Mills extern char *getloginx(void); 34*0a1278f2SGary Mills 35*0a1278f2SGary Mills char * getlogin(void)36*0a1278f2SGary Millsgetlogin(void) 37*0a1278f2SGary Mills { 38*0a1278f2SGary Mills return (getloginx()); 39*0a1278f2SGary Mills } 40*0a1278f2SGary Mills 41*0a1278f2SGary Mills /* */ 42