¡@

Home 

c++ Programming Glossary: unix

What open source C++ static analysis tools are available? [closed]

http://stackoverflow.com/questions/141498/what-open-source-c-static-analysis-tools-are-available

tools that will run on multiple platforms Windows and Unix . By using an open source tool it could be modified to fit certain..

How do I get the directory that a program is running from?

http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from

special apart from incliding the right headers unistd.h on Unix and direct.h on windows . Since you are creating a C program..

C++ Cross-Platform High-Resolution Timer

http://stackoverflow.com/questions/1487695/c-cross-platform-high-resolution-timer

among other things thin cross platform Windows and Linux Unix C wrappers around OS specific APIs. Its performance library..

C/C++ maximum stack size of program

http://stackoverflow.com/questions/1825964/c-c-maximum-stack-size-of-program

C C Please specify for gcc for both 1 cygwin on Windows 2 Unix What are the general limits c c stack share improve this..

Dead code detection in legacy C/C++ project

http://stackoverflow.com/questions/229069/dead-code-detection-in-legacy-c-c-project

to work with and at least 10 15 is dead code. Is there any Unix based tool to identify this areas Some pieces of code still..

What parameter parser libraries are there for C++?

http://stackoverflow.com/questions/253556/what-parameter-parser-libraries-are-there-for-c

do this easily See also Argument parsing helpers for C and Unix c parsing option share improve this question Boost.Program_options..

Is there a replacement for unistd.h for Windows (Visual C)?

http://stackoverflow.com/questions/341817/is-there-a-replacement-for-unistd-h-for-windows-visual-c

porting a relatively simple console program written for Unix to the Windows platform Visual C 8.0 . All the source files.. to Windows probably only need a subset of the complete Unix file. Here's a starting point. Please add definitions as needed...

Where does gcc look for C and C++ header files?

http://stackoverflow.com/questions/344317/where-does-gcc-look-for-c-and-c-header-files

does gcc look for C and C header files On a Unix system where does gcc look for header files I spent a little..

What is the bit size of long on 64-bit Windows?

http://stackoverflow.com/questions/384502/what-is-the-bit-size-of-long-on-64-bit-windows

64bit porting share improve this question In the Unix world there were a few possible arrangements for the sizes of.. bit operation use a different scheme . All modern 64 bit Unix systems use LP64. MacOS X and Linux are both modern 64 bit systems... just a different set of revisions from the ones needed on Unix platforms. If you design your software around platform neutral..

How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor?

http://stackoverflow.com/questions/5919996/how-to-detect-reliably-mac-os-x-ios-linux-windows-in-c-preprocessor

__linux linux #elif __unix all unices not caught above Unix #elif __posix POSIX #endif This defined macroses depends on..

How can I get a list of files in a directory using C or C++?

http://stackoverflow.com/questions/612097/how-can-i-get-a-list-of-files-in-a-directory-using-c-or-c

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

assume that some of the Linux code also works for the Unixes except for the parts that read the proc pseudo filesystem... the parts that read the proc pseudo filesystem. Perhaps on Unix these parts can be replaced by getrusage and similar functions.. by getrusage and similar functions If someone with Unix know how could edit this answer and fill in the details share..

C++, __try and try/catch/finally

http://stackoverflow.com/questions/7049502/c-try-and-try-catch-finally

Exception Handling SEH they are the rough equivalent to Unix signals. Compilers that generate code for Windows typically..

Sleep less than one millisecond

http://stackoverflow.com/questions/85122/sleep-less-than-one-millisecond

you have a problem you typically never encounter on Unix. That is how to get a thread to sleep for less than one millisecond... to get a thread to sleep for less than one millisecond. On Unix you typically have a number of choices sleep usleep and nanosleep.. the select system call to create a microsecond sleep. On Unix this is pretty straightforward int usleep long usec struct timeval..

What's “wrong” with C++ wchar_t and wstrings? What are some alternatives to wide characters?

http://stackoverflow.com/questions/11107608/whats-wrong-with-c-wchar-t-and-wstrings-what-are-some-alternatives-to-wide

that you can use wchar_t this way because while most unix platforms define it Windows does not even though Windows uses..

How to Calculate Execution Time of a Code Snippet in C++

http://stackoverflow.com/questions/1861294/how-to-calculate-execution-time-of-a-code-snippet-in-c

the number of milliseconds instead of seconds from the unix epoch on both windows and linux. #ifdef WIN32 #include Windows.h..

Spinlock versus Semaphore

http://stackoverflow.com/questions/195853/spinlock-versus-semaphore

best situations or conditions we can use these. c c linux unix operating system share improve this question Spinlock and..

generate sha256 with openssl and C++

http://stackoverflow.com/questions/2262386/generate-sha256-with-openssl-and-c

in my build I opt ssl include L opt ssl lib lcrypto c unix openssl sha256 share improve this question Here's how I..

Is there a LINQ library for C++?

http://stackoverflow.com/questions/232222/is-there-a-linq-library-for-c

C on UNIX would probably make lots of people happy c linq unix share improve this question Linq by Hong Jiang looks like..

C/C++ function definitions without assembly

http://stackoverflow.com/questions/2442966/c-c-function-definitions-without-assembly

with how Linux does it. There is a file called sysdeps unix syscalls.list which is used to generate the write function automatically... in the shell script which generates the code libc sysdeps unix make syscalls.sh . So now we ™re expecting to be able to link.. via a macro called SYS_ify which you ™ll find in sysdeps unix sysdep.h #define SYS_ify syscall_name __NR_##syscall_name Ah..

How to make SIMPLE C++ Makefile?

http://stackoverflow.com/questions/2481269/how-to-make-simple-c-makefile

post I wrote for physics grad students. Since this is for unix the executables have no extensions. One thing to note is that..

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

What tool can I use to pinpoint my slow code c unix profiling share improve this question If your goal is to..

C++ - How to set file permissions (cross platform)

http://stackoverflow.com/questions/592448/c-how-to-set-file-permissions-cross-platform

the permissions to be only accessible by the user 700. In unix I suppose I can just issue a system chmod 700 file.txt but I.. is the best c cross platform way to do this c windows unix share improve this question Ironically I have just run into..

Building glew on windows with mingw

http://stackoverflow.com/questions/6005076/building-glew-on-windows-with-mingw

with Make because unfortunately the makefile has lots of unix only commands and i don't have cygwin or anything at work. alternatively..

Convert between string, u16string & u32string

http://stackoverflow.com/questions/7232710/convert-between-string-u16string-u32string

that you can use wchar_t this way because while most unix platforms define it Windows does not even though Windows uses..

Portable text based console manipulator

http://stackoverflow.com/questions/7876241/portable-text-based-console-manipulator

Note I'm not searching for heavy external tools to emulate unix like terminals like Cygwin Msys rxvt ... . i think a simple..

Creating Library with backward compatible ABI that uses Boost

http://stackoverflow.com/questions/836875/creating-library-with-backward-compatible-abi-that-uses-boost

version of Boost BCP supports namespace renaming. c unix boost compatibility abi share improve this question Basically..

System() calls in C++ and their roles in programming

http://stackoverflow.com/questions/900666/system-calls-in-c-and-their-roles-in-programming

command window. I assume this works similarly with Mac and unix with different keywords and using system calls is discouraged.. two factors limit the cases in which system is useable. on unixy systems most subprocesses happen with fork because it allows.. process pool methodology unavailable on windows link to unix docs other cases on windows too are often handled by popen or..

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

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

How to Calculate Execution Time of a Code Snippet in C++

http://stackoverflow.com/questions/1861294/how-to-calculate-execution-time-of-a-code-snippet-in-c

Returns the amount of milliseconds elapsed since the UNIX epoch. Works on both windows and linux. int64 GetTimeMs64 #ifdef.. ret 116444736000000000LL Convert from file time to UNIX epoch time. ret 10000 From 100 nano seconds 10^ 7 to 1 millisecond..

Is “argv[0] = name-of-executable” an accepted standard or just a common convention?

http://stackoverflow.com/questions/2050961/is-argv0-name-of-executable-an-accepted-standard-or-just-a-common-conventi

the implementation must document how it works. So even UNIX which can put anything it likes into argv 0 with the exec family..

Is there a LINQ library for C++?

http://stackoverflow.com/questions/232222/is-there-a-linq-library-for-c

of server frameworks around the world run on flavors of UNIX and having access to LINQ for C on UNIX would probably make.. run on flavors of UNIX and having access to LINQ for C on UNIX would probably make lots of people happy c linq unix share..

Python snippet to remove C and C++ comments

http://stackoverflow.com/questions/241327/python-snippet-to-remove-c-and-c-comments

question I don't know if you're familiar with sed the UNIX based but Windows available text parsing program but I've found..

How to get available memory C++/g++?

http://stackoverflow.com/questions/2513505/how-to-get-available-memory-c-g

cross platform share improve this question On UNIX like operating systems there is sysconf . #include unistd.h..

How to use makefiles in Visual Studio?

http://stackoverflow.com/questions/314553/how-to-use-makefiles-in-visual-studio

c visual studio makefile share improve this question A UNIX guy probably told you that. You can use makefiles in VS but..

g++: In what order should static and dynamic libraries be linked?

http://stackoverflow.com/questions/492374/g-in-what-order-should-static-and-dynamic-libraries-be-linked

even from different libraries . This all applies to UNIX Windows DLL work quite differently. Edit after clarification..

C++ OpenSource project for beginner programmer? [closed]

http://stackoverflow.com/questions/634951/c-opensource-project-for-beginner-programmer

based a small project with a small amount of code yet UNIX based systems designed Do you know that something like this..

How would you implement a basic event-loop?

http://stackoverflow.com/questions/658403/how-would-you-implement-a-basic-event-loop

break What is a Waitable Well it's system dependant. On UNIX it's called a file descriptor and waitOnAll is the select system.. system call. The so called vector Waitable is a fd_set on UNIX and whatHappened is actually queried via FD_ISSET . The actual..

C++: how to get fprintf results as a std::string w/o sprintf

http://stackoverflow.com/questions/69738/c-how-to-get-fprintf-results-as-a-stdstring-w-o-sprintf

a std string w o sprintf I am working with an open source UNIX tool that is implemented in C and I need to change some code.. way that I know of to create an output stream from a UNIX file handle though this guy says it may be possible . Use Boost's..

What is the difference between Cygwin and MinGW?

http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw

this question Cygwin is an attempt to create a complete UNIX POSIX environment on Windows. To do this it uses various DLLs... Microsoft Windows installation. You can also get a small UNIX POSIX like environment compiled with MinGW called MSYS . It..

Creating Library with backward compatible ABI that uses Boost

http://stackoverflow.com/questions/836875/creating-library-with-backward-compatible-abi-that-uses-boost

API in way XYZ would not compile . Note I'm talking about UNIX Liux OS with ELF where dynamic linking is similar to static..

How can I see the Assembly code for a C++ Program?

http://stackoverflow.com/questions/840321/how-can-i-see-the-assembly-code-for-a-c-program

can ask your compiler to emit assembly source. For most UNIX compilers use the S switch. If you are using the GNU assembler.. FAsc . If you have compiled binary use objdump d a.out on UNIX also works for cygwin dumpbin DISASM foo.exe on Windows. Debuggers..

What is the closest thing windows has to fork()?

http://stackoverflow.com/questions/985281/what-is-the-closest-thing-windows-has-to-fork

similar to what was present in early flavors of UNIX. The first thing that happens when a parent process forks a..