auxiliary/os: add new os_get_command_line() function
authorBrian Paul <brianp@vmware.com>
Wed, 29 Jun 2016 22:30:54 +0000 (16:30 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 1 Aug 2016 18:20:19 +0000 (12:20 -0600)
commit13fa0513569d0145487e12f3bc3aa10bc51088f7
treec1d5efb9b7436d0a985dcaeef4e3adaab6fbfed4
parentc2b4942afcc7389ba99e230ec34eab03d9863205
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 <charmainel@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/os/os_process.c
src/gallium/auxiliary/os/os_process.h