Showing posts with label open(). Show all posts
Showing posts with label open(). Show all posts

Thursday, November 22, 2012

open() function







     52    {
     53       int fd = -1;
     54       do
     55       {
     56          fd = open(RtdDev, O_RDWR);
     57       } while(fd < 0 && errno == EINTR);
     58       if(fd < 0)
     59       {
     60          dbprint("osiRtd: Cannot open '%s': %s\n", RtdDev, strerror(errno));
     61          return -1;
     62       }
     63
     64       return fd;
     65    }

Labels