1996-07-09 08:22:35 +02:00
|
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
|
* be-fsstubs.h
|
1997-09-07 07:04:48 +02:00
|
|
|
|
*
|
1996-07-09 08:22:35 +02:00
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
|
*
|
1999-06-01 00:53:59 +02:00
|
|
|
|
* $Id: be-fsstubs.h,v 1.9 1999/05/31 22:53:58 tgl Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
|
#ifndef BE_FSSTUBS_H
|
|
|
|
|
#define BE_FSSTUBS_H
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
1997-05-06 09:14:34 +02:00
|
|
|
|
/* Redefine names LOread() and LOwrite() to be lowercase to allow calling
|
1997-09-07 07:04:48 +02:00
|
|
|
|
* using the new v6.1 case-insensitive SQL parser. Define macros to allow
|
|
|
|
|
* the existing code to stay the same. - tgl 97/05/03
|
1997-05-06 09:14:34 +02:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#define LOread(f,l) loread(f,l)
|
|
|
|
|
#define LOwrite(f,b) lowrite(f,b)
|
|
|
|
|
|
1997-09-08 23:56:23 +02:00
|
|
|
|
extern Oid lo_import(text *filename);
|
|
|
|
|
extern int4 lo_export(Oid lobjId, text *filename);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
1997-09-08 04:41:22 +02:00
|
|
|
|
extern Oid lo_creat(int mode);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
1997-09-08 04:41:22 +02:00
|
|
|
|
extern int lo_open(Oid lobjId, int mode);
|
|
|
|
|
extern int lo_close(int fd);
|
|
|
|
|
extern int lo_read(int fd, char *buf, int len);
|
|
|
|
|
extern int lo_write(int fd, char *buf, int len);
|
|
|
|
|
extern int lo_lseek(int fd, int offset, int whence);
|
|
|
|
|
extern int lo_tell(int fd);
|
|
|
|
|
extern int lo_unlink(Oid lobjId);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
1997-05-06 09:14:34 +02:00
|
|
|
|
extern struct varlena *loread(int fd, int len);
|
1997-09-08 04:41:22 +02:00
|
|
|
|
extern int lowrite(int fd, struct varlena * wbuf);
|
1997-05-06 09:14:34 +02:00
|
|
|
|
|
1998-07-21 06:17:30 +02:00
|
|
|
|
/*
|
|
|
|
|
* Added for buffer leak prevention [ Pascal Andr<EFBFBD> <andre@via.ecp.fr> ]
|
|
|
|
|
*/
|
1999-06-01 00:53:59 +02:00
|
|
|
|
extern void lo_commit(bool isCommit);
|
1998-07-21 06:17:30 +02:00
|
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
|
#endif /* BE_FSSTUBS_H */
|