/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | lockfile.c | 45 struct flock lfd; variable 47 memset(&lfd, '\0', sizeof lfd); 49 lfd.l_type = F_UNLCK; 51 lfd.l_type = F_WRLCK; 53 lfd.l_type = F_RDLCK; 59 if (fcntl(fd, action, &lfd) >= 0)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/slpd/ |
H A D | slpd.c | 166 int lfd; in main() local 183 if ((lfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in main() 188 (void) setsockopt(lfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)); in main() 195 if (bind(lfd, (const struct sockaddr *)&bindaddr, sizeof (bindaddr)) in main() 201 if (listen(lfd, 1) < 0) { in main() 207 if ((connfd = accept(lfd, (struct sockaddr *)&bindaddr, &addrlen)) in main() 213 (void) close(lfd); in main()
|
/illumos-gate/usr/src/cmd/lofiadm/ |
H A D | main.c | 415 lofi_map_file(int lfd, struct lofi_ioctl *li, const char *filename) in lofi_map_file() argument 421 minor = ioctl(lfd, LOFI_MAP_FILE, li); in lofi_map_file() 437 add_mapping(int lfd, const char *devicename, const char *filename, in add_mapping() argument 478 minor = lofi_map_file(lfd, &li, filename); in add_mapping() 496 if (ioctl(lfd, LOFI_MAP_FILE_MINOR, &li) == -1) { in add_mapping() 511 delete_mapping(int lfd, const char *devicename, const char *filename, in delete_mapping() argument 524 if (ioctl(lfd, LOFI_UNMAP_FILE, &li) == -1) { in delete_mapping() 535 if (ioctl(lfd, LOFI_UNMAP_FILE_MINOR, &li) == -1) { in delete_mapping() 544 print_one_mapping(int lfd, const char *devicename, const char *filename) in print_one_mapping() argument 554 if (ioctl(lfd, LOFI_GET_MINOR, &li) == -1) { in print_one_mapping() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/ |
H A D | fksmbcl_main.c | 565 int lfd = -1; in do_get() local 590 lfd = open(lname, oflg, 0644); in do_get() 591 if (lfd < 0) { in do_get() 614 x = write(lfd, tbuf, cnt); in do_get() 625 if (lfd != -1) in do_get() 626 close(lfd); in do_get() 643 int lfd = -1; in do_put() local 668 lfd = open(lname, O_RDONLY, 0); in do_put() 669 if (lfd < 0) { in do_put() 673 error = fstat(lfd, &st); in do_put() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsmdb/ |
H A D | smdb.c | 88 struct flock lfd; local 90 (void) memset(&lfd, '\0', sizeof lfd); 92 lfd.l_type = F_UNLCK; 94 lfd.l_type = F_WRLCK; 96 lfd.l_type = F_RDLCK; 103 while ((i = fcntl(fd, action, &lfd)) < 0 && errno == EINTR)
|
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log_put.c | 320 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 D | log.c | 66 dblp->lfd = -1; 454 if (dblp->lfd != -1 && (t_ret = __os_close(dblp->lfd)) != 0 && ret == 0)
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | utimes.c | 144 int fd, lfd, dfd, ret = true; in runtest() local 163 if ((lfd = open(lpath, O_RDWR)) == -1) in runtest() 458 (void) close(lfd); in runtest()
|
/illumos-gate/usr/src/lib/libpam/ |
H A D | pam_framework.c | 1820 void *lfd; in open_module() local 1855 lfd = (void *)dlopen(module_so, RTLD_LAZY); in open_module() 1857 if (lfd == NULL) { in open_module() 1866 (void) dlclose(lfd); in open_module() 1867 lfd = 0; in open_module() 1870 module_fds->mh = lfd; in open_module() 1886 return (lfd); in open_module() 1893 load_function(void *lfd, char *name, int (**func)()) in load_function() argument 1897 if (lfd == NULL) in load_function() 1900 *func = (int (*)())dlsym(lfd, name); in load_function()
|
/illumos-gate/usr/src/cmd/sdiff/ |
H A D | sdiff.c | 148 int lfd = -1; in main() local 229 if ((lfd = mkstemp(ltemp)) == -1 || in main() 230 (left = fdopen(lfd, "w")) == NULL) in main()
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | log.h | 78 int lfd; /* Log file descriptor. */ member
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | machcpuvar.h | 111 uintptr_t lfd[HIGH_LEVELS]; /* saved ret PC */ member
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | machcpuvar.h | 126 uintptr_t lfd[HIGH_LEVELS]; /* saved ret PC */ member
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 694 int lfd = fileno(stdout); in readwrite() local 729 if (atomicio(vwrite, lfd, buf, n) != n) in readwrite()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | conf.c | 3542 struct flock lfd; local 3547 memset(&lfd, '\0', sizeof(lfd)); 3549 lfd.l_type = F_UNLCK; 3551 lfd.l_type = F_WRLCK; 3553 lfd.l_type = F_RDLCK; 3562 filename, ext, action, lfd.l_type); 3564 while ((i = fcntl(fd, action, &lfd)) < 0 && errno == EINTR)
|
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 1122 iprb_dma_t *rfd, *nfd, *lfd; in iprb_rx_add() local 1133 lfd = &ip->rxb[last]; in iprb_rx_add() 1143 PUTRFD16(lfd, RFD_CTL_OFFSET, 0); in iprb_rx_add()
|
/illumos-gate/usr/src/uts/sun4/ml/ |
H A D | offsets.in | 372 cpu_m.lfd CPU_LFD
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipsecconf.c | 62 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()
|