1/*-------------------------------------------------------------------------
2 *
3 * be-fsstubs.h
4 *
5 *
6 *
7 * Portions Copyright (c) 1996-2019, 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 * These are not fmgr-callable, but are available to C code.
19 * Probably these should have had the underscore-free names,
20 * but too late now...
21 */
22extern int lo_read(int fd, char *buf, int len);
23extern int lo_write(int fd, const char *buf, int len);
24
25/*
26 * Cleanup LOs at xact commit/abort
27 */
28extern void AtEOXact_LargeObject(bool isCommit);
29extern void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid,
30 SubTransactionId parentSubid);
31
32#endif /* BE_FSSTUBS_H */
33