Hackfut Security File Manager
Current Path:
/opt/alt/postgresql11/usr/include/pgsql/server/utils
opt
/
alt
/
postgresql11
/
usr
/
include
/
pgsql
/
server
/
utils
/
📁
..
📄
acl.h
(12.79 KB)
📄
array.h
(10.61 KB)
📄
ascii.h
(579 B)
📄
attoptcache.h
(725 B)
📄
builtins.h
(47.77 KB)
📄
bytea.h
(1.58 KB)
📄
cash.h
(2.07 KB)
📄
catcache.h
(7.51 KB)
📄
combocid.h
(698 B)
📄
date.h
(7.73 KB)
📄
datetime.h
(9.92 KB)
📄
datum.h
(1.48 KB)
📄
dynahash.h
(498 B)
📄
dynamic_loader.h
(648 B)
📄
elog.h
(12.56 KB)
📄
errcodes.h
(19.61 KB)
📄
fmgroids.h
(61.09 KB)
📄
fmgrtab.h
(1.15 KB)
📄
formatting.h
(1.41 KB)
📄
geo_decls.h
(15.86 KB)
📄
guc.h
(13.19 KB)
📄
guc_tables.h
(7.15 KB)
📄
help_config.h
(432 B)
📄
hsearch.h
(5.51 KB)
📄
inet.h
(2.66 KB)
📄
int8.h
(4.03 KB)
📄
inval.h
(1.81 KB)
📄
json.h
(916 B)
📄
logtape.h
(1.5 KB)
📄
lsyscache.h
(6.51 KB)
📄
memutils.h
(5.2 KB)
📄
nabstime.h
(5.79 KB)
📄
numeric.h
(1.88 KB)
📄
palloc.h
(3.92 KB)
📄
pg_crc.h
(4.36 KB)
📄
pg_crc_tables.h
(19.73 KB)
📄
pg_locale.h
(2.59 KB)
📄
pg_lzcompress.h
(2.97 KB)
📄
pg_rusage.h
(847 B)
📄
plancache.h
(8.02 KB)
📄
portal.h
(9.22 KB)
📄
probes.h
(37.93 KB)
📄
ps_status.h
(668 B)
📄
rangetypes.h
(7.4 KB)
📄
rbtree.h
(2.26 KB)
📄
rel.h
(12.27 KB)
📄
relcache.h
(3.17 KB)
📄
relmapper.h
(1.68 KB)
📄
reltrigger.h
(1.95 KB)
📄
resowner.h
(5.07 KB)
📄
selfuncs.h
(7.5 KB)
📄
snapmgr.h
(1.59 KB)
📄
snapshot.h
(2.59 KB)
📄
sortsupport.h
(5.3 KB)
📄
spccache.h
(556 B)
📄
syscache.h
(5.51 KB)
📄
timestamp.h
(9.5 KB)
📄
tqual.h
(3.5 KB)
📄
tuplesort.h
(4.62 KB)
📄
tuplestore.h
(3.14 KB)
📄
typcache.h
(4.26 KB)
📄
tzparser.h
(1.13 KB)
📄
uuid.h
(861 B)
📄
varbit.h
(4.27 KB)
📄
xml.h
(3.89 KB)
Editing: pg_crc.h
/* * pg_crc.h * * PostgreSQL CRC support * * See Ross Williams' excellent introduction * A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS, available from * http://www.ross.net/crc/ or several other net sites. * * We use a normal (not "reflected", in Williams' terms) CRC, using initial * all-ones register contents and a final bit inversion. * * The 64-bit variant is not used as of PostgreSQL 8.1, but we retain the * code for possible future use. * * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/include/utils/pg_crc.h */ #ifndef PG_CRC_H #define PG_CRC_H /* ugly hack to let this be used in frontend and backend code on Cygwin */ #ifdef FRONTEND #define CRCDLLIMPORT #else #define CRCDLLIMPORT PGDLLIMPORT #endif typedef uint32 pg_crc32; /* Initialize a CRC accumulator */ #define INIT_CRC32(crc) ((crc) = 0xFFFFFFFF) /* Finish a CRC calculation */ #define FIN_CRC32(crc) ((crc) ^= 0xFFFFFFFF) /* Accumulate some (more) bytes into a CRC */ #define COMP_CRC32(crc, data, len) \ do { \ const unsigned char *__data = (const unsigned char *) (data); \ uint32 __len = (len); \ \ while (__len-- > 0) \ { \ int __tab_index = ((int) ((crc) >> 24) ^ *__data++) & 0xFF; \ (crc) = pg_crc32_table[__tab_index] ^ ((crc) << 8); \ } \ } while (0) /* Check for equality of two CRCs */ #define EQ_CRC32(c1,c2) ((c1) == (c2)) /* Constant table for CRC calculation */ extern CRCDLLIMPORT const uint32 pg_crc32_table[]; #ifdef PROVIDE_64BIT_CRC /* * If we use a 64-bit integer type, then a 64-bit CRC looks just like the * usual sort of implementation. However, we can also fake it with two * 32-bit registers. Experience has shown that the two-32-bit-registers code * is as fast as, or even much faster than, the 64-bit code on all but true * 64-bit machines. We use SIZEOF_VOID_P to check the native word width. */ #if SIZEOF_VOID_P < 8 /* * crc0 represents the LSBs of the 64-bit value, crc1 the MSBs. Note that * with crc0 placed first, the output of 32-bit and 64-bit implementations * will be bit-compatible only on little-endian architectures. If it were * important to make the two possible implementations bit-compatible on * all machines, we could do a configure test to decide how to order the * two fields, but it seems not worth the trouble. */ typedef struct pg_crc64 { uint32 crc0; uint32 crc1; } pg_crc64; /* Initialize a CRC accumulator */ #define INIT_CRC64(crc) ((crc).crc0 = 0xffffffff, (crc).crc1 = 0xffffffff) /* Finish a CRC calculation */ #define FIN_CRC64(crc) ((crc).crc0 ^= 0xffffffff, (crc).crc1 ^= 0xffffffff) /* Accumulate some (more) bytes into a CRC */ #define COMP_CRC64(crc, data, len) \ do { \ uint32 __crc0 = (crc).crc0; \ uint32 __crc1 = (crc).crc1; \ unsigned char *__data = (unsigned char *) (data); \ uint32 __len = (len); \ \ while (__len-- > 0) \ { \ int __tab_index = ((int) (__crc1 >> 24) ^ *__data++) & 0xFF; \ __crc1 = pg_crc64_table1[__tab_index] ^ ((__crc1 << 8) | (__crc0 >> 24)); \ __crc0 = pg_crc64_table0[__tab_index] ^ (__crc0 << 8); \ } \ (crc).crc0 = __crc0; \ (crc).crc1 = __crc1; \ } while (0) /* Check for equality of two CRCs */ #define EQ_CRC64(c1,c2) ((c1).crc0 == (c2).crc0 && (c1).crc1 == (c2).crc1) /* Constant table for CRC calculation */ extern CRCDLLIMPORT const uint32 pg_crc64_table0[]; extern CRCDLLIMPORT const uint32 pg_crc64_table1[]; #else /* use int64 implementation */ typedef struct pg_crc64 { uint64 crc0; } pg_crc64; /* Initialize a CRC accumulator */ #define INIT_CRC64(crc) ((crc).crc0 = UINT64CONST(0xffffffffffffffff)) /* Finish a CRC calculation */ #define FIN_CRC64(crc) ((crc).crc0 ^= UINT64CONST(0xffffffffffffffff)) /* Accumulate some (more) bytes into a CRC */ #define COMP_CRC64(crc, data, len) \ do { \ uint64 __crc0 = (crc).crc0; \ unsigned char *__data = (unsigned char *) (data); \ uint32 __len = (len); \ \ while (__len-- > 0) \ { \ int __tab_index = ((int) (__crc0 >> 56) ^ *__data++) & 0xFF; \ __crc0 = pg_crc64_table[__tab_index] ^ (__crc0 << 8); \ } \ (crc).crc0 = __crc0; \ } while (0) /* Check for equality of two CRCs */ #define EQ_CRC64(c1,c2) ((c1).crc0 == (c2).crc0) /* Constant table for CRC calculation */ extern CRCDLLIMPORT const uint64 pg_crc64_table[]; #endif /* SIZEOF_VOID_P < 8 */ #endif /* PROVIDE_64BIT_CRC */ #endif /* PG_CRC_H */
Upload File
Create Folder