scsi.c
来自「IPcop软路由防火墙 FREE 开源源代码」· C语言 代码 · 共 29 行
C
29 行
/* IPCop install program. * * This program is distributed under the terms of the GNU General Public * Licence. See the file COPYING for details. * * (c) Alan Hourihane, 2003 <alanh@fairlite.demon.co.uk> * * $Id: scsi.c * */#include "install.h"inttry_scsi(char *disk_device){ int fd; char dev[10]; sprintf(dev, "/dev/%s", disk_device); if ((fd = open(dev, O_RDONLY)) < 0) return 0; close(fd); return 1;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?