¡@

Home 

c++ Programming Glossary: linux

Get the IP address of the machine

http://stackoverflow.com/questions/212528/get-the-ip-address-of-the-machine

Question. However I need to find the IP address es of a Linux Machine . So How do I programmatically in C detect the IP addresses..

Reading from text file until EOF repeats last line

http://stackoverflow.com/questions/21647/reading-from-text-file-until-eof-repeats-last-line

above behaviour is seen on Windows Visual C cygwin gcc and Linux gcc . c iostream fstream share improve this question Just..

Is it possible to write a C++ template to check for a function's existence?

http://stackoverflow.com/questions/257288/is-it-possible-to-write-a-c-template-to-check-for-a-functions-existence

Generic value std endl return 0 I've just tested it with Linux and gcc 4.1 4.3. I don't know if it's portable to other platforms..

What is the difference between an int and a long in C++?

http://stackoverflow.com/questions/271076/what-is-the-difference-between-an-int-and-a-long-in-c

32 4 bytes Windows Intel 64 4 bytes Windows IA 64 4 bytes Linux IA 32 4 bytes Linux Intel 64 8 bytes Linux IA 64 8 bytes Mac.. Intel 64 4 bytes Windows IA 64 4 bytes Linux IA 32 4 bytes Linux Intel 64 8 bytes Linux IA 64 8 bytes Mac OS X IA 32 4 bytes.. IA 64 4 bytes Linux IA 32 4 bytes Linux Intel 64 8 bytes Linux IA 64 8 bytes Mac OS X IA 32 4 bytes Mac OS X Intel 64 8 bytes..

C++ Timer function to provide time in nano seconds

http://stackoverflow.com/questions/275004/c-timer-function-to-provide-time-in-nano-seconds

running the function repeatedly in a loop is correct. For Linux and BSD you want to use clock_gettime . #include sys time.h.. Works on FreeBSD clock_gettime CLOCK_REALTIME ts Works on Linux For windows you want to use the QueryPerformanceCounter . And..

When and why will an OS initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete?

http://stackoverflow.com/questions/370195/when-and-why-will-an-os-initialise-memory-to-0xcd-0xdd-etc-on-malloc-free-new

specific Will it occur on other operating systems such as Linux or VxWorks Why My understanding is this only occurs in Win32..

What can I use to profile C++ code in Linux?

http://stackoverflow.com/questions/375913/what-can-i-use-to-profile-c-code-in-linux

can I use to profile C code in Linux I have a C application I'm in the process of optimizing. What..

std::wstring VS std::string

http://stackoverflow.com/questions/402283/stdwstring-vs-stdstring

to hold a wide character and then things get tricky On Linux a wchar_t is 4 bytes while on Windows it's 2 bytes what about.. neither char nor wchar_t is directly tied to unicode. On Linux Let's take a Linux OS My Ubuntu system is already unicode aware... wchar_t is directly tied to unicode. On Linux Let's take a Linux OS My Ubuntu system is already unicode aware. When I work with..

WChars, Encodings, Standards and Portability

http://stackoverflow.com/questions/6300804/wchars-encodings-standards-and-portability

and that char is often bot not always a UTF 8 code unit on Linux. Encoding awareness is often the more desirable goal make sure..

How to generate a stacktrace when my gcc C++ app crashes

http://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes

is being run by many different users and it also runs on Linux Windows and Macintosh all versions are compiled using gcc ... stack trace assert share improve this question For Linux and I believe Mac OS X if you're using gcc or any compiler that..

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

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

0 PATH and whatnot risking finding bugs in edge cases c c linux osx executable share improve this question Some OS specific..

C++: what regex library should I use?

http://stackoverflow.com/questions/181624/c-what-regex-library-should-i-use

on a commercial not open source C project that runs on a linux based system. I need to do some regex within the C code. I know.. GPL therefore not usable on this project Thanks. c regex linux non gpl share improve this question Boost.Regex is very..

Get the IP address of the machine

http://stackoverflow.com/questions/212528/get-the-ip-address-of-the-machine

do I programmatically in C detect the IP addresses of the linux server my application is running on. The servers will have at.. . I would prefer to detect the public address though. c linux networking ip address share improve this question I found.. on os x which is POSIX compliant so should be similiar to linux . However getifaddress will let you do the same thing easily..

gcc - significance of -pthread flag when compiling

http://stackoverflow.com/questions/2127797/gcc-significance-of-pthread-flag-when-compiling

what does pthread actully do I'm primarly interrested in linux platforms. c c linux pthreads share improve this question.. do I'm primarly interrested in linux platforms. c c linux pthreads share improve this question Try gcc dumpspecs grep..

What's your favorite profiling tool (for C++) [closed]

http://stackoverflow.com/questions/26663/whats-your-favorite-profiling-tool-for-c

performance profiling share improve this question For linux development although some of these tools might work on other..

Using arrays or std::vectors in C++, what's the performance gap?

http://stackoverflow.com/questions/381621/using-arrays-or-stdvectors-in-c-whats-the-performance-gap

by gcc 4.1.0 invoked with g O3 S on a x86_64 suse linux machine. #include vector struct S int padding std vector int..

C/C++: Capture characters from standard input without waiting for enter to be pressed

http://stackoverflow.com/questions/421860/c-c-capture-characters-from-standard-input-without-waiting-for-enter-to-be-pr

is declared deprecated in Visual C . curses available for linux compatible curses implementations are available for windows..

C++ Dynamic Shared Library on Linux

http://stackoverflow.com/questions/496664/c-dynamic-shared-library-on-linux

Google Book Search in an older edition of that book . c linux shared libraries share improve this question myclass.h #ifndef..

High resolution timer with C++ and Linux?

http://stackoverflow.com/questions/538609/high-resolution-timer-with-c-and-linux

resolution timer. Is there something similar for Linux c linux timer share improve this question It's been asked before..

Vim and Ctags tips and tricks [closed]

http://stackoverflow.com/questions/563616/vim-and-ctags-tips-and-tricks

programming experience for both big and small projects c linux vim ctags vim macros share improve this question C go to..

How to get memory usage at run time in c++?

http://stackoverflow.com/questions/669438/how-to-get-memory-usage-at-run-time-in-c

and display them. What i tried so far getrusage http linux.die.net man 2 getrusage int who RUSAGE_SELF struct rusage usage.. who usage cout usage.ru_maxrss but i always get 0. c linux memory management share improve this question On Linux I've..

Why does integer overflow on x86 with GCC cause an infinite loop?

http://stackoverflow.com/questions/7682477/why-does-integer-overflow-on-x86-with-gcc-cause-an-infinite-loop

in specs. COLLECT_GCC g COLLECT_LTO_WRAPPER usr lib x86_64 linux gnu gcc x86_64 linux gnu 4.5.2 lto wrapper Target x86_64 linux.. g COLLECT_LTO_WRAPPER usr lib x86_64 linux gnu gcc x86_64 linux gnu 4.5.2 lto wrapper Target x86_64 linux gnu Configured with.. gnu gcc x86_64 linux gnu 4.5.2 lto wrapper Target x86_64 linux gnu Configured with .. ... Thread model posix gcc version 4.5.2..

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

with argv 0 is that it does not give the full path. c c linux unix path share improve this question To summarize On Unixes..

Linux API to list running processes?

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

system directly. Can anyone think of a way to do this c c linux api process share improve this question http procps.sourceforge.net..