Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.gitignore | H A D | 08-Nov-2021 | 68 | 5 | 4 | |
Makefile | H A D | 08-Nov-2021 | 5 KiB | 165 | 80 | |
README | H A D | 08-Nov-2021 | 1.3 KiB | 33 | 24 | |
bsearch_arg.c | H A D | 08-Nov-2021 | 3 KiB | 79 | 25 | |
chklocale.c | H A D | 08-Nov-2021 | 10.7 KiB | 458 | 290 | |
dirent.c | H A D | 08-Nov-2021 | 2.8 KiB | 134 | 100 | |
dirmod.c | H A D | 08-Nov-2021 | 8.6 KiB | 356 | 238 | |
dlopen.c | H A D | 08-Nov-2021 | 2.3 KiB | 146 | 105 | |
erand48.c | H A D | 08-Nov-2021 | 3.9 KiB | 137 | 49 | |
explicit_bzero.c | H A D | 08-Nov-2021 | 1 KiB | 56 | 26 | |
fls.c | H A D | 08-Nov-2021 | 2.3 KiB | 65 | 11 | |
getaddrinfo.c | H A D | 08-Nov-2021 | 8.7 KiB | 397 | 271 | |
getopt.c | H A D | 08-Nov-2021 | 4.2 KiB | 137 | 76 | |
getopt_long.c | H A D | 08-Nov-2021 | 5.1 KiB | 219 | 141 | |
getpeereid.c | H A D | 08-Nov-2021 | 1.8 KiB | 81 | 51 | |
getrusage.c | H A D | 08-Nov-2021 | 2.6 KiB | 111 | 73 | |
gettimeofday.c | H A D | 08-Nov-2021 | 4.1 KiB | 119 | 32 | |
inet_aton.c | H A D | 08-Nov-2021 | 4 KiB | 150 | 78 | |
inet_net_ntop.c | H A D | 08-Nov-2021 | 7 KiB | 298 | 191 | |
kill.c | H A D | 08-Nov-2021 | 1.9 KiB | 98 | 63 | |
link.c | H A D | 08-Nov-2021 | 705 | 36 | 14 | |
mkdtemp.c | H A D | 08-Nov-2021 | 7.6 KiB | 294 | 165 | |
noblock.c | H A D | 08-Nov-2021 | 1.4 KiB | 67 | 34 | |
open.c | H A D | 08-Nov-2021 | 5.8 KiB | 217 | 136 | |
path.c | H A D | 08-Nov-2021 | 20.2 KiB | 909 | 501 | |
pg_bitutils.c | H A D | 08-Nov-2021 | 8.3 KiB | 322 | 207 | |
pg_crc32c_armv8.c | H A D | 08-Nov-2021 | 1.5 KiB | 76 | 47 | |
pg_crc32c_armv8_choose.c | H A D | 08-Nov-2021 | 2.4 KiB | 96 | 47 | |
pg_crc32c_sb8.c | H A D | 08-Nov-2021 | 52.9 KiB | 1,170 | 1,118 | |
pg_crc32c_sse42.c | H A D | 08-Nov-2021 | 1.5 KiB | 70 | 34 | |
pg_crc32c_sse42_choose.c | H A D | 08-Nov-2021 | 1.6 KiB | 65 | 31 | |
pg_strong_random.c | H A D | 08-Nov-2021 | 3.9 KiB | 183 | 87 | |
pgcheckdir.c | H A D | 08-Nov-2021 | 2 KiB | 91 | 50 | |
pgmkdirp.c | H A D | 08-Nov-2021 | 4.1 KiB | 149 | 72 | |
pgsleep.c | H A D | 08-Nov-2021 | 1.9 KiB | 64 | 23 | |
pgstrcasecmp.c | H A D | 08-Nov-2021 | 3.5 KiB | 152 | 84 | |
pgstrsignal.c | H A D | 08-Nov-2021 | 1.8 KiB | 65 | 14 | |
pqsignal.c | H A D | 08-Nov-2021 | 1.7 KiB | 62 | 24 | |
pread.c | H A D | 08-Nov-2021 | 1.1 KiB | 59 | 34 | |
preadv.c | H A D | 08-Nov-2021 | 1.2 KiB | 59 | 37 | |
pthread-win32.h | H A D | 08-Nov-2021 | 474 | 23 | 12 | |
pthread_barrier_wait.c | H A D | 08-Nov-2021 | 1.7 KiB | 78 | 48 | |
pwrite.c | H A D | 08-Nov-2021 | 1.1 KiB | 56 | 32 | |
pwritev.c | H A D | 08-Nov-2021 | 1.2 KiB | 59 | 37 | |
qsort.c | H A D | 08-Nov-2021 | 409 | 23 | 13 | |
qsort_arg.c | H A D | 08-Nov-2021 | 325 | 15 | 9 | |
quotes.c | H A D | 08-Nov-2021 | 1.3 KiB | 52 | 19 | |
random.c | H A D | 08-Nov-2021 | 472 | 26 | 7 | |
setenv.c | H A D | 08-Nov-2021 | 1.2 KiB | 49 | 19 | |
snprintf.c | H A D | 08-Nov-2021 | 34.8 KiB | 1,516 | 1,104 | |
srandom.c | H A D | 08-Nov-2021 | 497 | 26 | 7 | |
strerror.c | H A D | 08-Nov-2021 | 6.7 KiB | 315 | 242 | |
strlcat.c | H A D | 08-Nov-2021 | 1.7 KiB | 61 | 26 | |
strlcpy.c | H A D | 08-Nov-2021 | 2 KiB | 72 | 24 | |
strnlen.c | H A D | 08-Nov-2021 | 816 | 34 | 9 | |
strtof.c | H A D | 08-Nov-2021 | 3.4 KiB | 133 | 70 | |
system.c | H A D | 08-Nov-2021 | 2.5 KiB | 118 | 56 | |
tar.c | H A D | 08-Nov-2021 | 4.6 KiB | 207 | 106 | |
thread.c | H A D | 08-Nov-2021 | 3.7 KiB | 117 | 38 | |
unsetenv.c | H A D | 08-Nov-2021 | 1.8 KiB | 66 | 21 | |
win32env.c | H A D | 08-Nov-2021 | 3.9 KiB | 164 | 98 | |
win32error.c | H A D | 08-Nov-2021 | 2.9 KiB | 209 | 187 | |
win32security.c | H A D | 08-Nov-2021 | 4.1 KiB | 179 | 111 | |
win32setlocale.c | H A D | 08-Nov-2021 | 6 KiB | 194 | 81 | |
win32stat.c | H A D | 08-Nov-2021 | 7.1 KiB | 308 | 188 | |
win32ver.rc | H A D | 08-Nov-2021 | 1.1 KiB | 36 | 32 |
README
1src/port/README 2 3libpgport 4========= 5 6libpgport must have special behavior. It supplies functions to both 7libraries and applications. However, there are two complexities: 8 91) Libraries need to use object files that are compiled with exactly 10the same flags as the library. libpgport might not use the same flags, 11so it is necessary to recompile the object files for individual 12libraries. This is done by removing -lpgport from the link line: 13 14 # Need to recompile any libpgport object files 15 LIBS := $(filter-out -lpgport, $(LIBS)) 16 17and adding infrastructure to recompile the object files: 18 19 OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \ 20 connect.o misc.o path.o exec.o \ 21 $(filter strlcat.o, $(LIBOBJS)) 22 23The problem is that there is no testing of which object files need to be 24added, but missing functions usually show up when linking user 25applications. 26 272) For applications, we use -lpgport before -lpq, so the static files 28from libpgport are linked first. This avoids having applications 29dependent on symbols that are _used_ by libpq, but not intended to be 30exported by libpq. libpq's libpgport usage changes over time, so such a 31dependency is a problem. Windows, Linux, AIX, and macOS use an export 32list to control the symbols exported by libpq. 33