Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.gitignore | H A D | 08-Nov-2021 | 49 | 4 | 3 | |
Makefile | H A D | 08-Nov-2021 | 3.6 KiB | 114 | 49 | |
README | H A D | 08-Nov-2021 | 1.3 KiB | 33 | 24 | |
chklocale.c | H A D | 08-Nov-2021 | 10.9 KiB | 465 | 296 | |
crypt.c | H A D | 08-Nov-2021 | 29.5 KiB | 1,086 | 699 | |
dirent.c | H A D | 08-Nov-2021 | 2.4 KiB | 126 | 92 | |
dirmod.c | H A D | 08-Nov-2021 | 9.2 KiB | 393 | 257 | |
erand48.c | H A D | 08-Nov-2021 | 2.9 KiB | 105 | 63 | |
fls.c | H A D | 08-Nov-2021 | 2.3 KiB | 65 | 11 | |
fseeko.c | H A D | 08-Nov-2021 | 1.5 KiB | 85 | 49 | |
getaddrinfo.c | H A D | 08-Nov-2021 | 9 KiB | 413 | 275 | |
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 | 112 | 73 | |
gettimeofday.c | H A D | 08-Nov-2021 | 4.1 KiB | 120 | 33 | |
inet_aton.c | H A D | 08-Nov-2021 | 4 KiB | 148 | 77 | |
inet_net_ntop.c | H A D | 08-Nov-2021 | 7.1 KiB | 299 | 192 | |
isinf.c | H A D | 08-Nov-2021 | 1.2 KiB | 78 | 54 | |
kill.c | H A D | 08-Nov-2021 | 1.9 KiB | 98 | 63 | |
mkdtemp.c | H A D | 08-Nov-2021 | 7.5 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.3 KiB | 201 | 130 | |
path.c | H A D | 08-Nov-2021 | 20.2 KiB | 909 | 501 | |
pg_crc32c_choose.c | H A D | 08-Nov-2021 | 1.6 KiB | 64 | 31 | |
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 | |
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 | |
pthread-win32.h | H A D | 08-Nov-2021 | 474 | 23 | 12 | |
qsort.c | H A D | 08-Nov-2021 | 6.2 KiB | 236 | 152 | |
qsort_arg.c | H A D | 08-Nov-2021 | 6.1 KiB | 227 | 147 | |
quotes.c | H A D | 08-Nov-2021 | 1.3 KiB | 52 | 19 | |
random.c | H A D | 08-Nov-2021 | 468 | 26 | 7 | |
rint.c | H A D | 08-Nov-2021 | 2.3 KiB | 99 | 39 | |
snprintf.c | H A D | 08-Nov-2021 | 26.4 KiB | 1,181 | 905 | |
sprompt.c | H A D | 08-Nov-2021 | 4.4 KiB | 179 | 95 | |
srandom.c | H A D | 08-Nov-2021 | 497 | 26 | 7 | |
strerror.c | H A D | 08-Nov-2021 | 502 | 31 | 14 | |
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 | |
system.c | H A D | 08-Nov-2021 | 2.5 KiB | 119 | 57 | |
tar.c | H A D | 08-Nov-2021 | 4.6 KiB | 205 | 106 | |
thread.c | H A D | 08-Nov-2021 | 4.4 KiB | 147 | 55 | |
unsetenv.c | H A D | 08-Nov-2021 | 1.6 KiB | 58 | 15 | |
win32env.c | H A D | 08-Nov-2021 | 3.8 KiB | 190 | 137 | |
win32error.c | H A D | 08-Nov-2021 | 2.9 KiB | 207 | 185 | |
win32security.c | H A D | 08-Nov-2021 | 6.4 KiB | 284 | 196 | |
win32setlocale.c | H A D | 08-Nov-2021 | 5.9 KiB | 194 | 81 | |
win32ver.rc | H A D | 08-Nov-2021 | 786 | 32 | 29 |
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 snprintf.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. Win32, Linux, and Darwin use an export list to 32control the symbols exported by libpq. 33