httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@decus.org (Rodent of Unusual Size)
Subject Re: [PATCH] SysV semaphores
Date Fri, 08 Aug 1997 14:34:47 GMT
    Well, I'm trying this on a DU 3.2 system right now.  Compilation
    warnings:

% gcc -o time-FCNTL -Wall -O time-sem.c -DUSE_FCNTL_SERIALIZED_ACCEPT
time-sem.c: In function `main':
time-sem.c:324: warning: long unsigned int format, different type arg (arg 2)
time-sem.c:324: warning: long unsigned int format, different type arg (arg 3)

% gcc -o time-FLOCK -Wall -O time-sem.c -DUSE_FLOCK_SERIALIZED_ACCEPT
time-sem.c: In function `accept_mutex_on':
time-sem.c:108: warning: implicit declaration of function `flock'
time-sem.c: In function `main':
time-sem.c:324: warning: long unsigned int format, different type arg (arg 2)
time-sem.c:324: warning: long unsigned int format, different type arg (arg 3)

% gcc -o time-SEM -Wall -O time-sem.c -DUSE_SYSVSEM_SERIALIZED_ACCEPT
time-sem.c: In function `main':
time-sem.c:324: warning: long unsigned int format, different type arg (arg 2)
time-sem.c:324: warning: long unsigned int format, different type arg (arg 3)

% gcc -o time-PTHREAD -Wall -O time-sem.c -DUSE_PTHREAD_SERIALIZED_ACCEPT -lpthread
time-sem.c: In function `accept_mutex_init':
time-sem.c:205: warning: implicit declaration of function `pthread_mutexattr_init'
time-sem.c:209: warning: implicit declaration of function `pthread_mutexattr_setpshared'
time-sem.c:209: `PTHREAD_PROCESS_SHARED' undeclared (first use this function)
time-sem.c:209: (Each undeclared identifier is reported only once
time-sem.c:209: for each function it appears in.)
time-sem.c:213: incompatible type for argument 2 of `pthread_mutex_init'
time-sem.c: In function `main':
time-sem.c:324: warning: long unsigned int format, different type arg (arg 2)
time-sem.c:324: warning: long unsigned int format, different type arg (arg 3)

    So much for compile-time.  At run-time:

% time-FCNTL 10 10000
WTF! shared_counter != num_child * num_iter!
      35.268477
% time-FLOCK 10 10000
WTF! shared_counter != num_child * num_iter!
       1.325984
% time-SEM 10 10000
WTF! shared_counter != num_child * num_iter!
       7.696639

    I have no idea what any of this means <g>, but I thought I'd give
    you another data-point..

    I've heard that DU (Digital UNIX, DEC OSF/1) has a brain-damaged
    mmap() implementation, so I'm wondering if that might be related.

    #ken    :-)}

Mime
View raw message