1*c5c84d16SWarner Losh /* 2*c5c84d16SWarner Losh * file related system call shims and definitions 3*c5c84d16SWarner Losh * 4*c5c84d16SWarner Losh * Copyright (c) 2013 Stacey D. Son 5*c5c84d16SWarner Losh * 6*c5c84d16SWarner Losh * This program is free software; you can redistribute it and/or modify 7*c5c84d16SWarner Losh * it under the terms of the GNU General Public License as published by 8*c5c84d16SWarner Losh * the Free Software Foundation; either version 2 of the License, or 9*c5c84d16SWarner Losh * (at your option) any later version. 10*c5c84d16SWarner Losh * 11*c5c84d16SWarner Losh * This program is distributed in the hope that it will be useful, 12*c5c84d16SWarner Losh * but WITHOUT ANY WARRANTY; without even the implied warranty of 13*c5c84d16SWarner Losh * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*c5c84d16SWarner Losh * GNU General Public License for more details. 15*c5c84d16SWarner Losh * 16*c5c84d16SWarner Losh * You should have received a copy of the GNU General Public License 17*c5c84d16SWarner Losh * along with this program; if not, see <http://www.gnu.org/licenses/>. 18*c5c84d16SWarner Losh */ 19*c5c84d16SWarner Losh 20*c5c84d16SWarner Losh #ifndef BSD_FILE_H_ 21*c5c84d16SWarner Losh #define BSD_FILE_H_ 22*c5c84d16SWarner Losh 23*c5c84d16SWarner Losh #include "qemu/path.h" 24*c5c84d16SWarner Losh 25*c5c84d16SWarner Losh extern struct iovec *lock_iovec(int type, abi_ulong target_addr, int count, 26*c5c84d16SWarner Losh int copy); 27*c5c84d16SWarner Losh extern void unlock_iovec(struct iovec *vec, abi_ulong target_addr, int count, 28*c5c84d16SWarner Losh int copy); 29*c5c84d16SWarner Losh 30*c5c84d16SWarner Losh #endif /* !BSD_FILE_H_ */ 31