All pastes #542159 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-05 19:01 UTC
rendered paste body
#include <sys/ioctl.h>
#include <stdio.h>
#include <fcntl.h>
#include <linux/cdrom.h>

#define CDDEVICE "/dev/hdc/"

int main() {

  int cdrom;
  cdrom = open(CDDEVICE,O_RDONLY | O_NONBLOCK);
  ioctl(cdrom,CDROMEJECT,0);
  close(cdrom);
}