netatalk
4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
Loading...
Searching...
No Matches
macbin.h
Go to the documentation of this file.
1
#ifndef _MACBIN_H
2
#define _MACBIN_H 1
3
4
/* Forward Declarations */
5
struct
FHeader
;
6
7
int
bin_open
(
char
*binfile,
int
flags,
struct
FHeader
*fh,
int
options);
8
int
bin_close
(
int
keepflag);
9
const
char
*
bin_path
(
void
);
10
ssize_t
bin_read
(
int
fork,
char
*
buffer
,
size_t
length);
11
ssize_t
bin_write
(
int
fork,
char
*
buffer
,
size_t
length);
12
int
bin_header_read
(
struct
FHeader
*fh,
int
revision);
13
int
bin_header_write
(
struct
FHeader
*fh);
14
int
test_header
(
void
);
15
16
#endif
/* _MACBIN_H */
test_header
int test_header(void)
Test the input header for a supported MacBinary revision.
Definition
macbin.c:780
bin_read
ssize_t bin_read(int fork, char *buffer, size_t length)
Read data from a MacBinary fork.
Definition
macbin.c:426
bin_header_read
int bin_header_read(struct FHeader *fh, int revision)
Read a MacBinary header into a file header.
Definition
macbin.c:576
bin_write
ssize_t bin_write(int fork, char *buffer, size_t length)
Write data to a MacBinary fork.
Definition
macbin.c:498
bin_header_write
int bin_header_write(struct FHeader *fh)
Write a file header as a MacBinary header.
Definition
macbin.c:672
bin_path
const char * bin_path(void)
Definition
macbin.c:406
bin_close
int bin_close(int keepflag)
Close the active MacBinary file.
Definition
macbin.c:371
bin_open
int bin_open(char *binfile, int flags, struct FHeader *fh, int options)
Open a MacBinary file for reading or writing.
Definition
macbin.c:279
buffer
char buffer[MAXPATHLEN+2]
Definition
netacnv.c:35
FHeader
Definition
megatron.h:59
bin
nad
macbin.h
Generated by
1.18.0