dsrc isn't necessary for this repo
[client-tools.git] / src / external / 3rd / library / perforce / include / hostenv.h
blobaf9afab050b7abb2d94d3ec758c55cc7cde687e3
1 /*
2 * Copyright 1995, 1996 Perforce Software. All rights reserved.
4 * This file is part of Perforce - the FAST SCM System.
5 */
7 /*
8 * Hostenv.h - describe user's environment
10 * Fills result and returns for cwd/host/user. Returns 0 if not found.
12 * Public methods:
14 * HostEnv::GetCwd() - return the processes current working directory
15 * HostEnv::GetHost() - return the host name
16 * HostEnv::GetUser() - return the invoking user name
17 * HostEnv::GetUid() - return the user id #, platform specific
20 class HostEnv {
22 public:
23 int GetCwd( StrBuf &result );
24 int GetHost( StrBuf &result );
25 int GetUser( StrBuf &result );
26 int GetUid( int &result );
27 } ;