• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/gnutar-453/gnutar/lib/

Lines Matching refs:handle

107 _rmt_shutdown (int handle, int errno_value)
109 close (READ_SIDE (handle));
110 close (WRITE_SIDE (handle));
111 READ_SIDE (handle) = -1;
112 WRITE_SIDE (handle) = -1;
120 do_command (int handle, const char *buffer)
126 ssize_t written = full_write (WRITE_SIDE (handle), buffer, length);
134 _rmt_shutdown (handle, EIO);
139 get_status_string (int handle, char *command_buffer)
150 if (safe_read (READ_SIDE (handle), cursor, 1) != 1)
152 _rmt_shutdown (handle, EIO);
164 _rmt_shutdown (handle, EIO);
184 while (safe_read (READ_SIDE (handle), &character, 1) == 1)
192 _rmt_shutdown (handle, errno);
201 _rmt_shutdown (handle, EIO);
213 get_status (int handle)
216 const char *status = get_status_string (handle, command_buffer);
228 get_status_off (int handle)
231 const char *status = get_status_string (handle, command_buffer);
550 rmt_close__ (int handle)
554 if (do_command (handle, "C\n") == -1)
557 status = get_status (handle);
558 _rmt_shutdown (handle, errno);
565 rmt_read__ (int handle, char *buffer, size_t length)
573 if (do_command (handle, command_buffer) == -1
574 || (status = get_status (handle)) == SAFE_READ_ERROR
580 rlen = safe_read (READ_SIDE (handle), buffer, status - counter);
583 _rmt_shutdown (handle, EIO);
594 rmt_write__ (int handle, char *buffer, size_t length)
601 if (do_command (handle, command_buffer) == -1)
605 written = full_write (WRITE_SIDE (handle), buffer, length);
609 long int r = get_status (handle);
619 _rmt_shutdown (handle, EIO);
626 rmt_lseek__ (int handle, off_t offset, int whence)
650 if (do_command (handle, command_buffer) == -1)
653 return get_status_off (handle);
659 rmt_ioctl__ (int handle, int operation, char *argument)
688 if (do_command (handle, command_buffer) == -1)
691 return get_status (handle);
707 if (do_command (handle, "S") == -1
708 || (status = get_status (handle), status == -1))
713 counter = safe_read (READ_SIDE (handle), argument, status);
716 _rmt_shutdown (handle, EIO);