What non-Linux unixes support openat()?
openat() was added to POSIX in the POSIX.1-2008 revision, and has been supported by Linux since 2.6.16. How is support on non-Linux UNIXes? eg, Darwin, the *BSDs, and proprietary UNIXes. ...
openat() was added to POSIX in the POSIX.1-2008 revision, and has been supported by Linux since 2.6.16. How is support on non-Linux UNIXes? eg, Darwin, the *BSDs, and proprietary UNIXes. ...
i'm using the xinha wysiwyg editor and would like to enable the clipboard (for using the menu icons: copy, cut, paste) i've googled but couldn't find a working method - only for adding some settings capability.policy.allowclipboard.Clipboard to the user.js unfortunately my firefox portable has no user.js :( can someone tell me where ...
If I'm building a PHP system which I expect to port to many different servers, should I avoid relying on PHP 5 features such as exceptions and final methods? How widespread is PHP 5 by now? Should I be worried about compatibility and ditch exceptions and other features not available in PHP 4? ...
ACE_OS::thr_self() returns ACE_thread_t. ACE logger has a switch "\t" to print it. How can I do it if I want to print thread id by using printf()? ...
I've built a Content Management System application in CakePHP which I've utilised ImageMagick for transforming uploaded images and PDF files. The biggest problem I've found with using ImageMagick is when I come to deploy the application on someone else's hosting. Their server either doesn't have IM installed, or it's version 6.2.8 and ...
I received a src archive from a friend who develops Qt apps on Linux on Kdevelop IDE. Is it possible to load the Kdevelop project in Windows in some IDE ? Is there a Kdevelop port on Windows without Cygwin/Msys etc ? Are there any workarounds or I should I have to install Linux and take charge? Update : I visited the page as mentioned ...
This question is intentionally very generic and I'm not much of a C programmer although I dabble here and there. The following code is intentionally vague and probably won't compile, but I hope you get the point... Handling platform specifics seems dynamically in a compiled language like C seems unnecessary and even scary: int main(in...
I develop on different machines. I use MAMP, I have it installed on my dropbox folder and created symbolic links to the applications folder. That way if I work one day on my desktop and make changes to lets say a database schema and next day I work from my laptop I won't have to do any db migration stuff the same applies for all the apac...
Recently I came across a gcc extension that I have found rather useful: __attribute__(cleanup) Basically, this allows you to assign a cleanup call to a local variable at the time it exits scope. For instance, given the following section of code, all memory must be maintained and handled explicitly in any and all cases within the call to...
Free, portable, all included, all in one, (opensource is + ) php server? I have a USB FLASH 16gb card. I want to install on to it some kind of PHP server - some programm.exe which i could run on different computers without installing - call some localhost/phpserver and get my php scripts running. So where to go to get such thing? ...
I have a portable code running on Visual C++ 2008 and RHEL 5.3 (gcc 4.x.x). My program should accept command line arguments. I consider using some library for that task. My candidats are: Boost program options ACE has this capability too (1) is not in standard and as for (2) we already using it heavily for other tasks. Which is pre...
How to generate DBF files with delphi? More information: I need a portable Database to run in a pendrive I don't know if DBF is the better soluttion. I like MySql but is hard to find a portable version I am working with XML at this time but I don't know how to make a Query. ...
anyone know a portable version of mysql? I know xampp but it comes with PHP and Apache together anyone know how to isolate the mysql? ...
I'm curious as to why I see nearly all C macros formatted like this: #ifndef FOO # define FOO #endif Or this: #ifndef FOO #define FOO #endif But never this: #ifndef FOO #define FOO #endif (moreover, vim's = operator only seems to count the first two as correct.) Is this due to portability issues among compilers, or is it ...
I need an answer to the following question to help understand what approach I should be taking to interface with Erlang. AFAIK Erlang on a SMP UNIX box uses the multi-process approach. In this case it should do same machine IPC. Does Erlang use UNIX domain sockets for UNIX ? Does it use named-pipes for windows ? If it does not implem...
I am using signed to unsigned byte(int8_t) cast to pack byts. uint32_t(uint8_t(byte)) << n This works using GCC on Intel Linux. Is that portable for other platforms/compilers, for example PowerPC? is there a better way to do it? using bitset is not possible in my case. I am using stdint via boost ...
How can one portably perform pointer arithmetic with single byte precision? Keep in mind that: char is not 1 byte on all platforms sizeof(void) == 1 is only available as an extension in GCC While some platforms may have pointer deref pointer alignment restrictions, arithmetic may still require a finer granularity than the size of the ...
pcap_compile() compiles a string into a filter program in the form of a bpf_program struct. In theory I could save the compiled form of the program and supply it to pcap_setfilter() on a different network interface or even on a different machine. Will that work? Is the bpf_program form portable across different interfaces? Different pro...
I have a .net 3.5 application and i'd like to make it portable. It's simple and runs perfectly, i've sent the .EXE + .DLL's to some friends and it works as intended when running the exe with the .DLL's and the .ICO (that i have used in it) along in the same folder. What i want is simple: creating a single EXE file that cares the dll's, ...
I have a pthreads program. I have to compile it with gcc -pthread in Linux (-pthreads is unrecognized option) and gcc -pthreads in Sun (-pthread is unrecognized option). Why the difference, since it's the same compiler? However, -lpthread works on both, but I heard this isn't always sufficient. ...