2
0

be-fsstubs.h 910 B

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