buf 100 lib/charsets.c char buf[BUF_MEDIUM]; buf 107 lib/charsets.c while (fgets (buf, sizeof buf, f) != NULL) buf 110 lib/charsets.c char *p = buf; buf 116 lib/charsets.c buflen = strlen (buf); buf 118 lib/charsets.c if (buflen != 0 && buf[buflen - 1] == '\n') buf 119 lib/charsets.c buf[buflen - 1] = '\0'; buf 130 lib/charsets.c if (strcmp (buf, "default") == 0) buf 134 lib/charsets.c const char *id = buf; buf 142 lib/filehighlight/ini-file-read.c GString *buf; buf 151 lib/filehighlight/ini-file-read.c buf = g_string_sized_new (64); buf 158 lib/filehighlight/ini-file-read.c if (buf->len != 0) buf 159 lib/filehighlight/ini-file-read.c g_string_append_c (buf, '|'); buf 160 lib/filehighlight/ini-file-read.c g_string_append (buf, esc_ext); buf 166 lib/filehighlight/ini-file-read.c g_string_prepend (buf, ".*\\.("); buf 167 lib/filehighlight/ini-file-read.c g_string_append (buf, ")$"); buf 171 lib/filehighlight/ini-file-read.c mc_filter->search_condition = mc_search_new_len (buf->str, buf->len, DEFAULT_CHARSET); buf 178 lib/filehighlight/ini-file-read.c g_string_free (buf, TRUE); buf 182 lib/lock.c static char buf[BUF_SIZE]; buf 184 lib/lock.c cnt = readlink (lockfname, buf, sizeof (buf) - 1); buf 185 lib/lock.c if (cnt == -1 || *buf == '\0') buf 187 lib/lock.c buf[cnt] = '\0'; buf 188 lib/lock.c return buf; buf 258 lib/strutil/strutil8bit.c GString *buf; buf 260 lib/strutil/strutil8bit.c buf = g_string_new (""); buf 262 lib/strutil/strutil8bit.c if (str_convert (conv, mcerror->message, buf) != ESTR_FAILURE) buf 263 lib/strutil/strutil8bit.c ret = g_string_free (buf, FALSE); buf 267 lib/strutil/strutil8bit.c g_string_free (buf, TRUE); buf 98 lib/timefmt.c char buf[MB_LEN_MAX * MAX_I18NTIMELENGTH + 1]; buf 107 lib/timefmt.c strftime (buf, sizeof (buf) - 1, user_recent_timeformat, lt); buf 108 lib/timefmt.c tlen = (size_t) str_term_width1 (buf); buf 110 lib/timefmt.c strftime (buf, sizeof (buf) - 1, user_old_timeformat, lt); buf 111 lib/timefmt.c tlen = (size_t) str_term_width1 (buf); buf 738 lib/tty/tty-ncurses.c char buf[BUF_1K]; /* FIXME: is it enough? */ buf 741 lib/tty/tty-ncurses.c g_vsnprintf (buf, sizeof (buf), fmt, args); buf 743 lib/tty/tty-ncurses.c tty_print_string (buf); buf 117 lib/util.c char *buf, *buf2, *q, *r, c; buf 124 lib/util.c r = buf = g_malloc (MC_MAXPATHLEN); buf 142 lib/util.c MC_PTR_FREE (buf); buf 154 lib/util.c MC_PTR_FREE (buf); buf 159 lib/util.c strcpy (buf, buf2); buf 163 lib/util.c canonicalize_pathname (buf); buf 164 lib/util.c r = strchr (buf, '\0'); buf 176 lib/util.c if (*buf == '\0') buf 177 lib/util.c strcpy (buf, PATH_SEP_STR); buf 178 lib/util.c else if (IS_PATH_SEP (r[-1]) && r != buf + 1) buf 184 lib/util.c return buf; buf 1042 lib/util.c char *buf = NULL; buf 1086 lib/util.c g_free (buf); buf 1090 lib/util.c p = buf = g_malloc (currlen); buf 1100 lib/util.c return buf; buf 1154 lib/util.c char buf[MC_MAXPATHLEN + 100]; buf 1173 lib/util.c while (fgets (buf, sizeof (buf), f) != NULL) buf 1179 lib/util.c if (strncmp (buf, vfs_path_as_str (filename_vpath), len) != 0) buf 1183 lib/util.c if (buf[len] != ' ') buf 1187 lib/util.c p = &buf[len + 1]; buf 1246 lib/util.c char buf[MC_MAXPATHLEN + 100]; buf 1291 lib/util.c while (fgets (buf, sizeof (buf), tmp_f) != NULL) buf 1293 lib/util.c if (buf[len] == ' ' && strncmp (buf, vfs_path_as_str (filename_vpath), len) == 0 buf 1294 lib/util.c && strchr (&buf[len + 1], ' ') == NULL) buf 1297 lib/util.c fprintf (f, "%s", buf); buf 103 lib/util.h char buf[MC_PIPE_BUFSIZE]; buf 199 lib/util.h int get_user_permissions (struct stat *buf); buf 241 lib/utilunix.c read_len = read (ps->fd, ps->buf, buf_len); buf 260 lib/utilunix.c ps->buf[(size_t) ps->len] = '\0'; buf 580 lib/utilunix.c p->out.buf[0] = '\0'; buf 584 lib/utilunix.c p->err.buf[0] = '\0'; buf 698 lib/utilunix.c s = ps->buf + ps->pos; buf 510 lib/vfs/direntry.c vfs_s_internal_stat (const vfs_path_t *vpath, struct stat *buf, int flag) buf 517 lib/vfs/direntry.c *buf = ino->st; buf 524 lib/vfs/direntry.c vfs_s_readlink (const vfs_path_t *vpath, char *buf, size_t size) buf 552 lib/vfs/direntry.c memcpy (buf, ino->linkname, len); buf 1399 lib/vfs/direntry.c vfs_s_stat (const vfs_path_t *vpath, struct stat *buf) buf 1401 lib/vfs/direntry.c return vfs_s_internal_stat (vpath, buf, FL_FOLLOW); buf 1407 lib/vfs/direntry.c vfs_s_lstat (const vfs_path_t *vpath, struct stat *buf) buf 1409 lib/vfs/direntry.c return vfs_s_internal_stat (vpath, buf, FL_NONE); buf 1415 lib/vfs/direntry.c vfs_s_fstat (void *fh, struct stat *buf) buf 1417 lib/vfs/direntry.c *buf = VFS_FILE_HANDLER (fh)->ino->st; buf 1611 lib/vfs/direntry.c vfs_s_get_line (struct vfs_class *me, int sock, char *buf, int buf_len, char term) buf 1617 lib/vfs/direntry.c for (i = 0; i < buf_len - 1; i++, buf++) buf 1619 lib/vfs/direntry.c if (read (sock, buf, sizeof (char)) <= 0) buf 1627 lib/vfs/direntry.c ret1 = fwrite (buf, 1, 1, logfile); buf 1633 lib/vfs/direntry.c if (*buf == term) buf 1635 lib/vfs/direntry.c *buf = '\0'; buf 1641 lib/vfs/direntry.c *buf = '\0'; buf 259 lib/vfs/interface.c MC_NAMEOP (readlink, (const vfs_path_t *vpath, char *buf, size_t bufsiz), (vpath, buf, bufsiz)) buf 313 lib/vfs/interface.c MC_HANDLEOP (ssize_t, read, (int handle, void *buf, size_t count), (fsinfo, buf, count)) buf 314 lib/vfs/interface.c MC_HANDLEOP (ssize_t, write, (int handle, const void *buf, size_t count), (fsinfo, buf, count)) buf 315 lib/vfs/interface.c MC_HANDLEOP (int, fstat, (int handle, struct stat *buf), (fsinfo, buf)) buf 535 lib/vfs/interface.c int mc_##name (const vfs_path_t *vpath, struct stat *buf) \ buf 546 lib/vfs/interface.c result = me->name ? me->name (vpath, buf) : -1; \ buf 68 lib/vfs/path.c struct stat buf; buf 70 lib/vfs/path.c return (stat (path, &buf) != 0); buf 166 lib/vfs/vfs.h ssize_t (*write) (void *vfs_info, const char *buf, size_t count); buf 172 lib/vfs/vfs.h int (*stat) (const vfs_path_t * vpath, struct stat * buf); buf 173 lib/vfs/vfs.h int (*lstat) (const vfs_path_t * vpath, struct stat * buf); buf 174 lib/vfs/vfs.h int (*fstat) (void *vfs_info, struct stat * buf); buf 184 lib/vfs/vfs.h int (*readlink) (const vfs_path_t * vpath, char *buf, size_t size); buf 241 lib/vfs/vfs.h int vfs_s_stat (const vfs_path_t * vpath, struct stat *buf); buf 242 lib/vfs/vfs.h int vfs_s_lstat (const vfs_path_t * vpath, struct stat *buf); buf 243 lib/vfs/vfs.h int vfs_s_fstat (void *fh, struct stat *buf); buf 315 lib/vfs/vfs.h int mc_readlink (const vfs_path_t * vpath, char *buf, size_t bufsiz); buf 321 lib/vfs/vfs.h MC_MOCKABLE int mc_stat (const vfs_path_t * vpath, struct stat *buf); buf 326 lib/vfs/vfs.h int mc_fstat (int fd, struct stat *buf); buf 327 lib/vfs/vfs.h MC_MOCKABLE int mc_lstat (const vfs_path_t * vpath, struct stat *buf); buf 149 lib/vfs/xdirentry.h ssize_t (*linear_read) (struct vfs_class * me, vfs_file_handler_t * fh, void *buf, size_t len); buf 190 lib/vfs/xdirentry.h int vfs_s_get_line (struct vfs_class *me, int sock, char *buf, int buf_len, char term); buf 185 lib/widget/hline.c char buf[BUF_1K]; /* FIXME: is it enough? */ buf 188 lib/widget/hline.c g_vsnprintf (buf, sizeof (buf), format, args); buf 191 lib/widget/hline.c hline_set_text (l, buf); buf 192 lib/widget/label.c char buf[BUF_1K]; /* FIXME: is it enough? */ buf 195 lib/widget/label.c g_vsnprintf (buf, sizeof (buf), format, args); buf 198 lib/widget/label.c label_set_text (label, buf); buf 157 src/clipboard.c nwrite = mc_write (file, p->out.buf, p->out.len); buf 214 src/clipboard.c char buf[BUF_LARGE]; buf 236 src/clipboard.c while (fgets (buf, sizeof (buf), f)) buf 240 src/clipboard.c len = strlen (buf); buf 243 src/clipboard.c if (buf[len - 1] == '\n') buf 244 src/clipboard.c buf[len - 1] = '\0'; buf 249 src/clipboard.c *(event_data->text) = g_strdup (buf); buf 256 src/clipboard.c tmp = g_strconcat (*(event_data->text), " ", buf, (char *) NULL); buf 296 src/cons.handler.c screen_shot.buf = g_try_malloc (screen_info.mv_csz * screen_info.mv_rsz * 2); buf 297 src/cons.handler.c if (screen_shot.buf != NULL) buf 336 src/cons.handler.c set_attr ((screen_shot.buf[i] >> 8) & 0xFF); buf 337 src/cons.handler.c putc (screen_shot.buf[i] & 0xFF, stdout); buf 341 src/cons.handler.c set_attr ((screen_shot.buf[last] >> 8) & 0xFF); buf 354 src/cons.handler.c g_free (screen_shot.buf); buf 406 src/cons.handler.c screen_shot.buf[i] = (screen_shot.buf[i] & 0xff00) buf 407 src/cons.handler.c | (unsigned char) revmap.scrmap[screen_shot.buf[i] & 0xff]; buf 428 src/cons.handler.c c = screen_shot.buf[line * screen_info.mv_csz + col] & 0xFF; buf 48 src/diffviewer/internal.h char *buf; buf 128 src/diffviewer/ydiff.c fill_by_space (char *buf, size_t n, gboolean zero_terminate) buf 130 src/diffviewer/ydiff.c memset (buf, ' ', n); buf 132 src/diffviewer/ydiff.c buf[n] = '\0'; buf 213 src/diffviewer/ydiff.c fs->buf = g_try_malloc (FILE_READ_BUF); buf 214 src/diffviewer/ydiff.c if (fs->buf == NULL) buf 247 src/diffviewer/ydiff.c g_free (fs->buf); buf 329 src/diffviewer/ydiff.c dview_fgets (char *buf, size_t size, FBUF *fs) buf 340 src/diffviewer/ydiff.c buf[j] = fs->buf[i]; buf 341 src/diffviewer/ydiff.c if (buf[j] == '\n') buf 350 src/diffviewer/ydiff.c fs->len = read (fs->fd, fs->buf, FILE_READ_BUF); buf 434 src/diffviewer/ydiff.c dview_fwrite (FBUF *fs, const char *buf, size_t size) buf 438 src/diffviewer/ydiff.c rv = write (fs->fd, buf, size); buf 771 src/diffviewer/ydiff.c char buf[BUFSIZ]; buf 773 src/diffviewer/ydiff.c while ((sz = dview_fgets (buf, sizeof (buf) - 1, f)) != 0) buf 775 src/diffviewer/ydiff.c if (isdigit (buf[0])) buf 777 src/diffviewer/ydiff.c if (buf[sz - 1] != '\n') buf 780 src/diffviewer/ydiff.c buf[sz] = '\0'; buf 781 src/diffviewer/ydiff.c if (scan_line (buf, ops) != 0) buf 785 src/diffviewer/ydiff.c while (buf[sz - 1] != '\n' && (sz = dview_fgets (buf, sizeof (buf), f)) != 0) buf 852 src/diffviewer/ydiff.c char buf[BUFSIZ]; buf 854 src/diffviewer/ydiff.c sz = dview_fgets (buf, sizeof (buf), f); buf 859 src/diffviewer/ydiff.c printer (ctx, ch, *line, *off, sz, buf); buf 862 src/diffviewer/ydiff.c while (buf[sz - 1] != '\n') buf 864 src/diffviewer/ydiff.c sz = dview_fgets (buf, sizeof (buf), f); buf 871 src/diffviewer/ydiff.c printer (ctx, 0, 0, 0, sz, buf); buf 1993 src/diffviewer/ydiff.c char buf[BUF_10K]; buf 2001 src/diffviewer/ydiff.c for (line = 0; fgets (buf, sizeof (buf), f0) != NULL && line < from1 - 1; line++) buf 2002 src/diffviewer/ydiff.c fputs (buf, merge_file); buf 2004 src/diffviewer/ydiff.c while (fgets (buf, sizeof (buf), f0) != NULL) buf 2008 src/diffviewer/ydiff.c fputs (buf, merge_file); buf 2030 src/diffviewer/ydiff.c char buf[BUF_10K]; buf 2044 src/diffviewer/ydiff.c for (line = 0; fgets (buf, sizeof (buf), f0) != NULL && line < from1 - 1; line++) buf 2045 src/diffviewer/ydiff.c fputs (buf, merge_file); buf 2046 src/diffviewer/ydiff.c for (line = 0; fgets (buf, sizeof (buf), f1) != NULL && line <= to2;) buf 2050 src/diffviewer/ydiff.c fputs (buf, merge_file); buf 2052 src/diffviewer/ydiff.c while (fgets (buf, sizeof (buf), f0) != NULL) buf 2053 src/diffviewer/ydiff.c fputs (buf, merge_file); buf 2077 src/diffviewer/ydiff.c char buf[BUF_10K]; buf 2091 src/diffviewer/ydiff.c for (line1 = 0; fgets (buf, sizeof (buf), f0) != NULL && line1 < from1 - 1; line1++) buf 2092 src/diffviewer/ydiff.c fputs (buf, merge_file); buf 2093 src/diffviewer/ydiff.c for (line2 = 0; fgets (buf, sizeof (buf), f1) != NULL && line2 <= to2;) buf 2097 src/diffviewer/ydiff.c fputs (buf, merge_file); buf 2099 src/diffviewer/ydiff.c while (fgets (buf, sizeof (buf), f0) != NULL) buf 2103 src/diffviewer/ydiff.c fputs (buf, merge_file); buf 2499 src/diffviewer/ydiff.c char buf[BUFSIZ]; buf 2536 src/diffviewer/ydiff.c if ((int) sizeof (buf) <= width || (int) sizeof (buf) <= nwidth) buf 2562 src/diffviewer/ydiff.c g_snprintf (buf, display_numbers + 1, "%*d", nwidth, p->line); buf 2563 src/diffviewer/ydiff.c tty_print_string (str_fit_to_term (buf, nwidth, J_LEFT_FIT)); buf 2584 src/diffviewer/ydiff.c cvt_mgeta (p->p, p->u.len, buf, k, skip, tab_size, show_cr, buf 2589 src/diffviewer/ydiff.c for (cnt = 0; cnt < strlen (buf) && col < width; cnt++) buf 2598 src/diffviewer/ydiff.c ch_res = dview_get_utf (buf + cnt, &next_ch, &ch_length); buf 2606 src/diffviewer/ydiff.c ch_res = dview_get_byte (buf + cnt, &next_ch); buf 2642 src/diffviewer/ydiff.c cvt_mget (p->p, p->u.len, buf, k, skip, tab_size, show_cr); buf 2645 src/diffviewer/ydiff.c cvt_fget (f, p->u.off, buf, width, skip, tab_size, show_cr); buf 2652 src/diffviewer/ydiff.c fill_by_space (buf, display_numbers, TRUE); buf 2653 src/diffviewer/ydiff.c tty_print_string (buf); buf 2659 src/diffviewer/ydiff.c fill_by_space (buf, width, TRUE); buf 2664 src/diffviewer/ydiff.c for (cnt = 0; cnt < strlen (buf) && col < width; cnt++) buf 2673 src/diffviewer/ydiff.c ch_res = dview_get_utf (buf + cnt, &next_ch, &ch_length); buf 2681 src/diffviewer/ydiff.c ch_res = dview_get_byte (buf + cnt, &next_ch); buf 2707 src/diffviewer/ydiff.c fill_by_space (buf, k, TRUE); buf 2714 src/diffviewer/ydiff.c tty_print_string (str_fit_to_term (buf, xwidth - 1, J_LEFT_FIT)); buf 2718 src/diffviewer/ydiff.c tty_print_string (str_fit_to_term (buf, width, J_LEFT_FIT)); buf 2729 src/diffviewer/ydiff.c const char *buf; buf 2747 src/diffviewer/ydiff.c buf = str_term_trim (path, filename_width); buf 2750 src/diffviewer/ydiff.c buf, linenum, lineofs, dview->skip_cols); buf 2753 src/diffviewer/ydiff.c buf, linenum, lineofs, dview->ndiff); buf 166 src/editor/edit.c edit_buffer_calc_percent (rsm->buf, rsm->loaded)); buf 195 src/editor/edit.c edit_load_file_fast (edit_buffer_t *buf, const vfs_path_t *filename_vpath) buf 215 src/editor/edit.c rsm.buf = buf; buf 221 src/editor/edit.c ret = (edit_buffer_read_file (buf, file, buf->size, &rsm, &aborted) == buf->size); buf 663 src/editor/edit.c is_in_indent (const edit_buffer_t *buf) buf 667 src/editor/edit.c for (p = edit_buffer_get_current_bol (buf); p < buf->curs1; p++) buf 668 src/editor/edit.c if (strchr (" \t", edit_buffer_get_byte (buf, p)) == NULL) buf 684 src/editor/edit.c is_blank (const edit_buffer_t *buf, off_t offset) buf 688 src/editor/edit.c s = edit_buffer_get_bol (buf, offset); buf 689 src/editor/edit.c f = edit_buffer_get_eol (buf, offset); buf 694 src/editor/edit.c c = edit_buffer_get_byte (buf, s); buf 2042 src/editor/edit.c char *buf; buf 2048 src/editor/edit.c buf = g_malloc0 (TEMP_BUF_LEN); buf 2049 src/editor/edit.c blocklen = mc_read (file, buf, sizeof (VERTICAL_MAGIC)); buf 2053 src/editor/edit.c if (memcmp (buf, VERTICAL_MAGIC, sizeof (VERTICAL_MAGIC)) == 0) buf 2079 src/editor/edit.c while ((blocklen = mc_read (file, (char *) buf, TEMP_BUF_LEN)) > 0) buf 2082 src/editor/edit.c edit_insert (edit, buf[i]); buf 2102 src/editor/edit.c g_free (buf); buf 117 src/editor/editbuffer.c edit_buffer_get_byte_ptr (const edit_buffer_t *buf, off_t byte_index) buf 121 src/editor/editbuffer.c if (byte_index >= (buf->curs1 + buf->curs2) || byte_index < 0) buf 124 src/editor/editbuffer.c if (byte_index >= buf->curs1) buf 128 src/editor/editbuffer.c p = buf->curs1 + buf->curs2 - byte_index - 1; buf 129 src/editor/editbuffer.c b = g_ptr_array_index (buf->b2, p >> S_EDIT_BUF_SIZE); buf 133 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, byte_index >> S_EDIT_BUF_SIZE); buf 147 src/editor/editbuffer.c edit_buffer_init (edit_buffer_t *buf, off_t size) buf 149 src/editor/editbuffer.c buf->b1 = g_ptr_array_new_full (32, g_free); buf 150 src/editor/editbuffer.c buf->b2 = g_ptr_array_new_full (32, g_free); buf 152 src/editor/editbuffer.c buf->curs1 = 0; buf 153 src/editor/editbuffer.c buf->curs2 = 0; buf 155 src/editor/editbuffer.c buf->size = size; buf 156 src/editor/editbuffer.c buf->lines = 0; buf 167 src/editor/editbuffer.c edit_buffer_clean (edit_buffer_t *buf) buf 169 src/editor/editbuffer.c if (buf->b1 != NULL) buf 170 src/editor/editbuffer.c g_ptr_array_free (buf->b1, TRUE); buf 172 src/editor/editbuffer.c if (buf->b2 != NULL) buf 173 src/editor/editbuffer.c g_ptr_array_free (buf->b2, TRUE); buf 187 src/editor/editbuffer.c edit_buffer_get_byte (const edit_buffer_t *buf, off_t byte_index) buf 191 src/editor/editbuffer.c p = edit_buffer_get_byte_ptr (buf, byte_index); buf 212 src/editor/editbuffer.c edit_buffer_get_utf (const edit_buffer_t *buf, off_t byte_index, int *char_length) buf 219 src/editor/editbuffer.c if (byte_index >= (buf->curs1 + buf->curs2) || byte_index < 0) buf 225 src/editor/editbuffer.c str = edit_buffer_get_byte_ptr (buf, byte_index); buf 240 src/editor/editbuffer.c utf8_buf[i] = edit_buffer_get_byte (buf, byte_index + i); buf 275 src/editor/editbuffer.c edit_buffer_get_prev_utf (const edit_buffer_t *buf, off_t byte_index, int *char_length) buf 283 src/editor/editbuffer.c if (byte_index > (buf->curs1 + buf->curs2) || byte_index <= 0) buf 290 src/editor/editbuffer.c utf8_buf[i] = edit_buffer_get_byte (buf, byte_index + i - (2 * UTF8_CHAR_LEN)); buf 326 src/editor/editbuffer.c edit_buffer_count_lines (const edit_buffer_t *buf, off_t first, off_t last) buf 331 src/editor/editbuffer.c last = MIN (last, buf->size); buf 334 src/editor/editbuffer.c if (edit_buffer_get_byte (buf, first++) == '\n') buf 351 src/editor/editbuffer.c edit_buffer_get_bol (const edit_buffer_t *buf, off_t current) buf 356 src/editor/editbuffer.c for (; edit_buffer_get_byte (buf, current - 1) != '\n'; current--) buf 373 src/editor/editbuffer.c edit_buffer_get_eol (const edit_buffer_t *buf, off_t current) buf 375 src/editor/editbuffer.c if (current >= buf->size) buf 376 src/editor/editbuffer.c return buf->size; buf 378 src/editor/editbuffer.c for (; edit_buffer_get_byte (buf, current) != '\n'; current++) buf 397 src/editor/editbuffer.c edit_buffer_get_word_from_pos (const edit_buffer_t *buf, off_t start_pos, off_t *start, gsize *cut) buf 406 src/editor/editbuffer.c c1 = edit_buffer_get_byte (buf, word_start); buf 407 src/editor/editbuffer.c c2 = edit_buffer_get_byte (buf, word_start - 1); buf 417 src/editor/editbuffer.c c1 = edit_buffer_get_byte (buf, word_start + match_expr->len); buf 418 src/editor/editbuffer.c c2 = edit_buffer_get_byte (buf, word_start + match_expr->len + 1); buf 442 src/editor/editbuffer.c edit_buffer_find_word_start (const edit_buffer_t *buf, off_t *word_start, gsize *word_len) buf 448 src/editor/editbuffer.c if (buf->curs1 <= 0) buf 451 src/editor/editbuffer.c c = edit_buffer_get_previous_byte (buf); buf 462 src/editor/editbuffer.c c = edit_buffer_get_byte (buf, buf->curs1 - i - 1); buf 475 src/editor/editbuffer.c *word_start = buf->curs1 - i; /* start found */ buf 491 src/editor/editbuffer.c edit_buffer_insert (edit_buffer_t *buf, int c) buf 496 src/editor/editbuffer.c i = buf->curs1 & M_EDIT_BUF_SIZE; buf 500 src/editor/editbuffer.c g_ptr_array_add (buf->b1, g_malloc0 (EDIT_BUF_SIZE)); buf 503 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, buf->curs1 >> S_EDIT_BUF_SIZE); buf 507 src/editor/editbuffer.c buf->curs1++; buf 510 src/editor/editbuffer.c buf->size++; buf 523 src/editor/editbuffer.c edit_buffer_insert_ahead (edit_buffer_t *buf, int c) buf 528 src/editor/editbuffer.c i = buf->curs2 & M_EDIT_BUF_SIZE; buf 532 src/editor/editbuffer.c g_ptr_array_add (buf->b2, g_malloc0 (EDIT_BUF_SIZE)); buf 535 src/editor/editbuffer.c b = g_ptr_array_index (buf->b2, buf->curs2 >> S_EDIT_BUF_SIZE); buf 539 src/editor/editbuffer.c buf->curs2++; buf 542 src/editor/editbuffer.c buf->size++; buf 555 src/editor/editbuffer.c edit_buffer_delete (edit_buffer_t *buf) buf 562 src/editor/editbuffer.c prev = buf->curs2 - 1; buf 564 src/editor/editbuffer.c b = g_ptr_array_index (buf->b2, prev >> S_EDIT_BUF_SIZE); buf 572 src/editor/editbuffer.c j = buf->b2->len - 1; buf 573 src/editor/editbuffer.c b = g_ptr_array_index (buf->b2, j); buf 574 src/editor/editbuffer.c g_ptr_array_remove_index (buf->b2, j); buf 577 src/editor/editbuffer.c buf->curs2 = prev; buf 580 src/editor/editbuffer.c buf->size--; buf 595 src/editor/editbuffer.c edit_buffer_backspace (edit_buffer_t *buf) buf 602 src/editor/editbuffer.c prev = buf->curs1 - 1; buf 604 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, prev >> S_EDIT_BUF_SIZE); buf 612 src/editor/editbuffer.c j = buf->b1->len - 1; buf 613 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, j); buf 614 src/editor/editbuffer.c g_ptr_array_remove_index (buf->b1, j); buf 617 src/editor/editbuffer.c buf->curs1 = prev; buf 620 src/editor/editbuffer.c buf->size--; buf 640 src/editor/editbuffer.c edit_buffer_get_forward_offset (const edit_buffer_t *buf, off_t current, long lines, off_t upto) buf 643 src/editor/editbuffer.c return (off_t) edit_buffer_count_lines (buf, current, upto); buf 651 src/editor/editbuffer.c next = edit_buffer_get_eol (buf, current) + 1; buf 652 src/editor/editbuffer.c if (next > buf->size) buf 672 src/editor/editbuffer.c edit_buffer_get_backward_offset (const edit_buffer_t *buf, off_t current, long lines) buf 675 src/editor/editbuffer.c current = edit_buffer_get_bol (buf, current); buf 678 src/editor/editbuffer.c current = edit_buffer_get_bol (buf, current - 1); buf 695 src/editor/editbuffer.c edit_buffer_read_file (edit_buffer_t *buf, int fd, off_t size, buf 707 src/editor/editbuffer.c buf->lines = 0; buf 708 src/editor/editbuffer.c buf->curs2 = size; buf 709 src/editor/editbuffer.c i = buf->curs2 >> S_EDIT_BUF_SIZE; buf 712 src/editor/editbuffer.c data_size = buf->curs2 & M_EDIT_BUF_SIZE; buf 716 src/editor/editbuffer.c g_ptr_array_add (buf->b2, b); buf 723 src/editor/editbuffer.c buf->lines++; buf 736 src/editor/editbuffer.c g_ptr_array_add (buf->b2, b); buf 744 src/editor/editbuffer.c buf->lines++; buf 752 src/editor/editbuffer.c if (sm->buf == NULL) buf 753 src/editor/editbuffer.c sm->buf = buf; buf 769 src/editor/editbuffer.c for (i = 0; i < (off_t) buf->b2->len / 2; i++) buf 773 src/editor/editbuffer.c b1 = &g_ptr_array_index (buf->b2, i); buf 774 src/editor/editbuffer.c b2 = &g_ptr_array_index (buf->b2, buf->b2->len - 1 - i); buf 809 src/editor/editbuffer.c edit_buffer_write_file (edit_buffer_t *buf, int fd) buf 817 src/editor/editbuffer.c if (buf->b1->len != 0) buf 820 src/editor/editbuffer.c for (i = 0; i < (off_t) buf->b1->len - 1; i++) buf 822 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, i); buf 833 src/editor/editbuffer.c data_size = ((buf->curs1 - 1) & M_EDIT_BUF_SIZE) + 1; buf 834 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, i); buf 843 src/editor/editbuffer.c if (buf->b2->len != 0) buf 846 src/editor/editbuffer.c i = buf->b2->len - 1; buf 847 src/editor/editbuffer.c b = g_ptr_array_index (buf->b2, i); buf 848 src/editor/editbuffer.c data_size = ((buf->curs2 - 1) & M_EDIT_BUF_SIZE) + 1; buf 859 src/editor/editbuffer.c b = g_ptr_array_index (buf->b2, i); buf 883 src/editor/editbuffer.c edit_buffer_calc_percent (const edit_buffer_t *buf, off_t offset) buf 887 src/editor/editbuffer.c if (buf->size == 0) buf 889 src/editor/editbuffer.c else if (offset >= buf->size) buf 892 src/editor/editbuffer.c percent = offset / (buf->size / 100); buf 894 src/editor/editbuffer.c percent = offset * 100 / buf->size; buf 30 src/editor/editbuffer.h edit_buffer_t *buf; buf 38 src/editor/editbuffer.h void edit_buffer_init (edit_buffer_t * buf, off_t size); buf 39 src/editor/editbuffer.h void edit_buffer_clean (edit_buffer_t * buf); buf 41 src/editor/editbuffer.h int edit_buffer_get_byte (const edit_buffer_t * buf, off_t byte_index); buf 43 src/editor/editbuffer.h int edit_buffer_get_utf (const edit_buffer_t * buf, off_t byte_index, int *char_length); buf 44 src/editor/editbuffer.h int edit_buffer_get_prev_utf (const edit_buffer_t * buf, off_t byte_index, int *char_length); buf 46 src/editor/editbuffer.h long edit_buffer_count_lines (const edit_buffer_t * buf, off_t first, off_t last); buf 47 src/editor/editbuffer.h off_t edit_buffer_get_bol (const edit_buffer_t * buf, off_t current); buf 48 src/editor/editbuffer.h off_t edit_buffer_get_eol (const edit_buffer_t * buf, off_t current); buf 49 src/editor/editbuffer.h GString *edit_buffer_get_word_from_pos (const edit_buffer_t * buf, off_t start_pos, off_t * start, buf 51 src/editor/editbuffer.h gboolean edit_buffer_find_word_start (const edit_buffer_t * buf, off_t * word_start, buf 54 src/editor/editbuffer.h void edit_buffer_insert (edit_buffer_t * buf, int c); buf 55 src/editor/editbuffer.h void edit_buffer_insert_ahead (edit_buffer_t * buf, int c); buf 56 src/editor/editbuffer.h int edit_buffer_delete (edit_buffer_t * buf); buf 57 src/editor/editbuffer.h int edit_buffer_backspace (edit_buffer_t * buf); buf 59 src/editor/editbuffer.h off_t edit_buffer_get_forward_offset (const edit_buffer_t * buf, off_t current, long lines, buf 61 src/editor/editbuffer.h off_t edit_buffer_get_backward_offset (const edit_buffer_t * buf, off_t current, long lines); buf 63 src/editor/editbuffer.h off_t edit_buffer_read_file (edit_buffer_t * buf, int fd, off_t size, buf 65 src/editor/editbuffer.h off_t edit_buffer_write_file (edit_buffer_t * buf, int fd); buf 67 src/editor/editbuffer.h int edit_buffer_calc_percent (const edit_buffer_t * buf, off_t offset); buf 72 src/editor/editbuffer.h edit_buffer_get_current_byte (const edit_buffer_t *buf) buf 74 src/editor/editbuffer.h return edit_buffer_get_byte (buf, buf->curs1); buf 80 src/editor/editbuffer.h edit_buffer_get_previous_byte (const edit_buffer_t *buf) buf 82 src/editor/editbuffer.h return edit_buffer_get_byte (buf, buf->curs1 - 1); buf 95 src/editor/editbuffer.h edit_buffer_get_current_bol (const edit_buffer_t *buf) buf 97 src/editor/editbuffer.h return edit_buffer_get_bol (buf, buf->curs1); buf 110 src/editor/editbuffer.h edit_buffer_get_current_eol (const edit_buffer_t *buf) buf 112 src/editor/editbuffer.h return edit_buffer_get_eol (buf, buf->curs1); buf 371 src/editor/editcmd.c edit_check_newline (const edit_buffer_t *buf) buf 373 src/editor/editcmd.c return !(edit_options.check_nl_at_eof && buf->size > 0 buf 374 src/editor/editcmd.c && edit_buffer_get_byte (buf, buf->size - 1) != '\n' buf 634 src/editor/editcmd.c pipe_mail (const edit_buffer_t *buf, char *to, char *subject, char *cc) buf 670 src/editor/editcmd.c for (i = 0; i < buf->size; i++) buf 671 src/editor/editcmd.c if (fputc (edit_buffer_get_byte (buf, i), p) < 0) buf 1561 src/editor/editcmd.c unsigned char *buf; buf 1565 src/editor/editcmd.c buf = g_malloc0 (TEMP_BUF_LEN); buf 1572 src/editor/editcmd.c buf[i - start] = edit_buffer_get_byte (&edit->buffer, i); buf 1573 src/editor/editcmd.c len -= mc_write (file, (char *) buf, end - start); buf 1576 src/editor/editcmd.c g_free (buf); buf 331 src/editor/editsearch.c edit_calculate_start_of_next_line (const edit_buffer_t *buf, off_t current_pos, off_t max_pos, buf 339 src/editor/editsearch.c if (edit_buffer_get_byte (buf, i) == end_string_symbol) buf 357 src/editor/editsearch.c edit_calculate_end_of_previous_line (const edit_buffer_t *buf, off_t current_pos, buf 363 src/editor/editsearch.c if (edit_buffer_get_byte (buf, i) == end_string_symbol) buf 380 src/editor/editsearch.c edit_calculate_start_of_previous_line (const edit_buffer_t *buf, off_t current_pos, buf 383 src/editor/editsearch.c current_pos = edit_calculate_end_of_previous_line (buf, current_pos, end_string_symbol); buf 384 src/editor/editsearch.c current_pos = edit_calculate_end_of_previous_line (buf, current_pos, end_string_symbol); buf 400 src/editor/editsearch.c edit_calculate_start_of_current_line (const edit_buffer_t *buf, off_t current_pos, buf 403 src/editor/editsearch.c current_pos = edit_calculate_end_of_previous_line (buf, current_pos, end_string_symbol); buf 80 src/editor/etags.c parse_define (const char *buf, char **long_name, char **short_name, long *line) buf 97 src/editor/etags.c char c = *buf; buf 125 src/editor/etags.c buf--; buf 183 src/editor/etags.c buf++; buf 184 src/editor/etags.c c = *buf; buf 209 src/editor/etags.c char buf[BUF_LARGE]; buf 221 src/editor/etags.c while (fgets (buf, sizeof (buf), f) != NULL) buf 225 src/editor/etags.c if (buf[0] == 0x0C) buf 233 src/editor/etags.c pos = strcspn (buf, ","); buf 235 src/editor/etags.c filename = g_strndup (buf, pos); buf 241 src/editor/etags.c if (buf[0] == 0x0C) buf 248 src/editor/etags.c chekedstr = strstr (buf, match_func); buf 72 src/editor/format.c line_start (const edit_buffer_t *buf, long line) buf 77 src/editor/format.c l = buf->curs_line; buf 78 src/editor/format.c p = buf->curs1; buf 81 src/editor/format.c p = edit_buffer_get_backward_offset (buf, p, l - line); buf 83 src/editor/format.c p = edit_buffer_get_forward_offset (buf, p, line - l, 0); buf 85 src/editor/format.c p = edit_buffer_get_bol (buf, p); buf 86 src/editor/format.c while (strchr ("\t ", edit_buffer_get_byte (buf, p)) != NULL) buf 94 src/editor/format.c bad_line_start (const edit_buffer_t *buf, off_t p) buf 98 src/editor/format.c c = edit_buffer_get_byte (buf, p); buf 102 src/editor/format.c return !(edit_buffer_get_byte (buf, p + 1) == '.' buf 103 src/editor/format.c && edit_buffer_get_byte (buf, p + 2) == '.'); buf 108 src/editor/format.c return !(edit_buffer_get_byte (buf, p + 1) == '-' buf 109 src/editor/format.c && edit_buffer_get_byte (buf, p + 2) == '-'); buf 170 src/editor/format.c get_paragraph (const edit_buffer_t *buf, off_t p, off_t q, gboolean indent) buf 178 src/editor/format.c if (indent && edit_buffer_get_byte (buf, p - 1) == '\n') buf 179 src/editor/format.c while (strchr ("\t ", edit_buffer_get_byte (buf, p)) != NULL) buf 182 src/editor/format.c g_string_append_c (t, edit_buffer_get_byte (buf, p)); buf 66 src/file_history.c char buf[MC_MAXPATHLEN + 100]; buf 79 src/file_history.c while (fgets (buf, sizeof (buf), f) != NULL) buf 85 src/file_history.c s = strrchr (buf, ' '); buf 88 src/file_history.c fhd->file_name = g_strndup (buf, s - buf); buf 556 src/filemanager/ext.c get_popen_information (const char *cmd_file, const char *args, char *buf, int buflen) buf 575 src/filemanager/ext.c read_bytes = (fgets (buf, buflen, f) != NULL); buf 577 src/filemanager/ext.c buf[0] = '\0'; /* Paranoid termination */ buf 582 src/filemanager/ext.c buf[0] = '\0'; /* Paranoid termination */ buf 586 src/filemanager/ext.c buf[buflen - 1] = '\0'; buf 598 src/filemanager/ext.c get_file_type_local (const vfs_path_t *filename_vpath, char *buf, int buflen) buf 606 src/filemanager/ext.c ret = get_popen_information (FILE_CMD, filename_quoted, buf, buflen); buf 621 src/filemanager/ext.c get_file_encoding_local (const vfs_path_t *filename_vpath, char *buf, int buflen) buf 639 src/filemanager/ext.c ret = get_popen_information ("enca", args, buf, buflen); buf 1117 src/filemanager/file.c char buf[BUF_MEDIUM]; buf 1122 src/filemanager/file.c g_snprintf (buf, sizeof (buf), format, nfile1, nfile2, unix_error_string (errno)); buf 1126 src/filemanager/file.c return do_file_error (TRUE, buf); buf 1385 src/filemanager/file.c struct stat buf; buf 1398 src/filemanager/file.c if (tctx->progress_count != 0 && mc_lstat (vpath, &buf) != 0) buf 1401 src/filemanager/file.c buf.st_size = 0; buf 1457 src/filemanager/file.c struct stat buf; buf 1463 src/filemanager/file.c if (mc_lstat (tmp_vpath, &buf) != 0) buf 1469 src/filemanager/file.c if (S_ISDIR (buf.st_mode)) buf 2282 src/filemanager/file.c char *buf = NULL; buf 2685 src/filemanager/file.c buf = g_malloc (bufsize); buf 2694 src/filemanager/file.c while ((n_read = mc_read (src_desc, buf, bufsize)) < 0 && !ctx->ignore_all) buf 2712 src/filemanager/file.c char *t = buf; buf 2818 src/filemanager/file.c g_free (buf); buf 3713 src/filemanager/file.c char buf[BUF_MEDIUM]; buf 3715 src/filemanager/file.c g_snprintf (buf, sizeof (buf), format, path_trunc (file, 30), unix_error_string (errno)); buf 3717 src/filemanager/file.c return do_file_error (allow_retry, buf); buf 108 src/filemanager/filegui.c statfs (char const *filename, struct fs_info *buf) buf 123 src/filemanager/filegui.c return fs_stat_dev (device, buf); buf 1359 src/filemanager/filegui.c struct stat buf; buf 1468 src/filemanager/filegui.c || (mc_stat (vpath, &buf) == 0 && S_ISDIR (buf.st_mode)))) buf 1471 src/filemanager/filegui.c || (only_one && mc_stat (vpath, &buf) == 0 && S_ISDIR (buf.st_mode))))) buf 21 src/filemanager/fileopctx.h typedef int (*mc_stat_fn) (const vfs_path_t * vpath, struct stat * buf); buf 522 src/filemanager/panel.c format_device_number (char *buf, size_t bufsize, dev_t dev) buf 536 src/filemanager/panel.c g_snprintf (buf, bufsize, "%lu,%lu", (unsigned long) major_dev, (unsigned long) minor_dev); buf 538 src/filemanager/panel.c g_strlcpy (buf, _("[dev]"), bufsize); buf 1138 src/filemanager/panel.c const char *buf; buf 1144 src/filemanager/panel.c buf = size_only ? b_bytes : buffer; buf 1156 src/filemanager/panel.c buf = str_trunc (buf, cols - 4); buf 1160 src/filemanager/panel.c x = (w->rect.cols - str_term_width1 (buf)) / 2 - 1; buf 1168 src/filemanager/panel.c tty_printf (" %s ", buf); buf 343 src/filemanager/panelize.c message (D_ERROR, MSG_ERROR, _("External panelize:\n%s"), external->err.buf); buf 761 src/filemanager/tree.c struct stat buf; buf 765 src/filemanager/tree.c if (mc_stat (dest_vpath, &buf) != 0) buf 768 src/filemanager/tree.c else if (!S_ISDIR (buf.st_mode)) buf 821 src/filemanager/tree.c char *buf; buf 824 src/filemanager/tree.c buf = g_strdup_printf (_("Delete %s?"), vfs_path_as_str (tree->selected_ptr->name)); buf 826 src/filemanager/tree.c result = query_dialog (Q_ ("DialogTitle|Delete"), buf, D_ERROR, 2, _("&Yes"), _("&No")); buf 827 src/filemanager/tree.c g_free (buf); buf 903 src/filemanager/treestore.c struct stat buf; buf 928 src/filemanager/treestore.c if (mc_lstat (tmp_vpath, &buf) != -1 && S_ISDIR (buf.st_mode)) buf 234 src/subshell/common.c write_all (int fd, const void *buf, size_t count) buf 242 src/subshell/common.c ret = write (fd, (const unsigned char *) buf + written, count); buf 314 src/vfs/cpio/cpio.c char buf[BUF_SMALL * 2]; buf 319 src/vfs/cpio/cpio.c top = mc_read (arch->fd, buf, sizeof (buf)); buf 327 src/vfs/cpio/cpio.c if (top > (ssize_t) (sizeof (buf) / 2)) buf 329 src/vfs/cpio/cpio.c memmove (buf, buf + top - sizeof (buf) / 2, sizeof (buf) / 2); buf 330 src/vfs/cpio/cpio.c ptr -= top - sizeof (buf) / 2; buf 331 src/vfs/cpio/cpio.c top = sizeof (buf) / 2; buf 333 src/vfs/cpio/cpio.c tmp = mc_read (arch->fd, buf, top); buf 342 src/vfs/cpio/cpio.c if (TYPEIS (CPIO_BIN) && ((*(unsigned short *) (buf + ptr)) == 070707)) buf 348 src/vfs/cpio/cpio.c && ((*(unsigned short *) (buf + ptr)) == GUINT16_SWAP_LE_BE_CONSTANT (070707))) buf 353 src/vfs/cpio/cpio.c else if (TYPEIS (CPIO_OLDC) && (strncmp (buf + ptr, "070707", 6) == 0)) buf 358 src/vfs/cpio/cpio.c else if (TYPEIS (CPIO_NEWC) && (strncmp (buf + ptr, "070701", 6) == 0)) buf 363 src/vfs/cpio/cpio.c else if (TYPEIS (CPIO_CRC) && (strncmp (buf + ptr, "070702", 6) == 0)) buf 547 src/vfs/cpio/cpio.c struct old_cpio_header buf; buf 556 src/vfs/cpio/cpio.c len = mc_read (arch->fd, (char *) &u.buf, HEAD_LENGTH); buf 568 src/vfs/cpio/cpio.c if (u.buf.c_magic != 070707 || u.buf.c_namesize == 0 || u.buf.c_namesize > MC_MAXPATHLEN) buf 573 src/vfs/cpio/cpio.c name = g_malloc (u.buf.c_namesize); buf 574 src/vfs/cpio/cpio.c len = mc_read (arch->fd, name, u.buf.c_namesize); buf 575 src/vfs/cpio/cpio.c if (len < u.buf.c_namesize) buf 580 src/vfs/cpio/cpio.c name[u.buf.c_namesize - 1] = '\0'; buf 590 src/vfs/cpio/cpio.c st.st_dev = u.buf.c_dev; buf 591 src/vfs/cpio/cpio.c st.st_ino = u.buf.c_ino; buf 592 src/vfs/cpio/cpio.c st.st_mode = u.buf.c_mode; buf 593 src/vfs/cpio/cpio.c st.st_nlink = u.buf.c_nlink; buf 594 src/vfs/cpio/cpio.c st.st_uid = u.buf.c_uid; buf 595 src/vfs/cpio/cpio.c st.st_gid = u.buf.c_gid; buf 597 src/vfs/cpio/cpio.c st.st_rdev = u.buf.c_rdev; buf 599 src/vfs/cpio/cpio.c st.st_size = ((off_t) u.buf.c_filesizes[0] << 16) | u.buf.c_filesizes[1]; buf 604 src/vfs/cpio/cpio.c ((time_t) u.buf.c_mtimes[0] << 16) | u.buf.c_mtimes[1]; buf 622 src/vfs/cpio/cpio.c char buf[HEAD_LENGTH + 1]; buf 627 src/vfs/cpio/cpio.c if (mc_read (arch->fd, u.buf, HEAD_LENGTH) != HEAD_LENGTH) buf 630 src/vfs/cpio/cpio.c u.buf[HEAD_LENGTH] = 0; buf 632 src/vfs/cpio/cpio.c if (sscanf (u.buf, "070707%6lo%6lo%6lo%6lo%6lo%6lo%6lo%11lo%6lo%11lo", buf 693 src/vfs/cpio/cpio.c char buf[HEAD_LENGTH + 1]; buf 698 src/vfs/cpio/cpio.c if (mc_read (arch->fd, u.buf, HEAD_LENGTH) != HEAD_LENGTH) buf 702 src/vfs/cpio/cpio.c u.buf[HEAD_LENGTH] = '\0'; buf 704 src/vfs/cpio/cpio.c if (sscanf (u.buf, "%6ho%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx", buf 625 src/vfs/extfs/extfs.c err_msg = g_string_new_len (pip->err.buf, pip->err.len); buf 630 src/vfs/extfs/extfs.c g_string_append_len (err_msg, pip->err.buf, pip->err.len); buf 1002 src/vfs/extfs/extfs.c message (D_ERROR, MSG_ERROR, _("EXTFS virtual file system:\n%s"), pip->err.buf); buf 1231 src/vfs/extfs/extfs.c extfs_stat_move (struct stat *buf, const struct vfs_s_inode *inode) buf 1237 src/vfs/extfs/extfs.c *buf = inode->st; buf 1240 src/vfs/extfs/extfs.c buf->st_blksize = RECORDSIZE; buf 1243 src/vfs/extfs/extfs.c vfs_adjust_stat (buf); buf 1244 src/vfs/extfs/extfs.c vfs_zero_stat_times (buf); buf 1246 src/vfs/extfs/extfs.c buf->st_atime = atime; buf 1247 src/vfs/extfs/extfs.c buf->st_mtime = mtime; buf 1248 src/vfs/extfs/extfs.c buf->st_ctime = ctime; buf 1254 src/vfs/extfs/extfs.c extfs_internal_stat (const vfs_path_t *vpath, struct stat *buf, gboolean resolve) buf 1273 src/vfs/extfs/extfs.c extfs_stat_move (buf, entry->ino); buf 1282 src/vfs/extfs/extfs.c extfs_stat (const vfs_path_t *vpath, struct stat *buf) buf 1284 src/vfs/extfs/extfs.c return extfs_internal_stat (vpath, buf, TRUE); buf 1290 src/vfs/extfs/extfs.c extfs_lstat (const vfs_path_t *vpath, struct stat *buf) buf 1292 src/vfs/extfs/extfs.c return extfs_internal_stat (vpath, buf, FALSE); buf 1298 src/vfs/extfs/extfs.c extfs_fstat (void *fh, struct stat *buf) buf 1302 src/vfs/extfs/extfs.c extfs_stat_move (buf, file->ino); buf 1309 src/vfs/extfs/extfs.c extfs_readlink (const vfs_path_t *vpath, char *buf, size_t size) buf 1333 src/vfs/extfs/extfs.c memcpy (buf, entry->ino->linkname, result); buf 1362 src/vfs/extfs/extfs.c extfs_write (void *fh, const char *buf, size_t nbyte) buf 1367 src/vfs/extfs/extfs.c return write (file->handle, buf, nbyte); buf 1062 src/vfs/ftpfs/ftpfs.c char buf[MC_MAXPATHLEN + 1]; buf 1065 src/vfs/ftpfs/ftpfs.c ftpfs_get_reply (me, FTP_SUPER (super)->sock, buf, sizeof (buf)) == COMPLETE) buf 1070 src/vfs/ftpfs/ftpfs.c for (bufq = buf; *bufq != '\0'; bufq++) buf 1555 src/vfs/ftpfs/ftpfs.c char buf[BUF_8K]; buf 1560 src/vfs/ftpfs/ftpfs.c while (read (dsock, buf, sizeof (buf)) > 0) buf 2052 src/vfs/ftpfs/ftpfs.c ftpfs_linear_read (struct vfs_class *me, vfs_file_handler_t *fh, void *buf, size_t len) buf 2057 src/vfs/ftpfs/ftpfs.c while ((n = read (FH_SOCK, buf, len)) < 0) buf 2152 src/vfs/ftpfs/ftpfs.c ftpfs_stat (const vfs_path_t *vpath, struct stat *buf) buf 2156 src/vfs/ftpfs/ftpfs.c ret = vfs_s_stat (vpath, buf); buf 2157 src/vfs/ftpfs/ftpfs.c ftpfs_set_blksize (buf); buf 2164 src/vfs/ftpfs/ftpfs.c ftpfs_lstat (const vfs_path_t *vpath, struct stat *buf) buf 2168 src/vfs/ftpfs/ftpfs.c ret = vfs_s_lstat (vpath, buf); buf 2169 src/vfs/ftpfs/ftpfs.c ftpfs_set_blksize (buf); buf 2176 src/vfs/ftpfs/ftpfs.c ftpfs_fstat (void *vfs_info, struct stat *buf) buf 2180 src/vfs/ftpfs/ftpfs.c ret = vfs_s_fstat (vfs_info, buf); buf 2181 src/vfs/ftpfs/ftpfs.c ftpfs_set_blksize (buf); buf 2190 src/vfs/ftpfs/ftpfs.c char buf[BUF_SMALL]; buf 2193 src/vfs/ftpfs/ftpfs.c g_snprintf (buf, sizeof (buf), "SITE CHMOD %4.4o /%%s", (unsigned int) (mode & 07777)); buf 2194 src/vfs/ftpfs/ftpfs.c ret = ftpfs_send_command (vpath, buf, OPT_FLUSH); buf 42 src/vfs/ftpfs/ftpfs.h GSList *ftpfs_parse_long_list (struct vfs_class *me, struct vfs_s_inode *dir, GSList * buf, buf 1108 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list (struct vfs_class *me, struct vfs_s_inode *dir, GSList *buf, int *err_ret) buf 1128 src/vfs/ftpfs/ftpfs_parse_ls.c for (bufp = buf; bufp != NULL; bufp = g_slist_next (bufp)) buf 145 src/vfs/local/local.c local_stat (const vfs_path_t *vpath, struct stat *buf) buf 150 src/vfs/local/local.c return stat (path, buf); buf 156 src/vfs/local/local.c local_lstat (const vfs_path_t *vpath, struct stat *buf) buf 162 src/vfs/local/local.c return lstat (path, buf); buf 164 src/vfs/local/local.c return statlstat (path, buf); buf 227 src/vfs/local/local.c local_readlink (const vfs_path_t *vpath, char *buf, size_t size) buf 232 src/vfs/local/local.c return readlink (path, buf, size); buf 261 src/vfs/local/local.c local_write (void *data, const char *buf, size_t nbyte) buf 271 src/vfs/local/local.c while ((n = write (fd, buf, nbyte)) == -1) buf 444 src/vfs/local/local.c local_fstat (void *data, struct stat *buf) buf 448 src/vfs/local/local.c return fstat (fd, buf); buf 27 src/vfs/local/local.h extern int local_fstat (void *data, struct stat *buf); buf 244 src/vfs/sfs/sfs.c message (D_ERROR, MSG_ERROR, _("SFS virtual file system:\n%s"), pip->err.buf); buf 314 src/vfs/sfs/sfs.c sfs_stat (const vfs_path_t *vpath, struct stat *buf) buf 316 src/vfs/sfs/sfs.c return stat (sfs_redirect (vpath), buf); buf 322 src/vfs/sfs/sfs.c sfs_lstat (const vfs_path_t *vpath, struct stat *buf) buf 325 src/vfs/sfs/sfs.c return lstat (sfs_redirect (vpath), buf); buf 327 src/vfs/sfs/sfs.c return statlstat (sfs_redirect (vpath), buf); buf 358 src/vfs/sfs/sfs.c sfs_readlink (const vfs_path_t *vpath, char *buf, size_t size) buf 360 src/vfs/sfs/sfs.c return readlink (sfs_redirect (vpath), buf, size); buf 223 src/vfs/sftpfs/file.c sftpfs_fstat (void *data, struct stat *buf, GError **mcerror) buf 251 src/vfs/sftpfs/file.c sftpfs_attr_to_stat (&attrs, buf); buf 286 src/vfs/sftpfs/internal.c sftpfs_lstat (const vfs_path_t *vpath, struct stat *buf, GError **mcerror) buf 296 src/vfs/sftpfs/internal.c sftpfs_attr_to_stat (&attrs, buf); buf 314 src/vfs/sftpfs/internal.c sftpfs_stat (const vfs_path_t *vpath, struct stat *buf, GError **mcerror) buf 324 src/vfs/sftpfs/internal.c buf->st_nlink = 1; buf 325 src/vfs/sftpfs/internal.c sftpfs_attr_to_stat (&attrs, buf); buf 344 src/vfs/sftpfs/internal.c sftpfs_readlink (const vfs_path_t *vpath, char *buf, size_t size, GError **mcerror) buf 359 src/vfs/sftpfs/internal.c libssh2_sftp_symlink_ex (super->sftp_session, fixfname->str, fixfname->len, buf, size, buf 82 src/vfs/sftpfs/internal.h int sftpfs_lstat (const vfs_path_t * vpath, struct stat *buf, GError ** mcerror); buf 83 src/vfs/sftpfs/internal.h int sftpfs_stat (const vfs_path_t * vpath, struct stat *buf, GError ** mcerror); buf 84 src/vfs/sftpfs/internal.h int sftpfs_readlink (const vfs_path_t * vpath, char *buf, size_t size, GError ** mcerror); buf 109 src/vfs/sftpfs/internal.h int sftpfs_fstat (void *data, struct stat *buf, GError ** mcerror); buf 254 src/vfs/sftpfs/sftpfs.c sftpfs_cb_lstat (const vfs_path_t *vpath, struct stat *buf) buf 259 src/vfs/sftpfs/sftpfs.c rc = sftpfs_lstat (vpath, buf, &mcerror); buf 274 src/vfs/sftpfs/sftpfs.c sftpfs_cb_stat (const vfs_path_t *vpath, struct stat *buf) buf 279 src/vfs/sftpfs/sftpfs.c rc = sftpfs_stat (vpath, buf, &mcerror); buf 294 src/vfs/sftpfs/sftpfs.c sftpfs_cb_fstat (void *data, struct stat *buf) buf 299 src/vfs/sftpfs/sftpfs.c rc = sftpfs_fstat (data, buf, &mcerror); buf 315 src/vfs/sftpfs/sftpfs.c sftpfs_cb_readlink (const vfs_path_t *vpath, char *buf, size_t size) buf 320 src/vfs/sftpfs/sftpfs.c rc = sftpfs_readlink (vpath, buf, size, &mcerror); buf 465 src/vfs/sftpfs/sftpfs.c sftpfs_cb_write (void *data, const char *buf, size_t nbyte) buf 471 src/vfs/sftpfs/sftpfs.c rc = sftpfs_write_file (fh, buf, nbyte, &mcerror); buf 1170 src/vfs/shell/shell.c shell_linear_read (struct vfs_class *me, vfs_file_handler_t *fh, void *buf, size_t len) buf 1178 src/vfs/shell/shell.c while (len != 0 && ((n = read (SHELL_SUPER (super)->sockr, buf, len)) < 0)) buf 1342 src/vfs/shell/shell.c shell_stat (const vfs_path_t *vpath, struct stat *buf) buf 1346 src/vfs/shell/shell.c ret = vfs_s_stat (vpath, buf); buf 1347 src/vfs/shell/shell.c shell_set_blksize (buf); buf 1354 src/vfs/shell/shell.c shell_lstat (const vfs_path_t *vpath, struct stat *buf) buf 1358 src/vfs/shell/shell.c ret = vfs_s_lstat (vpath, buf); buf 1359 src/vfs/shell/shell.c shell_set_blksize (buf); buf 1366 src/vfs/shell/shell.c shell_fstat (void *vfs_info, struct stat *buf) buf 1370 src/vfs/shell/shell.c ret = vfs_s_fstat (vfs_info, buf); buf 1371 src/vfs/shell/shell.c shell_set_blksize (buf); buf 83 src/vfs/tar/tar-sparse.c #define COPY_BUF(arch,b,buf,src) \ buf 87 src/vfs/tar/tar-sparse.c char *dst = buf; \ buf 90 src/vfs/tar/tar-sparse.c if (dst == buf + UINTMAX_STRSIZE_BOUND - 1) \ buf 99 src/vfs/undelfs/undelfs.c char *buf; buf 472 src/vfs/undelfs/undelfs.c p->buf = g_try_malloc (fs->blocksize); buf 473 src/vfs/undelfs/undelfs.c if (!p->buf) buf 499 src/vfs/undelfs/undelfs.c g_free (p->buf); buf 518 src/vfs/undelfs/undelfs.c p->error_code = io_channel_read_blk (param_fs->io, *blocknr, 1, p->buf); buf 523 src/vfs/undelfs/undelfs.c memset (p->buf, 0, param_fs->blocksize); buf 552 src/vfs/undelfs/undelfs.c memcpy (p->dest_buffer, p->buf + (p->pos - p->current), copy_count); buf 566 src/vfs/undelfs/undelfs.c memcpy (p->dest_buffer, p->buf, copy_count); buf 625 src/vfs/undelfs/undelfs.c undelfs_stat_int (int inode_index, struct stat *buf) buf 627 src/vfs/undelfs/undelfs.c buf->st_dev = 0; buf 628 src/vfs/undelfs/undelfs.c buf->st_ino = delarray[inode_index].ino; buf 629 src/vfs/undelfs/undelfs.c buf->st_mode = delarray[inode_index].mode; buf 630 src/vfs/undelfs/undelfs.c buf->st_nlink = 1; buf 631 src/vfs/undelfs/undelfs.c buf->st_uid = delarray[inode_index].uid; buf 632 src/vfs/undelfs/undelfs.c buf->st_gid = delarray[inode_index].gid; buf 633 src/vfs/undelfs/undelfs.c buf->st_size = delarray[inode_index].size; buf 635 src/vfs/undelfs/undelfs.c vfs_zero_stat_times (buf); buf 636 src/vfs/undelfs/undelfs.c buf->st_atime = delarray[inode_index].dtime; buf 637 src/vfs/undelfs/undelfs.c buf->st_ctime = delarray[inode_index].dtime; buf 638 src/vfs/undelfs/undelfs.c buf->st_mtime = delarray[inode_index].dtime; buf 646 src/vfs/undelfs/undelfs.c undelfs_lstat (const vfs_path_t *vpath, struct stat *buf) buf 685 src/vfs/undelfs/undelfs.c return undelfs_stat_int (inode_index, buf); buf 691 src/vfs/undelfs/undelfs.c undelfs_fstat (void *vfs_info, struct stat *buf) buf 695 src/vfs/undelfs/undelfs.c return undelfs_stat_int (p->f_index, buf); buf 185 src/viewer/growbuf.c mcview_show_error (view, sp->err.buf); buf 200 src/viewer/growbuf.c memmove (p, sp->out.buf, sp->out.len); buf 64 tests/lib/utilunix__mc_pstream_get_string.c const char *buf; /* string to read */ buf 75 tests/lib/utilunix__mc_pstream_get_string.c .buf = "", buf 82 tests/lib/utilunix__mc_pstream_get_string.c .buf = "\n", buf 89 tests/lib/utilunix__mc_pstream_get_string.c .buf = "\\\n", buf 96 tests/lib/utilunix__mc_pstream_get_string.c .buf = "\\\\\n", buf 103 tests/lib/utilunix__mc_pstream_get_string.c .buf = "\\\\\\\n", buf 110 tests/lib/utilunix__mc_pstream_get_string.c .buf = "\\\\\\\\\n", buf 117 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345", buf 124 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\n", buf 131 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\\\n", buf 138 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\\\\\n", buf 145 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\nabcd", buf 152 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\\\nabcd", buf 159 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\\\\\nabcd", buf 166 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\\\\\\\nabcd", buf 173 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\\\\\\\\\nabcd", buf 180 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\nabcd\n", buf 187 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\nabcd\n~!@#$%^", buf 194 tests/lib/utilunix__mc_pstream_get_string.c .buf = "12345\nabcd\n~!@#$%^\n", buf 212 tests/lib/utilunix__mc_pstream_get_string.c stream.len = strlen (data->buf); buf 213 tests/lib/utilunix__mc_pstream_get_string.c memmove (&stream.buf, data->buf, stream.len); buf 271 tests/lib/utilunix__mc_pstream_get_string.c memmove (p->out.buf, etalon_long_file_list + etalon_long_file_list_pos, len); buf 150 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c static char buf[BUF_SMALL]; buf 152 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c sprintf (buf, "%d", i); buf 153 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c return buf; buf 199 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c static char buf[BUF_SMALL]; buf 207 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c FMT_LOCALTIME (buf, sizeof buf, "%Y-%m-%d %H:%M:%S", t); buf 208 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c return buf; buf 69 tests/src/vfs/ftpfs/ftpfs_parse_long_list.c char buf[BUF_MEDIUM]; buf 76 tests/src/vfs/ftpfs/ftpfs_parse_long_list.c while (fgets (buf, sizeof (buf), f) != NULL) buf 77 tests/src/vfs/ftpfs/ftpfs_parse_long_list.c ret = g_slist_prepend (ret, g_strdup (buf));