---
name: "GLOBUS_GSI_SYSCONFIG_GET_CURRENT_WORKING_DIR"
section: "3"
platform: "linux"
package: "libglobus-gsi-sysconfig-doc"
version: "9.6-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/globus_gsi_system_config_defines"
---

# GLOBUS\_GSI\_SYSCONFIG\_GET\_CURRENT\_WORKING\_DIR(3)

Defines - Defines.

Part of [globus\_gsi\_system\_config\_defines(3)](/globus_gsi_system_config_defines/3.md).

## NAME

globus\_gsi\_system\_config\_defines - Defines

 \- Defines.

## SYNOPSIS

### Macros

\#define **GLOBUS\_GSI\_SYSCONFIG\_SET\_KEY\_PERMISSIONS**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_HOME\_DIR**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_CHECK\_KEYFILE**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_CHECK\_KEYFILE\_UID**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_CHECK\_CERTFILE**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_CHECK\_CERTFILE\_UID**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_FILE\_EXISTS**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_DIR\_EXISTS**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_CERT\_DIR**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_USER\_CERT\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_HOST\_CERT\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_SERVICE\_CERT\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_PROXY\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_SIGNING\_POLICY\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_CA\_CERT\_FILES**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_CURRENT\_WORKING\_DIR**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_MAKE\_ABSOLUTE\_PATH\_FOR\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_SPLIT\_DIR\_AND\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_REMOVE\_ALL\_OWNED\_FILES**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_GRIDMAP\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_AUTHZ\_CONF\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_GAA\_CONF\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_IS\_SUPERUSER**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_USER\_ID\_STRING**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_PROC\_ID\_STRING**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_USERNAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_UNIQUE\_PROXY\_FILENAME**\
 \#define **GLOBUS\_GSI\_SYSCONFIG\_GET\_VHOST\_CRED\_DIR**\

## Detailed Description

Defines.

These preprocessor defines allow for a platform (ie Win32 vs UNIX) independent API.

## Macro Definition Documentation

### #define GLOBUS\_GSI\_SYSCONFIG\_CHECK\_CERTFILE

Check for the correct file permissions on a certificate.

See **globus\_gsi\_sysconfig\_check\_certfile\_unix()** and globus\_gsi\_sysconfig\_check\_certfile\_win32()

### #define GLOBUS\_GSI\_SYSCONFIG\_CHECK\_CERTFILE\_UID

Check for the correct file permissions on a certificate owned by a particular user id.

See globus\_gsi\_sysconfig\_check\_certfile\_uid\_junix() and globus\_gsi\_sysconfig\_check\_certfile\_uid\_jwin32()

### #define GLOBUS\_GSI\_SYSCONFIG\_CHECK\_KEYFILE

Check for the correct file permissions on a private key.

See **globus\_gsi\_sysconfig\_check\_keyfile\_unix()** and globus\_gsi\_sysconfig\_check\_keyfile\_win32()

### #define GLOBUS\_GSI\_SYSCONFIG\_CHECK\_KEYFILE\_UID

Check for the correct file permissions on a private key owned by a particular user id.

See **globus\_gsi\_sysconfig\_check\_keyfile\_unix()** and globus\_gsi\_sysconfig\_check\_keyfile\_win32()

### #define GLOBUS\_GSI\_SYSCONFIG\_DIR\_EXISTS

Check whether a given directory exists

See **globus\_gsi\_sysconfig\_dir\_exists\_unix()** and **globus\_gsi\_sysconfig\_dir\_exists\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_FILE\_EXISTS

Check whether a given file exists

See **globus\_gsi\_sysconfig\_file\_exists\_unix()** and **globus\_gsi\_sysconfig\_file\_exists\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_AUTHZ\_CONF\_FILENAME

Determine the location of the authorization callout config file.

See **globus\_gsi\_sysconfig\_get\_authz\_conf\_filename\_unix()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_CA\_CERT\_FILES

Get a list of of trusted CA certificate filenames in a trusted CA certificate directory.

See **globus\_gsi\_sysconfig\_get\_ca\_cert\_files\_unix()** and **globus\_gsi\_sysconfig\_get\_ca\_cert\_files\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_CERT\_DIR

Determine the location of the trusted certificates directory

See **globus\_gsi\_sysconfig\_get\_cert\_dir\_unix()** and **globus\_gsi\_sysconfig\_get\_cert\_dir\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_CURRENT\_WORKING\_DIR

Get the current working directory

See **globus\_gsi\_sysconfig\_get\_current\_working\_dir\_unix()** and **globus\_gsi\_sysconfig\_get\_current\_working\_dir\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_GAA\_CONF\_FILENAME

Determine the location of the GAA callout config file.

See **globus\_gsi\_sysconfig\_get\_gaa\_conf\_filename\_unix()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_GRIDMAP\_FILENAME

Determine the location of the grid map file.

See **globus\_gsi\_sysconfig\_get\_gridmap\_filename\_unix()** and **globus\_gsi\_sysconfig\_get\_gridmap\_filename\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_HOME\_DIR

Get the current users home directory

See **globus\_gsi\_sysconfig\_get\_home\_dir\_unix()** and globus\_gsi\_sysconfig\_get\_home\_dir\_win32()

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_HOST\_CERT\_FILENAME

Determine the location of the host certificate and private key

See **globus\_gsi\_sysconfig\_get\_host\_cert\_filename\_unix()** and **globus\_gsi\_sysconfig\_get\_host\_cert\_filename\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_PROC\_ID\_STRING

Get the current PID in string form

See **globus\_gsi\_sysconfig\_get\_proc\_id\_string\_unix()** and globus\_gsi\_sysconfig\_get\_proc\_id\_string\_win32()

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_PROXY\_FILENAME

Determine the location of a proxy certificate and private key

See **globus\_gsi\_sysconfig\_get\_proxy\_filename\_unix()** and **globus\_gsi\_sysconfig\_get\_proxy\_filename\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_SERVICE\_CERT\_FILENAME

Determine the location of a service certificate and private key

See **globus\_gsi\_sysconfig\_get\_service\_cert\_filename\_unix()** and **globus\_gsi\_sysconfig\_get\_service\_cert\_filename\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_SIGNING\_POLICY\_FILENAME

Determine the name of the signing policy file for a given CA

See **globus\_gsi\_sysconfig\_get\_signing\_policy\_filename\_unix()** and **globus\_gsi\_sysconfig\_get\_signing\_policy\_filename\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_UNIQUE\_PROXY\_FILENAME

Generate a unique proxy file name

See **globus\_gsi\_sysconfig\_get\_unique\_proxy\_filename()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_USER\_CERT\_FILENAME

Determine the location of the users certificate and private key

See **globus\_gsi\_sysconfig\_get\_user\_cert\_filename\_unix()** and **globus\_gsi\_sysconfig\_get\_user\_cert\_filename\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_USER\_ID\_STRING

Get the current UID in string form

See **globus\_gsi\_sysconfig\_get\_user\_id\_string\_unix()** and globus\_gsi\_sysconfig\_get\_user\_id\_string\_win32()

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_USERNAME

Get the current user name

See **globus\_gsi\_sysconfig\_get\_username\_unix()** and globus\_gsi\_sysconfig\_get\_username\_win32()

### #define GLOBUS\_GSI\_SYSCONFIG\_GET\_VHOST\_CRED\_DIR

Determine the location of the vhost credentials directory

See **globus\_gsi\_sysconfig\_get\_vhost\_cred\_dir()**

### #define GLOBUS\_GSI\_SYSCONFIG\_IS\_SUPERUSER

Determine whether the current user is the super user

See **globus\_gsi\_sysconfig\_is\_superuser\_unix()** and **globus\_gsi\_sysconfig\_is\_superuser\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_MAKE\_ABSOLUTE\_PATH\_FOR\_FILENAME

Prepend the current working directory to the give filename

See **globus\_gsi\_sysconfig\_make\_absolute\_path\_for\_filename\_unix()** and **globus\_gsi\_sysconfig\_make\_absolute\_path\_for\_filename\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_REMOVE\_ALL\_OWNED\_FILES

Remove all proxies owned by current uid

See **globus\_gsi\_sysconfig\_remove\_all\_owned\_files\_unix()** and **globus\_gsi\_sysconfig\_remove\_all\_owned\_files\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_SET\_KEY\_PERMISSIONS

Set the correct file permissions on a private key.

See **globus\_gsi\_sysconfig\_set\_key\_permissions\_unix()** and **globus\_gsi\_sysconfig\_set\_key\_permissions\_win32()**

### #define GLOBUS\_GSI\_SYSCONFIG\_SPLIT\_DIR\_AND\_FILENAME

Split directory component of path from filename.

See **globus\_gsi\_sysconfig\_split\_dir\_and\_filename\_unix()** and **globus\_gsi\_sysconfig\_split\_dir\_and\_filename\_win32()**

## Author

Generated automatically by Doxygen for globus\_gsi\_sysconfig from the source code.
