Comments (7)
I'm sorry, I don't understand. What is this about?
from apitrace.
there is a line in the master branch of your os_posix.cpp file of apitrace and I was giving you a posix portable way to get the absolute path of the executable sense there's a comment requesting it on line 64. You just have to concatenate the PWD environmental variable with argv[0] of your argument vector to get the absolute path. (Instead of trying to read the proc file system) I was going to provide example code but i didn't want to forget. // http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe.
from apitrace.
Ah, no, that's not what it is. The code in question is also in a library, which doesn't have the access the argv vector so we can't rely on it.
from apitrace.
but getenv should work, shouldn't it?
On Thu, Apr 28, 2011 at 10:40 PM, zackr <
[email protected]>wrote:
Ah, no, that's not what it is. The code in question is also in a library,
which doesn't have the access the argv vector so we can't rely on it.Reply to this email directly or view it on GitHub:
#11 (comment)
"lalalalala! it's not broken because I can use it"
http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703
from apitrace.
No, there's no env variable for the currently running process name.
from apitrace.
have you tried it? That behavior seems contrary to posix. http://publib.boulder.ibm.com/infocenter/zos/v1r10/index.jsp?topic=/com.ibm.zos.r10.bpxbd00/getenv.htm
I just think it would be strange if it didn't work. This isn't just a GNU libC thing, its a posix thing.
from apitrace.
Tried what? What behavior? That environment doesn't have a variable holding currently running process name? It never did.
from apitrace.
Related Issues (20)
- Replacement of shader via glDetachShader + glAttachShader leads to link error HOT 2
- eglretrace crashes on rayman2_gl trace
- Can Apitrace support retrace through EGL on Windows HOT 2
- loop option doesn't work for specific trace HOT 1
- retrace --loop crashes when VAO is created in setup frame and deleted in loop frame HOT 1
- Tellusim Upscaler (Star Wars) 20230513 trace doesn't work properly
- Failed to capture trace of wgf11filter HOT 1
- Build system complains about uncloned submodules for bundled dependencies even when using dependencies from system HOT 4
- Bug recording instanced draw calls with user arrays HOT 18
- [enhancement] replace zlib HOT 1
- Feature Request: Attach apitrace to Already Running Processes HOT 4
- During tracing gl-500-texture-cube-arb.exe, missing cube map HOT 2
- Wolfenstein: The Old Blood tracing broken due to abuse of GL_MAP_PERSISTENT_BIT mappings HOT 19
- trimming broken for some traces HOT 7
- capture/replay broken for indirect draws HOT 15
- Commit cff22f0 Introduces Segfault HOT 3
- eglQueryDevicesEXT egl spec definition wrong HOT 1
- undefined symbol: __libc_dlopen_mode, version GLIBC_PRIVATE HOT 5
- [OpenGL] Replay issue with glUniformHandleui64ARB HOT 2
- Possibility for a new stable release?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apitrace.