/*
* Copyright 1995, 1996 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
/*
* Hostenv.h - describe user's environment
*
* Fills result and returns for cwd/host/user. Returns 0 if not found.
*
* Public methods:
*
* HostEnv::GetCwd() - return the processes current working directory
* HostEnv::GetHost() - return the host name
* HostEnv::GetUser() - return the invoking user name
* HostEnv::GetTicketFile() - return the user ticket file location
* HostEnv::GetUid() - return the user id #, platform specific
*/
class Enviro;
class HostEnv {
public:
int GetCwd( StrBuf &result, Enviro * = 0 );
int GetHost( StrBuf &result );
int GetUser( StrBuf &result, Enviro * = 0 );
int GetTicketFile( StrBuf &result, Enviro * = 0 );
int GetTrustFile( StrBuf &result, Enviro * = 0 );
int GetUid( int &result );
private:
int GetHomeName( const StrRef &, StrBuf &,
Enviro *, const char *varName );
} ;
# |
Change |
User |
Description |
Committed |
|
#2
|
15902 |
matt_attaway |
A second renaming that I will not obliterate as a badge of shame |
|
|
#1
|
15901 |
matt_attaway |
Clean up code to fit modern Workshop naming standards |
|
|
//guest/perforce_software/p4/2014.1/sys/hostenv.h |
#1
|
12188 |
matt_attaway |
Move 'main' p4 into a release specific directory in prep for new releases |
|
|
//guest/perforce_software/p4/sys/hostenv.h |
#1
|
9129 |
matt_attaway |
Initial commit of the 2014.1 p4/p4api source code |
|
|