Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 82) sorted by relevance

1234

/coreutils/src/blake2/
Dblake2-impl.h44 const uint8_t *p = ( const uint8_t * )src; in load32()
45 return (( uint32_t )( p[0] ) << 0) | in load32()
46 (( uint32_t )( p[1] ) << 8) | in load32()
47 (( uint32_t )( p[2] ) << 16) | in load32()
48 (( uint32_t )( p[3] ) << 24) ; in load32()
59 const uint8_t *p = ( const uint8_t * )src; in load64()
60 return (( uint64_t )( p[0] ) << 0) | in load64()
61 (( uint64_t )( p[1] ) << 8) | in load64()
62 (( uint64_t )( p[2] ) << 16) | in load64()
63 (( uint64_t )( p[3] ) << 24) | in load64()
[all …]
/coreutils/tests/factor/
Dcreate-test.sh13 p=184467440737
43 t11) set ${p}08551616 ${p}08651615 66c57cd58f4fb572df7f088d17e4f4c1d4f01bb1 ;;
44 t12) set ${p}08651616 ${p}08751615 729228e693b1a568ecc85b199927424c7d16d410 ;;
45 t13) set ${p}08751616 ${p}08851615 5a0c985017c2d285e4698f836f5a059e0b684563 ;;
46 t14) set ${p}08851616 ${p}08951615 0482295c514e371c98ce9fd335deed0c9c44a4f4 ;;
47 t15) set ${p}08951616 ${p}09051615 9c0e1105ac7c45e27e7bbeb5e213f530d2ad1a71 ;;
48 t16) set ${p}09051616 ${p}09151615 604366d2b1d75371d0679e6a68962d66336cd383 ;;
49 t17) set ${p}09151616 ${p}09251615 9192d2bdee930135b28d7160e6d395a7027871da ;;
50 t18) set ${p}09251616 ${p}09351615 bcf56ae55d20d700690cff4d3327b78f83fc01bf ;;
51 t19) set ${p}09351616 ${p}09451615 16b106398749e5f24d278ba7c58229ae43f650ac ;;
[all …]
/coreutils/src/
Dtsort.c121 struct item *p, *q, *r, *s, *t; in search_item() local
131 s = p = root->right; in search_item()
136 a = strcmp (str, p->str); in search_item()
138 return p; in search_item()
142 q = p->left; in search_item()
144 q = p->right; in search_item()
153 p->left = q; in search_item()
155 p->right = q; in search_item()
161 r = p = s->left; in search_item()
167 r = p = s->right; in search_item()
[all …]
Dpr.c420 static bool read_line (COLUMN *p);
422 static bool print_stored (COLUMN *p);
423 static bool open_file (char *name, COLUMN *p);
427 static void add_line_number (COLUMN *p);
442 static void read_rest_of_line (COLUMN *p);
443 static void skip_read (COLUMN *p, int column_number);
806 char *p; in first_last_page() local
809 strtol_error err = xstrtoumax (pages, &p, 10, &first, ""); in first_last_page()
813 if (p == pages || !first) in first_last_page()
816 if (*p == ':') in first_last_page()
[all …]
Dpwd.c76 file_name_free (struct file_name *p) in file_name_free() argument
78 free (p->buf); in file_name_free()
79 free (p); in file_name_free()
85 struct file_name *p = xmalloc (sizeof *p); in file_name_init() local
89 p->n_alloc = MIN (2 * PATH_MAX, 32 * 1024); in file_name_init()
91 p->buf = xmalloc (p->n_alloc); in file_name_init()
92 p->start = p->buf + (p->n_alloc - 1); in file_name_init()
93 p->start[0] = '\0'; in file_name_init()
94 return p; in file_name_init()
99 file_name_prepend (struct file_name *p, char const *s, size_t s_len) in file_name_prepend() argument
[all …]
Dmake-prime-list.c54 unsigned p; member
74 process_prime (struct prime *info, unsigned p) in process_prime() argument
77 info->p = p; in process_prime()
78 info->pinv = binvert (p); in process_prime()
79 info->lim = max / p; in process_prime()
122 unsigned p; in output_primes() local
136 for (i = 0, p = 2; i < nprimes; i++) in output_primes()
138 unsigned int d8 = i + 8 < nprimes ? primes[i + 8].p - primes[i].p : 0xff; in output_primes()
141 printf ("P (%u, %u,\n (", primes[i].p - p, d8); in output_primes()
143 printf ("),\n UINTMAX_MAX / %u)\n", primes[i].p); in output_primes()
[all …]
Dprintf.c257 char const *p = escstart + 1; in print_esc() local
261 if (*p == 'x') in print_esc()
264 for (esc_length = 0, ++p; in print_esc()
265 esc_length < 2 && isxdigit (to_uchar (*p)); in print_esc()
266 ++esc_length, ++p) in print_esc()
267 esc_value = esc_value * 16 + hextobin (*p); in print_esc()
272 else if (isodigit (*p)) in print_esc()
277 for (esc_length = 0, p += octal_0 && *p == '0'; in print_esc()
278 esc_length < 3 && isodigit (*p); in print_esc()
279 ++esc_length, ++p) in print_esc()
[all …]
Ddircolors.c148 char const *p; in parse_line() local
155 for (p = line; isspace (to_uchar (*p)); ++p) in parse_line()
159 if (*p == '\0' || *p == '#') in parse_line()
162 keyword_start = p; in parse_line()
164 while (!isspace (to_uchar (*p)) && *p != '\0') in parse_line()
166 ++p; in parse_line()
169 *keyword = ximemdup0 (keyword_start, p - keyword_start); in parse_line()
170 if (*p == '\0') in parse_line()
175 ++p; in parse_line()
177 while (isspace (to_uchar (*p))); in parse_line()
[all …]
Dcsplit.c280 clear_line_control (struct line *p) in clear_line_control() argument
282 p->used = 0; in clear_line_control()
283 p->insert_index = 0; in clear_line_control()
284 p->retrieve_index = 0; in clear_line_control()
292 struct line *p = xmalloc (sizeof *p); in new_line_control() local
294 p->next = nullptr; in new_line_control()
295 clear_line_control (p); in new_line_control()
297 return p; in new_line_control()
427 struct buffer_record *p; in save_buffer() local
436 for (p = head; p->next; p = p->next) in save_buffer()
[all …]
Doperand2sig.c70 char *p; in operand2sig() local
71 for (p = upcased; *p; p++) in operand2sig()
72 if (strchr ("abcdefghijklmnopqrstuvwxyz", *p)) in operand2sig()
73 *p += 'A' - 'a'; in operand2sig()
Dshuf.c115 char *p; in input_from_argv() local
121 p = xmalloc (size); in input_from_argv()
125 char *p1 = stpcpy (p, operand[i]); in input_from_argv()
126 operand[i] = p; in input_from_argv()
127 p = p1; in input_from_argv()
128 *p++ = eolbyte; in input_from_argv()
131 operand[n_operands] = p; in input_from_argv()
140 char *p = rawmemchr (line, eolbyte); in next_line() local
141 return p + 1; in next_line()
242 const struct linebuffer *p = &lines[permutation[i]]; in write_permuted_output_reservoir() local
[all …]
Dtac-pipe.c24 #define LEN(X, I) ((X)->p[(I)].one_past_end - (X)->p[(I)].start)
27 #define ONE_PAST_END(X, I) ((X)->p[(I)].one_past_end)
46 struct B_pair *p; member
113 x->n_bufs = obstack_object_size (OBS) / sizeof (x->p[0]); in buf_init_from_stdin()
114 x->p = (struct B_pair *) obstack_finish (OBS); in buf_init_from_stdin()
119 && x->p[x->n_bufs - 1].start == x->p[x->n_bufs - 1].one_past_end) in buf_init_from_stdin()
120 free (x->p[--(x->n_bufs)].start); in buf_init_from_stdin()
129 free (x->p[i].start); in buf_free()
138 if (lp->ptr > x->p[lp->i].start) in line_ptr_decrement()
167 lp_new.ptr = x->p[lp->i + 1].start; in line_ptr_increment()
[all …]
Dtr.c587 char *p = printable_buf; in make_printable_str() local
632 p = stpcpy (p, tmp); in make_printable_str()
852 char const *p = es->s; in build_spec_list() local
876 if (find_closing_delim (es, i + 2, p[i + 1], &closing_delim_idx)) in build_spec_list()
879 char const *opnd_str = p + i + 2; in build_spec_list()
883 if (p[i + 1] == ':') in build_spec_list()
891 if (p[i + 1] == ':') in build_spec_list()
969 if (!append_range (result, p[i], p[i + 2])) in build_spec_list()
975 append_normal_char (result, p[i]); in build_spec_list()
982 append_normal_char (result, p[i]); in build_spec_list()
[all …]
/coreutils/tests/readlink/
Dcan-f.sh48 for p in "" "$pwd/$tmp/"; do
50 v=$(readlink -f "${p}regfile") || fail=1
53 v=$(returns_ 1 readlink -f "${p}./regfile/") || fail=1
56 v=$(returns_ 1 readlink -f "${p}regfile/more") || fail=1
59 v=$(returns_ 1 readlink -f "${p}./regfile/more/") || fail=1
62 v=$(readlink -f "${p}subdir") || fail=1
65 v=$(readlink -f "${p}./subdir/") || fail=1
68 v=$(readlink -f "${p}subdir/more") || fail=1
71 v=$(readlink -f "${p}./subdir/more/") || fail=1
74 v=$(readlink -f "${p}missing") || fail=1
[all …]
Dcan-m.sh47 for p in "" "$pwd/$tmp/"; do
49 v=$(readlink -m "${p}regfile") || fail=1
52 v=$(readlink -m "${p}./regfile/") || fail=1
55 v=$(readlink -m "${p}regfile/more") || fail=1
58 v=$(readlink -m "${p}./regfile/more/") || fail=1
61 v=$(readlink -m "${p}subdir") || fail=1
64 v=$(readlink -m "${p}./subdir/") || fail=1
67 v=$(readlink -m "${p}subdir/more") || fail=1
70 v=$(readlink -m "${p}./subdir/more/") || fail=1
73 v=$(readlink -m "${p}missing") || fail=1
[all …]
Dcan-e.sh47 for p in "" "$pwd/$tmp/"; do
49 v=$(readlink -e "${p}regfile") || fail=1
52 v=$(returns_ 1 readlink -e "${p}./regfile/") || fail=1
55 v=$(readlink -e "${p}subdir") || fail=1
58 v=$(readlink -e "${p}./subdir/") || fail=1
61 v=$(returns_ 1 readlink -e "${p}missing") || fail=1
64 v=$(returns_ 1 readlink -e "${p}./missing/") || fail=1
67 v=$(readlink -e "${p}link1") || fail=1
70 v=$(returns_ 1 readlink -e "${p}./link1/") || fail=1
73 v=$(returns_ 1 readlink -e "${p}link1/more") || fail=1
[all …]
Dreadlink-fp-loop.sh28 ln -s s p || framework_failure_
35 readlink -v -e p/1 > out || fail=1
42 readlink -v -e p/1 2> out && fail=1
52 ln -nsf ../p/4 d/3 || framework_failure_
53 ln -nsf ../p/5 d/4 || framework_failure_
54 ln -nsf ../p/6 d/5 || framework_failure_
55 ln -nsf ../p/7 d/6 || framework_failure_
56 ln -nsf ../p/8 d/7 || framework_failure_
58 readlink -v -e p/1 > out || fail=1
/coreutils/build-aux/
Dgen-lists-of-programs.sh147 for p in $normal_progs; do
148 test x"$p" = x"[" && p='@<:@'
149 echo "gl_ADD_PROG([optional_bin_progs], [$p])"
173 for p in $disabled_by_default_progs; do
174 echo no_install__progs += $progsdir/$p
177 for p in $build_if_possible_progs; do
178 echo build_if_possible__progs += $progsdir/$p
181 for p in $normal_progs; do
182 echo default__progs += $progsdir/$p
186 for p in $disabled_by_default_progs $build_if_possible_progs \
[all …]
/coreutils/tests/mkdir/
Dp-3.sh29 p=$(pwd)
30 (cd no-access && chmod 0 . && mkdir -p "$p/a/b" u/v) 2> /dev/null
32 test -d "$p/a/b" || fail=1
35 (cd no-acce2s && chmod 0 . && mkdir -p "$p/b/b" "$p/z") || fail=1
36 test -d "$p/b/b" && test -d "$p/z" || fail=1
44 mkdir -p a/b "$p/b/c" d/e && test -d a/b && test -d d/e) || fail=1
45 test -d "$p/b/c" || fail=1
48 b=$(ls "$p/a" | tr -d '\n')
Dparents.sh44 p=$(ls -ld a|cut -b-10); case $p in $mode_str);; *) fail=1;; esac
46 p=$(ls -ld a/b|cut -b-10); case $p in drwx------);; *) fail=1;; esac
47 p=$(ls -ld a/b/c|cut -b-10); case $p in drwx------);; *) fail=1;; esac
50 p=$(ls -ld a/b/c/d|cut -b-10); case $p in $d_mode_str);; *) fail=1;; esac
/coreutils/tests/cp/
Dcp-parents.sh51 p=$(ls -ld e/d|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
52 p=$(ls -ld e/d/a|cut -b-10); case $p in drwx-w--w-);; *) fail=1;; esac
53 p=$(ls -ld g/sym|cut -b-10); case $p in drwx-w--w-);; *) fail=1;; esac
54 p=$(ls -ld e/d/a/b/c|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
55 p=$(ls -ld g/sym/b/c|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
67 p=$(ls -ld np_dest/np|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
/coreutils/tests/rm/
Dinaccessible.sh28 p=$(pwd)
33 (cd no-access; chmod 0 . && rm -r "$p/abs1" rel "$p/abs2") 2> out && fail=1
34 test -d "$p/abs1" && fail=1
35 test -d "$p/abs2" && fail=1
/coreutils/tests/misc/
Dselinux.sh29 mkfifo_or_skip_ p
36 chcon $ctx f d p || skip_ "Failed to set context: $ctx"
39 for i in d f p; do
54 cp -r --preserve=all d f p s1 || fail=1
55 for i in d f p; do
60 mv d f p s2 || fail=1
61 for i in d f p; do
Dclose-stdout.sh23 p=$abs_top_builddir
39 "$p/src/true" >&- || fail=1
40 "$p/src/printf" '' >&- || fail=1
45 if "$p/src/test" -w /dev/stdout >/dev/null &&
46 "$p/src/test" ! -w /dev/stdout >&-; then
47 returns_ 1 "$p/src/printf" 'foo' >&- 2>/dev/null || fail=1
57 returns_ 1 "$p/src/printf" 'foo' >/dev/full 2>/dev/null || fail=1
/coreutils/gl/lib/
Drandread.c233 readsource (struct randread_source *s, unsigned char *p, size_t size) in readsource() argument
237 size_t inbytes = fread (p, sizeof *p, size, s->source); in readsource()
239 p += inbytes; in readsource()
253 readisaac (struct isaac *isaac, void *p, size_t size) in readisaac() argument
259 char *char_p = p; in readisaac()
263 memcpy (p, isaac->data.b + ISAAC_BYTES - inbytes, size); in readisaac()
268 memcpy (p, isaac->data.b + ISAAC_BYTES - inbytes, inbytes); in readisaac()
269 p = char_p + inbytes; in readisaac()
274 if (ALIGNED_POINTER (p, isaac_word)) in readisaac()
276 isaac_word *wp = p; in readisaac()
[all …]

1234