Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: ohp(at)pyrenet(dot)fr, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)
Date: 2003-09-03 20:56:27
Message-ID: 373680000.1062622587@lerlaptop.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

--On Wednesday, September 03, 2003 16:51:51 -0400 Bruce Momjian
<pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:

> Larry Rosenman wrote:
>> > From UnixWare:
>>
>> $ cc -O -Kpthread test_thread.c -o test_thread -lsocket -lnsl
>> UX:acomp: WARNING: "test_thread.c", line 60: argument #3 incompatible
>> with prototype: pthread_create()
>> UX:acomp: WARNING: "test_thread.c", line 61: argument #3 incompatible
>> with prototype: pthread_create()
>> $ ./test_thread
>> Your functions are all thread-safe
>> $
>
> Well, that's great news, and so clear too!
>
> I am curious about the compiler warnings.
>
> What does your OS want for the 3rd argument of pthread_create()? I
> thought a void pointer would be OK for everyone:
>
> pthread_create(&thread1, NULL, (void *) func_call_1, NULL);

void *(*start_routine)(void*)

Here is our man page:
http://lerami.lerctr.org:8458/en/man/html.3pthread/pthread_create.3pthread.
html

LER

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2003-09-03 21:01:57 Re: [HACKERS] Win32 native port
Previous Message Bruce Momjian 2003-09-03 20:54:24 Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)