Searched refs:opts (Results 1 - 25 of 49) sorted by relevance

12

/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dmemset.c44 static long long opts = DEFS; variable
83 opts = sizetoll(optarg);
109 ts->ts_size = opta + opts;
137 (void) memset(buf, 0, opts);
138 tmp = (((unsigned long)buf + opts + 4095) & ~4095) + offset;
140 if (buf + opts > end)
147 (void) memset(buf, 0, opts);
148 (void) memset(buf, 0, opts);
149 (void) memset(buf, 0, opts);
150 (void) memset(buf, 0, opts);
[all...]
H A Dstrcasecmp.c40 static int opts = 100; variable
61 opts);
76 opts = sizetoll(optarg);
96 ts->ts_a = malloc(opts + 1);
97 ts->ts_b = malloc(opts + 1 + unaligned);
100 for (i = 0; i < opts; i++) {
103 ts->ts_a[opts] = 0;
104 ts->ts_b[opts] = 0;
145 (void) sprintf(result, "%8d", opts);
147 (void) sprintf(result, "%8d <unaligned>", opts);
[all...]
H A Dstrcmp.c39 static int opts = 100; variable
60 opts);
75 opts = sizetoll(optarg);
94 ts->ts_a = malloc(opts + 1);
95 ts->ts_b = malloc(opts + 1 + unaligned);
98 for (i = 0; i < opts; i++) {
101 ts->ts_a[opts] = 0;
102 ts->ts_b[opts] = 0;
142 (void) sprintf(result, "%8d", opts);
144 (void) sprintf(result, "%8d <unaligned>", opts);
[all...]
H A Dmemrand.c43 static long opts = 1024*1024; variable
61 opts);
73 opts = sizetoint(optarg);
88 ts->ts_data = malloc(opts);
98 for (i = 0; i < opts / sizeof (long); i++) {
101 j = j + opts / sizeof (long);
142 (void) sprintf(result, "%8ld ", opts);
H A Dpread.c50 static long long opts = DEFS; variable
84 opts = sizetoll(optarg);
107 ts->ts_buf = malloc(opts);
121 if (pread(fd, ts->ts_buf, opts, 0) != opts) {
125 for (j = 0; j < opts; j += optw)
139 (void) sprintf(result, "%8lld", opts);
H A Dpwrite.c51 static long long opts = DEFS; variable
84 opts = sizetoll(optarg);
116 ts->ts_buf = malloc(opts);
123 for (i = 0; i < opts; i++)
137 if (pwrite(fd, ts->ts_buf, opts, 0) != opts) {
151 (void) sprintf(result, "%8lld", opts);
H A Dread.c52 static long long opts = DEFS; variable
87 opts = sizetoll(optarg);
107 ts->ts_buf = malloc(opts);
123 if (read(ts->ts_fd, ts->ts_buf, opts) != opts) {
127 for (j = 0; j < opts; j += optw)
140 (void) sprintf(result, "%8lld", opts);
H A Dwrite.c52 static long long opts = DEFS; variable
94 opts = sizetoll(optarg);
109 ts->ts_buf = malloc(opts);
121 for (i = 0; i < opts; i++)
137 if (write(ts->ts_fd, ts->ts_buf, opts) != opts) {
151 (void) sprintf(result, "%8lld", opts);
H A Dmemcpy.c45 static long long opts = DEFS; variable
88 opts = sizetoll(optarg);
107 ts->ts_srcsize = opts + opta;
112 ts->ts_destsize = (int)opts;
129 int bump = (int)opts;
134 (void) memcpy(dest, src, opts);
137 if (src + opts > ts->ts_src + ts->ts_srcsize)
142 if (dest + opts > ts->ts_dest + ts->ts_destsize)
157 (void) sprintf(result, "%8lld", opts);
H A Dmemmove.c45 static long long opts = DEFS; variable
88 opts = sizetoll(optarg);
107 ts->ts_srcsize = opts + opta;
112 ts->ts_destsize = (int)opts;
129 int bump = (int)opts;
134 (void) memmove(dest, src, opts);
137 if (src + opts > ts->ts_src + ts->ts_srcsize)
142 if (dest + opts > ts->ts_dest + ts->ts_destsize)
157 (void) sprintf(result, "%8lld", opts);
H A Dstrcpy.c39 static int opts = 100; variable
59 opts);
74 opts = sizetoll(optarg);
93 ts->ts_a = malloc(opts + 1);
94 ts->ts_b = malloc(opts + 1 + unaligned);
97 for (i = 0; i < opts; i++) {
100 ts->ts_b[opts] = 0;
140 (void) sprintf(result, "%8d", opts);
142 (void) sprintf(result, "%8d <unaligned>", opts);
H A Dstrchr.c39 static int opts = 100; variable
59 opts);
74 opts = sizetoll(optarg);
94 ts->ts_string = malloc(opts + 1 + unaligned);
98 for (i = 0; i < opts; i++) {
102 ts->ts_string[opts] = 0;
139 (void) sprintf(result, "%8d", opts);
141 (void) sprintf(result, "%8d <unaligned>", opts);
H A Dstrlen.c39 static int opts = 100; variable
59 opts);
74 opts = sizetoll(optarg);
93 ts->ts_string = malloc(opts + 1 + unaligned);
97 for (i = 0; i < opts; i++) {
101 ts->ts_string[opts] = 0;
138 (void) sprintf(result, "%8d", opts);
140 (void) sprintf(result, "%8d <unaligned>", opts);
H A Dgetenv.c45 static int opts = DEFS; variable
69 opts = atoi(optarg);
92 if (opts < i)
93 opts = i;
95 for (j = i; j < opts; j++) {
H A Dlseek.c50 static long long opts = DEFS; variable
83 opts = sizetoll(optarg);
113 if (lseek(ts->ts_fd, opts, SEEK_SET) != opts) {
127 (void) sprintf(result, "%8lld", opts);
H A Dmalloc.c45 static int opts[32] = {32}; variable
64 optg, opts[0]);
80 opts[optscnt] = sizetoint(optarg);
114 if ((ts->ts_glob[j] = malloc(opts[k++])) == NULL)
138 (void) sprintf(result + strlen(result), "%d ", opts[i]);
H A Dwritev.c55 static int opts = DEFS; variable
89 opts = sizetoint(optarg);
115 ts->ts_iov[i].iov_base = malloc(opts);
116 ts->ts_iov[i].iov_len = opts;
132 if (writev(ts->ts_fd, ts->ts_iov, optv) != opts * optv) {
146 (void) sprintf(result, "%8d %4d", opts, optv);
H A Dcachetocache.c51 static long opts = 1024*512; variable
77 opts);
89 opts = sizetoint(optarg);
116 ts->ts_data = malloc(opts);
138 for (i = 0; i < opts / sizeof (long); i++) {
141 j = j + opts / sizeof (long);
165 int count = opts / 128 / sizeof (long);
218 (void) sprintf(result, "%8ld ", opts);
H A Dmsync.c51 static int opts = 0; variable
104 opts = 1;
133 PROT_READ | PROT_WRITE, opts ? MAP_SHARED : MAP_PRIVATE,
183 flags[3] = opts ? 's' : '-';
H A Dpipe.c81 static size_t opts = DEFS; variable
129 opts = sizetoll(optarg);
155 rbuf = malloc(opts);
156 wbuf = malloc(opts);
214 if (write(ts->ts_out, wbuf, opts) != opts) {
217 if (readall(ts->ts_in, rbuf, opts) != opts) {
232 if (write(ts->ts_out, wbuf, opts) != opts) {
[all...]
H A Dpthread_create.c46 static int opts = 0; variable
69 opts = sizetoll(optarg);
87 if (opts) {
90 if ((errors = pthread_attr_setstacksize(ts->ts_attr, opts))
H A Dmmap.c54 static int opts = 0; variable
95 opts = 1;
141 MAP_ANON | (opts ? MAP_SHARED : MAP_PRIVATE),
146 opts ? MAP_SHARED : MAP_PRIVATE,
192 flags[3] = opts ? 's' : '-';
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dlmbench_read.c55 static long long opts = DEFS; variable
90 opts = sizetoll(optarg);
110 ts->ts_buf = malloc(opts);
136 if (read(ts->ts_fd, ts->ts_buf, opts) != opts) {
140 for (j = 0; j < opts; j += optw)
153 (void) sprintf(result, "%8lld", opts);
H A Dlmbench_write.c55 static long long opts = DEFS; variable
97 opts = sizetoll(optarg);
112 ts->ts_buf = malloc(opts);
124 for (i = 0; i < opts; i++)
150 if (write(ts->ts_fd, ts->ts_buf, opts) != opts) {
164 (void) sprintf(result, "%8lld", opts);
/darwin-on-arm/xnu/bsd/net/altq/
H A Daltq_hfsc.c148 struct hfsc_opts *opts = &a->pq_u.hfsc_opts; local
161 rtsc.m1 = opts->rtsc_m1;
162 rtsc.d = opts->rtsc_d;
163 rtsc.m2 = opts->rtsc_m2;
164 rtsc.fl = opts->rtsc_fl;
165 lssc.m1 = opts->lssc_m1;
166 lssc.d = opts->lssc_d;
167 lssc.m2 = opts->lssc_m2;
168 lssc.fl = opts->lssc_fl;
169 ulsc.m1 = opts
[all...]

Completed in 44 milliseconds

12