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