/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | memset.c | 44 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 D | strcasecmp.c | 40 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 D | strcmp.c | 39 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 D | memrand.c | 43 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 D | pread.c | 50 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 D | pwrite.c | 51 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 D | read.c | 52 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 D | write.c | 52 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 D | memcpy.c | 45 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 D | memmove.c | 45 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 D | strcpy.c | 39 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 D | strchr.c | 39 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 D | strlen.c | 39 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 D | getenv.c | 45 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 D | lseek.c | 50 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 D | malloc.c | 45 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 D | writev.c | 55 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 D | cachetocache.c | 51 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 D | msync.c | 51 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 D | pipe.c | 81 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 D | pthread_create.c | 46 static int opts = 0; variable 69 opts = sizetoll(optarg); 87 if (opts) { 90 if ((errors = pthread_attr_setstacksize(ts->ts_attr, opts))
|
H A D | mmap.c | 54 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 D | lmbench_read.c | 55 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 D | lmbench_write.c | 55 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 D | altq_hfsc.c | 148 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...] |