You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tom Lane
7ca37fb040
Use setenv() in preference to putenv().
...
Since at least 2001 we've used putenv() and avoided setenv(), on the
grounds that the latter was unportable and not in POSIX. However,
POSIX added it that same year, and by now the situation has reversed:
setenv() is probably more portable than putenv(), since POSIX now
treats the latter as not being a core function. And setenv() has
cleaner semantics too. So, let's reverse that old policy.
This commit adds a simple src/port/ implementation of setenv() for
any stragglers (we have one in the buildfarm, but I'd not be surprised
if that code is never used in the field). More importantly, extend
win32env.c to also support setenv(). Then, replace usages of putenv()
with setenv(), and get rid of some ad-hoc implementations of setenv()
wannabees.
Also, adjust our src/port/ implementation of unsetenv() to follow the
POSIX spec that it returns an error indicator, rather than returning
void as per the ancient BSD convention. I don't feel a need to make
all the call sites check for errors, but the portability stub ought
to match real-world practice.
Discussion: https://postgr.es/m/2065122.1609212051@sss.pgh.pa.us
5 years ago
..
unicode
Fix minor issues with new unicode {de,re}composition code
5 years ago
.gitignore
Replace the data structure used for keyword lookup.
7 years ago
Makefile
Revert "Add key management system" ( 978f869b99) & later commits
5 years ago
archive.c
Move routine building restore_command to src/common/
6 years ago
base64.c
Update copyrights for 2020
6 years ago
checksum_helper.c
Move SHA2 routines to a new generic API layer for crypto hashes
5 years ago
config_info.c
Simplify passing of configure arguments to pg_config
6 years ago
controldata_utils.c
Update copyrights for 2020
6 years ago
cryptohash.c
Improve some code around cryptohash functions
5 years ago
cryptohash_openssl.c
Refactor MD5 implementations according to new cryptohash infrastructure
5 years ago
d2s.c
Update copyrights for 2020
6 years ago
d2s_full_table.h
Update copyrights for 2020
6 years ago
d2s_intrinsics.h
Update copyrights for 2020
6 years ago
digit_table.h
Change floating-point output format for improved performance.
7 years ago
encnames.c
Rationalize code placement between wchar.c, encnames.c, and mbutils.c.
6 years ago
exec.c
Use setenv() in preference to putenv().
5 years ago
f2s.c
Update copyrights for 2020
6 years ago
fe_memutils.c
Update copyrights for 2020
6 years ago
file_perm.c
Update copyrights for 2020
6 years ago
file_utils.c
Skip unnecessary stat() calls in walkdir().
5 years ago
hashfn.c
Dial back -Wimplicit-fallthrough to level 3
6 years ago
hex_decode.c
move hex_decode() to /common so it can be called from frontend
5 years ago
ip.c
Add support for abstract Unix-domain sockets
5 years ago
jsonapi.c
Run pgindent with new pg_bsd_indent version 2.1.1.
6 years ago
keywords.c
Allow most keywords to be used as column labels without requiring AS.
5 years ago
kwlookup.c
Update copyrights for 2020
6 years ago
link-canary.c
Update copyrights for 2020
6 years ago
logging.c
Improve common/logging.c's support for multiple verbosity levels.
5 years ago
md5.c
Refactor MD5 implementations according to new cryptohash infrastructure
5 years ago
md5_common.c
Improve some code around cryptohash functions
5 years ago
md5_int.h
Refactor MD5 implementations according to new cryptohash infrastructure
5 years ago
pg_get_line.c
Rethink API for pg_get_line.c, one more time.
5 years ago
pg_lzcompress.c
Second thoughts on TOAST decompression.
5 years ago
pgfnames.c
Update copyrights for 2020
6 years ago
protocol_openssl.c
Move OpenSSL routines for min/max protocol setting to src/common/
6 years ago
psprintf.c
Update copyrights for 2020
6 years ago
relpath.c
Add declaration-level assertions for compile-time checks
6 years ago
restricted_token.c
Use setenv() in preference to putenv().
5 years ago
rmtree.c
Update copyrights for 2020
6 years ago
ryu_common.h
Update copyrights for 2020
6 years ago
saslprep.c
Refactor logic to check for ASCII-only characters in string
5 years ago
scram-common.c
Move SHA2 routines to a new generic API layer for crypto hashes
5 years ago
sha2.c
Move SHA2 routines to a new generic API layer for crypto hashes
5 years ago
sha2_int.h
Move SHA2 routines to a new generic API layer for crypto hashes
5 years ago
sprompt.c
Remove arbitrary restrictions on password length.
5 years ago
string.c
Refactor logic to check for ASCII-only characters in string
5 years ago
stringinfo.c
Update copyrights for 2020
6 years ago
unicode_norm.c
Simplify code for getting a unicode codepoint's canonical class.
5 years ago
username.c
Update copyrights for 2020
6 years ago
wait_error.c
Update copyrights for 2020
6 years ago
wchar.c
Dial back -Wimplicit-fallthrough to level 3
6 years ago