Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 84) sorted by relevance

1234

/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dgetopt.c161 read_globals (struct getopt_data *data) in read_globals() argument
163 data->optarg = optarg; in read_globals()
164 data->optind = optind; in read_globals()
165 data->opterr = opterr; in read_globals()
166 data->optopt = optopt; in read_globals()
167 data->optwhere = optwhere; in read_globals()
168 data->permute_from = permute_from; in read_globals()
169 data->num_nonopts = num_nonopts; in read_globals()
175 write_globals (struct getopt_data *data) in write_globals() argument
177 optarg = data->optarg; in write_globals()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/ces/
Deuc.c64 void *data[MAX_CS_NUM]; member
107 euc_data_t *data; in euc_from_ucs_init() local
109 if ((data = (euc_data_t *)calloc (1, sizeof (euc_data_t))) == NULL) in euc_from_ucs_init()
116 data->type = TYPE_EUC_JP; in euc_from_ucs_init()
117 data->mb_cur_max = 3; in euc_from_ucs_init()
118 data->desc = &euc_jp_cs_desc[0]; in euc_from_ucs_init()
126 data->type = TYPE_EUC_KR; in euc_from_ucs_init()
127 data->mb_cur_max = 2; in euc_from_ucs_init()
128 data->desc = &euc_kr_cs_desc[0]; in euc_from_ucs_init()
136 data->type = TYPE_EUC_TW; in euc_from_ucs_init()
[all …]
Dtable-pcs.c42 table_pcs_convert_from_ucs (void *data, in table_pcs_convert_from_ucs() argument
59 data, in table_pcs_convert_from_ucs()
74 void *data) in table_pcs_from_ucs_close() argument
76 return _iconv_from_ucs_ces_handlers_table.close (data); in table_pcs_from_ucs_close()
80 table_pcs_from_ucs_get_mb_cur_max (void *data) in table_pcs_from_ucs_get_mb_cur_max() argument
82 return _iconv_from_ucs_ces_handlers_table.get_mb_cur_max (data); in table_pcs_from_ucs_get_mb_cur_max()
89 table_pcs_convert_to_ucs (void *data, in table_pcs_convert_to_ucs() argument
104 data, in table_pcs_convert_to_ucs()
118 void *data) in table_pcs_to_ucs_close() argument
120 return _iconv_to_ucs_ces_handlers_table.close (data); in table_pcs_to_ucs_close()
[all …]
Dutf-16.c61 void *data) in utf_16_close() argument
63 free(data); in utf_16_close()
72 int *data; in utf_16_init_from_ucs() local
74 if ((data = (int *)malloc (sizeof (int))) == NULL) in utf_16_init_from_ucs()
78 *data = UTF16_LITTLE_ENDIAN; in utf_16_init_from_ucs()
80 *data = UTF16_BIG_ENDIAN; in utf_16_init_from_ucs()
82 *data = UTF16_SYSTEM_ENDIAN; in utf_16_init_from_ucs()
84 return (void *)data; in utf_16_init_from_ucs()
88 utf_16_convert_from_ucs (void *data, in utf_16_convert_from_ucs() argument
101 state = (int *)data; in utf_16_convert_from_ucs()
[all …]
Ducs-2.c55 int *data; in ucs_2_init() local
57 if ((data = (int *) malloc(sizeof (int))) == NULL) in ucs_2_init()
61 *data = UCS_2_LITTLE_ENDIAN; in ucs_2_init()
63 *data = UCS_2_BIG_ENDIAN; in ucs_2_init()
65 return (void *)data; in ucs_2_init()
70 void *data) in ucs_2_close() argument
72 free (data); in ucs_2_close()
78 ucs_2_convert_from_ucs (void *data, in ucs_2_convert_from_ucs() argument
92 if (*((int *)data) == UCS_2_BIG_ENDIAN) in ucs_2_convert_from_ucs()
108 ucs_2_convert_to_ucs (void *data, in ucs_2_convert_to_ucs() argument
[all …]
Ducs-4.c56 int *data; in ucs_4_init() local
58 if ((data = (int *)malloc (sizeof(int))) == NULL) in ucs_4_init()
62 *data = UCS_4_LITTLE_ENDIAN; in ucs_4_init()
64 *data = UCS_4_BIG_ENDIAN; in ucs_4_init()
66 return (void *)data; in ucs_4_init()
71 void *data) in ucs_4_close() argument
73 free(data); in ucs_4_close()
80 ucs_4_convert_from_ucs (void *data, in ucs_4_convert_from_ucs() argument
94 if (*((int *)data) == UCS_4_BIG_ENDIAN) in ucs_4_convert_from_ucs()
110 ucs_4_convert_to_ucs (void *data, in ucs_4_convert_to_ucs() argument
[all …]
Dus-ascii.c42 us_ascii_convert_from_ucs (void *data, in us_ascii_convert_from_ucs() argument
47 (void) data; in us_ascii_convert_from_ucs()
62 us_ascii_convert_to_ucs (void *data, in us_ascii_convert_to_ucs() argument
66 (void) data; in us_ascii_convert_to_ucs()
85 us_ascii_get_mb_cur_max (void *data) in us_ascii_get_mb_cur_max() argument
87 (void) data; in us_ascii_get_mb_cur_max()
Ducs-4-internal.c46 ucs_4_internal_convert_from_ucs (void *data, in ucs_4_internal_convert_from_ucs() argument
51 (void) data; in ucs_4_internal_convert_from_ucs()
68 ucs_4_internal_convert_to_ucs (void *data, in ucs_4_internal_convert_to_ucs() argument
72 (void) data; in ucs_4_internal_convert_to_ucs()
91 ucs_4_internal_get_mb_cur_max (void *data) in ucs_4_internal_get_mb_cur_max() argument
93 (void) data; in ucs_4_internal_get_mb_cur_max()
Ducs-2-internal.c46 ucs_2_internal_convert_from_ucs (void *data, in ucs_2_internal_convert_from_ucs() argument
51 (void) data; in ucs_2_internal_convert_from_ucs()
68 ucs_2_internal_convert_to_ucs (void *data, in ucs_2_internal_convert_to_ucs() argument
74 (void) data; in ucs_2_internal_convert_to_ucs()
91 ucs_2_internal_get_mb_cur_max (void *data) in ucs_2_internal_get_mb_cur_max() argument
93 (void) data; in ucs_2_internal_get_mb_cur_max()
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.iconv/
Diconvru.c359 char *data; member
364 static const struct iconv_data data[] = variable
395 int conversions = sizeof(data)/sizeof(struct iconv_data) - 1; in main()
405 descs[d] = iconv_open(data[j].name, data[i].name); in main()
408 printf("iconv_open(%s, %s)\n", data[i].name, data[j].name); in main()
420 size_t inbytes = data[i].len; in main()
422 inbuf = data[i].data; in main()
436 "returned -1\n", data[i].name, data[j].name); in main()
441 if (data[j].len != OUTBUF_LEN - outbytes) in main()
444 data[i].name, data[j].name); in main()
[all …]
Diconvjp.c845 char *data; member
850 static const struct iconv_data data[] = variable
884 int conversions = sizeof(data)/sizeof(struct iconv_data) - 1; in main()
894 descs[d] = iconv_open(data[j].name, data[i].name); in main()
897 printf("iconv_open(%s, %s)\n", data[i].name, data[j].name); in main()
909 size_t inbytes = data[i].len; in main()
911 inbuf = data[i].data; in main()
925 "returned -1\n", data[i].name, data[j].name); in main()
930 if (data[j].len != OUTBUF_LEN - outbytes) in main()
933 data[i].name, data[j].name); in main()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/amdgcn/
Dgetreent.c46 struct data { in __getreent() struct
49 } *data; in __getreent() local
55 - sizeof(struct data)) & ~7); in __getreent()
56 data = (struct data *)addr; in __getreent()
64 data->marker = 12345; in __getreent()
65 __builtin_memset (&data->reent, 0, sizeof(struct _reent)); in __getreent()
66 _REENT_INIT_PTR_ZEROED (&data->reent); in __getreent()
68 else if (data->marker != 12345) in __getreent()
83 unsigned long addr = (stack_end - sizeof(struct data)) & ~7; in __getreent()
84 data = (struct data *)addr; in __getreent()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/lib/
Ducsconv.h85 void *data);
96 int (*get_mb_cur_max) (void *data);
108 void (*get_state) (void *data,
123 int (*set_state) (void *data,
135 int (*is_stateful) (void *data);
155 ucs4_t (*convert_to_ucs) (void *data,
177 void *data);
180 int (*get_mb_cur_max) (void *data);
183 void (*get_state) (void *data,
187 int (*set_state) (void *data,
[all …]
Ducsconv.c93 uc->to_ucs.data = to_ucs_bices->handlers->init (from); in ucs_based_conversion_open()
94 if (uc->to_ucs.data == NULL) in ucs_based_conversion_open()
98 uc->to_ucs.data = (void *)&fake_data; in ucs_based_conversion_open()
104 uc->from_ucs.data = from_ucs_bices->handlers->init (to); in ucs_based_conversion_open()
105 if (uc->from_ucs.data == NULL) in ucs_based_conversion_open()
109 uc->from_ucs.data = (void *)&fake_data; in ucs_based_conversion_open()
114 if (uc->to_ucs.data != NULL && uc->to_ucs.handlers->close != NULL) in ucs_based_conversion_open()
115 uc->to_ucs.handlers->close (uc->to_ucs.data); in ucs_based_conversion_open()
125 void *data) in ucs_based_conversion_close() argument
130 uc = (iconv_ucs_conversion_t *)data; in ucs_based_conversion_close()
[all …]
Dnullconv.c50 void *data) in null_conversion_close() argument
52 (void) data; in null_conversion_close()
59 void *data, in null_conversion_convert() argument
69 (void) data; in null_conversion_convert()
95 null_conversion_get_mb_cur_max (void *data, in null_conversion_get_mb_cur_max() argument
98 (void) data; in null_conversion_get_mb_cur_max()
105 null_conversion_get_state (void *data, in null_conversion_get_state() argument
109 (void) data; in null_conversion_get_state()
117 null_conversion_set_state (void *data, in null_conversion_set_state() argument
121 (void) data; in null_conversion_set_state()
[all …]
Dconv.h82 void *data);
114 void *data,
134 void (*get_state) (void *data,
153 int (*set_state) (void *data,
169 int (*get_mb_cur_max) (void *data,
184 int (*is_stateful) (void *data,
204 void *data; member
Diconv.c131 ic->data = ic->handlers->open (to, from); in iconv_open()
137 ic->data = ic->handlers->open (to, from); in iconv_open()
143 if (ic->data == NULL) in iconv_open()
162 if ((void *)cd == NULL || cd == (iconv_t)-1 || ic->data == NULL in iconv()
174 if (!ic->handlers->is_stateful(ic->data, 1)) in iconv()
180 ic->handlers->set_state (ic->data, &state_null, 1); in iconv()
190 ic->handlers->get_state (ic->data, &state_save, 1); in iconv()
193 ic->handlers->set_state (ic->data, &state_null, 1); in iconv()
196 ic->handlers->get_state (ic->data, &state_null, 1); in iconv()
209 ic->handlers->set_state (ic->data, &state_save, 1); in iconv()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/ctype/
Dmkunidata5 echo Generating Unicode character properties data for newlib/libc/ctype
30 echo downloading data from unicode.org
31 for data in UnicodeData.txt
32 do wget http://unicode.org/Public/UNIDATA/$data
36 echo copying data from /usr/share/unicode/ucd
37 for data in UnicodeData.txt
38 do cp /usr/share/unicode/ucd/$data .
43 echo checking Unicode data file
44 for data in UnicodeData.txt
45 do if [ -r $data ]
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/string/
Dmkunidata4 echo Generating Unicode width data for newlib/libc/string/wcwidth.c
34 echo downloading data from unicode.org
35 for data in UnicodeData.txt Blocks.txt EastAsianWidth.txt
36 do wget http://unicode.org/Public/UNIDATA/$data
40 echo copying data from /usr/share/unicode/ucd
41 for data in UnicodeData.txt Blocks.txt EastAsianWidth.txt
42 do cp /usr/share/unicode/ucd/$data .
50 echo checking Unicode data files
51 for data in UnicodeData.txt Blocks.txt EastAsianWidth.txt
52 do if [ -r $data ]
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/search/
Dndbm.c103 dbtkey.data = key.dptr; in dbm_fetch()
107 dbtretdata.data = NULL; in dbm_fetch()
110 retdata.dptr = dbtretdata.data; in dbm_fetch()
129 dbtretkey.data = NULL; in dbm_firstkey()
130 retkey.dptr = dbtretkey.data; in dbm_firstkey()
149 dbtretkey.data = NULL; in dbm_nextkey()
150 retkey.dptr = dbtretkey.data; in dbm_nextkey()
166 dbtkey.data = key.dptr; in dbm_delete()
182 dbm_store(DBM *db, datum key, datum data, int flags) in dbm_store() argument
186 dbtkey.data = key.dptr; in dbm_store()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dstrchr.c43 vec_uchar16 *ptr, data, vc; in strchr() local
58 data = *ptr++; in strchr()
60 cmp_c = spu_and(spu_gather(spu_cmpeq(data, vc)), mask); in strchr()
61 cmp_0 = spu_and(spu_gather(spu_cmpeq(data, 0)), mask); in strchr()
66 data = *ptr++; in strchr()
67 cmp_c = spu_gather(spu_cmpeq(data, vc)); in strchr()
68 cmp_0 = spu_gather(spu_cmpeq(data, 0)); in strchr()
Dstraddr.h43 vec_uchar16 *ptr, data; in _straddr() local
55 data = *ptr; in _straddr()
56 cmp = spu_extract(spu_gather(spu_cmpeq(data, 0)), 0); in _straddr()
62 data = *++ptr; in _straddr()
63 cnt = spu_extract(spu_cntlz(spu_gather(spu_cmpeq(data, 0))), 0); in _straddr()
Dstrlen.c43 vec_uchar16 *ptr, data; in strlen() local
52 data = *ptr; in strlen()
53 cmp = spu_extract(spu_gather(spu_cmpeq(data, 0)), 0); in strlen()
59 data = *++ptr; in strlen()
60 cnt = spu_extract(spu_cntlz(spu_gather(spu_cmpeq(data, 0))), 0); in strlen()
Dstrrchr.c44 vec_uchar16 *ptr, data, vc; in strrchr() local
59 data = *ptr++; in strrchr()
62 cmp_c = spu_and(spu_gather(spu_cmpeq(data, vc)), mask); in strrchr()
63 cmp_0 = spu_and(spu_gather(spu_cmpeq(data, 0)), mask); in strrchr()
74 data = *ptr++; in strrchr()
76 cmp_c = spu_gather(spu_cmpeq(data, vc)); in strrchr()
77 cmp_0 = spu_gather(spu_cmpeq(data, 0)); in strrchr()
/picolibc-3.7.0-3.6.0/newlib/libc/misc/
Dubsan.c53 __ubsan_handle_out_of_bounds(struct out_of_bounds_data *data, void *id) in __ubsan_handle_out_of_bounds() argument
57 data->location.filename, data->location.line, data->location.column); in __ubsan_handle_out_of_bounds()

1234