1*9508192eSchristos /* Id: dba_write.h,v 1.1 2016/07/19 21:31:55 schwarze Exp */ 2*9508192eSchristos /* 3*9508192eSchristos * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> 4*9508192eSchristos * 5*9508192eSchristos * Permission to use, copy, modify, and distribute this software for any 6*9508192eSchristos * purpose with or without fee is hereby granted, provided that the above 7*9508192eSchristos * copyright notice and this permission notice appear in all copies. 8*9508192eSchristos * 9*9508192eSchristos * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10*9508192eSchristos * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11*9508192eSchristos * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12*9508192eSchristos * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13*9508192eSchristos * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14*9508192eSchristos * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15*9508192eSchristos * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16*9508192eSchristos * 17*9508192eSchristos * Internal interface to low-level functions 18*9508192eSchristos * for serializing allocation-based data to disk. 19*9508192eSchristos * For use by dba_array.c and dba.c only. 20*9508192eSchristos */ 21*9508192eSchristos 22*9508192eSchristos int dba_open(const char *); 23*9508192eSchristos int dba_close(void); 24*9508192eSchristos int32_t dba_tell(void); 25*9508192eSchristos void dba_seek(int32_t); 26*9508192eSchristos int32_t dba_align(void); 27*9508192eSchristos int32_t dba_skip(int32_t, int32_t); 28*9508192eSchristos void dba_char_write(int); 29*9508192eSchristos void dba_str_write(const char *); 30*9508192eSchristos void dba_int_write(int32_t); 31