/illumos-gate/usr/src/lib/libmail/common/ |
H A D | xgetenv.c | 93 int envctr, infd; local 97 infd = open(xfile, O_RDONLY); 98 if (infd == -1) { 103 nread = read(infd, xbuf, sizeof (xbuf)); 105 (void) close(infd); 129 (void) close(infd);
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | tgetch.c | 147 int infd; local 149 infd = 1 << cur_term->_inputfd; 152 i = select(20, &infd, (int *)NULL, (int *)NULL, &t); 506 int infd = cur_term->_inputfd; local 537 int fcflags = fcntl(infd, F_GETFL, 0); 539 (void) fcntl(infd, F_SETFL, fcflags | O_NDELAY); 540 rc = read(infd, (char *)&c, 1); 541 (void) fcntl(infd, F_SETFL, fcflags); 568 int infd, rc; local 573 infd [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | genaddrs.c | 77 krb5_auth_con_genaddrs(krb5_context context, krb5_auth_context auth_context, int infd, int flags) argument 84 SOCKET fd = (SOCKET) infd;
|
/illumos-gate/usr/src/cmd/cmd-crypto/decrypt/ |
H A D | decrypt.c | 190 int infd, int outfd, off_t insize); 436 int infd = 0; /* input file, stdin default */ local 680 if ((infd = open(inputfile, O_RDONLY | O_NONBLOCK)) == -1) { 687 if (fstat(infd, &insbuf) == -1) { 738 if (read(infd, &version, sizeof (version)) != 766 if (read(infd, &iterations, 776 read(infd, pivbuf, ivlen) != ivlen) { 782 if (read(infd, salt, sizeof (salt)) 945 if (crypt_multipart(cmd, hSession, infd, outfd, insbuf.st_size) == -1) { 974 if (iflag && (infd ! 1047 crypt_multipart(struct CommandInfo *cmd, CK_SESSION_HANDLE hSession, int infd, int outfd, off_t insize) argument [all...] |
/illumos-gate/usr/src/cmd/ucodeadm/ |
H A D | ucodeadm.c | 147 FILE *infd = NULL; local 154 if ((infd = fopen(infile, "r")) == NULL) 157 while (fgets(linebuf, LINESIZE, infd)) { 161 if (fseek(infd, 0, SEEK_SET) == 0) 162 count = fread(buf, 1, size, infd); 164 (void) fclose(infd); 190 (void) fclose(infd);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | path.c | 1241 if(shp->infd>0 && (shp->fdstatus[shp->infd]&IOCLEX)) 1242 sh_close(shp->infd); 1291 shp->infd = n; 1294 if((shp->infd = sh_open(path,O_RDONLY,0)) < 0) 1297 shp->infd = sh_iomovefd(shp->infd);
|
H A D | main.c | 366 fdin = shp->infd; 413 shp->infd = fno;
|
H A D | io.c | 547 if(f2==shp->infd) 548 shp->infd = fd; 1297 if(sh_inuse(fn) || (fn && fn==shp->infd))
|
H A D | xec.c | 1004 if((shp->fdstatus[fd]&IOCLEX)&&fd!=shp->infd)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | ftp.c | 1061 int infd; local 1232 infd = fileno(din); 1233 while ((c = timedread(infd, buf, FTPBUFSIZ, timeout)) > 0) { 1293 infd = fileno(din); 1294 while ((c = fdio_getc(infd)) != EOF) { 1303 if ((c = fdio_getc(infd)) != '\n' || tcrflag) { 1329 if (fdio_error(infd)) {
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | backend.c | 1006 int infd, outfd; local 1100 infd = open(src, O_RDONLY); 1101 if (infd < 0) { 1112 (void) close(infd); 1117 if ((result = backend_do_copy(src, infd, (const char *)tmppath, 1164 (void) close(infd);
|
/illumos-gate/usr/src/lib/libshell/common/include/ |
H A D | defs.h | 134 int infd; /* input file descriptor */ \
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_sendrecv.c | 3016 * Restores a backup of tosnap from the file descriptor specified by infd. 3019 zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap, argument 3353 zc.zc_cookie = infd; 3366 return (recv_skip(hdl, infd, flags->byteswap)); 3465 err = ioctl_err = recv_skip(hdl, infd, 3595 const char *originsnap, recvflags_t *flags, int infd, const char *sendfs, 3624 if (0 != (err = recv_read(hdl, infd, &drr, sizeof (drr), B_FALSE, 3696 return (zfs_receive_one(hdl, infd, tosnap, originsnap, flags, 3702 return (zfs_receive_package(hdl, infd, tosnap, flags, &drr, 3708 * Restores a backup of tosnap from the file descriptor specified by infd 3594 zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap, const char *originsnap, recvflags_t *flags, int infd, const char *sendfs, nvlist_t *stream_nv, avl_tree_t *stream_avl, char **top_zfs, int cleanup_fd, uint64_t *action_handlep, const char *finalsnap) argument 3715 zfs_receive(libzfs_handle_t *hdl, const char *tosnap, nvlist_t *props, recvflags_t *flags, int infd, avl_tree_t *stream_avl) argument [all...] |
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | tavor.c | 108 static int tavor_readback(int infd, int whichsect, int sectsz); 1877 tavor_readback(int infd, int whichsect, int sectsz) argument 1889 rv = ioctl(infd, TAVOR_IOCTL_FLASH_READ, &cmd);
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 601 * If the write to outfd fails, we'll try to read from infd in an attempt 608 process_user_input(int outfd, int infd) argument 670 if ((ln = read(infd, obuf, ZLOGIN_BUFSIZ)) > 0)
|