¡@

Home 

c++ Programming Glossary: proc

Finding current executable's path without /proc/self/exe

http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe

current executable's path without proc self exe It seems to me that Linux has it easy with proc self.. proc self exe It seems to me that Linux has it easy with proc self exe. But I'd like to know if there is a convenient way.. If you ever had to support say Mac OS X which doesn't have proc what would you have done Use #ifdefs to isolate the platform..

How to determine CPU and memory consumption from inside a process?

http://stackoverflow.com/questions/63166/how-to-determine-cpu-and-memory-consumption-from-inside-a-process

to determine CPU and memory consumption from inside a process I once had the task of determining the following performance.. memory currently used Virtual memory currently used by my process Total RAM available RAM currently used RAM currently used.. RAM available RAM currently used RAM currently used by my process CPU currently used CPU currently used by my process The code..

how to find the location of the executable in C

http://stackoverflow.com/questions/933850/how-to-find-the-location-of-the-executable-in-c

share improve this question To summarize On Unixes with proc really straight and realiable way is to readlink proc self exe.. with proc really straight and realiable way is to readlink proc self exe buf bufsize Linux readlink proc curproc file buf bufsize.. is to readlink proc self exe buf bufsize Linux readlink proc curproc file buf bufsize FreeBSD readlink proc self path a.out..

Linux API to list running processes?

http://stackoverflow.com/questions/939778/linux-api-to-list-running-processes

API to list running processes I need a C C API that allows me to list the running processes.. I need a C C API that allows me to list the running processes on a Linux system and list the files each process has open... processes on a Linux system and list the files each process has open. I do not want to end up reading the proc file system..