Home
last modified time | relevance | path

Searched +full:- +full:c (Results 1 – 25 of 1353) sorted by relevance

12345678910>>...55

/picolibc-latest/newlib/libc/stdlib/
Dmeson.build2 # SPDX-License-Identifier: BSD-3-Clause
36 'nano-calloc.c',
37 'nano-free.c',
38 'nano-getpagesize.c',
39 'nano-mallinfo.c',
40 'nano-malloc.c',
41 'nano-malloc-stats.c',
42 'nano-malloc-usable-size.c',
43 'nano-mallopt.c',
44 'nano-memalign.c',
[all …]
DCMakeLists.txt2 # SPDX-License-Identifier: BSD-3-Clause
36 a64l.c
37 abort.c
38 abs.c
39 aligned_alloc.c
40 arc4random.c
41 arc4random_uniform.c
42 assert.c
43 assert_func.c
44 assert_no_arg.c
[all …]
Dchacha_private.h2 Copyright (c) 1996, David Mazieres <dm@uun.org>
3 Copyright (c) 2008, Damien Miller <djm@openbsd.org>
4 Copyright (c) 2013, Markus Friedl <markus@openbsd.org>
5 Copyright (c) 2014, Theo de Raadt <deraadt@openbsd.org>
20 chacha-merged.c version 20080118
41 (U32V((v) << (n)) | ((v) >> (32 - (n))))
57 #define ROTATE(v,c) (ROTL32(v,c)) argument
62 #define QUARTERROUND(a,b,c,d) \ argument
64 c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
66 c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
[all …]
Dnano-malloc.h2 * Copyright (c) 2012, 2013 ARM Ltd
31 * Interface documentation refer to malloc.c.
65 /* --------------------------------------
67 * chunk->| When allocated: data |
70 * --------------------------------------
111 #define MALLOC_MAXSIZE (SIZE_MAX - (MALLOC_HEAD + 2*MALLOC_CHUNK_ALIGN))
115 return (size_t *) ((char *) chunk - MALLOC_HEAD); in _size_ref()
137 bool __malloc_grow_chunk(chunk_t *c, size_t new_size);
159 chunk_to_ptr(chunk_t *c) in chunk_to_ptr() argument
161 return c; in chunk_to_ptr()
[all …]
/picolibc-latest/newlib/libc/stdio/
Dopen_memstream.c1 /* Copyright (C) 2007 Eric Blake
8 <<open_memstream>>, <<open_wmemstream>>---open a write stream around an arbitrary-length string
25 <<open_memstream>> creates a seekable, byte-oriented <<FILE>> stream that
26 wraps an arbitrary-length buffer, created as if by <<malloc>>. The current
37 stream being wide-oriented. The size set in <[size]> in subsequent
40 The stream is write-only, since the user can directly read *<[buf]>
47 is always NUL-terminated after at most *<[size]> bytes (or wide characters
59 POSIX.1-2008
65 #pragma GCC diagnostic ignored "-Wpragmas"
66 #pragma GCC diagnostic ignored "-Wunknown-warning-option"
[all …]
Dfmemopen.c1 /* Copyright (C) 2007 Eric Blake
8 <<fmemopen>>---open a stream around a fixed-length string
20 fixed-length buffer of <[size]> bytes starting at <[buf]>. The stream
46 stream has exceeded <[size]>, so that a write-only <[buf]> is always
47 NUL-terminated when the stream is flushed or closed (and the initial
80 char writeonly; /* 1 if write-only */
81 char saved; /* saved character that lived at pos before write-only NUL */
84 /* Read up to non-zero N bytes into BUF from stream described by
92 fmemcookie *c = (fmemcookie *) cookie; in fmemreader() local
94 if (c->pos > c->eof) in fmemreader()
[all …]
Dmeson.build2 # SPDX-License-Identifier: BSD-3-Clause
41 'clearerr.c',
42 'fclose.c',
43 'fdopen.c',
44 'feof.c',
45 'ferror.c',
46 'fflush.c',
47 'fgetc.c',
48 'fgetpos.c',
49 'fgets.c',
[all …]
Dfopencookie.c1 /* Copyright (C) 2007 Eric Blake
8 <<fopencookie>>---open a stream with custom callbacks
42 <[functions.read]> should return -1 on failure, or else the number of
46 <[functions.write]> should return -1 on failure, or else the number of
50 <[functions.seek]> should return -1 on failure, and 0 on success, with
57 <[functions.close]> should return -1 on failure, or 0 on success. It
107 fccookie *c = (fccookie *) cookie; in fcreader() local
109 if ((result = c->readfn (c->cookie, buf, n)) < 0 && errno) in fcreader()
121 fccookie *c = (fccookie *) cookie; in fcwriter() local
122 if (c->fp->_flags & __SAPP && c->fp->_seek) in fcwriter()
[all …]
Dfunopen.c1 /* Copyright (C) 2007 Eric Blake
8 <<funopen>>, <<fropen>>, <<fwopen>>---open a stream with custom callbacks
35 <[readfn]> should return -1 on failure, or else the number of bytes
41 <[writefn]> should return -1 on failure, or else the number of bytes
47 <[seekfn]> should return (fpos_t)-1 on failure, or else the current
54 <[closefn]> should return -1 on failure, or 0 on success. It is
114 funcookie *c = (funcookie *) cookie; in funreader() local
116 if ((result = c->readfn (c->cookie, buf, n)) < 0 && errno) in funreader()
128 funcookie *c = (funcookie *) cookie; in funwriter() local
130 if ((result = c->writefn (c->cookie, buf, n)) < 0 && errno) in funwriter()
[all …]
Dsccl.c1 /*-
2 * Copyright (c) 1990 The Regents of the University of California.
18 /* Split from vfscanf.c */
36 register int c, n, v; in __sccl() local
39 c = *fmt++; /* first char hat => negated scanset */ in __sccl()
40 if (c == '^') in __sccl()
43 c = *fmt++; /* get new first char */ in __sccl()
50 if (c == 0) in __sccl()
51 return fmt - 1; /* format ended before closing ] */ in __sccl()
57 * The first character may be ']' (or '-') without being special; the in __sccl()
[all …]
Dungetc.c2 * Copyright (c) 1990 The Regents of the University of California.
19 <<ungetc>>---push data back into a stream
28 int ungetc(int <[c]>, FILE *<[stream]>);
30 int ungetc( int <[c]>, FILE *<[stream]>);
34 If <[c]> is EOF, the stream is unchanged. Otherwise, the unsigned
35 char <[c]> is put back on the stream, and subsequent reads will see
42 character will clear the end-of-stream marker, and decrement the file
53 ANSI C requires <<ungetc>>, but only requires a pushback buffer of one
71 * Expand the ungetc buffer `in place'. That is, adjust fp->_p when
74 * are all at the end (stack-style).
[all …]
/picolibc-latest/
DCOPYING.picolibc1 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2 Upstream-Name: picolibc
3 Upsream-Contact: Keith Packard <keithp@keithp.com>
6 License: BSD3-1
10 License: Default-1
13 Copyright: 2019-2022 Keith Packard
14 License: BSD3-1
18 License: BSD3-1
21 Copyright: 2022 R. Diez - Licensed under the GNU AGPLv3
22 License: AGPL3-1
[all …]
/picolibc-latest/newlib/
DChangeLog-20151 2015-12-21 Freddie Chopin <freddie.chopin@gmail.com>
3 * libc/stdlib/__atexit.c (__register_exitproc): Fix for
6 2015-12-21 Freddie Chopin <freddie.chopin@gmail.com>
8 * libc/stdlib/on_exit_args.{c,h}: New files.
11 * libc/stdlib/__atexit.c (__register_exitproc): Initialize
13 * libc/stdlib/on_exit.c: Force linking of static instance of
15 * libc/stdlib/cxa_atexit.c: Likewise.
17 2015-12-17 Anton Kolesov <Anton.Kolesov@synopsys.com>
20 * libc/machine/arc/memcmp-bs-norm.S: Use new GCC defines to detect
23 * libc/machine/arc/memcpy-archs.S: Likewise.
[all …]
/picolibc-latest/test/
Dmeson.build2 # SPDX-License-Identifier: BSD-3-Clause
40 'test-strchr',
41 'test-memset', 'test-put',
42 'test-raise',
43 'test-sprintf-percent-n',
44 'test-ctype',
50 'test-efcvt',
51 'test-fma',
52 'test-strtod',
60 math_tests_common += 'complex-funcs'
[all …]
Dtest-long-long.c2 * SPDX-License-Identifier: BSD-3-Clause
51 char c;
53 while ((c = *buf++) == ' ')
56 assert('0' <= c && c <= '9');
57 v = v * 10 + (c - '0');
58 c = *buf++;
59 } while(c);
68 char c;
70 while ((c = *buf++) == ' ')
72 switch (c) {
[all …]
/picolibc-latest/test/libc-testsuite/
Dstrtol.c2 * Copyright © 2005-2020 Rich Felker
34 #pragma GCC diagnostic ignored "-Wpragmas"
35 #pragma GCC diagnostic ignored "-Wunknown-warning-option"
36 #pragma GCC diagnostic ignored "-Wformat-extra-args"
37 #pragma GCC diagnostic ignored "-Wformat"
56 char *s, *c; in test_strtol() local
67 TEST(l, strtol(s="2147483648", &c, 0), 2147483647L, "uncaught overflow %ld != %ld"); in test_strtol()
68 TEST2(i, c-s, 10, "wrong final position %d != %d"); in test_strtol()
71 TEST(l, strtol(s="-2147483649", &c, 0), -2147483647L-1, "uncaught overflow %ld != %ld"); in test_strtol()
72 TEST2(i, c-s, 11, "wrong final position %d != %d"); in test_strtol()
[all …]
/picolibc-latest/newlib/libc/tinystdio/
Dvfscanf.c1 /* Copyright (c) 2002,2004,2005 Joerg Wunsch
2 Copyright (c) 2008 Dmitry Xmelkov
33 /* $Id: vfscanf.c 2191 2010-11-05 13:45:57Z arcanum $ */
51 /* Figure out which multi-byte char support we need */
54 /* need to convert wide chars to multi-byte chars */
57 /* need to convert multi-byte chars to wide chars */
68 # define UNGETC(c,s) ungetwc(c,s) argument
69 # define ISSPACE(c) iswspace(c) argument
72 # define IS_EOF(c) ((c) == WEOF) argument
74 # define IS_WEOF(c) ((c) == WEOF) argument
[all …]
Dvfprintf.c1 /* Copyright (c) 2002, Alexander Popov (sasho@vip.bg)
2 Copyright (c) 2002,2004,2005 Joerg Wunsch
3 Copyright (c) 2005, Helmut Wallner
4 Copyright (c) 2007, Dmitry Xmelkov
33 /* From: Id: printf_p_new.c,v 1.1.1.9 2002/10/15 20:10:28 joerg_wunsch Exp */
34 /* $Id: vfprintf.c 2191 2010-11-05 13:45:57Z arcanum $ */
52 * PRINTF_MIN: limited integer-only support with option for long long
139 /* Figure out which multi-byte char support we need */
142 /* need to convert multi-byte chars to wide chars */
228 #include "ultoa_invert.c"
[all …]
/picolibc-latest/newlib/libc/locale/
Dlocale.c3 <<setlocale>>, <<localeconv>>---select or query locale
16 <<setlocale>> is the facility defined by ANSI C to condition the
22 and <<"C">> values for <[locale]>; strings representing other locales are not
31 for a given language, a three character string per ISO 639-3.
37 <<"C-charset">>.
38 Instead of <<"C-">>, you can also specify <<"C.">>. Both variations allow
40 for instance <<"C.UTF-8">>, which keeps all settings as in the C locale,
41 but uses the UTF-8 charset.
44 <<"UTF-8">>, <<"JIS">>, <<"EUCJP">>, <<"SJIS">>, <<"KOI8-R">>, <<"KOI8-U">>,
45 <<"KOI8-T">>, <<"GEORGIAN-PS">>, <<"PT154">>, <<"TIS-620">>, <<"ISO-8859-x">>
[all …]
/picolibc-latest/newlib/libc/machine/aarch64/
DCMakeLists.txt2 # SPDX-License-Identifier: BSD-3-Clause
35 picolibc_sources_flags("-fno-builtin"
36 memchr-stub.c
38 memcmp-stub.c
40 memcpy-stub.c
42 memmove-stub.c
44 memrchr-stub.c
46 memset-stub.c
48 rawmemchr-stub.c
51 stpcpy-stub.c
[all …]
Dmeson.build2 # SPDX-License-Identifier: BSD-3-Clause
38 'memchr-stub.c',
40 'memcmp-stub.c',
42 'memcpy-stub.c',
44 'memmove-stub.c',
46 'memrchr-stub.c',
48 'memset-stub.c',
50 'rawmemchr-stub.c',
53 'stpcpy-stub.c',
55 'strchr-stub.c',
[all …]
/picolibc-latest/newlib/libm/test/
Dmeson.build2 # SPDX-License-Identifier: BSD-3-Clause
41 if get_option('split-large-tests')
47 test_parts = ['-1']
51 'acosf_vec.c',
52 'acoshf_vec.c',
53 'acosh_vec.c',
54 'acos_vec.c',
55 'asinf_vec.c',
56 'asinhf_vec.c',
57 'asinh_vec.c',
[all …]
/picolibc-latest/newlib/libc/posix/
Dregcomp.c1 /*-
2 * Copyright (c) 1992, 1993, 1994 Henry Spencer.
3 * Copyright (c) 1992, 1993, 1994
33 * @(#)regcomp.c 8.5 (Berkeley) 3/20/94
60 char *end; /* end of string (-> NUL normally) */
67 # define NPAREN 10 /* we need to remember () 1-9 for back refs */
68 sopno pbegin[NPAREN]; /* -> ( ([0] unused) */
69 sopno pend[NPAREN]; /* -> ) ([0] unused) */
74 extern "C" {
77 /* === regcomp.c === */
[all …]
/picolibc-latest/newlib/libc/ctype/
Djp2uc.c3 /* Copyright (c) 2002 Red Hat Incorporated.
52 __jp2uc (wint_t c, int type) in __jp2uc() argument
65 byte1 = (c >> 8) + 0x80; in __jp2uc()
66 byte2 = (c & 0xff) + 0x80; in __jp2uc()
69 byte1 = (c >> 8); in __jp2uc()
70 byte2 = (c & 0xff); in __jp2uc()
73 byte1 = c >> 8; in __jp2uc()
74 byte2 = c & 0xff; in __jp2uc()
77 adj = 0xa1 - 0x22; in __jp2uc()
78 byte2 = (byte2 - 31) + 0xa1; in __jp2uc()
[all …]
Dtowctrans_l.c2 Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
17 Conversion behaviour for a character c in the respective range:
18 mode == TOLO towlower (c) = c + delta
19 mode == TOUP towupper (c) = c + delta
21 towlower (c) = c + 1
22 towupper (c) = c - 1
48 * MSP430 has 20-bit integers which the compiler attempts to use and
80 max = mid - 1; in bisearch()
88 toulower (wint_t c) in toulower() argument
91 bisearch(c, caseconv_table, in toulower()
[all …]

12345678910>>...55