n 239 lib/charsets.c get_codepage_id (const int n) n 241 lib/charsets.c return (n < 0) ? OTHER_8BIT : ((codepage_desc *) g_ptr_array_index (codepages, n))->id; n 31 lib/charsets.h const char *get_codepage_id (const int n); n 214 lib/search/lib.c size_t n; n 217 lib/search/lib.c const mc_search_type_str_t *types_str = mc_search_types_list_get (&n); n 219 lib/search/lib.c ret = g_try_new0 (char *, n + 1); n 623 lib/strutil.h size_t n; n 627 lib/strutil.h n = strlen (src) + 1; /* + '\0' */ n 629 lib/strutil.h return (char *) memmove (dest, src, n); n 53 lib/strutil/filevercmp.c size_t n = (size_t) (*len); /* SIZE_MAX if N == -1 */ n 64 lib/strutil/filevercmp.c done = i == n; n 75 lib/strutil/filevercmp.c while (i + 1 < n && s[i] == '.' && (g_ascii_isalpha (s[i + 1]) || s[i + 1] == '~')) n 76 lib/strutil/filevercmp.c for (i += 2; i < n && (g_ascii_isalnum (s[i]) || s[i] == '~'); i++) n 990 lib/strutil/strutil.c uintmax_t n; n 994 lib/strutil/strutil.c e = xstrtoumax (str, &suffix, 10, &n, "bcEGkKMPTwYZ0"); n 1000 lib/strutil/strutil.c if (multiplier != 0 && n * multiplier / multiplier != n) n 1006 lib/strutil/strutil.c n *= multiplier; n 1011 lib/strutil/strutil.c n = 0; n 1014 lib/strutil/strutil.c return n; n 720 lib/strutil/strutil8bit.c size_t n; n 727 lib/strutil/strutil8bit.c n = MIN (l1, l2); n 732 lib/strutil/strutil8bit.c return strncasecmp (s1, s2, n); n 739 lib/strutil/strutil8bit.c n--; n 749 lib/strutil/strutil8bit.c if (n == 0) n 117 lib/tty/tty-ncurses.c ssize_t n = 0; n 121 lib/tty/tty-ncurses.c n = write (sigwinch_pipe[1], "", 1); n 122 lib/tty/tty-ncurses.c (void) n; n 151 lib/tty/tty-slang.c ssize_t n = 0; n 155 lib/tty/tty-slang.c n = write (sigwinch_pipe[1], "", 1); n 156 lib/tty/tty-slang.c (void) n; n 222 lib/tty/tty.c ssize_t n; n 230 lib/tty/tty.c n = read (sigwinch_pipe[0], &x, sizeof (x)); n 232 lib/tty/tty.c while (n > 0 || (n == -1 && errno == EINTR)); n 59 lib/util.c #define ismode(n,m) ((n & m) == m) n 817 lib/util.c char *n; n 819 lib/util.c n = str_get_next_char (r); n 822 lib/util.c memmove (w, r, n - r); n 823 lib/util.c w += n - r; n 825 lib/util.c r = n; n 1100 lib/utilunix.c int n; n 1186 lib/utilunix.c n = readlink (got_path, link_path, PATH_MAX - 1); n 1187 lib/utilunix.c if (n < 0) n 1201 lib/utilunix.c link_path[n] = '\0'; n 1210 lib/utilunix.c if (strlen (path) + n >= PATH_MAX - 2) n 576 lib/vfs/direntry.c ssize_t n; n 578 lib/vfs/direntry.c n = read (file->handle, buffer, count); n 579 lib/vfs/direntry.c if (n < 0) n 581 lib/vfs/direntry.c return n; n 601 lib/vfs/direntry.c ssize_t n; n 603 lib/vfs/direntry.c n = write (file->handle, buffer, count); n 604 lib/vfs/direntry.c if (n < 0) n 606 lib/vfs/direntry.c return n; n 1430 lib/vfs/direntry.c ssize_t n; n 1456 lib/vfs/direntry.c while ((n = s->linear_read (me, fh, buffer, sizeof (buffer))) != 0) n 1460 lib/vfs/direntry.c if (n < 0) n 1463 lib/vfs/direntry.c total += n; n 1469 lib/vfs/direntry.c t = write (handle, buffer, n); n 1470 lib/vfs/direntry.c if (t != n) n 1674 lib/vfs/direntry.c ssize_t n; n 1676 lib/vfs/direntry.c n = read (fd, &buffer[i], 1); n 1677 lib/vfs/direntry.c if (n == -1 && errno == EINTR) n 1683 lib/vfs/direntry.c if (n == 0) n 817 lib/vfs/path.c int n; n 825 lib/vfs/path.c n = vfs_path_elements_count (vpath); n 828 lib/vfs/path.c element_index += n; n 830 lib/vfs/path.c if (element_index < 0 || element_index > n) n 73 lib/widget/dialog-switch.c get_hotkey (int n) n 75 lib/widget/dialog-switch.c return (n <= 9) ? '0' + n : 'a' + n - 10; n 246 lib/widget/listbox.c listbox_fwd_n (WListbox *l, int n) n 248 lib/widget/listbox.c listbox_set_current (l, MIN (l->current + n, LISTBOX_LAST (l))); n 268 lib/widget/listbox.c listbox_back_n (WListbox *l, int n) n 270 lib/widget/listbox.c listbox_set_current (l, MAX (l->current - n, 0)); n 128 src/diffviewer/ydiff.c fill_by_space (char *buf, size_t n, gboolean zero_terminate) n 130 src/diffviewer/ydiff.c memset (buf, ' ', n); n 132 src/diffviewer/ydiff.c buf[n] = '\0'; n 669 src/diffviewer/ydiff.c scan_deci (const char **str, int *n) n 675 src/diffviewer/ydiff.c *n = strtol (p, &q, 10); n 927 src/diffviewer/ydiff.c int n; n 931 src/diffviewer/ydiff.c n = op->F1; n 933 src/diffviewer/ydiff.c n--; n 935 src/diffviewer/ydiff.c while (line < n && printer_for (EQU_CH, printer, ctx, f, &line, &off)) n 938 src/diffviewer/ydiff.c if (line != n) n 942 src/diffviewer/ydiff.c for (n = op->T2 - op->T1 + 1; n != 0; n--) n 947 src/diffviewer/ydiff.c for (n = op->F2 - op->F1 + 1; n 948 src/diffviewer/ydiff.c n != 0 && printer_for (ADD_CH, printer, ctx, f, &line, &off); n--) n 951 src/diffviewer/ydiff.c if (n != 0) n 957 src/diffviewer/ydiff.c for (n = op->F2 - op->F1 + 1; n 958 src/diffviewer/ydiff.c n != 0 && printer_for (CHG_CH, printer, ctx, f, &line, &off); n--) n 961 src/diffviewer/ydiff.c if (n != 0) n 964 src/diffviewer/ydiff.c for (n = op->T2 - op->T1 - (op->F2 - op->F1); n > 0; n--) n 1002 src/diffviewer/ydiff.c lcsubstr (const char *s, int m, const char *t, int n, GArray *ret, int min) n 1008 src/diffviewer/ydiff.c if (m < min || n < min) n 1014 src/diffviewer/ydiff.c Lprev = g_try_new0 (int, n + 1); n 1018 src/diffviewer/ydiff.c Lcurr = g_try_new0 (int, n + 1); n 1033 src/diffviewer/ydiff.c memset (Lcurr, 0, (n + 1) * sizeof (*Lcurr)); n 1035 src/diffviewer/ydiff.c for (j = 0; j < n; j++) n 1177 src/diffviewer/ydiff.c hdiff_scan (const char *s, int m, const char *t, int n, int min, GArray *hdiff, unsigned int depth) n 1183 src/diffviewer/ydiff.c for (i = 0; i < m && i < n && s[i] == t[i]; i++) n 1185 src/diffviewer/ydiff.c for (; m > i && n > i && s[m - 1] == t[n - 1]; m--, n--) n 1191 src/diffviewer/ydiff.c b[DIFF_RIGHT].len = n - i; n 1813 src/diffviewer/ydiff.c get_digits (unsigned int n) n 1817 src/diffviewer/ydiff.c while ((n /= 10) != 0) n 1841 src/diffviewer/ydiff.c int n; n 1843 src/diffviewer/ydiff.c for (n = pos; n > 0; n--) n 1849 src/diffviewer/ydiff.c *lineofs = pos - n + 1; n 3411 src/diffviewer/ydiff.c #define GET_FILE_AND_STAMP(n) \ n 3414 src/diffviewer/ydiff.c use_copy##n = 0; \ n 3415 src/diffviewer/ydiff.c real_file##n = file##n; \ n 3416 src/diffviewer/ydiff.c if (!vfs_file_is_local (file##n)) \ n 3418 src/diffviewer/ydiff.c real_file##n = mc_getlocalcopy (file##n); \ n 3419 src/diffviewer/ydiff.c if (real_file##n != NULL) \ n 3421 src/diffviewer/ydiff.c use_copy##n = 1; \ n 3422 src/diffviewer/ydiff.c if (mc_stat (real_file##n, &st##n) != 0) \ n 3423 src/diffviewer/ydiff.c use_copy##n = -1; \ n 3429 src/diffviewer/ydiff.c #define UNGET_FILE(n) \ n 3432 src/diffviewer/ydiff.c if (use_copy##n != 0) \ n 3435 src/diffviewer/ydiff.c if (use_copy##n > 0) \ n 3438 src/diffviewer/ydiff.c mtime = st##n.st_mtime; \ n 3439 src/diffviewer/ydiff.c if (mc_stat (real_file##n, &st##n) == 0) \ n 3440 src/diffviewer/ydiff.c changed = (mtime != st##n.st_mtime); \ n 3442 src/diffviewer/ydiff.c mc_ungetlocalcopy (file##n, real_file##n, changed); \ n 3443 src/diffviewer/ydiff.c vfs_path_free (real_file##n, TRUE); \ n 729 src/editor/edit.c long n; n 731 src/editor/edit.c n = labs (edit->line_numbers[i] - line); n 732 src/editor/edit.c if (n < m) n 734 src/editor/edit.c m = n; n 1556 src/editor/edit.c int i = 1, inc = -1, c, d, n = 0; n 1592 src/editor/edit.c if (n++ >= WIDGET (edit)->rect.lines - edit->curs_row) /* out of screen */ n 467 src/editor/editcmd.c off_t n; n 471 src/editor/editcmd.c n = edit_buffer_get_forward_offset (&edit->buffer, m1, 0, m2) + 1; n 479 src/editor/editcmd.c while (n-- != 0) n 495 src/editor/editcmd.c if (n != 0) n 1068 src/editor/editdraw.c int n; n 1070 src/editor/editdraw.c n = b_extreme + t_extreme; n 1071 src/editor/editdraw.c if (n == 0) n 1072 src/editor/editdraw.c n = 1; n 1073 src/editor/editdraw.c b_extreme = (b_extreme * (w->lines - 1)) / n; n 1074 src/editor/editdraw.c t_extreme = (t_extreme * (w->lines - 1)) / n; n 1078 src/editor/editdraw.c int n; n 1080 src/editor/editdraw.c n = l_extreme + r_extreme; n 1081 src/editor/editdraw.c if (n == 0) n 1082 src/editor/editdraw.c n = 1; n 1083 src/editor/editdraw.c l_extreme = (l_extreme * (w->cols - 1)) / n; n 1084 src/editor/editdraw.c r_extreme = (r_extreme * (w->cols - 1)) / n; n 302 src/editor/editwidget.c get_hotkey (int n) n 304 src/editor/editwidget.c return (n <= 9) ? '0' + n : 'a' + n - 10; n 66 src/filemanager/chown.c #define chown_label(n,txt) label_set_text (chown_label [n].l, txt) n 1018 src/filemanager/ext.c int (*cmp_func) (const char *s1, const char *s2, size_t n); n 1050 src/filemanager/filemanager.c size_t n; n 1052 src/filemanager/filemanager.c n = dialog_switch_num () - 1; n 1053 src/filemanager/filemanager.c if (n != 0) n 1059 src/filemanager/filemanager.c "You have %zu opened screens. Quit anyway?", n), n); n 1527 src/filemanager/hotlist.c #define INDENT(n) \ n 1529 src/filemanager/hotlist.c for (i = 0; i < n; i++) \ n 505 src/filemanager/panel.c ilog10 (dev_t n) n 512 src/filemanager/panel.c n /= 10; n 514 src/filemanager/panel.c while (n != 0); n 1110 src/filemanager/panel.c int n; n 1113 src/filemanager/panel.c n = i + panel->top; n 1114 src/filemanager/panel.c marked = (panel->dir.list[n].f.marked != 0); n 1116 src/filemanager/panel.c if (n < panel->dir.len) n 1118 src/filemanager/panel.c if (panel->current == n && panel->active) n 1124 src/filemanager/panel.c repaint_file (panel, n, attr); n 466 src/help.c const char *p, *n; n 478 src/help.c n = paint_start; n 479 src/help.c while ((n[0] != '\0') && (n[0] != CHAR_NODE_END) && (line < help_lines)) n 483 src/help.c p = n; n 484 src/help.c n = str_cget_next_char (p); n 485 src/help.c memcpy (buff, p, n - p); n 486 src/help.c buff[n - p] = '\0'; n 585 src/help.c if (n[0] == CHAR_NODE_END) n 62 src/selcodepage.c get_hotkey (int n) n 64 src/selcodepage.c return (n <= 9) ? '0' + n : 'a' + n - 10; n 1226 src/subshell/common.c const char *su, *n; n 1261 src/subshell/common.c for (su = s; su[0] != '\0'; su = n) n 1263 src/subshell/common.c n = str_cget_next_char_safe (su); n 1266 src/subshell/common.c g_string_append_len (ret, su, n - su); n 1271 src/subshell/common.c for (c = 0; c < n - su; c++) n 1113 src/vfs/ftpfs/ftpfs.c char n[6]; n 1130 src/vfs/ftpfs/ftpfs.c n[0] = (unsigned char) xa; n 1131 src/vfs/ftpfs/ftpfs.c n[1] = (unsigned char) xb; n 1132 src/vfs/ftpfs/ftpfs.c n[2] = (unsigned char) xc; n 1133 src/vfs/ftpfs/ftpfs.c n[3] = (unsigned char) xd; n 1134 src/vfs/ftpfs/ftpfs.c n[4] = (unsigned char) xe; n 1135 src/vfs/ftpfs/ftpfs.c n[5] = (unsigned char) xf; n 1137 src/vfs/ftpfs/ftpfs.c memcpy (&(((struct sockaddr_in *) sa)->sin_addr.s_addr), (void *) n, 4); n 1138 src/vfs/ftpfs/ftpfs.c memcpy (&(((struct sockaddr_in *) sa)->sin_port), (void *) &n[4], 2); n 2054 src/vfs/ftpfs/ftpfs.c ssize_t n; n 2057 src/vfs/ftpfs/ftpfs.c while ((n = read (FH_SOCK, buf, len)) < 0) n 2064 src/vfs/ftpfs/ftpfs.c if (n < 0) n 2066 src/vfs/ftpfs/ftpfs.c else if (n == 0) n 2076 src/vfs/ftpfs/ftpfs.c ERRNOR (errno, n); n 233 src/vfs/ftpfs/ftpfs_parse_ls.c int n; n 237 src/vfs/ftpfs/ftpfs_parse_ls.c n = sscanf (s, "%4d%n", &year, &skip); n 241 src/vfs/ftpfs/ftpfs_parse_ls.c if (n == 1 && year >= 1910 && year <= 1930) n 243 src/vfs/ftpfs/ftpfs_parse_ls.c n = sscanf (s, "%5d%n", &year, &skip); n 247 src/vfs/ftpfs/ftpfs_parse_ls.c if (n != 1) n 250 src/vfs/ftpfs/ftpfs_parse_ls.c n = sscanf (s + skip, "%2d%2d%2d%2d%2d", &month, &day, &hour, &minute, &second); n 252 src/vfs/ftpfs/ftpfs_parse_ls.c if (n != 5) n 325 src/vfs/ftpfs/ftpfs_parse_ls.c int n; n 329 src/vfs/ftpfs/ftpfs_parse_ls.c if (sscanf (t, "%lld%n", &size, &n) == 1 && t[n] == '\0') n 339 src/vfs/ftpfs/ftpfs_parse_ls.c int n; n 341 src/vfs/ftpfs/ftpfs_parse_ls.c if (sscanf (group_or_size, "%lld%n", &size, &n) == 1 && group_or_size[n] == '\0') n 264 src/vfs/local/local.c int n; n 271 src/vfs/local/local.c while ((n = write (fd, buf, nbyte)) == -1) n 284 src/vfs/local/local.c return n; n 393 src/vfs/local/local.c int n; n 401 src/vfs/local/local.c while ((n = read (fd, buffer, count)) == -1) n 414 src/vfs/local/local.c return n; n 1051 src/vfs/shell/shell.c ssize_t n, t; n 1053 src/vfs/shell/shell.c while ((n = read (h, buffer, sizeof (buffer))) < 0) n 1062 src/vfs/shell/shell.c if (n == 0) n 1065 src/vfs/shell/shell.c t = write (shell_super->sockw, buffer, n); n 1066 src/vfs/shell/shell.c if (t != n) n 1075 src/vfs/shell/shell.c total += n; n 1144 src/vfs/shell/shell.c ssize_t n; n 1150 src/vfs/shell/shell.c n = MIN ((off_t) sizeof (buffer), (shell->total - shell->got)); n 1151 src/vfs/shell/shell.c if (n != 0) n 1153 src/vfs/shell/shell.c n = read (SHELL_SUPER (super)->sockr, buffer, n); n 1154 src/vfs/shell/shell.c if (n < 0) n 1156 src/vfs/shell/shell.c shell->got += n; n 1159 src/vfs/shell/shell.c while (n != 0); n 1174 src/vfs/shell/shell.c ssize_t n = 0; n 1178 src/vfs/shell/shell.c while (len != 0 && ((n = read (SHELL_SUPER (super)->sockr, buf, len)) < 0)) n 1186 src/vfs/shell/shell.c if (n > 0) n 1187 src/vfs/shell/shell.c shell->got += n; n 1188 src/vfs/shell/shell.c else if (n < 0) n 1192 src/vfs/shell/shell.c ERRNOR (errno, n); n 234 src/vfs/tar/tar-internal.c tar_assign_string_dup_n (char **string, const char *value, size_t n) n 237 src/vfs/tar/tar-internal.c *string = g_strndup (value, n); n 307 src/vfs/tar/tar-internal.h void tar_assign_string_dup_n (char **string, const char *value, size_t n); n 340 src/vfs/tar/tar-internal.h tar_represent_uintmax (uintmax_t n) n 344 src/vfs/tar/tar-internal.h if (n <= INTMAX_MAX) n 345 src/vfs/tar/tar-internal.h return n; n 348 src/vfs/tar/tar-internal.h nd = n - INTMAX_MIN; n 606 src/viewer/ascii.c int n; n 610 src/viewer/ascii.c n = mcview_next_combining_char_sequence (view, state, cs, 1 + MAX_COMBINING_CHARS, &color); n 611 src/viewer/ascii.c if (n == 0) n 640 src/viewer/ascii.c for (i = 0; i < n; i++) n 685 src/viewer/ascii.c for (i = 0; i < n; i++) n 856 src/viewer/ascii.c int n; n 871 src/viewer/ascii.c for (row = 0; row < r->lines; row += n) n 873 src/viewer/ascii.c n = mcview_display_paragraph (view, &state, row); n 874 src/viewer/ascii.c if (n == 0) n 52 tests/lib/strutil/filevercmp.c sign (int n) n 54 tests/lib/strutil/filevercmp.c return _GL_CMP (n, 0); n 60 tests/lib/strutil/str_verscmp.c sign (int n) n 62 tests/lib/strutil/str_verscmp.c return _GL_CMP (n, 0);