/titanic_41/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_rfd.c | 71 rfd_find_prev_class(rfd_t *rfd, rfd_class_t class) in rfd_find_prev_class() argument 73 while (rfd != NULL && rfd->rfd_class != class) in rfd_find_prev_class() 74 rfd = rfd->rfd_prev; in rfd_find_prev_class() 75 return (rfd); in rfd_find_prev_class() 82 rfd_revoke_fd(rfd_t *rfd) in rfd_revoke_fd() argument 84 if (rfd->rfd_revoke != NULL) in rfd_revoke_fd() 85 rfd->rfd_revoke(rfd); in rfd_revoke_fd() 86 return (rfd_close(rfd->rfd_fd)); in rfd_revoke_fd() 96 rfd_t *rfd = NULL; in rfd_revoke_next() local 110 rfd = rfd_find_prev_class(tail, RFD_RESERVED); in rfd_revoke_next() [all …]
|
H A D | rcapd_rfd.h | 53 typedef struct rfd { struct 56 void(*rfd_revoke)(struct rfd *); /* revocation function */ argument 59 struct rfd *rfd_next; /* list */ argument 60 struct rfd *rfd_prev; argument 62 struct rfd *rfd_prev_class; /* link to previous of same */ argument 67 int rfd_open(char *, int, rfd_class_t, void(*)(struct rfd *), void *, int,
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/ |
H A D | subr.c | 91 FILE *rfd; in open_rulesfile() local 101 rfd = fopen(rulesnam, "w"); in open_rulesfile() 102 if (rfd != NULL) fclose(rfd); in open_rulesfile() 103 rfd = fopen(rulesnam, "r+"); in open_rulesfile() 104 if (rfd != NULL) { in open_rulesfile() 116 rfd = fopen(rulesnam, "w"); in open_rulesfile() 117 if (rfd != NULL) fclose(rfd); in open_rulesfile() 118 rfd = fopen(rulesnam, "r+"); in open_rulesfile() 119 if (rfd != NULL) { in open_rulesfile() 137 return (rfd); in open_rulesfile()
|
H A D | main.c | 50 FILE *rfd; in main() local 71 rfd = open_rulesfile(); in main() 121 fprintf(rfd, "BASE %s\n", optarg); in main() 124 fprintf(rfd, "IGNORE %s\n", optarg); in main() 127 fprintf(rfd, "LIST %s\n", optarg); in main() 132 bld_pack_list(rfd, optarg); in main() 156 fclose(rfd); in main() 157 rfd = fopen(rulesfile, "r"); in main() 158 if (rfd == NULL) { in main() 191 bld_pack_list(rfd, argv[index]); in main() [all …]
|
/titanic_41/usr/src/lib/libast/common/port/ |
H A D | astcopy.c | 51 astcopy(int rfd, int wfd, off_t n) in astcopy() argument 67 if (!fstat(rfd, &st) && S_ISREG(st.st_mode) && (pos = lseek(rfd, (off_t)0, 1)) != ((off_t)-1)) in astcopy() 72 …if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos))… in astcopy() 74 if (write(wfd, mapbuf, mapsize) != mapsize || lseek(rfd, mapsize, 1) == ((off_t)-1)) return(-1); in astcopy() 88 if ((c = read(rfd, buf, (size_t)n)) > 0 && write(wfd, buf, (size_t)c) != c) c = -1; in astcopy()
|
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_open.c | 70 int rfd, sverrno; local 73 if (fname != NULL && (rfd = open(fname, flags | O_BINARY, mode)) < 0) 118 t->bt_rfd = rfd; 127 if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) { 135 slow: if ((t->bt_rfp = fdopen(rfd, "rb")) == NULL) 151 if (fstat(rfd, &sb)) 175 PROT_READ, MAP_PRIVATE, rfd, 220 (void)close(rfd);
|
/titanic_41/usr/src/cmd/hal/probing/storage/ |
H A D | probe-storage.c | 329 int rfd = -1; in main() local 388 if ((rfd = open (raw_device_file, O_RDONLY | O_NONBLOCK)) < 0) { in main() 395 get_cdrom_properties (rfd, cs); in main() 397 get_disk_properties (rfd, cs); in main() 405 got_media = get_media_info(rfd, &minfo); in main() 414 if (check_floppy(rfd, &is_write_protected)) { in main() 420 got_media = get_media_info(rfd, &minfo); in main() 425 if ((ioctl(rfd, DKIOCREADONLY, &rdonly) == 0) && rdonly) { in main() 442 if (read_extvtoc(rfd, &vtoc) >= 0) { in main() 451 } else if (!is_cdrom && (efi_alloc_and_read(rfd, &gpt) >= 0)) { in main() [all …]
|
/titanic_41/usr/src/cmd/sendmail/src/ |
H A D | sfsasl.c | 577 tls_retry(ssl, rfd, wfd, tlsstart, timeout, err, where) in tls_retry() argument 579 int rfd; 618 where, rfd, wfd, err); 622 ((err == SSL_ERROR_WANT_READ && rfd >= FD_SETSIZE) || 629 where, rfd, wfd); 640 FD_SET(rfd, &ssl_maskr); 642 FD_SET(rfd, &ssl_maskx); 645 ret = select(rfd + 1, &ssl_maskr, NULL, &ssl_maskx, 658 FD_SET(rfd, &ssl_maskx); 718 int r, rfd, wfd, try, ssl_err; local [all …]
|
/titanic_41/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_dev.c | 1086 _rdc_alloc_buf(rdc_fd_t *rfd, nsc_off_t pos, nsc_size_t len, int flag, in _rdc_alloc_buf() argument 1089 rdc_k_info_t *krdc = rfd->rdc_info; in _rdc_alloc_buf() 1097 if (RDC_IS_BMP(rfd) || RDC_IS_QUE(rfd)) in _rdc_alloc_buf() 1149 h = (rdc_buf_t *)_rdc_alloc_handle(NULL, NULL, NULL, rfd); in _rdc_alloc_buf() 1365 rdc_fd_t *rfd; in _rdc_open() local 1371 rfd = kmem_zalloc(sizeof (*rfd), KM_SLEEP); in _rdc_open() 1372 if (!rfd) in _rdc_open() 1396 kmem_free(rfd, sizeof (*rfd)); in _rdc_open() 1418 rfd->rdc_info = krdc; in _rdc_open() 1420 rfd->rdc_type = RDC_BMP; in _rdc_open() [all …]
|
/titanic_41/usr/src/cmd/hal/probing/volume/ |
H A D | probe-volume.c | 420 int fd, rfd; in main() local 455 fd = rfd = -1; in main() 502 rfd = open (rdevpath, O_RDONLY | O_NONBLOCK); in main() 503 if (rfd < 0) { in main() 508 if (ioctl(rfd, FDGETCHANGE, &fdc) == 0) { in main() 516 if (ioctl(rfd, DKIOCGMEDIAINFO, &mi) != -1) { in main() 533 if (!probe_disc (rfd, ctx, udi, &has_data, &has_audio)) { in main() 564 if ((partition_number = read_extvtoc(rfd, &vtoc)) >= 0) { in main() 574 } else if ((partition_number = efi_alloc_and_read(rfd, &gpt)) >= 0) { in main() 637 if (fstyp_init(rfd, probe_offset, NULL, &fstyp_handle) != 0) { in main() [all …]
|
/titanic_41/usr/src/lib/libast/common/misc/ |
H A D | procclose.c | 44 if (p->rfd >= 0) in procclose() 45 close(p->rfd); in procclose() 46 if (p->wfd >= 0 && p->wfd != p->rfd) in procclose()
|
H A D | procopen.c | 425 proc->rfd = -1; in procopen() 812 proc->rfd = pio[0]; in procopen() 816 if (proc->rfd > 2) in procopen() 817 fcntl(proc->rfd, F_SETFD, FD_CLOEXEC); in procopen()
|
/titanic_41/usr/src/lib/libast/common/disc/ |
H A D | sfdcmore.c | 98 int rfd = sffileno(rp); local 105 tcgetattr(rfd, &old); 110 tcsetattr(rfd, TCSADRAIN, &tty); 111 if ((r = read(rfd, &c, 1)) == 1) 124 tcsetattr(rfd, TCSADRAIN, &old);
|
/titanic_41/usr/src/cmd/krb5/kadmin/server/ |
H A D | ovsec_kadmd.c | 1240 struct pollfd *rfd = 0; in kadm_svc_run() local 1251 rfd = realloc(rfd, sizeof (pollfd_t) * svc_max_pollfd); in kadm_svc_run() 1255 (void) memcpy(rfd, svc_pollfd, in kadm_svc_run() 1259 if (rfd[i].fd == -1) { in kadm_svc_run() 1260 rfd[i].fd = schpw; in kadm_svc_run() 1261 rfd[i].events = POLLIN; in kadm_svc_run() 1266 switch(pollret = poll(rfd, nfds, in kadm_svc_run() 1277 if (rfd[i].revents & POLLIN) { in kadm_svc_run() 1278 if (rfd[i].fd == schpw) in kadm_svc_run() 1283 svc_getreq_poll(rfd, pollret); in kadm_svc_run()
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | channels.c | 166 channel_register_fds(Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument 170 channel_max_fd = MAX(channel_max_fd, rfd); in channel_register_fds() 176 c->rfd = rfd; in channel_register_fds() 178 c->sock = (rfd == wfd) ? rfd : -1; in channel_register_fds() 183 if (nonblock && isatty(c->rfd)) { in channel_register_fds() 184 debug("channel %d: rfd %d isatty", c->self, c->rfd); in channel_register_fds() 197 if (rfd != -1) in channel_register_fds() 198 set_nonblock(rfd); in channel_register_fds() 212 channel_new(char *ctype, int type, int rfd, int wfd, int efd, in channel_new() argument 255 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock); in channel_new() [all …]
|
/titanic_41/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 1120 iprb_dma_t *rfd, *nfd, *lfd; in iprb_rx_add() local 1132 rfd = &ip->rxb[curr]; in iprb_rx_add() 1135 PUTRFD32(rfd, RFD_LNK_OFFSET, nfd->paddr); in iprb_rx_add() 1136 PUTRFD16(rfd, RFD_CTL_OFFSET, RFD_CTL_EL); in iprb_rx_add() 1137 PUTRFD16(rfd, RFD_SIZ_OFFSET, RFD_SIZE - RFD_PKT_OFFSET); in iprb_rx_add() 1138 PUTRFD16(rfd, RFD_CNT_OFFSET, 0); in iprb_rx_add() 1139 SYNCRFD(rfd, 0, RFD_PKT_OFFSET, DDI_DMA_SYNC_FORDEV); in iprb_rx_add() 1142 SYNCRFD(rfd, RFD_CTL_OFFSET, 2, DDI_DMA_SYNC_FORDEV); in iprb_rx_add() 1159 iprb_dma_t *rfd; in iprb_rx() local 1171 rfd = &ip->rxb[ip->rx_index]; in iprb_rx() [all …]
|
/titanic_41/usr/src/cmd/sendmail/libmilter/ |
H A D | worker.c | 337 int nfd, rfd, i; local 458 rfd = poll(pfd, nfd, POLL_TIMEOUT); 464 if (rfd == 0) 470 if (rfd < 0)
|
/titanic_41/usr/src/cmd/bnu/ |
H A D | cu.c | 1440 int rtn = 1, rfd; in r_char() local 1444 rfd = RIOFD(fd); in r_char() 1445 riobuf = &Riobuf[rfd*WRIOBSZ]; in r_char() 1447 if (Riop[rfd] >= &riobuf[Riocnt[rfd]]) { in r_char() 1474 Riop[rfd] = riobuf; in r_char() 1475 Riocnt[rfd] = rtn; in r_char() 1480 _Cxc = *(Riop[rfd]++) & RMASK(fd); /* mask off appropriate bits */ in r_char()
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | cp.c | 224 int rfd; in visit() local 570 if (ent->fts_statp->st_size > 0 && (rfd = open(ent->fts_path, O_RDONLY|O_BINARY)) < 0) in visit() 579 close(rfd); in visit() 584 if (!(ip = sfnew(NiL, NiL, SF_UNBOUND, rfd, SF_READ))) in visit() 587 close(rfd); in visit()
|
/titanic_41/usr/src/lib/libast/common/include/ |
H A D | proc.h | 84 int rfd; /* read fd if applicable */ member
|
/titanic_41/usr/src/lib/libast/amd64/include/ast/ |
H A D | proc.h | 93 int rfd; /* read fd if applicable */ member
|
/titanic_41/usr/src/lib/libast/i386/include/ast/ |
H A D | proc.h | 93 int rfd; /* read fd if applicable */ member
|
/titanic_41/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | proc.h | 93 int rfd; /* read fd if applicable */ member
|
/titanic_41/usr/src/lib/libast/sparc/include/ast/ |
H A D | proc.h | 93 int rfd; /* read fd if applicable */ member
|
/titanic_41/usr/src/cmd/sdiff/ |
H A D | sdiff.c | 151 int rfd = -1; in main() local 237 if ((rfd = mkstemp(rtemp)) == -1 || in main() 238 (right = fdopen(rfd, "w")) == NULL) in main()
|