Searched refs:infd (Results 1 - 15 of 15) sorted by relevance

/illumos-gate/usr/src/lib/libmail/common/
H A Dxgetenv.c93 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 Dtgetch.c147 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 Dgenaddrs.c77 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 Ddecrypt.c190 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 Ducodeadm.c147 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 Dpath.c1241 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 Dmain.c366 fdin = shp->infd;
413 shp->infd = fno;
H A Dio.c547 if(f2==shp->infd)
548 shp->infd = fd;
1297 if(sh_inuse(fn) || (fn && fn==shp->infd))
H A Dxec.c1004 if((shp->fdstatus[fd]&IOCLEX)&&fd!=shp->infd)
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dftp.c1061 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 Dbackend.c1006 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 Ddefs.h134 int infd; /* input file descriptor */ \
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_sendrecv.c3016 * 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 Dtavor.c108 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 Dzlogin.c601 * 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)

Completed in 125 milliseconds