Re: [Mesa-dev] [PATCH v2 1/4] util: Get program name based on path when possible

2018-09-26 Thread Kazlauskas, Nicholas
On 09/25/2018 06:01 PM, Emil Velikov wrote: On 24 September 2018 at 19:18, Nicholas Kazlauskas wrote: Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa that does this. This tries to query the r

Re: [Mesa-dev] [PATCH v2 1/4] util: Get program name based on path when possible

2018-09-25 Thread Emil Velikov
On 24 September 2018 at 19:18, Nicholas Kazlauskas wrote: > Some programs start with the path and command line arguments in > argv[0] (program_invocation_name). Chromium is an example of > an application using mesa that does this. > > This tries to query the real path for the symbolic link /proc/s

Re: [Mesa-dev] [PATCH v2 1/4] util: Get program name based on path when possible

2018-09-25 Thread Timothy Arceri
On 26/9/18 12:02 am, Kazlauskas, Nicholas wrote: On 09/24/2018 08:00 PM, Timothy Arceri wrote: On 25/9/18 4:18 am, Nicholas Kazlauskas wrote: Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa

Re: [Mesa-dev] [PATCH v2 1/4] util: Get program name based on path when possible

2018-09-25 Thread Kazlauskas, Nicholas
On 09/24/2018 08:00 PM, Timothy Arceri wrote: On 25/9/18 4:18 am, Nicholas Kazlauskas wrote: Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa that does this. This tries to query the real path f

Re: [Mesa-dev] [PATCH v2 1/4] util: Get program name based on path when possible

2018-09-24 Thread Timothy Arceri
On 25/9/18 4:18 am, Nicholas Kazlauskas wrote: Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa that does this. This tries to query the real path for the symbolic link /proc/self/exe to find the

[Mesa-dev] [PATCH v2 1/4] util: Get program name based on path when possible

2018-09-24 Thread Nicholas Kazlauskas
Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa that does this. This tries to query the real path for the symbolic link /proc/self/exe to find the program name instead. Signed-off-by: Nicholas K