00001 00002 /*--------------------------------------------------------------------------- 00003 E.S.O. 00004 ---------------------------------------------------------------------------- 00005 File name : userid.h 00006 Author : N. Devillard 00007 Created on : September 1999 00008 Language : ANSI C 00009 Description : portable user identification routine 00010 *--------------------------------------------------------------------------*/ 00011 00012 /* 00013 00014 $Id: userid.h,v 1.1 2003/09/03 12:50:47 amodigli Exp $ 00015 $Author: amodigli $ 00016 $Date: 2003/09/03 12:50:47 $ 00017 $Revision: 1.1 $ 00018 00019 */ 00020 00021 #ifndef _USERID_H_ 00022 #define _USERID_H_ 00023 00024 /*--------------------------------------------------------------------------- 00025 Includes 00026 ---------------------------------------------------------------------------*/ 00027 00028 #include <stdio.h> 00029 #include <stdlib.h> 00030 #include <string.h> 00031 #include <unistd.h> 00032 00033 00034 /*--------------------------------------------------------------------------- 00035 Function codes 00036 ---------------------------------------------------------------------------*/ 00037 00038 00039 00040 /*--------------------------------------------------------------------------- 00041 Function : get_login_name() 00042 In : void 00043 Out : statically allocated char * 00044 Job : return the user login name 00045 Notice : returns a pointer to a null-terminated string 00046 if cannot determine user name, first returned character 00047 in the string is '\0'. 00048 ---------------------------------------------------------------------------*/ 00049 00050 char * get_login_name(void); 00051 00052 00053 00054 #endif 00055 /*--------------------------------------------------------------------------*/
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001