/*
 * This program slow down the CDROM at /dev/hdd to 2x
 */

#include <fcntl.h>
#include <linux/cdrom.h>

int main(int argcchar **argvchar **envp) {
        int fd=open("/dev/hdd"O_RDONLY);
        if(!fd) {
                perror("open");
                return -1;
        }
        ioctl(fd,CDROM_SELECT_SPEED,2);
        return 0;
}