1 /****************************************************************************** 2 * tools/xenpaging/file_ops.h 3 * 4 * Common file operations. 5 * 6 * Copyright (c) 2009 by Citrix Systems, Inc. (Patrick Colp) 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 23 #ifndef __FILE_OPS_H__ 24 #define __FILE_OPS_H__ 25 26 27 int read_page(int fd, void *page, int i); 28 int write_page(int fd, void *page, int i); 29 30 31 #endif 32 33 34 /* 35 * Local variables: 36 * mode: C 37 * c-file-style: "BSD" 38 * c-basic-offset: 4 39 * indent-tabs-mode: nil 40 * End: 41 */ 42