fd                 56 lib/mcconfig/common.c     int fd;
fd                 73 lib/mcconfig/common.c     fd = mc_open (ini_vpath, O_WRONLY | O_TRUNC, 0);
fd                 76 lib/mcconfig/common.c     if (fd == -1)
fd                 84 lib/mcconfig/common.c          (cur_written = mc_write (fd, (const void *) written_data, total_written)) > 0;
fd                 88 lib/mcconfig/common.c     mc_close (fd);
fd                260 lib/tty/key.c      int fd;
fd                570 lib/tty/key.c      return (FD_ISSET (s->fd, f) ? 0 : 1);
fd                579 lib/tty/key.c      const int fd = GPOINTER_TO_INT (b);
fd                581 lib/tty/key.c      return (s->fd == fd ? 0 : 1);
fd                599 lib/tty/key.c              FD_SET (p->fd, select_set);
fd                600 lib/tty/key.c              if (p->fd > top_fd)
fd                601 lib/tty/key.c                  top_fd = p->fd;
fd                623 lib/tty/key.c          FD_CLR (p->fd, select_set);
fd                624 lib/tty/key.c          p->callback (p->fd, p->info);
fd               1397 lib/tty/key.c  add_select_channel (int fd, select_fn callback, void *info)
fd               1402 lib/tty/key.c      new->fd = fd;
fd               1412 lib/tty/key.c  delete_select_channel (int fd)
fd               1416 lib/tty/key.c      p = g_slist_find_custom (select_list, GINT_TO_POINTER (fd), select_cmp_by_fd);
fd                 86 lib/tty/key.h  typedef int (*select_fn) (int fd, void *info);
fd                 89 lib/tty/key.h  void add_select_channel (int fd, select_fn callback, void *info);
fd                 90 lib/tty/key.h  void delete_select_channel (int fd);
fd                324 lib/tty/tty.c  tty_resize (int fd)
fd                333 lib/tty/tty.c      return ioctl (fd, TIOCSWINSZ, &tty_size);
fd                132 lib/tty/tty.h  extern int tty_resize (int fd);
fd                830 lib/util.c     get_compression_type (int fd, const char *name)
fd                836 lib/util.c         if (mc_read (fd, (char *) magic, 4) != 4)
fd                847 lib/util.c             mc_lseek (fd, 8, SEEK_SET);
fd                848 lib/util.c             if (mc_read (fd, (char *) magic, 2) != 2)
fd                878 lib/util.c         if (mc_read (fd, (char *) magic + 4, 2) != 2)
fd                 96 lib/util.h         int fd;
fd                222 lib/util.h     enum compression_type get_compression_type (int fd, const char *name);
fd                236 lib/utilunix.c     if (!FD_ISSET (ps->fd, fds))
fd                249 lib/utilunix.c         read_len = read (ps->fd, ps->buf, buf_len);
fd                519 lib/utilunix.c     p->out.fd = -1;
fd                520 lib/utilunix.c     p->err.fd = -1;
fd                524 lib/utilunix.c          NULL, &p->child_pid, NULL, read_out ? &p->out.fd : NULL, read_err ? &p->err.fd : NULL,
fd                578 lib/utilunix.c     read_out = p->out.fd >= 0;
fd                579 lib/utilunix.c     read_err = p->err.fd >= 0;
fd                591 lib/utilunix.c         FD_SET (p->out.fd, &fds);
fd                592 lib/utilunix.c         maxfd = p->out.fd;
fd                597 lib/utilunix.c         FD_SET (p->err.fd, &fds);
fd                598 lib/utilunix.c         maxfd = MAX (maxfd, p->err.fd);
fd                687 lib/utilunix.c     if (p->out.fd >= 0)
fd                688 lib/utilunix.c         res = close (p->out.fd);
fd                689 lib/utilunix.c     if (p->err.fd >= 0)
fd                690 lib/utilunix.c         res = close (p->err.fd);
fd               1668 lib/vfs/direntry.c vfs_s_get_line_interruptible (struct vfs_class *me, char *buffer, int size, int fd)
fd               1681 lib/vfs/direntry.c         n = read (fd, &buffer[i], 1);
fd                698 lib/vfs/interface.c mc_lseek (int fd, off_t offset, int whence)
fd                704 lib/vfs/interface.c     if (fd == -1)
fd                707 lib/vfs/interface.c     vfs = vfs_class_find_by_handle (fd, &fsinfo);
fd                735 lib/vfs/interface.c     int fd;
fd                748 lib/vfs/interface.c     fd = g_mkstemp (p2);
fd                749 lib/vfs/interface.c     if (fd >= 0)
fd                754 lib/vfs/interface.c         fd = -1;
fd                759 lib/vfs/interface.c     return fd;
fd                187 lib/vfs/utilvfs.c     int fd;
fd                208 lib/vfs/utilvfs.c     fd = mc_mkstemps (pname_vpath, prefix, suffix->str);
fd                211 lib/vfs/utilvfs.c     return fd;
fd                310 lib/vfs/vfs.h  off_t mc_lseek (int fd, off_t offset, int whence);
fd                319 lib/vfs/vfs.h  int mc_fstat (int fd, struct stat *buf);
fd                329 lib/vfs/vfs.h  int mc_ctl (int fd, int ctlop, void *arg);
fd                191 lib/vfs/xdirentry.h int vfs_s_get_line_interruptible (struct vfs_class *me, char *buffer, int size, int fd);
fd                 73 src/background.c static int background_attention (int fd, void *closure);
fd                 90 src/background.c register_task_running (file_op_context_t * ctx, pid_t pid, int fd, int to_child, char *info)
fd                 99 src/background.c     new->fd = fd;
fd                103 src/background.c     add_select_channel (fd, background_attention, ctx);
fd                118 src/background.c             int fd = p->fd;
fd                126 src/background.c             return fd;
fd                189 src/background.c background_attention (int fd, void *closure)
fd                226 src/background.c     bytes = read (fd, &routine.pointer, sizeof (routine));
fd                229 src/background.c         unregister_task_running (ctx->pid, fd);
fd                248 src/background.c     if (read (fd, &argc, sizeof (argc)) != sizeof (argc) ||
fd                249 src/background.c         read (fd, &type, sizeof (type)) != sizeof (type) ||
fd                250 src/background.c         read (fd, &have_ctx, sizeof (have_ctx)) != sizeof (have_ctx))
fd                258 src/background.c     if (have_ctx != 0 && read (fd, ctx, sizeof (*ctx)) != sizeof (*ctx))
fd                265 src/background.c         if (read (fd, &size, sizeof (size)) != sizeof (size))
fd                270 src/background.c         if (read (fd, data[i], size) != size)
fd                279 src/background.c         if (p->fd == fd)
fd                493 src/background.c unregister_task_running (pid_t pid, int fd)
fd                496 src/background.c     delete_select_channel (fd);
fd                504 src/background.c     int fd;
fd                506 src/background.c     fd = destroy_task (pid);
fd                507 src/background.c     if (fd != -1)
fd                508 src/background.c         delete_select_channel (fd);
fd                 20 src/background.h     int fd;
fd                 42 src/background.h void unregister_task_running (pid_t pid, int fd);
fd                 45 src/diffviewer/internal.h     int fd;
fd                178 src/diffviewer/ydiff.c     int fd;
fd                181 src/diffviewer/ydiff.c     fd = mc_mkstemps (&diff_file_name, "mcdiff", NULL);
fd                182 src/diffviewer/ydiff.c     if (fd == -1)
fd                190 src/diffviewer/ydiff.c     return fd;
fd                203 src/diffviewer/ydiff.c dview_fdopen (int fd)
fd                207 src/diffviewer/ydiff.c     if (fd < 0)
fd                221 src/diffviewer/ydiff.c     fs->fd = fd;
fd                264 src/diffviewer/ydiff.c     int fd;
fd                271 src/diffviewer/ydiff.c     fd = open_temp (&fs->data);
fd                272 src/diffviewer/ydiff.c     if (fd < 0)
fd                278 src/diffviewer/ydiff.c     fs->fd = fd;
fd                297 src/diffviewer/ydiff.c     int fd;
fd                304 src/diffviewer/ydiff.c     fd = open (filename, flags);
fd                305 src/diffviewer/ydiff.c     if (fd < 0)
fd                311 src/diffviewer/ydiff.c     fs->fd = fd;
fd                351 src/diffviewer/ydiff.c         fs->len = read (fs->fd, fs->buf, FILE_READ_BUF);
fd                378 src/diffviewer/ydiff.c         rv = lseek (fs->fd, 0, SEEK_CUR);
fd                394 src/diffviewer/ydiff.c     rv = lseek (fs->fd, off, whence);
fd                415 src/diffviewer/ydiff.c     rv = lseek (fs->fd, 0, SEEK_SET);
fd                439 src/diffviewer/ydiff.c     rv = write (fs->fd, buf, size);
fd                461 src/diffviewer/ydiff.c     off = lseek (fs->fd, 0, SEEK_CUR);
fd                466 src/diffviewer/ydiff.c         rv = ftruncate (fs->fd, off);
fd                492 src/diffviewer/ydiff.c         rv = close (fs->fd);
fd                536 src/diffviewer/ydiff.c     fs->fd = fileno (f);
fd               1825 src/editor/edit.c         FILE *fd;
fd               1840 src/editor/edit.c         fd = fopen (block_file, "w");
fd               1841 src/editor/edit.c         if (fd != NULL)
fd               1842 src/editor/edit.c             fclose (fd);
fd                696 src/editor/editbuffer.c edit_buffer_read_file (edit_buffer_t * buf, int fd, off_t size,
fd                719 src/editor/editbuffer.c         ret = mc_read (fd, b, data_size);
fd                738 src/editor/editbuffer.c         sz = mc_read (fd, b, data_size);
fd                810 src/editor/editbuffer.c edit_buffer_write_file (edit_buffer_t * buf, int fd)
fd                824 src/editor/editbuffer.c             sz = mc_write (fd, b, data_size);
fd                836 src/editor/editbuffer.c         sz = mc_write (fd, b, data_size);
fd                850 src/editor/editbuffer.c         sz = mc_write (fd, (char *) b + EDIT_BUF_SIZE - data_size, data_size);
fd                861 src/editor/editbuffer.c                 sz = mc_write (fd, b, data_size);
fd                 63 src/editor/editbuffer.h off_t edit_buffer_read_file (edit_buffer_t * buf, int fd, off_t size,
fd                 65 src/editor/editbuffer.h off_t edit_buffer_write_file (edit_buffer_t * buf, int fd);
fd                135 src/editor/editcmd.c     int this_save_mode, rv, fd = -1;
fd                163 src/editor/editcmd.c             fd = mc_open (real_filename_vpath, O_RDONLY | O_BINARY);
fd                164 src/editor/editcmd.c             if (fd == -1)
fd                169 src/editor/editcmd.c         if (fd != -1)
fd                170 src/editor/editcmd.c             mc_close (fd);
fd                225 src/editor/editcmd.c         fd = mc_mkstemps (&savename_vpath, saveprefix, NULL);
fd                237 src/editor/editcmd.c         close (fd);
fd                243 src/editor/editcmd.c     fd = mc_open (savename_vpath, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, edit->stat1.st_mode);
fd                244 src/editor/editcmd.c     if (fd == -1)
fd                253 src/editor/editcmd.c         mc_close (fd);
fd                284 src/editor/editcmd.c         filelen = edit_buffer_write_file (&edit->buffer, fd);
fd                288 src/editor/editcmd.c             mc_close (fd);
fd                292 src/editor/editcmd.c         if (mc_close (fd) != 0)
fd                304 src/editor/editcmd.c         mc_close (fd);
fd                515 src/filemanager/boxes.c         unregister_task_running (tl->pid, tl->fd);
fd               1514 src/filemanager/layout.c load_prompt (int fd, void *unused)
fd               1516 src/filemanager/layout.c     (void) fd;
fd                 89 src/filemanager/layout.h int load_prompt (int fd, void *unused);
fd               1245 src/filemanager/mountlist.c     int i, fd;
fd               1268 src/filemanager/mountlist.c     fd = open (dir, O_RDONLY);
fd               1269 src/filemanager/mountlist.c     if (fd == -1)
fd               1272 src/filemanager/mountlist.c     i = disk_get_entry (fd, &de);
fd               1274 src/filemanager/mountlist.c     close (fd);
fd                231 src/subshell/common.c write_all (int fd, const void *buf, size_t count)
fd                239 src/subshell/common.c         ret = write (fd, (const unsigned char *) buf + written, count);
fd                 61 src/vfs/cpio/cpio.c #define CPIO_SEEK_SET(super, where) mc_lseek (CPIO_SUPER(super)->fd, CPIO_POS(super) = (where), SEEK_SET)
fd                 62 src/vfs/cpio/cpio.c #define CPIO_SEEK_CUR(super, where) mc_lseek (CPIO_SUPER(super)->fd, CPIO_POS(super) += (where), SEEK_SET)
fd                136 src/vfs/cpio/cpio.c     int fd;
fd                199 src/vfs/cpio/cpio.c     arch->fd = -1;              /* for now */
fd                214 src/vfs/cpio/cpio.c     if (arch->fd != -1)
fd                216 src/vfs/cpio/cpio.c         mc_close (arch->fd);
fd                217 src/vfs/cpio/cpio.c         arch->fd = -1;
fd                228 src/vfs/cpio/cpio.c     int fd, type;
fd                233 src/vfs/cpio/cpio.c     fd = mc_open (vpath, O_RDONLY);
fd                234 src/vfs/cpio/cpio.c     if (fd == -1)
fd                244 src/vfs/cpio/cpio.c     type = get_compression_type (fd, super->name);
fd                246 src/vfs/cpio/cpio.c         mc_lseek (fd, 0, SEEK_SET);
fd                252 src/vfs/cpio/cpio.c         mc_close (fd);
fd                255 src/vfs/cpio/cpio.c         fd = mc_open (tmp_vpath, O_RDONLY);
fd                257 src/vfs/cpio/cpio.c         if (fd == -1)
fd                267 src/vfs/cpio/cpio.c     arch->fd = fd;
fd                282 src/vfs/cpio/cpio.c     return fd;
fd                319 src/vfs/cpio/cpio.c     top = mc_read (arch->fd, buf, sizeof (buf));
fd                333 src/vfs/cpio/cpio.c             tmp = mc_read (arch->fd, buf, top);
fd                530 src/vfs/cpio/cpio.c                 if (mc_read (arch->fd, inode->linkname, st->st_size) < st->st_size)
fd                563 src/vfs/cpio/cpio.c     len = mc_read (arch->fd, (char *) &u.buf, HEAD_LENGTH);
fd                580 src/vfs/cpio/cpio.c     len = mc_read (arch->fd, name, u.buf.c_namesize);
fd                633 src/vfs/cpio/cpio.c     if (mc_read (arch->fd, u.buf, HEAD_LENGTH) != HEAD_LENGTH)
fd                653 src/vfs/cpio/cpio.c     len = mc_read (arch->fd, name, hd.c_namesize);
fd                705 src/vfs/cpio/cpio.c     if (mc_read (arch->fd, u.buf, HEAD_LENGTH) != HEAD_LENGTH)
fd                733 src/vfs/cpio/cpio.c     len = mc_read (arch->fd, name, hd.c_namesize);
fd                855 src/vfs/cpio/cpio.c     int fd = CPIO_SUPER (VFS_FILE_HANDLER_SUPER (fh))->fd;
fd                859 src/vfs/cpio/cpio.c     if (mc_lseek (fd, begin + file->pos, SEEK_SET) != begin + file->pos)
fd                864 src/vfs/cpio/cpio.c     res = mc_read (fd, buffer, count);
fd                 66 src/vfs/local/local.c     int fd;
fd                 70 src/vfs/local/local.c     fd = open (path, NO_LINEAR (flags), mode);
fd                 71 src/vfs/local/local.c     if (fd == -1)
fd                 75 src/vfs/local/local.c     *local_info = fd;
fd                271 src/vfs/local/local.c     int fd;
fd                277 src/vfs/local/local.c     fd = *(int *) data;
fd                279 src/vfs/local/local.c     while ((n = write (fd, buf, nbyte)) == -1)
fd                402 src/vfs/local/local.c     int fd;
fd                407 src/vfs/local/local.c     fd = *(int *) data;
fd                409 src/vfs/local/local.c     while ((n = read (fd, buffer, count)) == -1)
fd                430 src/vfs/local/local.c     int fd;
fd                435 src/vfs/local/local.c     fd = *(int *) data;
fd                437 src/vfs/local/local.c     return close (fd);
fd                454 src/vfs/local/local.c     int fd = *(int *) data;
fd                456 src/vfs/local/local.c     return fstat (fd, buf);
fd                464 src/vfs/local/local.c     int fd = *(int *) data;
fd                466 src/vfs/local/local.c     return lseek (fd, offset, whence);
fd                301 src/vfs/sfs/sfs.c     int fd;
fd                303 src/vfs/sfs/sfs.c     fd = open (sfs_redirect (vpath), NO_LINEAR (flags), mode);
fd                304 src/vfs/sfs/sfs.c     if (fd == -1)
fd                308 src/vfs/sfs/sfs.c     *info = fd;
fd                 83 src/vfs/sftpfs/internal.c     fd_set fd;
fd                 90 src/vfs/sftpfs/internal.c     FD_ZERO (&fd);
fd                 91 src/vfs/sftpfs/internal.c     FD_SET (super->socket_handle, &fd);
fd                 97 src/vfs/sftpfs/internal.c         readfd = &fd;
fd                100 src/vfs/sftpfs/internal.c         writefd = &fd;
fd                 91 src/vfs/tar/tar-internal.c             r = mc_read (archive->fd, more, left);
fd                117 src/vfs/tar/tar-internal.c     status = mc_read (archive->fd, archive->record_start->buffer, record_size);
fd                158 src/vfs/tar/tar-internal.c     offset = mc_lseek (archive->fd, nrec * record_size, SEEK_CUR);
fd                231 src/vfs/tar/tar-internal.h     int fd;
fd                239 src/vfs/tar/tar-sparse.c     int fd;                     /**< File descriptor */
fd                770 src/vfs/tar/tar-sparse.c     file.fd = -1;
fd                858 src/vfs/tar/tar.c     arch->fd = -1;
fd                886 src/vfs/tar/tar.c     if (arch->fd != -1)
fd                888 src/vfs/tar/tar.c         mc_close (arch->fd);
fd                889 src/vfs/tar/tar.c         arch->fd = -1;
fd                941 src/vfs/tar/tar.c     arch->fd = result;
fd               1131 src/vfs/tar/tar.c     int fd = TAR_SUPER (fh->ino->super)->fd;
fd               1144 src/vfs/tar/tar.c         res = mc_read (fd, buffer, (size_t) remain);
fd               1175 src/vfs/tar/tar.c     int fd = TAR_SUPER (fh->ino->super)->fd;
fd               1216 src/vfs/tar/tar.c     res = mc_lseek (fd, offset, SEEK_SET);
fd               1231 src/vfs/tar/tar.c     int fd = TAR_SUPER (VFS_FILE_HANDLER_SUPER (fh))->fd;
fd               1246 src/vfs/tar/tar.c         if (mc_lseek (fd, begin, SEEK_SET) != begin)
fd               1250 src/vfs/tar/tar.c         res = mc_read (fd, buffer, count);
fd                704 src/vfs/undelfs/undelfs.c     int fd;
fd                716 src/vfs/undelfs/undelfs.c     fd = open (file, O_RDONLY);
fd                717 src/vfs/undelfs/undelfs.c     if (fd == -1)
fd                724 src/vfs/undelfs/undelfs.c     close (fd);
fd                369 src/viewer/datasource.c mcview_set_datasource_file (WView * view, int fd, const struct stat *st)
fd                372 src/viewer/datasource.c     view->ds_file_fd = fd;
fd                414 src/viewer/datasource.c mcview_set_datasource_vfs_pipe (WView * view, int fd)
fd                416 src/viewer/datasource.c     g_assert (fd != -1);
fd                419 src/viewer/datasource.c     view->ds_vfs_pipe = fd;
fd                249 src/viewer/internal.h void mcview_set_datasource_file (WView * view, int fd, const struct stat *st);
fd                251 src/viewer/internal.h void mcview_set_datasource_vfs_pipe (WView * view, int fd);
fd                330 src/viewer/mcviewer.c         int fd;
fd                336 src/viewer/mcviewer.c         fd = mc_open (vpath, O_RDONLY | O_NONBLOCK);
fd                337 src/viewer/mcviewer.c         if (fd == -1)
fd                351 src/viewer/mcviewer.c         if (mc_fstat (fd, &st) == -1)
fd                353 src/viewer/mcviewer.c             mc_close (fd);
fd                367 src/viewer/mcviewer.c             mc_close (fd);
fd                377 src/viewer/mcviewer.c         if (st.st_size == 0 || mc_lseek (fd, 0, SEEK_SET) == -1)
fd                380 src/viewer/mcviewer.c             mcview_set_datasource_vfs_pipe (view, fd);
fd                388 src/viewer/mcviewer.c                 type = get_compression_type (fd, file);
fd                411 src/viewer/mcviewer.c                         mc_close (fd);
fd                412 src/viewer/mcviewer.c                         fd = fd1;
fd                413 src/viewer/mcviewer.c                         mc_fstat (fd, &st);
fd                418 src/viewer/mcviewer.c             mcview_set_datasource_file (view, fd, &st);
fd                 99 tests/lib/vfs/tempdir.c     int fd;
fd                102 tests/lib/vfs/tempdir.c     fd = mc_mkstemps (&pname_vpath, "mctest-", NULL);
fd                106 tests/lib/vfs/tempdir.c     close (fd);
fd                107 tests/lib/vfs/tempdir.c     ck_assert_int_ne (fd, -1);