diff options
author | Brian Paul <[email protected]> | 2016-06-29 16:30:54 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-08-01 12:20:19 -0600 |
commit | 13fa0513569d0145487e12f3bc3aa10bc51088f7 (patch) | |
tree | c1d5efb9b7436d0a985dcaeef4e3adaab6fbfed4 /src/gallium/auxiliary/os/os_process.h | |
parent | c2b4942afcc7389ba99e230ec34eab03d9863205 (diff) |
auxiliary/os: add new os_get_command_line() function
This can be used by the driver to get the command line which started
the process. Will be used by the VMware driver for extra logging.
For now, this is only implemented for Linux via /proc/self/cmdline
and Windows via GetCommandLine().
Reviewed-by: Charmaine Lee <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/os/os_process.h')
-rw-r--r-- | src/gallium/auxiliary/os/os_process.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/os/os_process.h b/src/gallium/auxiliary/os/os_process.h index 0d50ddc6add..9c5b31dfcc5 100644 --- a/src/gallium/auxiliary/os/os_process.h +++ b/src/gallium/auxiliary/os/os_process.h @@ -37,4 +37,8 @@ extern boolean os_get_process_name(char *str, size_t size); +extern boolean +os_get_command_line(char *cmdline, size_t size); + + #endif /* OS_PROCESS_H */ |