#ifndef h_uid #define h_uid /****************************************************************************** * * NT uid declarations and defs * * Module %M% Version %I% Date %H% * * (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved * This is unpublished proprietary source code of Ardent Software Inc. * The copyright notice above does not evidence any actual or intended * publication of such source code. * ******************************************************************************* * * Maintenence log - insert most recent change descriptions at top * * Date.... GTAR# WHO Description......................................... * 07/30/99 22056 DJD Added getfulllogin() * 10/14/98 23801 SAP Change copyrights. * 04/02/96 18226 AGM Remove is_group_member() * 07/27/95 16992 SJM Added is_group_member() * 04/10/95 16268 AGM Split into uid.h and uvsid.h * 03/20/95 16141 SJM Added uv_get_sa and uv_free_sa * 03/27/95 16230 SJM Removed pid defs * 03/16/95 15853 SJM Added definitions for getgroups * 02/15/95 15853 SJM Created from defs in nt.h * ******************************************************************************/ /* types */ typedef signed int uid_t; typedef signed int gid_t; /* define a passwd and group structure */ typedef struct passwd { char *pw_name; char *pw_passwd; uid_t pw_uid; gid_t pw_gid; char *pw_age; char *pw_comment; char *pw_gecos; char *pw_dir; char *pw_shell; }; struct group { char *gr_name; char *gr_passwd; gid_t gr_gid; char **gr_mem; }; /* prototypes */ extern struct group *getgrgid(gid_t); extern struct group *getgrnam(char *); extern struct passwd *getpwuid(uid_t); extern struct passwd *getpwnam(char *); extern gid_t getegid(void); extern uid_t geteuid(void); extern gid_t getgid(void); extern uid_t getuid(void); /* define for getgroups */ #define NGROUPS 1 extern int getgroups(int gidsetsize, gid_t *grouplist); extern uid_t uv_get_file_owner(char *); extern char *getlogin(); extern char *getfulllogin(); #endif