c++ Programming Glossary: scsi_serial
USB-drive serial number under linux C++ http://stackoverflow.com/questions/2432759/usb-drive-serial-number-under-linux-c return 0 int main int argc char argv char dev dev sda char scsi_serial 255 int rc int fd fd open dev O_RDONLY O_NONBLOCK if fd 0 perror.. fd open dev O_RDONLY O_NONBLOCK if fd 0 perror dev memset scsi_serial 0 sizeof scsi_serial rc scsi_get_serial fd scsi_serial 255 scsi_serial.. O_NONBLOCK if fd 0 perror dev memset scsi_serial 0 sizeof scsi_serial rc scsi_get_serial fd scsi_serial 255 scsi_serial 3 is the length..
|