1 /* 2 * device_io.c - Default device io operations. Part of the Linux-NTFS project. 3 * 4 * Copyright (c) 2003-2006 Anton Altaparmakov 5 * 6 * This program/include file is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as published 8 * by the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program/include file is distributed in the hope that it will be 12 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty 13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program (in the main directory of the Linux-NTFS 18 * distribution in the file COPYING); if not, write to the Free Software 19 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 */ 21 22 #include "config.h" 23 24 #ifndef NO_NTFS_DEVICE_DEFAULT_IO_OPS 25 26 #if defined(__CYGWIN32__) 27 28 /* On Cygwin; use Win32 low level device operations. */ 29 #include "win32_io.c" 30 31 #elif defined(__FreeBSD__) 32 33 /* On FreeBSD; need to use sector aligned i/o. */ 34 #include "freebsd_io.c" 35 36 #else 37 38 /* 39 * Not on Cygwin or FreeBSD; use standard Unix style low level device 40 * operations. 41 */ 42 #include "unix_io.c" 43 44 #endif 45 46 #endif /* NO_NTFS_DEVICE_DEFAULT_IO_OPS */