Home
last modified time | relevance | path

Searched refs:lfd (Results 1 – 18 of 18) sorted by relevance

/titanic_41/usr/src/cmd/sendmail/libsmutil/
H A Dlockfile.c47 struct flock lfd; variable
49 memset(&lfd, '\0', sizeof lfd);
51 lfd.l_type = F_UNLCK;
53 lfd.l_type = F_WRLCK;
55 lfd.l_type = F_RDLCK;
61 if (fcntl(fd, action, &lfd) >= 0)
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/slpd/
H A Dslpd.c169 int lfd; in main() local
186 if ((lfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in main()
191 (void) setsockopt(lfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)); in main()
198 if (bind(lfd, (const struct sockaddr *)&bindaddr, sizeof (bindaddr)) in main()
204 if (listen(lfd, 1) < 0) { in main()
210 if ((connfd = accept(lfd, (struct sockaddr *)&bindaddr, &addrlen)) in main()
216 (void) close(lfd); in main()
/titanic_41/usr/src/cmd/lofiadm/
H A Dmain.c352 lofi_map_file(int lfd, struct lofi_ioctl li, const char *filename) in lofi_map_file() argument
358 minor = ioctl(lfd, LOFI_MAP_FILE, &li); in lofi_map_file()
374 add_mapping(int lfd, const char *devicename, const char *filename, in add_mapping() argument
411 minor = lofi_map_file(lfd, li, filename); in add_mapping()
425 if (ioctl(lfd, LOFI_MAP_FILE_MINOR, &li) == -1) { in add_mapping()
440 delete_mapping(int lfd, const char *devicename, const char *filename, in delete_mapping() argument
453 if (ioctl(lfd, LOFI_UNMAP_FILE, &li) == -1) { in delete_mapping()
464 if (ioctl(lfd, LOFI_UNMAP_FILE_MINOR, &li) == -1) { in delete_mapping()
473 print_one_mapping(int lfd, const char *devicename, const char *filename) in print_one_mapping() argument
482 if (ioctl(lfd, LOFI_GET_MINOR, &li) == -1) { in print_one_mapping()
[all …]
/titanic_41/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb.c90 struct flock lfd; local
92 (void) memset(&lfd, '\0', sizeof lfd);
94 lfd.l_type = F_UNLCK;
96 lfd.l_type = F_WRLCK;
98 lfd.l_type = F_RDLCK;
105 while ((i = fcntl(fd, action, &lfd)) < 0 && errno == EINTR)
/titanic_41/usr/src/cmd/sendmail/db/log/
H A Dlog_put.c320 if ((ret = __os_fsync(dblp->lfd)) != 0) {
429 if (dblp->lfd == -1 || dblp->lfname != lp->lsn.file)
437 if ((ret = __os_seek(dblp->lfd, 0, 0, lp->w_off, 0, SEEK_SET)) != 0 ||
438 (ret = __os_write(dblp->lfd, addr, len, &nw)) != 0) {
507 if (dblp->lfd != -1) {
508 (void)__os_close(dblp->lfd);
509 dblp->lfd = -1;
515 dblp->lfname, &name, &dblp->lfd, DB_CREATE | DB_SEQUENTIAL)) != 0)
H A Dlog.c66 dblp->lfd = -1;
454 if (dblp->lfd != -1 && (t_ret = __os_close(dblp->lfd)) != 0 && ret == 0)
/titanic_41/usr/src/cmd/rcm_daemon/common/
H A Dttymux_rcm.c439 int lfd; in mux_connect() local
486 lfd = open(link->used->id, O_EXCL|O_RDWR|O_NONBLOCK|O_NOCTTY); in mux_connect()
487 if (lfd == -1) { in mux_connect()
526 (void) close(lfd); in mux_connect()
546 if (ioctl(lfd, TCGETS, &tc) != -1) { in mux_connect()
548 if (ioctl(lfd, TCSETSW, &tc) == -1) { in mux_connect()
559 plink(muxfd, lfd)) <= 0) { in mux_connect()
577 (void) close(lfd); in mux_connect()
585 (void) close(lfd); in mux_connect()
/titanic_41/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/
H A Dttymux_dacf.c603 int lfd; in link_aconsole() local
611 if ((rv = open_stream(&lvp, &lfd, cn->sm_dev)) != 0) in link_aconsole()
639 if ((rv = strioctl(mux_avp, I_PLINK, (intptr_t)lfd, in link_aconsole()
647 (void) closeandsetf(lfd, NULL); in link_aconsole()
/titanic_41/usr/src/cmd/sdiff/
H A Dsdiff.c150 int lfd = -1; in main() local
231 if ((lfd = mkstemp(ltemp)) == -1 || in main()
232 (left = fdopen(lfd, "w")) == NULL) in main()
/titanic_41/usr/src/lib/libpam/
H A Dpam_framework.c1817 void *lfd; in open_module() local
1852 lfd = (void *)dlopen(module_so, RTLD_LAZY); in open_module()
1854 if (lfd == NULL) { in open_module()
1863 (void) dlclose(lfd); in open_module()
1864 lfd = 0; in open_module()
1867 module_fds->mh = lfd; in open_module()
1883 return (lfd); in open_module()
1890 load_function(void *lfd, char *name, int (**func)()) in load_function() argument
1894 if (lfd == NULL) in load_function()
1897 *func = (int (*)())dlsym(lfd, name); in load_function()
/titanic_41/usr/src/cmd/sendmail/db/include/
H A Dlog.h78 int lfd; /* Log file descriptor. */ member
/titanic_41/usr/src/uts/sun4u/sys/
H A Dmachcpuvar.h111 uintptr_t lfd[HIGH_LEVELS]; /* saved ret PC */ member
/titanic_41/usr/src/uts/sun4v/sys/
H A Dmachcpuvar.h126 uintptr_t lfd[HIGH_LEVELS]; /* saved ret PC */ member
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c673 int lfd = fileno(stdout); in readwrite() local
708 if (atomicio(vwrite, lfd, buf, n) != n) in readwrite()
/titanic_41/usr/src/cmd/sendmail/src/
H A Dconf.c3541 struct flock lfd; local
3546 memset(&lfd, '\0', sizeof(lfd));
3548 lfd.l_type = F_UNLCK;
3550 lfd.l_type = F_WRLCK;
3552 lfd.l_type = F_RDLCK;
3561 filename, ext, action, lfd.l_type);
3563 while ((i = fcntl(fd, action, &lfd)) < 0 && errno == EINTR)
/titanic_41/usr/src/uts/common/io/iprb/
H A Diprb.c1120 iprb_dma_t *rfd, *nfd, *lfd; in iprb_rx_add() local
1131 lfd = &ip->rxb[last]; in iprb_rx_add()
1141 PUTRFD16(lfd, RFD_CTL_OFFSET, 0); in iprb_rx_add()
/titanic_41/usr/src/uts/sun4/ml/
H A Doffsets.in372 cpu_m.lfd CPU_LFD
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecconf.c62 int lfd; variable
1483 lfd = lock(); in main()
1567 (void) unlock(lfd); in main()
5499 (void) unlock(lfd); in ipsec_conf_add()
5506 (void) unlock(lfd); in ipsec_conf_add()