Lines Matching refs:fd
452 int fd;
482 if ((fd = __pos4obj_open(path, MQ_PERM_TYPE, oflag,
487 (void) __close_nc(fd);
523 if ((fd = __pos4obj_open(path, MQ_DATA_TYPE,
530 if (fchmod(fd, mode) < 0)
533 if (ftruncate64(fd, (off64_t)total_size) < 0)
536 if ((fd = __pos4obj_open(path, MQ_DATA_TYPE,
542 if (read(fd, &total_size, sizeof (total_size)) !=
562 MAP_SHARED, fd, (off64_t)0)) == MAP_FAILED)
568 (void) __close_nc(fd);
575 if ((fd = __pos4obj_open(path, MQ_DSCN_TYPE, O_RDWR | O_CREAT,
580 if (ftruncate64(fd, (off64_t)sizeof (struct mq_dn)) < 0)
584 PROT_READ | PROT_WRITE, MAP_SHARED, fd, (off64_t)0)) == MAP_FAILED)
589 (void) __close_nc(fd);
620 (void) __close_nc(fd);