s 64 lib/event-types.h char *s; s 265 lib/glibcompat.c mc_g_string_dup (const GString *s) s 269 lib/glibcompat.c if (s != NULL) s 270 lib/glibcompat.c ret = g_string_new_len (s->str, s->len); s 289 lib/glibcompat.c mc_g_string_append_c_len (GString *s, gchar c, guint len) s 291 lib/glibcompat.c g_return_val_if_fail (s != NULL, NULL); s 295 lib/glibcompat.c guint s_len = s->len; s 297 lib/glibcompat.c g_string_set_size (s, s->len + len); s 298 lib/glibcompat.c memset (s->str + s_len, (unsigned char) c, len); s 301 lib/glibcompat.c return s; s 41 lib/glibcompat.h GString *mc_g_string_dup (const GString * s); s 44 lib/glibcompat.h GString *mc_g_string_append_c_len (GString * s, gchar c, guint len); s 145 lib/lock.c const char *p, *s; s 155 lib/lock.c for (i = 0, s = str; i < sizeof (who) && s < p; i++, s++) s 156 lib/lock.c who[i] = *s; s 162 lib/lock.c for (i = 0, p++, s = str + len; i < sizeof (pid) && p < s && *p != ':'; i++, p++) s 649 lib/search/regex.c GString *s; s 651 lib/search/regex.c s = mc_search__get_one_symbol (NULL, from + loop, len - loop, NULL); s 652 lib/search/regex.c char_len = s->len; s 657 lib/search/regex.c tmp_string = mc_search__toupper_case_str (NULL, s); s 663 lib/search/regex.c tmp_string = mc_search__tolower_case_str (NULL, s); s 668 lib/search/regex.c tmp_string = mc_search__toupper_case_str (NULL, s); s 673 lib/search/regex.c tmp_string = mc_search__tolower_case_str (NULL, s); s 677 lib/search/regex.c g_string_free (s, TRUE); s 592 lib/strutil.h str_replace (char *s, char from, char to) s 594 lib/strutil.h for (; *s != '\0'; s++) s 596 lib/strutil.h if (*s == from) s 597 lib/strutil.h *s = to; s 51 lib/strutil/filevercmp.c file_prefixlen (const char *s, ssize_t *len) s 62 lib/strutil/filevercmp.c done = s[i] == '\0'; s 75 lib/strutil/filevercmp.c while (i + 1 < n && s[i] == '.' && (g_ascii_isalpha (s[i + 1]) || s[i + 1] == '~')) s 76 lib/strutil/filevercmp.c for (i += 2; i < n && (g_ascii_isalnum (s[i]) || s[i] == '~'); i++) s 91 lib/strutil/filevercmp.c order (const char *s, size_t pos, size_t len) s 98 lib/strutil/filevercmp.c c = s[pos]; s 52 lib/strutil/tokenize.c #define member(c, s) ((c != '\0') ? (strchr ((s), (c)) != NULL) : FALSE) s 76 lib/tty/color-slang.c char *s; s 81 lib/tty/color-slang.c s = cts; s 89 lib/tty/color-slang.c if ((i != 0) && (i == len) && (strncmp (s, terminal, i) == 0)) s 567 lib/tty/key.c const select_t *s = (const select_t *) a; s 570 lib/tty/key.c return (FD_ISSET (s->fd, f) ? 0 : 1); s 578 lib/tty/key.c const select_t *s = (const select_t *) a; s 581 lib/tty/key.c return (s->fd == fd ? 0 : 1); s 593 lib/tty/key.c GSList *s; s 595 lib/tty/key.c for (s = select_list; s != NULL; s = g_slist_next (s)) s 597 lib/tty/key.c select_t *p = (select_t *) s->data; s 615 lib/tty/key.c GSList *s; s 618 lib/tty/key.c s = g_slist_find_custom (select_list, select_set, select_cmp_by_fd_set); s 619 lib/tty/key.c if (s == NULL) s 622 lib/tty/key.c p = (select_t *) s->data; s 1495 lib/tty/key.c GString *s; s 1497 lib/tty/key.c s = g_string_new (""); s 1501 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[use_meta]->shortcut); s 1502 lib/tty/key.c g_string_append_c (s, '-'); s 1506 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[use_ctrl]->shortcut); s 1507 lib/tty/key.c g_string_append_c (s, '-'); s 1512 lib/tty/key.c g_string_append_c (s, (gchar) g_ascii_toupper ((gchar) k)); s 1515 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[use_shift]->shortcut); s 1516 lib/tty/key.c g_string_append_c (s, '-'); s 1517 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[lc_index]->shortcut); s 1523 lib/tty/key.c g_string_append_c (s, (gchar) g_ascii_tolower ((gchar) k)); s 1525 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[lc_index]->shortcut); s 1528 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[lc_index]->shortcut); s 1530 lib/tty/key.c g_string_append_c (s, (gchar) g_ascii_tolower ((gchar) key)); s 1532 lib/tty/key.c *label = g_string_free (s, FALSE); s 1569 lib/tty/key.c GString *s; s 1572 lib/tty/key.c s = g_string_sized_new (8); s 1578 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[idx]->name); s 1579 lib/tty/key.c g_string_append_c (s, '-'); s 1590 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[idx]->name); s 1591 lib/tty/key.c g_string_append_c (s, '-'); s 1600 lib/tty/key.c g_string_append_c (s, (gchar) g_ascii_toupper ((gchar) k)); s 1603 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[idx]->name); s 1604 lib/tty/key.c g_string_append_c (s, '-'); s 1605 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[key_idx]->name); s 1612 lib/tty/key.c g_string_append_c (s, (gchar) k); s 1614 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[key_idx]->name); s 1617 lib/tty/key.c g_string_append (s, key_conv_tab_sorted[key_idx]->name); s 1619 lib/tty/key.c g_string_append_c (s, (gchar) keycode); s 1622 lib/tty/key.c return g_string_free (s, s->len == 0); s 645 lib/tty/tty-ncurses.c const char *s; s 648 lib/tty/tty-ncurses.c s = str_term_form ((char *) str); s 651 lib/tty/tty-ncurses.c addstr (s); s 702 lib/tty/tty-ncurses.c tty_print_string (const char *s) s 707 lib/tty/tty-ncurses.c s = str_term_form (s); s 708 lib/tty/tty-ncurses.c len = str_term_width1 (s); s 729 lib/tty/tty-ncurses.c addstr (str_term_substring (s, start, len)); s 739 lib/tty/tty-slang.c tty_print_string (const char *s) s 741 lib/tty/tty-slang.c SLsmg_write_string ((char *) str_term_form (s)); s 119 lib/tty/tty.h extern void tty_print_string (const char *s); s 121 lib/tty/tty.h extern void tty_printf (const char *s, ...) G_GNUC_PRINTF (1, 2); s 255 lib/util.c name_quote (const char *s, gboolean quote_percent) s 259 lib/util.c if (s == NULL || *s == '\0') s 264 lib/util.c if (*s == '-') s 267 lib/util.c for (; *s != '\0'; s++) s 269 lib/util.c switch (*s) s 308 lib/util.c g_string_append_c (ret, *s); s 317 lib/util.c fake_name_quote (const char *s, gboolean quote_percent) s 321 lib/util.c return (s == NULL || *s == '\0' ? NULL : g_strdup (s)); s 638 lib/util.c extract_line (const char *s, const char *top, size_t *len) s 643 lib/util.c while (*s != '\0' && *s != '\n' && (size_t) (t - tmp_line) < sizeof (tmp_line) - 1 && s < top) s 644 lib/util.c *t++ = *s++; s 659 lib/util.c x_basename (const char *s) s 663 lib/util.c url_delim = g_strrstr (s, VFS_PATH_URL_DELIMITER); s 664 lib/util.c path_sep = strrchr (s, PATH_SEP); s 667 lib/util.c return s; s 671 lib/util.c || url_delim - s + strlen (VFS_PATH_URL_DELIMITER) < strlen (s)) s 674 lib/util.c if (!IS_PATH_SEP (s[strlen (s) - 1])) s 677 lib/util.c while (--path_sep > s && !IS_PATH_SEP (*path_sep)) s 679 lib/util.c return (path_sep != s) ? path_sep + 1 : s; s 682 lib/util.c while (--url_delim > s && !IS_PATH_SEP (*url_delim)) s 684 lib/util.c while (--url_delim > s && !IS_PATH_SEP (*url_delim)) s 687 lib/util.c return url_delim == s ? s : url_delim + 1; s 708 lib/util.c skip_separators (const char *s) s 710 lib/util.c const char *su = s; s 722 lib/util.c skip_numbers (const char *s) s 724 lib/util.c const char *su = s; s 752 lib/util.c strip_ctrl_codes (char *s) s 757 lib/util.c if (s == NULL) s 760 lib/util.c for (w = s, r = s; *r != '\0';) s 830 lib/util.c return s; s 1062 lib/util.c char *r, *s; s 1068 lib/util.c s = strchr (q, PATH_SEP); s 1069 lib/util.c if (s == NULL) s 1073 lib/util.c if (len != (s - q) || strncmp (p, q, (size_t) len) != 0) s 1077 lib/util.c q = s + 1; s 1332 lib/util.c Q_ (const char *s) s 1336 lib/util.c result = _(s); s 176 lib/util.h const char *skip_separators (const char *s); s 177 lib/util.h const char *skip_numbers (const char *s); s 178 lib/util.h char *strip_ctrl_codes (char *s); s 183 lib/util.h char *convert_controls (const char *s); s 206 lib/util.h const char *extract_line (const char *s, const char *top, size_t *len); s 258 lib/util.h const char *Q_ (const char *s); s 684 lib/utilunix.c char *s; s 698 lib/utilunix.c s = ps->buf + ps->pos; s 700 lib/utilunix.c if (s[0] == '\0') s 704 lib/utilunix.c for (i = 0; i < size && !(s[i] == '\0' || (s[i] == '\n' && !escape)); i++) s 705 lib/utilunix.c escape = s[i] == '\\' ? !escape : FALSE; s 707 lib/utilunix.c if (i != size && s[i] == '\n') s 712 lib/utilunix.c return g_string_new_len (s, i); s 819 lib/utilunix.c char *p, *s; s 841 lib/utilunix.c s = p + 1; s 842 lib/utilunix.c while (IS_PATH_SEP (*(++s))) s 844 lib/utilunix.c str_move (p + 1, s); s 919 lib/utilunix.c s = p - 1; s 920 lib/utilunix.c if (s >= lpath + url_delim_len - 2 s 921 lib/utilunix.c && strncmp (s - url_delim_len + 2, VFS_PATH_URL_DELIMITER, url_delim_len) == 0) s 923 lib/utilunix.c s -= (url_delim_len - 2); s 924 lib/utilunix.c while (s >= lpath && !IS_PATH_SEP (*s--)) s 928 lib/utilunix.c while (s >= lpath) s 930 lib/utilunix.c if (s - url_delim_len > lpath s 931 lib/utilunix.c && strncmp (s - url_delim_len, VFS_PATH_URL_DELIMITER, url_delim_len) == 0) s 933 lib/utilunix.c char *vfs_prefix = s - url_delim_len; s 940 lib/utilunix.c *(s - url_delim_len) = '\0'; s 943 lib/utilunix.c *(s - url_delim_len) = *VFS_PATH_URL_DELIMITER; s 947 lib/utilunix.c s = vfs_prefix; s 952 lib/utilunix.c if (IS_PATH_SEP (*s)) s 955 lib/utilunix.c s--; s 958 lib/utilunix.c s++; s 961 lib/utilunix.c if (s[0] == '.' && s[1] == '.' && s + 2 == p) s 969 lib/utilunix.c if (s == lpath && IS_PATH_SEP (*s)) s 972 lib/utilunix.c str_move (s + 1, p + 4); s 978 lib/utilunix.c if (strncmp (s, VFS_ENCODING_PREFIX, enc_prefix_len) == 0) s 982 lib/utilunix.c enc = vfs_get_encoding (s, -1); s 986 lib/utilunix.c str_move (s, p + 1); s 988 lib/utilunix.c str_move (s, p + 4); s 994 lib/utilunix.c str_move (s, p + 4); s 997 lib/utilunix.c p = s > lpath ? s - 1 : s; s 1002 lib/utilunix.c if (s == lpath) s 1012 lib/utilunix.c if (s == lpath + 1) s 1013 lib/utilunix.c s[0] = '\0'; s 1015 lib/utilunix.c else if (strncmp (s, VFS_ENCODING_PREFIX, enc_prefix_len) == 0) s 1020 lib/utilunix.c enc = vfs_get_encoding (s, -1); s 1028 lib/utilunix.c s[0] = '.'; s 1029 lib/utilunix.c s[1] = '.'; s 1030 lib/utilunix.c s[2] = '\0'; s 1034 lib/utilunix.c for (p = s - 1; p >= lpath && !IS_PATH_SEP (*p); p--) s 1046 lib/utilunix.c if (s >= lpath + url_delim_len s 1047 lib/utilunix.c && strncmp (s - url_delim_len, VFS_PATH_URL_DELIMITER, url_delim_len) == 0) s 1048 lib/utilunix.c *s = '\0'; s 1050 lib/utilunix.c s[-1] = '\0'; s 381 lib/vfs/direntry.c vfs_s_free_fh (struct vfs_s_subclass *s, vfs_file_handler_t *fh) s 383 lib/vfs/direntry.c if (s->fh_free != NULL) s 384 lib/vfs/direntry.c s->fh_free (fh); s 677 lib/vfs/direntry.c char *s; s 679 lib/vfs/direntry.c s = vfs_s_fullpath (me, file->ino); s 681 lib/vfs/direntry.c if (s == NULL) s 685 lib/vfs/direntry.c res = sub->file_store (me, fh, s, file->ino->localname); s 686 lib/vfs/direntry.c g_free (s); s 1044 lib/vfs/direntry.c vfs_adjust_stat (struct stat *s) s 1047 lib/vfs/direntry.c if (s->st_size == 0) s 1048 lib/vfs/direntry.c s->st_blocks = 0; s 1056 lib/vfs/direntry.c ioblocks = 1 + (s->st_size - 1) / s->st_blksize; s 1058 lib/vfs/direntry.c ioblock_size = 1 + (s->st_blksize - 1) / 512; s 1060 lib/vfs/direntry.c s->st_blocks = ioblocks * ioblock_size; s 1063 lib/vfs/direntry.c s->st_blocks = 1 + (s->st_size - 1) / 512; s 1296 lib/vfs/direntry.c struct vfs_s_subclass *s; s 1311 lib/vfs/direntry.c s = VFS_SUBCLASS (me); s 1333 lib/vfs/direntry.c if ((VFS_CLASS (s)->flags & VFSF_USETMP) != 0) s 1359 lib/vfs/direntry.c fh = s->fh_new != NULL ? s->fh_new (ino, was_changed) : vfs_s_new_fh (ino, was_changed); s 1363 lib/vfs/direntry.c if (s->linear_start != NULL) s 1371 lib/vfs/direntry.c if (s->fh_open != NULL && s->fh_open (me, fh, flags, mode) != 0) s 1373 lib/vfs/direntry.c vfs_s_free_fh (s, fh); s 1378 lib/vfs/direntry.c if ((VFS_CLASS (s)->flags & VFSF_USETMP) != 0 && fh->ino->localname != NULL) s 1383 lib/vfs/direntry.c vfs_s_free_fh (s, fh); s 1434 lib/vfs/direntry.c struct vfs_s_subclass *s = VFS_SUBCLASS (me); s 1447 lib/vfs/direntry.c fh = s->fh_new != NULL ? s->fh_new (ino, FALSE) : vfs_s_new_fh (ino, FALSE); s 1449 lib/vfs/direntry.c if (s->linear_start (me, fh, 0) == 0) s 1456 lib/vfs/direntry.c while ((n = s->linear_read (me, fh, buffer, sizeof (buffer))) != 0) s 1477 lib/vfs/direntry.c s->linear_close (me, fh); s 1481 lib/vfs/direntry.c vfs_s_free_fh (s, fh); s 1485 lib/vfs/direntry.c s->linear_close (me, fh); s 1493 lib/vfs/direntry.c vfs_s_free_fh (s, fh); s 208 lib/vfs/parse_ls_vga.c vfs_parse_filetype (const char *s, size_t *ret_skipped, mode_t *ret_type) s 212 lib/vfs/parse_ls_vga.c switch (*s) s 275 lib/vfs/parse_ls_vga.c vfs_parse_fileperms (const char *s, size_t *ret_skipped, mode_t *ret_perms) s 277 lib/vfs/parse_ls_vga.c const char *p = s; s 405 lib/vfs/parse_ls_vga.c *ret_skipped = p - s; s 414 lib/vfs/parse_ls_vga.c vfs_parse_filemode (const char *s, size_t *ret_skipped, mode_t *ret_mode) s 416 lib/vfs/parse_ls_vga.c const char *p = s; s 428 lib/vfs/parse_ls_vga.c *ret_skipped = p - s; s 437 lib/vfs/parse_ls_vga.c vfs_parse_raw_filemode (const char *s, size_t *ret_skipped, mode_t *ret_mode) s 439 lib/vfs/parse_ls_vga.c const char *p = s; s 489 lib/vfs/parse_ls_vga.c *ret_skipped = p - s; s 682 lib/vfs/parse_ls_vga.c vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linkname, s 695 lib/vfs/parse_ls_vga.c if (!vfs_parse_filetype (p, &skipped, &s->st_mode)) s 707 lib/vfs/parse_ls_vga.c if (S_ISDIR (s->st_mode)) s 708 lib/vfs/parse_ls_vga.c s->st_mode |= (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IXUSR | S_IXGRP | S_IXOTH); s 710 lib/vfs/parse_ls_vga.c s->st_mode |= (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR); s 722 lib/vfs/parse_ls_vga.c s->st_mode |= perms; s 728 lib/vfs/parse_ls_vga.c s->st_nlink = atol (columns[0]); s 729 lib/vfs/parse_ls_vga.c if (s->st_nlink <= 0) s 733 lib/vfs/parse_ls_vga.c s->st_uid = vfs_finduid (columns[1]); s 735 lib/vfs/parse_ls_vga.c s->st_uid = (uid_t) atol (columns[1]); s 743 lib/vfs/parse_ls_vga.c if (idx == 6 || (idx == 5 && !S_ISCHR (s->st_mode) && !S_ISBLK (s->st_mode))) s 747 lib/vfs/parse_ls_vga.c if (idx == 3 || (idx == 4 && (S_ISCHR (s->st_mode) || S_ISBLK (s->st_mode)))) s 753 lib/vfs/parse_ls_vga.c s->st_gid = (gid_t) atol (columns[2]); s 755 lib/vfs/parse_ls_vga.c s->st_gid = vfs_findgid (columns[2]); s 760 lib/vfs/parse_ls_vga.c if (S_ISCHR (s->st_mode) || S_ISBLK (s->st_mode)) s 782 lib/vfs/parse_ls_vga.c s->st_rdev = makedev (maj, min); s 784 lib/vfs/parse_ls_vga.c s->st_size = 0; s 793 lib/vfs/parse_ls_vga.c s->st_size = (off_t) g_ascii_strtoll (columns[idx2], NULL, 10); s 795 lib/vfs/parse_ls_vga.c s->st_rdev = 0; s 799 lib/vfs/parse_ls_vga.c vfs_zero_stat_times (s); s 801 lib/vfs/parse_ls_vga.c idx = vfs_parse_filedate (idx, &s->st_mtime); s 806 lib/vfs/parse_ls_vga.c s->st_atime = s->st_ctime = s->st_mtime; s 810 lib/vfs/parse_ls_vga.c s->st_blksize = 512; s 812 lib/vfs/parse_ls_vga.c vfs_adjust_stat (s); s 828 lib/vfs/parse_ls_vga.c if (((S_ISLNK (s->st_mode) || (num_cols == idx + 3 && s->st_nlink > 1))) /* Maybe a hardlink? (in extfs) */ s 411 lib/vfs/utilvfs.c vfs_get_timesbuf_from_stat (const struct stat *s, mc_timesbuf_t *times) s 420 lib/vfs/utilvfs.c (*times)[0].tv_sec = s->st_atim.tv_sec; s 421 lib/vfs/utilvfs.c (*times)[0].tv_nsec = s->st_atim.tv_nsec; s 422 lib/vfs/utilvfs.c (*times)[1].tv_sec = s->st_mtim.tv_sec; s 423 lib/vfs/utilvfs.c (*times)[1].tv_nsec = s->st_mtim.tv_nsec; s 426 lib/vfs/utilvfs.c (*times)[0] = s->st_atimespec; s 427 lib/vfs/utilvfs.c (*times)[1] = s->st_mtimespec; s 430 lib/vfs/utilvfs.c (*times)[0].tv_sec = s->st_atime; s 431 lib/vfs/utilvfs.c (*times)[0].tv_nsec = s->st_atimensec; s 432 lib/vfs/utilvfs.c (*times)[1].tv_sec = s->st_mtime; s 433 lib/vfs/utilvfs.c (*times)[1].tv_nsec = s->st_mtimensec; s 438 lib/vfs/utilvfs.c times->actime = s->st_atime; s 439 lib/vfs/utilvfs.c times->modtime = s->st_mtime; s 470 lib/vfs/utilvfs.c vfs_zero_stat_times (struct stat *s) s 474 lib/vfs/utilvfs.c vfs_copy_stat_times (&empty, s); s 51 lib/vfs/utilvfs.h gboolean vfs_parse_filetype (const char *s, size_t *ret_skipped, mode_t * ret_type); s 52 lib/vfs/utilvfs.h gboolean vfs_parse_fileperms (const char *s, size_t *ret_skipped, mode_t * ret_perms); s 53 lib/vfs/utilvfs.h gboolean vfs_parse_filemode (const char *s, size_t *ret_skipped, mode_t * ret_mode); s 54 lib/vfs/utilvfs.h gboolean vfs_parse_raw_filemode (const char *s, size_t *ret_skipped, mode_t * ret_mode); s 57 lib/vfs/utilvfs.h gboolean vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linkname, s 66 lib/vfs/utilvfs.h void vfs_get_timesbuf_from_stat (const struct stat *s, mc_timesbuf_t *times); s 68 lib/vfs/utilvfs.h void vfs_zero_stat_times (struct stat *s); s 245 lib/vfs/vfs.h void vfs_adjust_stat (struct stat *s); s 909 lib/widget/input_complete.c char *s; s 911 lib/widget/input_complete.c s = strchr (cdpath, ':'); s 913 lib/widget/input_complete.c if (s == NULL) s 914 lib/widget/input_complete.c s = strchr (cdpath, '\0'); s 915 lib/widget/input_complete.c c = *s; s 916 lib/widget/input_complete.c *s = '\0'; s 926 lib/widget/input_complete.c *s = c; s 927 lib/widget/input_complete.c cdpath = str_get_next_char (s); s 1382 lib/widget/input_complete.c char *s; s 1389 lib/widget/input_complete.c s = in->buffer->str; s 1396 lib/widget/input_complete.c str_next_char (&s); s 1399 lib/widget/input_complete.c for (; s >= in->buffer->str; str_prev_char (&s)) s 1401 lib/widget/input_complete.c start = s - in->buffer->str; s 1402 lib/widget/input_complete.c if (strchr (word_separators, *s) != NULL && !str_is_char_escaped (in->buffer->str, s)) s 1408 lib/widget/input_complete.c str_next_char (&s); s 1409 lib/widget/input_complete.c start = s - in->buffer->str; s 270 lib/widget/wtools.c return event_data.ret.s; s 379 src/args.c gchar *s; s 385 src/args.c s = g_strdup_printf ("%s\n", _("[+lineno] file1[:lineno] [file2[:lineno]...]")); s 389 src/args.c s = g_strdup_printf ("%s\n", _("file")); s 393 src/args.c s = g_strdup_printf ("%s\n", _("file1 file2")); s 398 src/args.c s = g_strdup_printf ("%s\n", _("[this_dir] [other_panel_dir]")); s 401 src/args.c mc_args__loc__usage_string = s; s 655 src/background.c event_data->ret.s = s 15 src/diffviewer/internal.h #define error_dialog(h, s) query_dialog(h, s, D_ERROR, 1, _("&Dismiss")) s 1002 src/diffviewer/ydiff.c lcsubstr (const char *s, int m, const char *t, int n, GArray *ret, int min) s 1040 src/diffviewer/ydiff.c if (s[i] == t[j]) s 1099 src/diffviewer/ydiff.c hdiff_multi (const char *s, const char *t, const BRACKET bracket, int min, GArray *hdiff, s 1112 src/diffviewer/ydiff.c len = lcsubstr (s + bracket[DIFF_LEFT].off, bracket[DIFF_LEFT].len, s 1124 src/diffviewer/ydiff.c if (!hdiff_multi (s, t, b, min, hdiff, depth)) s 1135 src/diffviewer/ydiff.c if (!hdiff_multi (s, t, b, min, hdiff, depth)) s 1143 src/diffviewer/ydiff.c if (!hdiff_multi (s, t, b, min, hdiff, depth)) s 1177 src/diffviewer/ydiff.c hdiff_scan (const char *s, int m, const char *t, int n, int min, GArray *hdiff, unsigned int depth) s 1183 src/diffviewer/ydiff.c for (i = 0; i < m && i < n && s[i] == t[i]; i++) s 1185 src/diffviewer/ydiff.c for (; m > i && n > i && s[m - 1] == t[n - 1]; m--, n--) s 1194 src/diffviewer/ydiff.c return hdiff_multi (s, t, b, min, hdiff, depth); s 2919 src/diffviewer/ydiff.c const char *s = input; s 2921 src/diffviewer/ydiff.c if (scan_deci (&s, &newline) == 0 && *s == '\0') s 74 src/editor/edit-impl.h #define get_sys_error(s) (s) s 76 src/editor/edit-impl.h #define edit_error_dialog(h,s) query_dialog (h, s, D_ERROR, 1, _("&Dismiss")) s 77 src/editor/edit-impl.h #define edit_query_dialog(h,s) query_dialog (h, s, D_NORMAL, 1, _("&Dismiss")) s 246 src/editor/edit.c const char *s; s 249 src/editor/edit.c s = vfs_path_as_str (filename_vpath); s 252 src/editor/edit.c if (g_str_has_suffix (s, all_filters[i].extension)) s 686 src/editor/edit.c off_t s, f; s 688 src/editor/edit.c s = edit_buffer_get_bol (buf, offset); s 690 src/editor/edit.c for (; s < f; s++) s 694 src/editor/edit.c c = edit_buffer_get_byte (buf, s); s 956 src/editor/edit.c edit_left_word_move (WEdit *edit, int s) s 980 src/editor/edit.c if (s != 0 && !isspace (c1) && isspace (c2)) s 997 src/editor/edit.c edit_right_word_move (WEdit *edit, int s) s 1021 src/editor/edit.c if (s != 0 && !isspace (c1) && isspace (c2)) s 1716 src/editor/edit.c edit_print_string (WEdit *e, const char *s) s 1720 src/editor/edit.c for (i = 0; s[i] != '\0'; i++) s 1721 src/editor/edit.c edit_execute_cmd (e, CK_InsertChar, (unsigned char) s[i]); s 4017 src/editor/edit.c char s[BUF_MEDIUM]; s 4022 src/editor/edit.c FMT_LOCALTIME_CURRENT (s, sizeof (s), time_format); s 4023 src/editor/edit.c edit_print_string (edit, s); s 702 src/editor/editbuffer.c status_msg_t *s = STATUS_MSG (sm); s 746 src/editor/editbuffer.c if (s != NULL && s->update != NULL) s 756 src/editor/editbuffer.c if (s->update (s) == B_CANCEL) s 780 src/editor/editbuffer.c if (s != NULL && s->update != NULL) s 786 src/editor/editbuffer.c if (s->update (s) == B_CANCEL) s 577 src/editor/editcmd.c unsigned char *s, *r; s 579 src/editor/editcmd.c r = s = g_malloc0 (finish - start + 1); s 597 src/editor/editcmd.c *s++ = c; s 607 src/editor/editcmd.c *s++ = edit_buffer_get_byte (&edit->buffer, start); s 610 src/editor/editcmd.c *s = '\0'; s 637 src/editor/editcmd.c char *s = NULL; s 647 src/editor/editcmd.c s = g_strdup_printf ("mail -s %s %s", subject, to); s 650 src/editor/editcmd.c s = g_strdup_printf ("mail -s %s -c %s %s", subject, cc, to); s 660 src/editor/editcmd.c if (s != NULL) s 662 src/editor/editcmd.c p = popen (s, "w"); s 663 src/editor/editcmd.c g_free (s); s 159 src/editor/editcomplete.c GString *s = (GString *) l->data; s 162 src/editor/editcomplete.c if (strncmp (s->str + word_len, temp->str + word_len, s 163 src/editor/editcomplete.c MAX (len, s->len) - word_len) == 0) s 92 src/editor/editdraw.c printwstr (const char *s, int len) s 95 src/editor/editdraw.c tty_printf ("%-*.*s", len, len, s); s 101 src/editor/editdraw.c status_string (WEdit *edit, char *s, int w) s 140 src/editor/editdraw.c g_snprintf (s, w, s 155 src/editor/editdraw.c g_snprintf (s, w, s 759 src/editor/editsearch.c char *s; s 761 src/editor/editsearch.c s = mc_config_history_get_recent_item (MC_HISTORY_SHARED_SEARCH); s 762 src/editor/editsearch.c if (s != NULL) s 764 src/editor/editsearch.c edit->last_search_string = s; s 23 src/editor/editsearch.h gboolean edit_search_init (WEdit * edit, const char *s); s 362 src/editor/syntax.c xx_strchr (const WEdit *edit, const unsigned char *s, int char_byte) s 364 src/editor/syntax.c while (*s >= '\005' && xx_tolower (edit, *s) != char_byte) s 365 src/editor/syntax.c s++; s 367 src/editor/syntax.c return (const char *) s; s 606 src/editor/syntax.c syntax_marker_t *s; s 608 src/editor/syntax.c s = g_new (syntax_marker_t, 1); s 609 src/editor/syntax.c s->offset = i; s 610 src/editor/syntax.c s->rule = edit->rule; s 611 src/editor/syntax.c edit->syntax_marker = g_slist_prepend (edit->syntax_marker, s); s 619 src/editor/syntax.c syntax_marker_t *s; s 629 src/editor/syntax.c s = (syntax_marker_t *) edit->syntax_marker->data; s 631 src/editor/syntax.c if (byte_index >= s->offset) s 633 src/editor/syntax.c edit->rule = s->rule; s 634 src/editor/syntax.c for (i = s->offset + 1; i <= byte_index; i++) s 639 src/editor/syntax.c g_free (s); s 719 src/editor/syntax.c convert (char *s) s 723 src/editor/syntax.c p = r = s; s 724 src/editor/syntax.c while (*s) s 726 src/editor/syntax.c switch (*s) s 729 src/editor/syntax.c s++; s 730 src/editor/syntax.c switch (*s) s 734 src/editor/syntax.c s--; s 763 src/editor/syntax.c *p = *s; s 766 src/editor/syntax.c *p = *s; s 777 src/editor/syntax.c *p = *s; s 780 src/editor/syntax.c s++; s 1399 src/editor/syntax.c static char s[256]; s 1401 src/editor/syntax.c s[0] = '\0'; s 1407 src/editor/syntax.c for (i = 0; i < sizeof (s) - 1; i++) s 1409 src/editor/syntax.c s[i] = edit_buffer_get_byte (&edit->buffer, i); s 1410 src/editor/syntax.c if (s[i] == '\n') s 1412 src/editor/syntax.c s[i] = '\0'; s 1417 src/editor/syntax.c s[sizeof (s) - 1] = '\0'; s 1420 src/editor/syntax.c return s; s 81 src/file_history.c char *s; s 85 src/file_history.c s = strrchr (buf, ' '); s 88 src/file_history.c fhd->file_name = g_strndup (buf, s - buf); s 89 src/file_history.c len = strlen (s + 1); s 90 src/file_history.c fhd->file_pos = g_strndup (s + 1, len - 1); /* ignore '\n' */ s 117 src/file_history.c GString *s; s 119 src/file_history.c s = g_string_sized_new (128); s 125 src/file_history.c g_string_append (s, fhd->file_name); s 128 src/file_history.c g_string_append_c (s, ' '); s 129 src/file_history.c g_string_append (s, fhd->file_pos); s 132 src/file_history.c write_error = (fprintf (f, "%s\n", s->str) < 0); s 133 src/file_history.c g_string_truncate (s, 0); s 136 src/file_history.c g_string_free (s, TRUE); s 170 src/filemanager/achown.c set_perm_by_flags (char *s, int f_p) s 177 src/filemanager/achown.c s[i] = ch_perm[i]; s 179 src/filemanager/achown.c s[i] = '-'; s 181 src/filemanager/achown.c s[i] = (ch_cmode & (1 << (8 - f_p - i))) != 0 ? ch_perm[i] : '-'; s 188 src/filemanager/achown.c get_perm (char *s, int base) s 192 src/filemanager/achown.c m |= (s[0] == '-') ? 0 : s 193 src/filemanager/achown.c ((s[0] == '+') ? (mode_t) (1 << (base + 2)) : (1 << (base + 2)) & ch_cmode); s 195 src/filemanager/achown.c m |= (s[1] == '-') ? 0 : s 196 src/filemanager/achown.c ((s[1] == '+') ? (mode_t) (1 << (base + 1)) : (1 << (base + 1)) & ch_cmode); s 198 src/filemanager/achown.c m |= (s[2] == '-') ? 0 : ((s[2] == '+') ? (mode_t) (1 << base) : (1 << base) & ch_cmode); s 474 src/filemanager/boxes.c char *s; s 476 src/filemanager/boxes.c s = g_strconcat (state_str[tl->state], " ", tl->info, (char *) NULL); s 477 src/filemanager/boxes.c listbox_add_item_take (list, LISTBOX_APPEND_AT_END, 0, s, (void *) tl, FALSE); s 121 src/filemanager/cd.c char *s = NULL; s 131 src/filemanager/cd.c s = strchr (p, '}'); s 133 src/filemanager/cd.c if (s == NULL) s 134 src/filemanager/cd.c s = strchr (p, PATH_SEP); s 135 src/filemanager/cd.c if (s == NULL) s 136 src/filemanager/cd.c s = strchr (p, '\0'); s 137 src/filemanager/cd.c c = *s; s 138 src/filemanager/cd.c *s = '\0'; s 140 src/filemanager/cd.c *s = c; s 150 src/filemanager/cd.c p = s; s 151 src/filemanager/cd.c if (*s == '}') s 189 src/filemanager/cd.c char *s; s 191 src/filemanager/cd.c s = strchr (p, ':'); s 192 src/filemanager/cd.c if (s == NULL) s 193 src/filemanager/cd.c s = strchr (p, '\0'); s 194 src/filemanager/cd.c c = *s; s 195 src/filemanager/cd.c *s = '\0'; s 204 src/filemanager/cd.c *s = c; s 205 src/filemanager/cd.c p = s + 1; s 328 src/filemanager/cmd.c vfs_path_t *s, *d; s 332 src/filemanager/cmd.c s = vfs_path_append_new (current_panel->cwd_vpath, fname, (char *) NULL); s 343 src/filemanager/cmd.c s_str = diff_two_paths (other_panel->cwd_vpath, s); s 344 src/filemanager/cmd.c vfs_path_free (s, TRUE); s 345 src/filemanager/cmd.c s = vfs_path_from_str_flags (s_str, VPF_NO_CANON); s 349 src/filemanager/cmd.c symlink_box (s, d, &dest, &src); s 351 src/filemanager/cmd.c vfs_path_free (s, TRUE); s 360 src/filemanager/cmd.c s = vfs_path_from_str (src); s 361 src/filemanager/cmd.c if (mc_symlink (dest_vpath, s) == -1) s 363 src/filemanager/cmd.c vfs_path_free (s, TRUE); s 139 src/filemanager/command.c char *s; s 141 src/filemanager/command.c s = expand_format (NULL, cmd[++i], TRUE); s 142 src/filemanager/command.c if (s != NULL) s 144 src/filemanager/command.c g_string_append (command, s); s 145 src/filemanager/command.c g_free (s); s 243 src/filemanager/file.c char *s, *q; s 248 src/filemanager/file.c s = g_strdup (src); s 252 src/filemanager/file.c for (q = s; *q != '\0'; q++) s 256 src/filemanager/file.c fnsource = x_basename (s); s 275 src/filemanager/file.c MC_PTR_FREE (s); s 283 src/filemanager/file.c s = mc_build_filename (repl_dest, q, (char *) NULL); s 297 src/filemanager/file.c return s; s 570 src/filemanager/file.c char *s = NULL; s 576 src/filemanager/file.c s = diff_two_paths (tmp_vpath1, tmp_vpath2); s 579 src/filemanager/file.c g_strlcpy (link_target, s != NULL ? s : p->str, sizeof (link_target)); s 580 src/filemanager/file.c g_free (s); s 643 src/filemanager/file.c struct stat s; s 663 src/filemanager/file.c res = stat_func (tmp_vpath, &s); s 666 src/filemanager/file.c if (S_ISDIR (s.st_mode)) s 675 src/filemanager/file.c *ret_total += (uintmax_t) s.st_size; s 715 src/filemanager/file.c const struct stat *s; s 720 src/filemanager/file.c s = &fe->st; s 722 src/filemanager/file.c if (S_ISDIR (s->st_mode) || (follow_symlinks && link_isdir (fe) && fe->f.stale_link == 0)) s 737 src/filemanager/file.c *ret_total += (uintmax_t) s->st_size; s 868 src/filemanager/file.c char *s; s 870 src/filemanager/file.c s = g_strndup (str_trunc (a, width), width); s 872 src/filemanager/file.c msg = g_strdup_printf (fmt, s, b); s 873 src/filemanager/file.c g_free (s); s 991 src/filemanager/file.c real_query_recursive (file_op_context_t *ctx, enum OperationMode mode, const char *s) s 1003 src/filemanager/file.c text = g_strdup_printf (msg, path_trunc (s, 30)); s 1060 src/filemanager/file.c query_recursive (file_op_context_t *ctx, const char *s) s 1073 src/filemanager/file.c return parent_call (pntr.p, ctx, 1, strlen (s), s); s 1075 src/filemanager/file.c return real_query_recursive (ctx, Foreground, s); s 1114 src/filemanager/file.c query_recursive (file_op_context_t *ctx, const char *s) s 1116 src/filemanager/file.c return real_query_recursive (ctx, Foreground, s); s 1223 src/filemanager/file.c move_file_file (const WPanel *panel, file_op_context_t *ctx, const char *s, const char *d) s 1231 src/filemanager/file.c src_vpath = vfs_path_from_str (s); s 1253 src/filemanager/file.c return_status = file_error (ctx, TRUE, _("Cannot stat file \"%s\"\n%s"), s); s 1264 src/filemanager/file.c if (check_same_file (ctx, s, &src_stat, d, &dst_stat, &return_status)) s 1277 src/filemanager/file.c return_status = query_replace (ctx, s, &src_stat, d, &dst_stat); s 1320 src/filemanager/file.c return_status = files_error (ctx, _("Cannot move file \"%s\" to \"%s\"\n%s"), s, d); s 1345 src/filemanager/file.c return_status = copy_file_file (ctx, s, d); s 1601 src/filemanager/file.c do_move_dir_dir (const WPanel *panel, file_op_context_t *ctx, const char *s, const char *d) s 1609 src/filemanager/file.c src_vpath = vfs_path_from_str (s); s 1628 src/filemanager/file.c if (dstat_ok && check_same_file (ctx, s, &src_stat, d, &dst_stat, &return_status)) s 1640 src/filemanager/file.c dst_vpath = vfs_path_append_new (dst_vpath, x_basename (s), (char *) NULL); s 1663 src/filemanager/file.c return_status = copy_dir_dir (ctx, s, d, FALSE, TRUE, TRUE, NULL); s 1699 src/filemanager/file.c files_error (ctx, _("Cannot move directory \"%s\" to \"%s\"\n%s"), s, d); s 1720 src/filemanager/file.c return_status = copy_dir_dir (ctx, s, d, FALSE, FALSE, TRUE, NULL); s 3004 src/filemanager/file.c copy_dir_dir (file_op_context_t *ctx, const char *s, const char *d, gboolean toplevel, s 3017 src/filemanager/file.c src_vpath = vfs_path_from_str (s); s 3029 src/filemanager/file.c return_status = file_error (ctx, TRUE, _("Cannot stat source directory \"%s\"\n%s"), s); s 3051 src/filemanager/file.c _("Cannot get ext2 attributes of source directory \"%s\"\n%s"), s); s 3100 src/filemanager/file.c return_status = file_error (ctx, TRUE, _("Source \"%s\" is not a directory\n%s"), s); s 3112 src/filemanager/file.c message (D_ERROR, MSG_ERROR, _("Cannot copy cyclic symbolic link\n\"%s\""), s); s 3165 src/filemanager/file.c dst_vpath = vfs_path_append_new (dst_vpath, x_basename (s), (char *) NULL); s 3235 src/filemanager/file.c path = mc_build_filename (s, next->d_name, (char *) NULL); s 3321 src/filemanager/file.c move_dir_dir (file_op_context_t *ctx, const char *s, const char *d) s 3323 src/filemanager/file.c return do_move_dir_dir (NULL, ctx, s, d); s 46 src/filemanager/file.h FileProgressStatus move_dir_dir (file_op_context_t * ctx, const char *s, const char *d); s 47 src/filemanager/file.h FileProgressStatus copy_dir_dir (file_op_context_t * ctx, const char *s, const char *d, s 170 src/filemanager/filegui.c #define truncFileStringSecure(dlg, s) path_trunc (s, WIDGET (dlg)->rect.cols - 10) s 1257 src/filemanager/filegui.c const char *s; s 1264 src/filemanager/filegui.c s = vfs_path_as_str (vpath); s 1265 src/filemanager/filegui.c label_set_text (ui->src_file, truncFileStringSecure (ui->op_dlg, s)); s 1007 src/filemanager/filemanager.c char *s; s 1010 src/filemanager/filemanager.c s = show_file_history (WIDGET (filemanager), &act); s 1011 src/filemanager/filemanager.c if (s != NULL) s 1018 src/filemanager/filemanager.c s_vpath = vfs_path_from_str (s); s 1023 src/filemanager/filemanager.c s_vpath = vfs_path_from_str (s); s 1031 src/filemanager/filemanager.c d = g_path_get_dirname (s); s 1034 src/filemanager/filemanager.c panel_set_current_by_name (current_panel, s); s 1039 src/filemanager/filemanager.c g_free (s); s 1462 src/filemanager/filemanager.c const char *s; s 1464 src/filemanager/filemanager.c for (s = input_get_ctext (cmdline); *s != '\0' && whitespace (*s); s++) s 1467 src/filemanager/filemanager.c if (*s != '\0') s 820 src/filemanager/find.c char *s; s 849 src/filemanager/find.c s = tilde_expand (*start_dir); s 850 src/filemanager/find.c canonicalize_pathname (s); s 852 src/filemanager/find.c if (DIR_IS_DOT (s)) s 858 src/filemanager/find.c g_free (s); s 860 src/filemanager/find.c else if (g_path_is_absolute (s)) s 862 src/filemanager/find.c *start_dir = s; s 869 src/filemanager/find.c mc_build_filename (vfs_path_as_str (panel->cwd_vpath), s, (char *) NULL); s 871 src/filemanager/find.c g_free (s); s 1018 src/filemanager/find.c struct stat s; s 1028 src/filemanager/find.c if (mc_stat (vpath, &s) == 0 && S_ISREG (s.st_mode)) s 1039 src/filemanager/find.c if (s.st_size >= MIN_REFRESH_FILE_SIZE || (tv - last_refresh) > MAX_REFRESH_INTERVAL) s 1525 src/filemanager/hotlist.c char *s; s 1539 src/filemanager/hotlist.c for (s = current->label; *s != '\0'; s++) s 1541 src/filemanager/hotlist.c if (*s == '"' || *s == '\\') s 1543 src/filemanager/hotlist.c putc (*s, hotlist_file); s 1555 src/filemanager/hotlist.c for (s = current->label; *s != '\0'; s++) s 1557 src/filemanager/hotlist.c if (*s == '"' || *s == '\\') s 1559 src/filemanager/hotlist.c putc (*s, hotlist_file); s 1562 src/filemanager/hotlist.c for (s = current->directory; *s != '\0'; s++) s 1564 src/filemanager/hotlist.c if (*s == '"' || *s == '\\') s 1566 src/filemanager/hotlist.c putc (*s, hotlist_file); s 159 src/filemanager/listmode.c char *s = select_new_item (); s 160 src/filemanager/listmode.c if (s) s 162 src/filemanager/listmode.c listbox_add_item (l_listmode, LISTBOX_APPEND_AT_END, 0, s, NULL, FALSE); s 163 src/filemanager/listmode.c g_free (s); s 183 src/filemanager/listmode.c char *s; s 253 src/filemanager/listmode.c s = strtok (oldlistformat, ","); s 255 src/filemanager/listmode.c while (s) s 257 src/filemanager/listmode.c listbox_add_item (l_listmode, LISTBOX_APPEND_AT_END, 0, s, NULL, FALSE); s 258 src/filemanager/listmode.c s = strtok (NULL, ","); s 326 src/filemanager/listmode.c char *s; s 329 src/filemanager/listmode.c s = g_strdup (oldlistformat); s 330 src/filemanager/listmode.c listmode_dlg = init_listmode (s); s 331 src/filemanager/listmode.c g_free (s); s 257 src/filemanager/treestore.c char *s; s 259 src/filemanager/treestore.c s = strtok (lc_name, " "); s 260 src/filemanager/treestore.c if (s != NULL) s 265 src/filemanager/treestore.c common = atoi (s); s 815 src/filemanager/treestore.c struct stat s; s 817 src/filemanager/treestore.c if (mc_stat (vpath, &s) == -1 || !S_ISDIR (s.st_mode)) s 890 src/keymap.c #define LOAD_KEYMAP(s,km) \ s 892 src/keymap.c load_keymap_from_section (KEYMAP_SECTION_##s, km##_keymap, mc_global_keymap) s 1223 src/subshell/common.c subshell_name_quote (const char *s) s 1250 src/subshell/common.c if (s[0] == '-') s 1261 src/subshell/common.c for (su = s; su[0] != '\0'; su = n) s 1482 src/subshell/common.c const char *s; s 1486 src/subshell/common.c s = input_get_ctext (cmdline); s 1491 src/subshell/common.c if ((unsigned char) s[i] < 32 || (unsigned char) s[i] == 127) s 1495 src/subshell/common.c write_all (mc_global.tty.subshell_pty, s, cmdline->buffer->len); s 1498 src/subshell/common.c pos = str_length (s) - cmdline->point; s 89 src/usermenu.c char *s; s 95 src/usermenu.c for (s = ss; *s != '\0'; s++) s 97 src/usermenu.c if (*s == '.') s 98 src/usermenu.c e = s; s 99 src/usermenu.c if (IS_PATH_SEP (*s) && e != NULL) s 249 src/vfs/cpio/cpio.c char *s; s 253 src/vfs/cpio/cpio.c s = g_strconcat (super->name, decompress_extension (type), (char *) NULL); s 254 src/vfs/cpio/cpio.c tmp_vpath = vfs_path_from_str_flags (s, VPF_NO_CANON); s 259 src/vfs/cpio/cpio.c message (D_ERROR, MSG_ERROR, _("Cannot open cpio archive\n%s"), s); s 260 src/vfs/cpio/cpio.c g_free (s); s 264 src/vfs/cpio/cpio.c g_free (s); s 376 src/vfs/extfs/extfs.c extfs_skip_leading_dotslash (char *s) s 387 src/vfs/extfs/extfs.c if (s[0] == '.' && s[1] == PATH_SEP) s 388 src/vfs/extfs/extfs.c s += 2; s 390 src/vfs/extfs/extfs.c return s; s 1603 src/vfs/extfs/extfs.c struct stat s; s 1607 src/vfs/extfs/extfs.c if ((stat (fullname, &s) == 0) && S_ISREG (s.st_mode) && !S_ISDIR (s.st_mode) s 1608 src/vfs/extfs/extfs.c && is_exe (s.st_mode)) s 265 src/vfs/ftpfs/ftpfs.c ftpfs_set_blksize (struct stat *s) s 269 src/vfs/ftpfs/ftpfs.c s->st_blksize = 64 * 1024; /* FIXME */ s 278 src/vfs/ftpfs/ftpfs.c struct stat *s; s 280 src/vfs/ftpfs/ftpfs.c s = vfs_s_default_stat (me, S_IFDIR | 0755); s 281 src/vfs/ftpfs/ftpfs.c ftpfs_set_blksize (s); s 282 src/vfs/ftpfs/ftpfs.c vfs_adjust_stat (s); s 284 src/vfs/ftpfs/ftpfs.c return s; s 749 src/vfs/ftpfs/ftpfs.c char s[BUF_LARGE]; /* provide for BUF_LARGE characters */ s 751 src/vfs/ftpfs/ftpfs.c while (fgets (s, sizeof (s), npf) != NULL) s 755 src/vfs/ftpfs/ftpfs.c p = strchr (s, '\n'); s 763 src/vfs/ftpfs/ftpfs.c else if (p != s) s 766 src/vfs/ftpfs/ftpfs.c no_proxy = g_slist_prepend (no_proxy, g_strdup (s)); s 1449 src/vfs/ftpfs/ftpfs.c int s, j, data; s 1455 src/vfs/ftpfs/ftpfs.c s = ftpfs_initconn (me, super); s 1456 src/vfs/ftpfs/ftpfs.c if (s == -1) s 1461 src/vfs/ftpfs/ftpfs.c close (s); s 1470 src/vfs/ftpfs/ftpfs.c close (s); s 1490 src/vfs/ftpfs/ftpfs.c close (s); s 1495 src/vfs/ftpfs/ftpfs.c data = s; s 1502 src/vfs/ftpfs/ftpfs.c data = accept (s, (struct sockaddr *) &from, &fromlen); s 1506 src/vfs/ftpfs/ftpfs.c close (s); s 1598 src/vfs/ftpfs/ftpfs.c if (S_ISLNK (fel->s.st_mode) && fel->linkname != NULL) s 1624 src/vfs/ftpfs/ftpfs.c if (S_ISLNK (fe->s.st_mode) && fe->l_stat == 0) s 1648 src/vfs/ftpfs/ftpfs.c if (S_ISLNK (fe->s.st_mode)) s 1651 src/vfs/ftpfs/ftpfs.c *fel->l_stat = fe->s; s 1672 src/vfs/ftpfs/ftpfs.c struct stat s; s 1717 src/vfs/ftpfs/ftpfs.c while (!S_ISLNK (fe->s.st_mode)); s 1732 src/vfs/ftpfs/ftpfs.c if (vfs_parse_ls_lga (buffer, &s, &filename, NULL)) s 1740 src/vfs/ftpfs/ftpfs.c if (S_ISLNK (s.st_mode)) s 1751 src/vfs/ftpfs/ftpfs.c *fe->l_stat = s; s 1935 src/vfs/ftpfs/ftpfs.c struct stat s; s 1942 src/vfs/ftpfs/ftpfs.c if (fstat (h, &s) == -1) s 2004 src/vfs/ftpfs/ftpfs.c _("ftpfs: storing file"), (uintmax_t) n_stored, (uintmax_t) s.st_size); s 79 src/vfs/ftpfs/ftpfs_parse_ls.c typedef gboolean (*ftpfs_line_parser) (char *line, struct stat * s, char **filename, s 84 src/vfs/ftpfs/ftpfs_parse_ls.c static gboolean ftpfs_parse_long_list_UNIX (char *line, struct stat *s, char **filename, s 86 src/vfs/ftpfs/ftpfs_parse_ls.c static gboolean ftpfs_parse_long_list_NT (char *line, struct stat *s, char **filename, s 88 src/vfs/ftpfs/ftpfs_parse_ls.c static gboolean ftpfs_parse_long_list_EPLF (char *line, struct stat *s, char **filename, s 90 src/vfs/ftpfs/ftpfs_parse_ls.c static gboolean ftpfs_parse_long_list_MLSD (char *line, struct stat *s, char **filename, s 92 src/vfs/ftpfs/ftpfs_parse_ls.c static gboolean ftpfs_parse_long_list_AS400 (char *line, struct stat *s, char **filename, s 94 src/vfs/ftpfs/ftpfs_parse_ls.c static gboolean ftpfs_parse_long_list_OS2 (char *line, struct stat *s, char **filename, s 96 src/vfs/ftpfs/ftpfs_parse_ls.c static gboolean ftpfs_parse_long_list_MacWebStar (char *line, struct stat *s, char **filename, s 119 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_get_uid (const char *s) s 123 src/vfs/ftpfs/ftpfs_parse_ls.c if (*s < '0' || *s > '9') s 124 src/vfs/ftpfs/ftpfs_parse_ls.c u = vfs_finduid (s); s 126 src/vfs/ftpfs/ftpfs_parse_ls.c u = (uid_t) atol (s); s 134 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_get_gid (const char *s) s 138 src/vfs/ftpfs/ftpfs_parse_ls.c if (*s < '0' || *s > '9') s 139 src/vfs/ftpfs/ftpfs_parse_ls.c g = vfs_findgid (s); s 141 src/vfs/ftpfs/ftpfs_parse_ls.c g = (gid_t) atol (s); s 228 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_convert_date (const char *s) s 237 src/vfs/ftpfs/ftpfs_parse_ls.c n = sscanf (s, "%4d%n", &year, &skip); s 243 src/vfs/ftpfs/ftpfs_parse_ls.c n = sscanf (s, "%5d%n", &year, &skip); s 250 src/vfs/ftpfs/ftpfs_parse_ls.c n = sscanf (s + skip, "%2d%2d%2d%2d%2d", &month, &day, &hour, &minute, &second); s 277 src/vfs/ftpfs/ftpfs_parse_ls.c parse_ls_line (char *line, struct stat *s, char **filename, char **linkname) s 299 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = mode; s 305 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_nlink = atol (t); s 312 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_uid = ftpfs_get_uid (t); s 327 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_gid = ftpfs_get_gid (group_or_size); s 330 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_size = (off_t) size; s 342 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_size = (off_t) size; s 346 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_blksize = 512; s 349 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_blocks = (s->st_size + 511) / 512; s 384 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mtime = mktime (&date); s 386 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_atime = s->st_ctime = s->st_mtime; s 396 src/vfs/ftpfs/ftpfs_parse_ls.c if (!S_ISLNK (s->st_mode)) s 419 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list_UNIX (char *line, struct stat *s, char **filename, char **linkname, int *err) s 430 src/vfs/ftpfs/ftpfs_parse_ls.c ret = parse_ls_line (line, s, filename, linkname); s 450 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list_NT (char *line, struct stat *s, char **filename, char **linkname, int *err) s 495 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mtime = mktime (&tms); s 497 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_atime = s->st_ctime = s->st_mtime; s 500 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = S_IFDIR; s 503 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = S_IFREG; s 506 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_size = (off_t) size; s 542 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list_EPLF (char *line, struct stat *s, char **filename, char **linkname, int *err) s 626 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_size = size; s 629 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mtime = date; s 631 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_atime = s->st_ctime = s->st_mtime; s 634 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = dir ? S_IFDIR : S_IFREG; s 636 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode |= perms; /* FIXME */ s 654 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list_MLSD (char *line, struct stat *s, char **filename, char **linkname, int *err) s 777 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_size = size; s 780 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mtime = date; s 782 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_atime = s->st_ctime = s->st_mtime; s 787 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = S_IFDIR; s 790 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = S_IFLNK; s 793 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = S_IFREG; s 799 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode |= perms; /* FIXME */ s 801 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_uid = ftpfs_get_uid (owner); s 803 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_gid = ftpfs_get_gid (group); s 819 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list_AS400 (char *line, struct stat *s, char **filename, char **linkname, int *err) s 899 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = type; /* FIXME */ s 905 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = type; s 906 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_size = (off_t) size; s 907 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mtime = mtime; s 909 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_atime = s->st_ctime = s->st_mtime; s 910 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_uid = ftpfs_get_uid (user); s 923 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list_OS2 (char *line, struct stat *s, char **filename, char **linkname, int *err) s 936 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_size = (off_t) size; s 941 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = S_IFREG; s 944 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = S_IFDIR; s 971 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mtime = mktime (&tms); s 973 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_atime = s->st_ctime = s->st_mtime; s 991 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list_MacWebStar (char *line, struct stat *s, char **filename, s 1007 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = type; s 1034 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_size = (off_t) size; s 1074 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mtime = mktime (&date); s 1076 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_atime = s->st_ctime = s->st_mtime; s 1083 src/vfs/ftpfs/ftpfs_parse_ls.c if (!S_ISLNK (s->st_mode)) s 167 src/vfs/sfs/sfs.c vfs_path_t *s; s 169 src/vfs/sfs/sfs.c s = mc_getlocalcopy (pname); s 170 src/vfs/sfs/sfs.c if (s == NULL) s 176 src/vfs/sfs/sfs.c pqname = name_quote (vfs_path_get_last_path_str (s), FALSE); s 177 src/vfs/sfs/sfs.c vfs_path_free (s, TRUE); s 63 src/vfs/sftpfs/internal.c sftpfs_blksize (struct stat *s) s 66 src/vfs/sftpfs/internal.c s->st_blksize = LIBSSH2_CHANNEL_WINDOW_DEFAULT; /* FIXME */ s 68 src/vfs/sftpfs/internal.c vfs_adjust_stat (s); s 249 src/vfs/sftpfs/internal.c sftpfs_attr_to_stat (const LIBSSH2_SFTP_ATTRIBUTES *attrs, struct stat *s) s 253 src/vfs/sftpfs/internal.c s->st_uid = attrs->uid; s 254 src/vfs/sftpfs/internal.c s->st_gid = attrs->gid; s 259 src/vfs/sftpfs/internal.c vfs_zero_stat_times (s); s 260 src/vfs/sftpfs/internal.c s->st_atime = attrs->atime; s 261 src/vfs/sftpfs/internal.c s->st_mtime = attrs->mtime; s 262 src/vfs/sftpfs/internal.c s->st_ctime = attrs->mtime; s 267 src/vfs/sftpfs/internal.c s->st_size = attrs->filesize; s 268 src/vfs/sftpfs/internal.c sftpfs_blksize (s); s 272 src/vfs/sftpfs/internal.c s->st_mode = attrs->permissions; s 81 src/vfs/sftpfs/internal.h void sftpfs_attr_to_stat (const LIBSSH2_SFTP_ATTRIBUTES * attrs, struct stat *s); s 172 src/vfs/shell/shell.c shell_set_blksize (struct stat *s) s 176 src/vfs/shell/shell.c s->st_blksize = 64 * 1024; /* FIXME */ s 185 src/vfs/shell/shell.c struct stat *s; s 187 src/vfs/shell/shell.c s = vfs_s_default_stat (me, S_IFDIR | 0755); s 188 src/vfs/shell/shell.c shell_set_blksize (s); s 189 src/vfs/shell/shell.c vfs_adjust_stat (s); s 191 src/vfs/shell/shell.c return s; s 228 src/vfs/shell/shell.c shell_decode_reply (char *s, gboolean was_garbage) s 233 src/vfs/shell/shell.c if (sscanf (s, "%d", &code) == 0) s 990 src/vfs/shell/shell.c struct stat s; s 997 src/vfs/shell/shell.c if (fstat (h, &s) < 0) s 1040 src/vfs/shell/shell.c (uintmax_t) s.st_size); s 1077 src/vfs/shell/shell.c (uintmax_t) total, (uintmax_t) s.st_size); s 507 src/vfs/tar/tar-internal.c off_from_header (const char *p, size_t s) s 511 src/vfs/tar/tar-internal.c return tar_from_header (p, s, "off_t", 0, TYPE_MAXIMUM (off_t), FALSE); s 312 src/vfs/tar/tar-internal.h off_t off_from_header (const char *p, size_t s); s 370 src/vfs/tar/tar-sparse.c oldgnu_add_sparse (struct tar_sparse_file *file, struct sparse *s) s 375 src/vfs/tar/tar-sparse.c if (s->numbytes[0] == '\0') s 378 src/vfs/tar/tar-sparse.c sp.offset = OFF_FROM_HEADER (s->offset); s 379 src/vfs/tar/tar-sparse.c sp.numbytes = OFF_FROM_HEADER (s->numbytes); s 259 src/vfs/tar/tar-xheader.c time_t s; s 263 src/vfs/tar/tar-xheader.c s = stoint (arg, arg_lim, &overflow, TYPE_MINIMUM (time_t), TYPE_MAXIMUM (time_t)); s 300 src/vfs/tar/tar-xheader.c ns = ckd_sub (&s, s, 1) ? -1 : BILLION - ns; s 308 src/vfs/tar/tar-xheader.c r.tv_sec = s; s 756 src/vfs/tar/tar-xheader.c struct sp_array *s; s 763 src/vfs/tar/tar-xheader.c s = &g_array_index (st->sparse_map, struct sp_array, st->sparse_map->len - 1); s 764 src/vfs/tar/tar-xheader.c s->offset = u; s 775 src/vfs/tar/tar-xheader.c struct sp_array s; s 782 src/vfs/tar/tar-xheader.c s.offset = 0; s 783 src/vfs/tar/tar-xheader.c s.numbytes = u; s 784 src/vfs/tar/tar-xheader.c g_array_append_val (st->sparse_map, s); s 175 src/vfs/tar/tar.c gid_from_header (const char *p, size_t s) s 177 src/vfs/tar/tar.c return tar_from_header (p, s, "gid_t", TYPE_MINIMUM (gid_t), TYPE_MAXIMUM (gid_t), FALSE); s 183 src/vfs/tar/tar.c major_from_header (const char *p, size_t s) s 185 src/vfs/tar/tar.c return tar_from_header (p, s, "major_t", TYPE_MINIMUM (major_t), TYPE_MAXIMUM (major_t), FALSE); s 191 src/vfs/tar/tar.c minor_from_header (const char *p, size_t s) s 193 src/vfs/tar/tar.c return tar_from_header (p, s, "minor_t", TYPE_MINIMUM (minor_t), TYPE_MAXIMUM (minor_t), FALSE); s 204 src/vfs/tar/tar.c mode_from_header (const char *p, size_t s, gboolean *hbits) s 210 src/vfs/tar/tar.c u = tar_from_header (p, s, "mode_t", INTMAX_MIN, UINTMAX_MAX, FALSE); s 236 src/vfs/tar/tar.c time_from_header (const char *p, size_t s) s 238 src/vfs/tar/tar.c return tar_from_header (p, s, "time_t", TYPE_MINIMUM (time_t), TYPE_MAXIMUM (time_t), FALSE); s 244 src/vfs/tar/tar.c uid_from_header (const char *p, size_t s) s 246 src/vfs/tar/tar.c return tar_from_header (p, s, "uid_t", TYPE_MINIMUM (uid_t), TYPE_MAXIMUM (uid_t), FALSE); s 924 src/vfs/tar/tar.c char *s; s 928 src/vfs/tar/tar.c s = g_strconcat (archive->name, decompress_extension (type), (char *) NULL); s 929 src/vfs/tar/tar.c tmp_vpath = vfs_path_from_str_flags (s, VPF_NO_CANON); s 933 src/vfs/tar/tar.c message (D_ERROR, MSG_ERROR, _("Cannot open tar archive\n%s"), s); s 934 src/vfs/tar/tar.c g_free (s); s 108 src/viewer/actions_cmd.c char *s; s 110 src/viewer/actions_cmd.c s = mc_config_history_get_recent_item (MC_HISTORY_SHARED_SEARCH); s 111 src/viewer/actions_cmd.c if (s != NULL) s 113 src/viewer/actions_cmd.c view->last_search_string = s; s 293 src/viewer/ascii.c mcview_char_display (const WView *view, int c, char *s) s 302 src/viewer/ascii.c return g_unichar_to_utf8 (c, s); s 308 src/viewer/ascii.c s[0] = s[1] = '.'; s 327 src/viewer/ascii.c *s = c; s 428 src/viewer/datasource.c mcview_set_datasource_string (WView *view, const char *s) s 431 src/viewer/datasource.c view->ds_string_len = strlen (s); s 432 src/viewer/datasource.c view->ds_string_data = (byte *) g_strndup (s, view->ds_string_len); s 254 src/viewer/internal.h void mcview_set_datasource_string (WView * view, const char *s); s 71 tests/lib/search/glob_prepare_replace_str.c mc_search_t *s; s 74 tests/lib/search/glob_prepare_replace_str.c s = mc_search_new (data->glob_str, NULL); s 75 tests/lib/search/glob_prepare_replace_str.c s->is_case_sensitive = TRUE; s 76 tests/lib/search/glob_prepare_replace_str.c s->search_type = MC_SEARCH_T_GLOB; s 79 tests/lib/search/glob_prepare_replace_str.c mc_search_run (s, data->input_value, 0, strlen (data->input_value), NULL); s 80 tests/lib/search/glob_prepare_replace_str.c dest_str = mc_search_prepare_replace_str2 (s, data->replace_str); s 86 tests/lib/search/glob_prepare_replace_str.c mc_search_free (s); s 89 tests/mctest.h Suite *s; s 93 tests/mctest.h s = suite_create (TEST_SUITE_NAME); s 94 tests/mctest.h suite_add_tcase (s, tc_core); s 95 tests/mctest.h sr = srunner_create (s); s 116 tests/src/editor/edit_complete_word_cmd.c GString *s = (GString *) i->data; s 118 tests/src/editor/edit_complete_word_cmd.c g_queue_push_tail (edit_completion_dialog_show__compl, mc_g_string_dup (s)); s 181 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c chomp (char *s) s 185 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c i = strlen (s); s 188 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c if ((--i >= 0) && (s[i] == '\r' || s[i] == '\n')) s 189 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c s[i] = '\0'; s 190 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c if ((--i >= 0) && (s[i] == '\r' || s[i] == '\n')) s 191 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c s[i] = '\0';