PostgreSQL Daemon
55b113257c
make sure the $Id tags are converted to $PostgreSQL as well ...
2003-11-29 22:41:33 +00:00
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
2003-11-29 19:52:15 +00:00
Peter Eisentraut
8878cc4cd7
Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.
...
Fixes compilation failure with --enable-thread-safety --with-perl and Perl
5.6.1.
2003-11-24 13:16:22 +00:00
Bruce Momjian
018cf0f76e
Update /port C header descriptions.
2003-11-11 23:52:45 +00:00
Bruce Momjian
b80b384b78
Allow win32 client compiles with MSC.
...
Hiroshi Saito
2003-10-26 04:29:15 +00:00
Bruce Momjian
cded27cacd
Don't reference pthread.h unless we have threads enabled, per Peter.
2003-10-24 20:48:10 +00:00
Peter Eisentraut
2034a87a53
Use AROPT, not hard-coded flags.
2003-10-24 20:31:43 +00:00
Bruce Momjian
d7c971ab7d
Change Win32 rename/unlink timeout to 3 seconds.
2003-10-10 03:27:58 +00:00
Bruce Momjian
3e4b208285
Update docs that point to thread test program.
2003-09-29 03:32:05 +00:00
Bruce Momjian
227dd9b427
Rename thread compile flag. Move thread test program to tools/thread,
...
and improve tests.
2003-09-27 15:32:48 +00:00
Bruce Momjian
72ed916a1f
Add errno value for thread *_r function call buffer too small. Improve
...
thread comments.
2003-09-15 02:30:29 +00:00
Bruce Momjian
b041d3e3a1
Attempt threading in this order:
...
* 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.
2003-09-13 14:49:51 +00:00
Tom Lane
336ebee2c0
copydir() is supposed to return on failure, not elog(ERROR). Reduce
...
ERROR to WARNING so we keep control.
2003-09-10 20:12:01 +00:00
Bruce Momjian
e26af972b5
ifdef out pqGetpwuid() because Win32 doesn't have struct passwd.
...
Needed for libpq builds, not just for native Win32 port, and probably
for cygwin too.
2003-09-05 17:43:40 +00:00
Bruce Momjian
4cc247f74b
Add test for thread-safeness of libc functions.
2003-09-03 19:30:31 +00:00
Bruce Momjian
edc999b09a
Make NEED_REENTRANT_FUNC_NAMES _require_ *_r functions, and add tests to
...
configure to report if they are not found.
2003-08-16 15:35:51 +00:00
Bruce Momjian
8e97f45f88
Document threading status.
...
Update to POSIX getpwuid_r() function.
2003-08-14 05:27:18 +00:00
Bruce Momjian
c090b053fe
I'm quite fond of doing VPATH builds, i.e. building outside the source
...
tree. This also catches lots of little Makefile bugs, so here's a small
patch for one of them (replacing an explicit reference to thread.c with
a reference to it as the first prerequsite of the rule makes make look
for it in the place where it was found (the source tree) rather than in
the build tree. (using GNU make 3.79.1)
John Gray
2003-08-13 03:12:04 +00:00
Bruce Momjian
63c4d156e0
Move simple_prompt()/sprompt.c into /port.
2003-08-08 04:52:22 +00:00
Bruce Momjian
71b9be4d56
Typo cleanup.
2003-08-08 03:09:56 +00:00
Bruce Momjian
30c63f460a
More threading cleanups.
2003-08-08 02:55:08 +00:00
Bruce Momjian
e4cbb982b0
threads.c -> thread.c, be consistent.
2003-08-08 02:46:40 +00:00
Bruce Momjian
f3c3deb7d0
Update copyrights to 2003.
2003-08-04 02:40:20 +00:00
Bruce Momjian
089003fb46
pgindent run.
2003-08-04 00:43:34 +00:00
Tom Lane
81b5c8a136
A visit from the message-style police ...
2003-07-28 00:09:16 +00:00
Tom Lane
e8db9b26d0
elog mop-up.
2003-07-27 17:10:07 +00:00
Tom Lane
df63503dc2
Have a go at fixing various outstanding portability issues in code that
...
was modified for IPv6. Use a robust definition of struct sockaddr_storage,
do a proper configure test to see if ss_len exists, don't assume that
getnameinfo() will handle AF_UNIX sockets, don't trust getaddrinfo to
return the protocol we ask for, etc. This incorporates several outstanding
patches from Kurt Roeckx, but I'm to blame for anything that doesn't
work ...
2003-07-23 23:30:41 +00:00
Bruce Momjian
99308891ef
Remove references to sa_family_t, except when SOCKADDR_STORAGE requires
...
it.
Also handle __ss_family as a synonym for ss_family.
Kurt Roeckx
2003-06-23 23:52:00 +00:00
Bruce Momjian
467839df26
Handle threading in two more gethostbyname calls.
2003-06-14 18:20:33 +00:00
Bruce Momjian
62b532b736
Add thread.c for libpq threading, and hook it into libpq/configure.
2003-06-14 14:35:42 +00:00
Bruce Momjian
b14295cfe4
Attached is the complete diff against current CVS.
...
Compiles on BCC 5.5 and VC++ 6.0 (with warnings).
Karl Waclawek
2003-06-12 08:15:29 +00:00
Bruce Momjian
dc4ee8a833
Back out patch that got bundled into another patch.
2003-06-12 08:11:07 +00:00
Bruce Momjian
a647e30ba3
New patch with corrected README attached.
...
Also quickly added mention that it may be a qualified schema name.
Rod Taylor
2003-06-12 08:02:57 +00:00
Bruce Momjian
b4cea00a1f
IPv6 cleanups.
...
Kurt Roeckx
Andrew Dunstan
2003-06-12 07:36:51 +00:00
Bruce Momjian
c42581eba3
Allow interfaces to compile under MingGW/Win32 by adding _P to symbols
...
in ecpg.
2003-05-16 04:59:24 +00:00
Bruce Momjian
ec5e0ef791
Reorganize Win32 includes to only include <port.h> after system includes
...
under Win32. Also fix other compile issues.
2003-05-16 01:57:52 +00:00
Bruce Momjian
09aad5a3a6
Add copydir() function because xcopy doesn't work in XP without a
...
window.
2003-05-15 17:59:17 +00:00
Bruce Momjian
12c9423832
Allow Win32 to compile under MinGW. Major changes are:
...
Win32 port is now called 'win32' rather than 'win'
add -lwsock32 on Win32
make gethostname() be only used when kerberos4 is enabled
use /port/getopt.c
new /port/opendir.c routines
disable GUC unix_socket_group on Win32
convert some keywords.c symbols to KEYWORD_P to prevent conflict
create new FCNTL_NONBLOCK macro to turn off socket blocking
create new /include/port.h file that has /port prototypes, move
out of c.h
new /include/port/win32_include dir to hold missing include files
work around ERROR being defined in Win32 includes
2003-05-15 16:35:30 +00:00
Bruce Momjian
199f24e19d
More crypt() cleanup.
2003-05-10 04:06:55 +00:00
Bruce Momjian
37627eb571
Remove HPUX 9 rint() test.
...
Cleanup new crypt() source code.
2003-05-10 04:03:37 +00:00
Bruce Momjian
66e0a8cb39
Add crypt() to /port for Win32.
2003-05-09 16:52:11 +00:00
Bruce Momjian
0afe5417d7
Add rint() to /port, remove from qnx/.
2003-05-09 16:26:29 +00:00
Bruce Momjian
4207d6bf30
Add opendir/readdir/closedir() for Win32.
...
Keep SRA copyright on file because it contains BSD license clause.
2003-05-09 01:16:29 +00:00
Tom Lane
d08007ae77
Make getaddrinfo's behavior with NULL node parameter agree with the
...
Linux man page for it. This error was preventing CVS tip from accepting
remote connections.
2003-04-27 23:56:53 +00:00
Bruce Momjian
3126c78b1a
Add comments to replace/unlink Win32 functions.
2003-04-24 16:40:17 +00:00
Bruce Momjian
b952f0ef9b
Add Win32 unlink/rename file.
2003-04-22 02:18:48 +00:00
Bruce Momjian
d46e643822
Add Win32 path handling for / vs. \ and drive letters.
2003-04-04 20:42:13 +00:00
Tom Lane
1da6eb7fda
Whack getaddrinfo() patch around until it works, more or less, on
...
machines without IPv6. Or at least it works on HPUX 10.20 ...
2003-04-02 00:49:28 +00:00
Peter Eisentraut
82a91eb54e
Simplify the socket handling code by supplying a replacement getaddrinfo()
...
function if the OS doesn't provide one.
2003-03-29 11:31:52 +00:00
Bruce Momjian
bb6652552a
Back out flockfile change for NetBSD. Giles Lean reports they are not
...
supported.
2003-01-11 19:38:23 +00:00