PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
be-fsstubs.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * be-fsstubs.h
4  *
5  *
6  *
7  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/libpq/be-fsstubs.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef BE_FSSTUBS_H
15 #define BE_FSSTUBS_H
16 
17 /*
18  * compatibility option for access control
19  */
20 extern bool lo_compat_privileges;
21 
22 /*
23  * These are not fmgr-callable, but are available to C code.
24  * Probably these should have had the underscore-free names,
25  * but too late now...
26  */
27 extern int lo_read(int fd, char *buf, int len);
28 extern int lo_write(int fd, const char *buf, int len);
29 
30 /*
31  * Cleanup LOs at xact commit/abort
32  */
33 extern void AtEOXact_LargeObject(bool isCommit);
34 extern void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid,
35  SubTransactionId parentSubid);
36 
37 #endif /* BE_FSSTUBS_H */
int lo_read(int fd, char *buf, int len)
Definition: be-fsstubs.c:155
void AtEOXact_LargeObject(bool isCommit)
Definition: be-fsstubs.c:633
uint32 SubTransactionId
Definition: c.h:398
static int fd(const char *x, int i)
Definition: preproc-init.c:105
void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid, SubTransactionId parentSubid)
Definition: be-fsstubs.c:674
static char * buf
Definition: pg_test_fsync.c:65
bool lo_compat_privileges
Definition: be-fsstubs.c:57
int lo_write(int fd, const char *buf, int len)
Definition: be-fsstubs.c:189