memmem small optimalisation

2012-02-15 Thread Bernard van Gastel
_len) == 0) return cur; --- Bernard van Gastel Bit Powder RSS Junkie? Download the app with push notifications for Android: https://market.android.com/details?id=com.bitpowder.rssjunkie

eliminating a syscall on accept()+ioctl() combo

2011-07-31 Thread Bernard van Gastel
Hi all, I want to reduce the number of syscalls for my networking application. The app handles incoming connections with the 'accept()' system call. Is there a way to specify to accept() that the newly created file descriptors should be non-blocking (FIONBIO)? This will avoid an ioctl() after t

Re: pthread_{mutex,cond} & fifo/starvation/scheduling policy

2010-01-21 Thread Bernard van Gastel
gende geschreven: > In the last episode (Jan 19), Bernard van Gastel said: >> I'm curious to the exact scheduling policy of POSIX threads in relation to >> mutexes and conditions. If there are two threads (a & b), both with the >> following code: >> >&g

Re: pthread_{mutex,cond} & fifo/starvation/scheduling policy

2010-01-21 Thread Bernard van Gastel
ard Op 19 jan 2010, om 12:16 heeft Dag-Erling Smørgrav het volgende geschreven: > Bernard van Gastel writes: >> What is the scheduling policy of the different thread libraries? > > Threads are scheduled by the kernel, not by the library. Look at > sys/kern/sched_umtx.c and

pthread_{mutex,cond} & fifo/starvation/scheduling policy

2010-01-19 Thread Bernard van Gastel
he latter case) I have googled extensively and browsed the libthr sources, but can't find the specs that I'm looking for. Any help will appreciated. With regards, Bernard van Gastel

Re: strdup(NULL) supposed to create SIGSEGV?

2008-04-23 Thread Bernard van Gastel
Op 23 apr 2008, om 08:50 heeft Mike Meyer het volgende geschreven: On Tue, 22 Apr 2008 22:40:21 -0700 "Garrett Cooper" <[EMAIL PROTECTED]> wrote: Hi all, I made an oops in a program, which uncovered "feature" in strdup(2) that I wasn't aware of before. So I was wondering, is strdup(poi

Soundcard problems on laptop

2003-01-13 Thread Bernard van Gastel
how to fix this error, what's going wrong in the hardware, etc? (and no, this isn't an user problem, I want to fix the driver myself if needed). Thank in advance, Bernard van Gastel smime.p7s Description: S/MIME Cryptographic Signature