/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | lockfile.c | 47 struct flock lfd; local 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)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/slpd/ |
H A D | slpd.c | 169 int lfd; local 186 if ((lfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 191 (void) setsockopt(lfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)); 198 if (bind(lfd, (const struct sockaddr *)&bindaddr, sizeof (bindaddr)) 204 if (listen(lfd, 1) < 0) { 210 if ((connfd = accept(lfd, (struct sockaddr *)&bindaddr, &addrlen)) 216 (void) close(lfd);
|
/illumos-gate/usr/src/cmd/sendmail/libsmdb/ |
H A D | smdb.c | 90 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)
|
/illumos-gate/usr/src/cmd/lofiadm/ |
H A D | main.c | 400 lofi_map_file(int lfd, struct lofi_ioctl *li, const char *filename) argument 406 minor = ioctl(lfd, LOFI_MAP_FILE, li); 422 add_mapping(int lfd, const char *devicename, const char *filename, argument 463 minor = lofi_map_file(lfd, &li, filename); 481 if (ioctl(lfd, LOFI_MAP_FILE_MINOR, &li) == -1) { 496 delete_mapping(int lfd, const char *devicename, const char *filename, argument 509 if (ioctl(lfd, LOFI_UNMAP_FILE, &li) == -1) { 520 if (ioctl(lfd, LOFI_UNMAP_FILE_MINOR, &li) == -1) { 529 print_one_mapping(int lfd, const char *devicename, const char *filename) argument 539 if (ioctl(lfd, LOFI_GET_MINO 1349 lofi_uncompress(int lfd, const char *filename) argument 1464 lofi_compress(int *lfd, const char *filename, int compress_index, uint32_t segsize) argument 1903 int lfd; local [all...] |
/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/cmd/rcm_daemon/common/ |
H A D | ttymux_rcm.c | 439 int lfd; local 486 lfd = open(link->used->id, O_EXCL|O_RDWR|O_NONBLOCK|O_NOCTTY); 487 if (lfd == -1) { 526 (void) close(lfd); 546 if (ioctl(lfd, TCGETS, &tc) != -1) { 548 if (ioctl(lfd, TCSETSW, &tc) == -1) { 559 plink(muxfd, lfd)) <= 0) { 577 (void) close(lfd); 585 (void) close(lfd);
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | log.h | 78 int lfd; /* Log file descriptor. */ member in struct:__db_log
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | machcpuvar.h | 111 uintptr_t lfd[HIGH_LEVELS]; /* saved ret PC */ member in struct:machcpu
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | machcpuvar.h | 126 uintptr_t lfd[HIGH_LEVELS]; /* saved ret PC */ member in struct:machcpu
|
/illumos-gate/usr/src/cmd/sdiff/ |
H A D | sdiff.c | 150 int lfd = -1; local 231 if ((lfd = mkstemp(ltemp)) == -1 || 232 (left = fdopen(lfd, "w")) == NULL)
|
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 603 int lfd; local 611 if ((rv = open_stream(&lvp, &lfd, cn->sm_dev)) != 0) 639 if ((rv = strioctl(mux_avp, I_PLINK, (intptr_t)lfd, 647 (void) closeandsetf(lfd, NULL);
|
/illumos-gate/usr/src/lib/libpam/ |
H A D | pam_framework.c | 1812 void *lfd; local 1847 lfd = (void *)dlopen(module_so, RTLD_LAZY); 1849 if (lfd == NULL) { 1858 (void) dlclose(lfd); 1859 lfd = 0; 1862 module_fds->mh = lfd; 1878 return (lfd); 1885 load_function(void *lfd, char *name, int (**func)()) argument 1889 if (lfd == NULL) 1892 *func = (int (*)())dlsym(lfd, nam [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 673 int lfd = fileno(stdout); local 708 if (atomicio(vwrite, lfd, buf, n) != n)
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | conf.c | 3541 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)
|
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 1120 iprb_dma_t *rfd, *nfd, *lfd; local 1131 lfd = &ip->rxb[last]; 1141 PUTRFD16(lfd, RFD_CTL_OFFSET, 0);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipsecconf.c | 62 int lfd; variable 1483 lfd = lock(); 1567 (void) unlock(lfd); 5499 (void) unlock(lfd); 5506 (void) unlock(lfd);
|