summaryrefslogtreecommitdiff
path: root/src/port/thread.c
Commit message (Collapse)AuthorAgeFilesLines
* Add new auto-detection of thread flags.Bruce Momjian2004-04-231-13/+1
| | | | | | | Allow additional thread flags to be added via port templates. Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new configure script.
* Fix getpwuid_r call:Bruce Momjian2004-03-231-2/+2
| | | | *result = getpwuid_r(uid, resultbuf, buffer, buflen);
* Handle draft version of getpwuid_r() that accepts only four arguments.Bruce Momjian2004-03-201-4/+8
| | | | Backpatch to 7.4.X. Required for Solaris 7 & 8.
* > (I also see some post-7.4.1 changes in src/template/solaris, so youBruce Momjian2004-03-141-2/+2
| | | | | | | | | | | | | | | | | | | | | > possibly should look there too.) [snip] > I think I have the fix for part of it, but this remains... gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -fPIC -I. -I../../../src/include -D_POSIX_PTHREAD_SEMANTICS -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -c -o thread.o thread.c thread.c: In function `pqGethostbyname': thread.c:189: error: `resbuf' undeclared (first use in this function) Looking at src/port/thread.c, line 189, it looks like somebody typo'd. Looks like that second parameter should be "resultbuf", not "resbuf"? Jim Seymour
* Add missing checks for Borland C compiler.Bruce Momjian2004-03-021-2/+2
| | | | L J Bayuk
* Check and set thread-safe functions separately, rather than as a singleBruce Momjian2004-02-111-136/+16
| | | | | | | | | | variable. Remove thread locking for non-thread-safe functions, instead throw a compile error. Platforms will have to re-run tools/thread to record their thread safety.
* make sure the $Id tags are converted to $PostgreSQL as well ...PostgreSQL Daemon2003-11-291-1/+1
|
* Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.Peter Eisentraut2003-11-241-12/+12
| | | | | Fixes compilation failure with --enable-thread-safety --with-perl and Perl 5.6.1.
* Allow win32 client compiles with MSC.Bruce Momjian2003-10-261-4/+8
| | | | Hiroshi Saito
* Don't reference pthread.h unless we have threads enabled, per Peter.Bruce Momjian2003-10-241-1/+3
|
* Update docs that point to thread test program.Bruce Momjian2003-09-291-3/+3
|
* Rename thread compile flag. Move thread test program to tools/thread,Bruce Momjian2003-09-271-2/+6
| | | | and improve tests.
* Add errno value for thread *_r function call buffer too small. ImproveBruce Momjian2003-09-151-1/+14
| | | | thread comments.
* Attempt threading in this order:Bruce Momjian2003-09-131-17/+156
| | | | | | | | | * use non-*_r function names if they are all thread-safe * (NEED_REENTRANT_FUNCS=no) * use *_r functions if they exist (configure test) * do our own locking and copying of non-threadsafe functions New to this patch is the last option.
* ifdef out pqGetpwuid() because Win32 doesn't have struct passwd.Bruce Momjian2003-09-051-1/+3
| | | | | Needed for libpq builds, not just for native Win32 port, and probably for cygwin too.
* Add test for thread-safeness of libc functions.Bruce Momjian2003-09-031-1/+3
|
* Make NEED_REENTRANT_FUNC_NAMES _require_ *_r functions, and add tests toBruce Momjian2003-08-161-5/+4
| | | | configure to report if they are not found.
* Document threading status.Bruce Momjian2003-08-141-11/+40
| | | | Update to POSIX getpwuid_r() function.
* Typo cleanup.Bruce Momjian2003-08-081-2/+2
|
* threads.c -> thread.c, be consistent.Bruce Momjian2003-08-081-0/+87