Bruce Momjian
b492c3accc
Add parentheses to macros when args are used in computations. Without
...
them, the executation behavior could be unexpected.
21 years ago
Neil Conway
3994ffb479
Fix a few minor mistakes in header comments. From Qingqing Zhou.
21 years ago
Tom Lane
b79a718fac
Must count '*' characters as potential arguments.
21 years ago
Tom Lane
e6befdc9d1
Kerberos fixes from Magnus Hagander --- in theory Kerberos 5 auth
...
should work on Windows now. Also, rename set_noblock to pg_set_noblock;
since it is included in libpq, the former name polluted application
namespace.
21 years ago
Bruce Momjian
b1f57d88f5
Change Win32 O_SYNC method to O_DSYNC because that is what the method
...
currently does. This is now the default Win32 wal sync method because
we perfer o_datasync to fsync.
Also, change Win32 fsync to a new wal sync method called
fsync_writethrough because that is the behavior of _commit, which is
what is used for fsync on Win32.
Backpatch to 8.0.X.
21 years ago
Tom Lane
0ca91482fa
Add missing error checking in readdir() loops.
21 years ago
Bruce Momjian
683f60da3d
Add mention of why malloc() has to be used in snprintf.c.
21 years ago
Bruce Momjian
8c72526fe9
Department of second thoughts. Remove FRONTEND from snprintf.c because
...
snprintf is called before the memory system is started. We have to just
malloc/free. There are no elogs in the code so we should be fine.
21 years ago
Bruce Momjian
169adfcf74
Fix typo in Makefile.
21 years ago
Bruce Momjian
83ebbfac75
Another change for FRONTEND snprintf.c.
21 years ago
Bruce Momjian
614fcbeba7
Mark snprintf.c as a file that uses FRONTEND and needs to a version in
...
the server-side port library. Somehow I missed that change when I added
memory allocation to snprintf.c.
21 years ago
Bruce Momjian
7111a14fba
Factor duplicate snprintf code into functions.
21 years ago
Bruce Momjian
712f053587
Add sprintf support, that were were missing.
...
Add support for snprintf '+', 'h', and %* length settings.
21 years ago
Bruce Momjian
ca66797308
pgindent snprintf.c for consistency.
21 years ago
Bruce Momjian
2306f63dea
Fix snprintf for %*$.
21 years ago
Bruce Momjian
888271ed15
Fix snprintf to handle %$ properly by storing and reordering the
...
arguments.
Nicolai Tufar
21 years ago
Bruce Momjian
c82f76e1ac
Fix snprintf() to properly handle precision specification for %f.
21 years ago
Bruce Momjian
caad817d1c
Add fprintf() custom version to libpgport.
...
Document use of macros for pg_printf functions.
Bump major versions of all interfaces to handle movement of get_progname
from libpq to libpgport in 8.0, and probably other libpgport changes in 8.1.
21 years ago
Bruce Momjian
3bc6bdf322
Define snprintf() to call pg_snprintf() so our own snprintf-like
...
implementation doesn't export out via libpq and get used by a user
application.
21 years ago
Bruce Momjian
5592a6cf46
Move snprintf int64 compatibility letters into a NOT_USED block.
21 years ago
Bruce Momjian
f8aca046bb
Fix for %I64d snprintf.
21 years ago
Bruce Momjian
022ece2cf1
snprintf() %I64d code fix.
21 years ago
Bruce Momjian
bb7a3a740c
Use our own snprintf() only if NLS is enabled, and support %qd and %I64d.
21 years ago
Bruce Momjian
70d4a9343f
Prevent large allocation in snprintf to hold positional parameters.
...
Allocated size based on format string.
21 years ago
Bruce Momjian
47ea7148e3
Fix snprintf on Win32:
...
* If vsnprintf() is not before snprintf() in this file, snprintf()
* will call the system vsnprintf() on MinGW.
21 years ago
Bruce Momjian
9989e90490
Make port snprintf.c finally thread-safe.
21 years ago
Bruce Momjian
03b8efa540
Make snprintf() use already-defined int64/uint64 typedefs rather than
...
defining its own.
21 years ago
Bruce Momjian
295dd338c3
And while we are on it, I would like to submit minor
...
changes to make snprintf() vsnprintf() and printf()
functions in src/port/snprintf.c thread-safe.
Nicolai Tufar
21 years ago
Bruce Momjian
949ab3c9b3
snprintf.c has no sys/ioctl.h. Trivial patch below:
...
Magnus Hagander
21 years ago
Bruce Momjian
afbc30e5d4
Allow Win32 to support the O_SYNC open flag as an wal_sync_method method.
...
Magnus Hagander
21 years ago
Bruce Momjian
e3ebe2521e
Add semicolon so snprintf.c goto has a statement to attach to:
...
nochar:
/* nothing */
; /* semicolon required because a goto has to be attached to a statement */
21 years ago
Bruce Momjian
0542b1e2fe
Use _() macro consistently rather than gettext(). Add translation
...
macros around strings that were missing them.
21 years ago
Bruce Momjian
b4feafb6ff
Add support to port/snprintf.c for position parameter specification:
...
+ # Determine if printf supports %1$ argument selection, e.g. %5$ selects
+ # the fifth argument after the printf print string.
+ # This is not in the C99 standard, but in the Single Unix Specification (SUS).
+ # It is used in our langauge translation strings.
Nicolai Tufar with configure changes by Bruce.
21 years ago
Bruce Momjian
bb17a98e3c
Print file name and errno string on rmtree failure.
...
Backpatch to 8.0.X.
21 years ago
Tom Lane
889f038129
Use SHGetFolderPath instead of SHGetSpecialFolderPath to find the
...
APPDATA directory on Windows. Magnus Hagander
21 years ago
Bruce Momjian
31197bbdf5
Update version stamps for 8.1 as listed in RELEASE_CHANGES.
21 years ago
Tom Lane
982e998064
Add missing gettext() calls in find_my_exec(). It's probably too late
...
to get these strings translated, but we may as well have them be
translatable as not.
21 years ago
Tom Lane
8e4f4078d8
Un-break MSVC build, per Andrew Dunstan.
21 years ago
Tom Lane
bbeeea1437
Minor mop-up for Windows home-directory stuff, per Magnus.
21 years ago
Tom Lane
a3f98d5795
Adjust lookup of client-side profile files (.pgpass and so on) as per
...
discussion on pgsql-hackers-win32 list. Documentation still needs to
be tweaked --- I'm not sure how to refer to the APPDATA folder in
user documentation.
21 years ago
Tom Lane
d97ae8230e
Make the various places that determine the user's "home directory"
...
consistent. On Unix we now always consult getpwuid(); $HOME isn't used
at all. On Windows the code currently consults $USERPROFILE, or $HOME
if that's not defined, but I expect this will change as soon as the win32
hackers come to a consensus. Nothing done yet about changing the file
names used underneath $USERPROFILE.
21 years ago
Tom Lane
a17e589046
Adjust a few more copyright notices to match the format expected by
...
the src/tools/copyright script.
21 years ago
Tom Lane
7e1c8ef4fc
Some more missed copyright notices. Many of these look like they
...
should have been caught by the src/tools/copyright script ... why
weren't they?
21 years ago
PostgreSQL Daemon
2ff501590b
Tag appropriate files for rc3
...
21 years ago
Tom Lane
f0c08ae7c9
Remove 'optimization' to skip resolve_symlinks() when the found
...
executable file isn't itself a symlink. We still need to run the
algorithm so that any directory symlinks in the path to the
executable are replaced by a true path. Noticed this on seeing
pg_config give me a completely wrong answer for --pkglibdir when
I called it through a symlink to the installation bindir.
21 years ago
Tom Lane
80855ba8ca
In pipe_read_line Windows code, loop to ensure we get a whole line
...
from the child process; fixes observed problems when the returned
version number is '8.0.0' rather than '8.0.0rc1'. Magnus Hagander
21 years ago
Bruce Momjian
9af9320750
Add Win32 version stamps that increment each day for proper SYSTEM32
...
DLL pginstaller installs.
21 years ago
Peter Eisentraut
99b735cc03
Work around lack of NLS support in libpgport by making those components
...
who use it scan the relevant source files for their own catalog. It
creates a bit of duplicate work for translators, but it gets the job done
for now.
21 years ago
Neil Conway
2fa36d7e41
Win32 build cleanups, from Andrew Dunstan.
21 years ago
Bruce Momjian
33be9d359a
Removes duplicate slashes from the path in canonicalize_path(). It
...
preserve double leading slashes on Win32.
e.g. ////a////b => /a/b
21 years ago