Re: getrlimit(RLIMIT_AS, ...) on OpenBSD

2013-10-04 Thread niXman
2013/10/3 Antoine Jacoutot: What is usually done in the ports tree depending on the context and the code is: (from memory) #if defined (RLIMIT_AS) setrlimit (RLIMIT_AS, ...); #endif OR #ifndef (RLIMIT_AS) # define RLIMIT_AS RLIMIT_DATA #endif Thanks! -- Regards, niXman

getrlimit(RLIMIT_AS, ...) on OpenBSD

2013-10-03 Thread niXman
this limit is at most 2 GiB, or this resource is unlimited. Tell me please, what parameter should I use instead RLIMIT_AS, or how else can I get the information similar to 'getrlimit(RLIMIT_AS, ...)'? Thanks. -- Regards, niXman

Re: Which syscall is used for creating new process/thread on OpenBSD

2013-09-16 Thread niXman
the implementation for both will happen to call a function named fork1(), but that's not something you should worry about. Thank you. -- Regards, niXman ___ Dual-target(32 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net

Which syscall is used for creating new process/thread on OpenBSD

2013-09-13 Thread niXman
creation - 'tfork()'. I have two questions: 1. Is my statement correct? 2. Shouldn't 'vfork()' and 'tfork()' finally use a single system call like 'clone()'? Thanks. -- Regards, niXman ___ Dual-target(32 64-bit) MinGW compilers for 32 and 64-bit