diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2017-07-07 17:03:42 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2017-07-07 17:03:42 +0000 |
| commit | 33a9b234e7087f573ef08cd7318c6497ba08b439 (patch) | |
| tree | d0ea40ad3bf5463a3c55795977c71bcb7d781b4b /src/lib/krb5/rcache/rc_io.h | |
Diffstat (limited to 'src/lib/krb5/rcache/rc_io.h')
| -rw-r--r-- | src/lib/krb5/rcache/rc_io.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/lib/krb5/rcache/rc_io.h b/src/lib/krb5/rcache/rc_io.h new file mode 100644 index 000000000000..f5ab23903822 --- /dev/null +++ b/src/lib/krb5/rcache/rc_io.h @@ -0,0 +1,60 @@ +/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/rcache/rc_io.h */ +/* + * This file of the Kerberos V5 software is derived from public-domain code + * contributed by Daniel J. Bernstein, <brnstnd@acf10.nyu.edu>. + * + */ + +/* + * Declarations for the I/O sub-package of the replay cache + */ + +#ifndef KRB5_RC_IO_H +#define KRB5_RC_IO_H + +typedef struct krb5_rc_iostuff { + int fd; +#ifdef MSDOS_FILESYSTEM + long mark; +#else + off_t mark; /* on newer systems, should be pos_t */ +#endif + char *fn; +} krb5_rc_iostuff; + +/* first argument is always iostuff for result file */ + +krb5_error_code +krb5_rc_io_creat(krb5_context, krb5_rc_iostuff *, char **); + +krb5_error_code +krb5_rc_io_open(krb5_context, krb5_rc_iostuff *, char *); + +krb5_error_code +krb5_rc_io_move(krb5_context, krb5_rc_iostuff *, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_write(krb5_context, krb5_rc_iostuff *, krb5_pointer, unsigned int); + +krb5_error_code +krb5_rc_io_read(krb5_context, krb5_rc_iostuff *, krb5_pointer, unsigned int); + +krb5_error_code +krb5_rc_io_close(krb5_context, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_destroy(krb5_context, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_mark(krb5_context, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_unmark(krb5_context, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_sync(krb5_context, krb5_rc_iostuff *); + +long +krb5_rc_io_size(krb5_context, krb5_rc_iostuff *); +#endif |
