/
githubmirror
/
postgres
ОбзорДокументацияВойти
/
githubmirror
/
postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
postgres/
src/port/
..
.gitignore

Build src/port files as a library with -fPIC, and use that in libpq.

8 лет назад
Makefile

Invent a variant of getopt(3) that is thread-safe

4 месяца назад
README

Restore AIX support.

6 месяцев назад
bsearch_arg.c

Update copyright for 2026

7 месяцев назад
chklocale.c

Update copyright for 2026

7 месяцев назад
dirent.c

Update copyright for 2026

7 месяцев назад
dirmod.c

Clean up readlink() return type

месяц назад
explicit_bzero.c

Check for memset_explicit() and explicit_memset()

5 месяцев назад
getopt.c

Invent a variant of getopt(3) that is thread-safe

4 месяца назад
getopt_long.c

Fix error handling in port's getopt_long() for missing argument

11 дней назад
getpeereid.c

Update copyright for 2026

7 месяцев назад
inet_aton.c

Pre-beta mechanical code beautification, step 1: run pgindent.

3 месяца назад
inet_net_ntop.c

Remove configure probe for sockaddr_in6 and require AF_INET6.

4 года назад
kill.c

Update copyright for 2026

7 месяцев назад
meson.build

Compute CRC32C on ARM using the Crypto Extension where available

4 месяца назад
mkdtemp.c

Update copyright for 2026

7 месяцев назад
noblock.c

Update copyright for 2026

7 месяцев назад
open.c

Pre-beta mechanical code beautification, step 1: run pgindent.

3 месяца назад
path.c

Prevent path traversal in pg_basebackup and pg_rewind

3 месяца назад
pg_bitutils.c

Remove bits* typedefs.

4 месяца назад
pg_cpu_x86.c

Clean up inconsistencies in CPU-identification macros.

месяц назад
pg_crc32c_armv8.c

Use C11 alignas instead of pg_attribute_aligned

месяц назад
pg_crc32c_armv8_choose.c

Fix unused function warning on Arm platforms

4 месяца назад
pg_crc32c_loongarch.c

Update copyright for 2026

7 месяцев назад
pg_crc32c_sb8.c

Update copyright for 2026

7 месяцев назад
pg_crc32c_sse42.c

Centralize detection of x86 CPU features

5 месяцев назад
pg_getopt_ctx.c

Invent a variant of getopt(3) that is thread-safe

4 месяца назад
pg_localeconv_r.c

Fix for loop variables used with lengthof

месяц назад
pg_numa.c

Make pg_numa_query_pages() work in frontend programs

6 месяцев назад
pg_popcount_aarch64.c

Suppress "has no symbols" linker warnings on macOS.

3 месяца назад
pg_popcount_x86.c

Suppress "has no symbols" linker warnings on macOS.

3 месяца назад
pg_strong_random.c

Update copyright for 2026

7 месяцев назад
pgcheckdir.c

Update copyright for 2026

7 месяцев назад
pgmkdirp.c

Make pg_mkdir_p() tolerant of a concurrent directory creation.

2 месяца назад
pgsleep.c

Update copyright for 2026

7 месяцев назад
pgstrcasecmp.c

Update copyright for 2026

7 месяцев назад
pgstrsignal.c

Update copyright for 2026

7 месяцев назад
pqsignal.c

Fix set of typos and grammar mistakes

2 месяца назад
pthread-win32.h

Clean up Windows-specific mutex code in libpq and ecpglib.

3 года назад
pthread_barrier_wait.c

Update copyright for 2026

7 месяцев назад
qsort.c

Use sort_template.h for qsort() and qsort_arg().

5 лет назад
qsort_arg.c

Use sort_template.h for qsort() and qsort_arg().

5 лет назад
quotes.c

Update copyright for 2026

7 месяцев назад
snprintf.c

Pre-beta mechanical code beautification, step 1: run pgindent.

3 месяца назад
strerror.c

Restore AIX support.

6 месяцев назад
strlcat.c

Pre-beta mechanical code beautification, step 1: run pgindent.

3 месяца назад
strlcpy.c

Update copyright for 2026

7 месяцев назад
strsep.c

Pre-beta mechanical code beautification, step 1: run pgindent.

3 месяца назад
strtof.c

Update copyright for 2026

7 месяцев назад
system.c

Update copyright for 2026

7 месяцев назад
tar.c

Harden astreamer tar parsing logic against archives it can't handle.

4 месяца назад
timingsafe_bcmp.c

Add timingsafe_bcmp(), for constant-time memory comparison

год назад
win32.ico

Revert binary change in copyright year adjustment.

15 лет назад
win32common.c

Update copyright for 2026

7 месяцев назад
win32dlopen.c

Update copyright for 2026

7 месяцев назад
win32env.c

Update copyright for 2026

7 месяцев назад
win32error.c

Fix for loop variables used with lengthof

месяц назад
win32fdatasync.c

Update copyright for 2026

7 месяцев назад
win32fseek.c

Update copyright for 2026

7 месяцев назад
win32gai_strerror.c

Update copyright for 2026

7 месяцев назад
win32getrusage.c

Update copyright for 2026

7 месяцев назад
win32gettimeofday.c

Simplify gettimeofday for Windows.

4 года назад
win32link.c

On Windows, make link(2) report ENOTSUP when appropriate.

11 дней назад
win32ntdll.c

Fix for loop variables used with lengthof

месяц назад
win32pread.c

Update copyright for 2026

7 месяцев назад
win32pwrite.c

Update copyright for 2026

7 месяцев назад
win32security.c

Pre-beta mechanical code beautification, step 1: run pgindent.

3 месяца назад
win32setlocale.c

Update copyright for 2026

7 месяцев назад
win32stat.c

Clean up readlink() return type

месяц назад
win32ver.rc

Update copyright for 2026

7 месяцев назад
README
src/port/README
 
libpgport
=========
 
libpgport must have special behavior. It supplies functions to both
libraries and applications. However, there are two complexities:
 
1) Libraries need to use object files that are compiled with exactly
the same flags as the library. libpgport might not use the same flags,
so it is necessary to recompile the object files for individual
libraries. This is done by removing -lpgport from the link line:
 
# Need to recompile any libpgport object files
LIBS := $(filter-out -lpgport, $(LIBS))
 
and adding infrastructure to recompile the object files:
 
OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
connect.o misc.o path.o exec.o \
$(filter strlcat.o, $(LIBOBJS))
 
The problem is that there is no testing of which object files need to be
added, but missing functions usually show up when linking user
applications.
 
2) For applications, we use -lpgport before -lpq, so the static files
from libpgport are linked first. This avoids having applications
dependent on symbols that are _used_ by libpq, but not intended to be
exported by libpq. libpq's libpgport usage changes over time, so such a
dependency is a problem. Windows, Linux, AIX, and macOS use an export
list to control the symbols exported by libpq.