Home
last modified time | relevance | path

Searched refs:cfd (Results 1 – 15 of 15) sorted by relevance

/titanic_41/usr/src/cmd/bnu/
H A Duuglist.c129 FILE *cfd; in rproc() local
134 cfd = fopen(GRADES, "r"); in rproc()
136 while (rdfulline(cfd, line, BUFSIZ) != 0) { in rproc()
142 (void) fclose(cfd); in rproc()
149 FILE *cfd; in uproc() local
154 cfd = fopen(GRADES, "r"); in uproc()
156 while (rdfulline(cfd, line, BUFSIZ) != 0) { in uproc()
164 (void) fclose(cfd); in uproc()
H A Dgrades.c138 FILE *cfd; local
152 cfd = fopen(GRADES, "r");
156 while (rdfulline(cfd, line, BUFSIZ) != 0) {
165 (void) fclose(cfd);
171 (void) fclose(cfd);
194 FILE *cfd; in fdgrade() local
200 cfd = fopen(GRADES, "r"); in fdgrade()
204 for (; rdfulline(cfd, line, BUFSIZ) != 0;) { in fdgrade()
221 (void) fclose(cfd); in fdgrade()
229 (void) fclose(cfd); in fdgrade()
[all …]
/titanic_41/usr/src/lib/libcontract/common/
H A Dlibcontract_priv.c63 int cfd, r; in contract_latest() local
67 if ((cfd = open64(CTFS_ROOT "/process/latest", O_RDONLY)) == -1) in contract_latest()
70 if ((r = ct_status_read(cfd, CTD_COMMON, &st)) != 0) { in contract_latest()
71 (void) close(cfd); in contract_latest()
77 (void) close(cfd); in contract_latest()
H A Dlibcontract.c200 ct_ctl_newct(int cfd, ctevid_t evid, int tfd) in ct_ctl_newct() argument
202 if (ioctl(cfd, CT_CNEWCT, tfd) == -1) in ct_ctl_newct()
/titanic_41/usr/src/lib/libc/port/gen/
H A D_xftw.c277 int fd, cfd; in nocdopendir() local
298 if ((cfd = openat(fd, token, O_RDONLY)) < 0) { in nocdopendir()
305 fd = cfd; in nocdopendir()
324 int fd, cfd; in nocdstat() local
347 if ((cfd = openat(fd, token, O_RDONLY)) < 0) { in nocdstat()
354 fd = cfd; in nocdstat()
H A Dnftw.c691 int fd, cfd; in nocdopendir() local
707 if ((cfd = openat(fd, token, O_RDONLY)) < 0) { in nocdopendir()
714 fd = cfd; in nocdopendir()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncloop.c63 static int cfd, dfd; /* control and data descriptors */ variable
208 cfd = dlpi_fd(dh); in main()
214 if (ioctl(cfd, I_STR, &sioc) < 0) { in main()
277 if (ioctl(cfd, I_STR, &sioc) < 0) { in main()
290 if (ioctl(cfd, I_STR, &sioc) < 0) { in main()
360 if (ioctl(cfd, I_STR, &sioc) < 0) { in first_packet()
401 if (ioctl(cfd, I_STR, &sioc) < 0) { in first_packet()
429 if (ioctl(cfd, I_STR, &sioc) < 0) { in many_packets()
516 if (ioctl(cfd, I_STR, &sioc) < 0) { in many_packets()
/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dipft_hx.c50 int cfd = tfd; in hex_close() local
53 return close(cfd); in hex_close()
H A Dipft_tx.c142 int cfd = tfd; in text_close() local
145 return close(cfd); in text_close()
/titanic_41/usr/src/cmd/logadm/
H A Dconf.c445 int cfd, tfd; in conf_close() local
473 if ((cfd = mkstemp(cuname)) == -1) in conf_close()
478 if (fchmod(cfd, 0644) == -1) in conf_close()
480 if ((cfp = fdopen(cfd, "w")) == NULL) in conf_close()
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dsshd.c407 int cfd, n; in contracts_post_fork_parent() local
424 if ((cfd = open64(CTFS_ROOT "/process/latest", O_RDONLY)) == -1) { in contracts_post_fork_parent()
430 if ((errno = ct_status_read(cfd, CTD_COMMON, &st)) != 0) { in contracts_post_fork_parent()
433 (void) close(cfd); in contracts_post_fork_parent()
439 (void) close(cfd); in contracts_post_fork_parent()
449 if ((cfd = open64(path, O_WRONLY)) == -1) { in contracts_post_fork_parent()
455 if ((errno = ct_ctl_abandon(cfd))) in contracts_post_fork_parent()
461 (void) close(cfd); in contracts_post_fork_parent()
/titanic_41/usr/src/cmd/syslogd/
H A Dsyslogd.c2388 int cfd, modes; in logerror_to_console() local
2409 if (((cfd = open(sysmsg, modes)) >= 0) || in logerror_to_console()
2410 ((cfd = open(ctty, modes)) >= 0)) { in logerror_to_console()
2413 if (write(cfd, tmpbuf, len) != len) { in logerror_to_console()
2416 (void) close(cfd); in logerror_to_console()
/titanic_41/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c668 int cfd, r; in contract_latest() local
672 if ((cfd = open64(CTFS_ROOT "/process/latest", O_RDONLY)) == -1) in contract_latest()
675 if ((r = ct_status_read(cfd, CTD_COMMON, &st)) != 0) { in contract_latest()
676 (void) close(cfd); in contract_latest()
682 (void) close(cfd); in contract_latest()
/titanic_41/usr/src/lib/libscf/common/
H A Dlowlevel.c616 int cfd = arg.desc_ptr->d_data.d_desc.d_id; in make_door_call() local
617 (void) close(cfd); in make_door_call()
696 int cfd = in make_door_call_retfd() local
698 (void) close(cfd); in make_door_call_retfd()
/titanic_41/usr/src/data/hwdata/
H A Dusb.ids17983 1cfd Flextronics Digital Design Japan, LTD.