/* =======================================================
*
- * W I N D O W S
+ * W I N D O W S
*
* =======================================================
*/
POOLMEM *errmsg; /* error message buffer */
DWORD rw_bytes; /* Bytes read or written */
DWORD lerror; /* Last error code */
-};
+ int berrno; /* errno */
+ char *prog; /* reader/writer program if any */
+ BPIPE *bpipe; /* pipe for reader */
+ JCR *jcr; /* jcr for editing job codes */
+};
HANDLE bget_handle(BFILE *bfd);
/* =======================================================
*
- * U N I X
+ * U N I X
*
* =======================================================
*/
struct BFILE {
int fid; /* file id on Unix */
int berrno;
-};
+ char *prog; /* reader/writer program if any */
+ BPIPE *bpipe; /* pipe for reader */
+ JCR *jcr; /* jcr for editing job codes */
+};
#endif
int is_bopen(BFILE *bfd);
int set_win32_backup(BFILE *bfd);
int set_portable_backup(BFILE *bfd);
+void set_prog(BFILE *bfd, char *prog, JCR *jcr);
int have_win32_api();
int is_portable_backup(BFILE *bfd);
int is_stream_supported(int stream);
int is_win32_stream(int stream);
-char *berror(BFILE *bfd);
+char *xberror(BFILE *bfd); /* DO NOT USE -- use berrno class */
int bopen(BFILE *bfd, const char *fname, int flags, mode_t mode);
+#ifdef HAVE_DARWIN_OS
+int bopen_rsrc(BFILE *bfd, const char *fname, int flags, mode_t mode);
+#endif
int bclose(BFILE *bfd);
ssize_t bread(BFILE *bfd, void *buf, size_t count);
ssize_t bwrite(BFILE *bfd, void *buf, size_t count);