diff options
author | jbj <devnull@localhost> | 1999-11-27 00:15:07 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-11-27 00:15:07 +0000 |
commit | db3213b0574239c732f4a9e59a1e297589d3eb3c (patch) | |
tree | 6e1f1b459deef6069a9390b3de596ed4529ade05 /lib/rpmio.h | |
parent | 4d26dfa475765173ecb06bf17bda66ddb179acad (diff) | |
download | librpm-tizen-db3213b0574239c732f4a9e59a1e297589d3eb3c.tar.gz librpm-tizen-db3213b0574239c732f4a9e59a1e297589d3eb3c.tar.bz2 librpm-tizen-db3213b0574239c732f4a9e59a1e297589d3eb3c.zip |
lib/stubs.c: Add portability routines to rpmlib for portable shared rpmlib.
lib/rpmio.c: Internalize single use of inet_aton().
lib/rpmio.h: Include libio.h retrofit here rather than in system.h.
configure.in: Remove regex/glob tests.
CVS patchset: 3440
CVS date: 1999/11/27 00:15:07
Diffstat (limited to 'lib/rpmio.h')
-rw-r--r-- | lib/rpmio.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/rpmio.h b/lib/rpmio.h index 13e7e3686..05430a3ae 100644 --- a/lib/rpmio.h +++ b/lib/rpmio.h @@ -13,6 +13,21 @@ typedef /*@observer@*/ struct FDIO_s * FDIO_t; extern "C" { #endif +#if HAVE_LIBIO_H +#include <libio.h> +#else +typedef ssize_t cookie_read_function_t (void *cookie, void *buf, size_t nbytes); +typedef ssize_t cookie_write_function_t (void *cookie, const void *buf, size_t nbytes); +typedef int cookie_seek_function_t (void *cookie, fpos_t *pos, int whence); +typedef int cookie_close_function_t (void *cookie); +typedef struct { + cookie_read_function_t *read; + cookie_write_function_t *write; + cookie_seek_function_t *seek; + cookie_close_function_t *close; +} cookie_io_functions_t; +#endif + typedef /*@null@*/ FD_t fdio_ref_function_t ( /*@only@*/ void * cookie, const char * msg, const char * file, unsigned line); typedef /*@null@*/ FD_t fdio_deref_function_t ( /*@only@*/ FD_t fd, |