/xnu-2422.115.4/tools/tests/libMicro/ |
H A D | strcasecmp.c | 87 tsd_t *ts = (tsd_t *)tsd; local 92 if (ts->ts_once++ == 0) { 96 ts->ts_a = malloc(opts + 1); 97 ts->ts_b = malloc(opts + 1 + unaligned); 98 ts->ts_b += unaligned; 101 ts->ts_a[i] = ts->ts_b[i] = demo[i%l]; 103 ts->ts_a[opts] = 0; 104 ts->ts_b[opts] = 0; 113 tsd_t *ts local [all...] |
H A D | strcmp.c | 86 tsd_t *ts = (tsd_t *)tsd; local 90 if (ts->ts_once++ == 0) { 94 ts->ts_a = malloc(opts + 1); 95 ts->ts_b = malloc(opts + 1 + unaligned); 96 ts->ts_b += unaligned; 99 ts->ts_a[i] = ts->ts_b[i] = demo[i%l]; 101 ts->ts_a[opts] = 0; 102 ts->ts_b[opts] = 0; 111 tsd_t *ts local [all...] |
H A D | sigaction.c | 70 tsd_t *ts = (tsd_t *)tsd; local 71 ts->ts_act.sa_handler = nop; 72 ts->ts_act.sa_flags = 0; 73 (void) sigemptyset(&ts->ts_act.sa_mask); 82 tsd_t *ts = (tsd_t *)tsd; local 88 if (sigaction(SIGUSR1, &ts->ts_act, &oact))
|
H A D | siglongjmp.c | 57 tsd_t *ts = (tsd_t *)tsd; local 65 (void) sigsetjmp(ts->ts_env, 1); 68 siglongjmp(ts->ts_env, 0);
|
H A D | bind.c | 99 tsd_t *ts = (tsd_t *)tsd; local 105 ts->ts_lsns = (int *)malloc(lm_optB * sizeof (int)); 106 if (ts->ts_lsns == NULL) 109 ts->ts_adds = (struct sockaddr_in *)malloc(lm_optB * 111 if (ts->ts_adds == NULL) 116 if ((ts->ts_lsns[i] = socket(PF_INET, SOCK_STREAM, 0)) == -1) 119 if (setsockopt(ts->ts_lsns[i], SOL_SOCKET, SO_REUSEADDR, 126 (void) memset(&ts->ts_adds[i], 0, 128 ts->ts_adds[i].sin_family = AF_INET; 129 ts 139 tsd_t *ts = (tsd_t *)tsd; local 157 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | connection.c | 112 tsd_t *ts = (tsd_t *)tsd; local 117 ts->ts_lsns = (int *)malloc(lm_optB * sizeof (int)); 118 if (ts->ts_lsns == NULL) { 121 ts->ts_accs = (int *)malloc(lm_optB * sizeof (int)); 122 if (ts->ts_accs == NULL) { 125 ts->ts_cons = (int *)malloc(lm_optB * sizeof (int)); 126 if (ts->ts_cons == NULL) { 129 ts->ts_adds = 132 if (ts->ts_accs == NULL) { 138 ts 189 tsd_t *ts = (tsd_t *)tsd; local 233 tsd_t *ts = (tsd_t *)tsd; local 293 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | read.c | 104 tsd_t *ts = (tsd_t *)tsd; local 106 if (ts->ts_buf == NULL) { 107 ts->ts_buf = malloc(opts); 108 ts->ts_fd = open(optf, O_RDONLY); 111 (void) lseek(ts->ts_fd, 0, SEEK_SET); 119 tsd_t *ts = (tsd_t *)tsd; local 123 if (read(ts->ts_fd, ts->ts_buf, opts) != opts) { 128 ts->ts_buf[j] = 0;
|
H A D | socketpair.c | 72 tsd_t *ts = (tsd_t *)tsd; local 74 if (ts->ts_once++ == 0) { 75 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int)); 76 if (ts->ts_fds == NULL) { 80 ts->ts_fds[i] = -1; 91 tsd_t *ts = (tsd_t *)tsd; local 97 if (socketpair(PF_UNIX, SOCK_STREAM, 0, &ts->ts_fds[i]) 111 tsd_t *ts = (tsd_t *)tsd; local 114 (void) close(ts->ts_fds[i]);
|
H A D | cascade_cond.c | 207 tsd_t *ts = (tsd_t *)tsd; local 210 if (ts->ts_once == 0) { 221 ts->ts_id = us; 224 ts->ts_us0 = (us * 2); 225 ts->ts_us1 = (us * 2) + 1; 228 ts->ts_them0 = (them * 2); 229 ts->ts_them1 = (them * 2) + 1; 232 ts->ts_them0 = (them * 2) + 1; 233 ts->ts_them1 = (them * 2); 236 ts 248 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | writev.c | 103 tsd_t *ts = (tsd_t *)tsd; local 107 if (ts->ts_once++ == 0) { 108 ts->ts_fd = open(optf, O_WRONLY); 109 if (ts->ts_fd == -1) { 112 ts->ts_iov = (struct iovec *)malloc( 115 ts->ts_iov[i].iov_base = malloc(opts); 116 ts->ts_iov[i].iov_len = opts; 120 (void) lseek(ts->ts_fd, 0, SEEK_SET); 128 tsd_t *ts = (tsd_t *)tsd; local 132 if (writev(ts [all...] |
H A D | close.c | 96 tsd_t *ts = (tsd_t *)tsd; local 98 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int)); 99 if (ts->ts_fds == NULL) { 112 tsd_t *ts = (tsd_t *)tsd; local 117 ts->ts_fds[i] = ((optb == 0) ? 119 if (ts->ts_fds[i] == -1) { 130 tsd_t *ts = (tsd_t *)tsd; local 134 if (close(ts->ts_fds[i]) == -1 && !optb) {
|
H A D | memrand.c | 85 tsd_t *ts = (tsd_t *)tsd; local 88 ts->ts_data = malloc(opts); 90 if (ts->ts_data == NULL) { 102 ts->ts_data[i] = (long *)&(ts->ts_data[j]); 110 tsd_t *ts = (tsd_t *)tsd; local 113 long **ptr = ts->ts_data; 130 ts->ts_result = (long)*ptr;
|
H A D | isatty.c | 86 tsd_t *ts = (tsd_t *)tsd; local 88 ts->ts_fd = ((optb == 0) ? 90 if (ts->ts_fd == -1) { 99 tsd_t *ts = (tsd_t *)tsd; local 103 if (isatty(ts->ts_fd) == -1) {
|
H A D | strcpy.c | 85 tsd_t *ts = (tsd_t *)tsd; local 89 if (ts->ts_once++ == 0) { 93 ts->ts_a = malloc(opts + 1); 94 ts->ts_b = malloc(opts + 1 + unaligned); 95 ts->ts_b += unaligned; 98 ts->ts_b[i] = demo[i%l]; 100 ts->ts_b[opts] = 0; 109 tsd_t *ts = (tsd_t *)tsd; local 111 char *src = ts->ts_a; 112 char *src2 = ts [all...] |
H A D | cachetocache.c | 112 tsd_t *ts = (tsd_t *)tsd; local 116 ts->ts_data = malloc(opts); 118 if (ts->ts_data == NULL) { 122 (void) pthread_mutex_init(&ts->ts_lock, NULL); 142 ts->ts_data[i] = (long *)&(ts->ts_data[j]); 145 thread_data[pthread_self() - 1] = ts; 163 tsd_t *ts; local 169 ts = thread_data[i]; 170 (void) pthread_mutex_lock(&ts [all...] |
H A D | mmap.c | 118 tsd_t *ts = (tsd_t *)tsd; local 121 if (ts->ts_once++ == 0) { 122 ts->ts_map = (vchar_t **)malloc(lm_optB * sizeof (void *)); 123 if (ts->ts_map == NULL) { 134 tsd_t *ts = (tsd_t *)tsd; local 139 ts->ts_map[i] = (vchar_t *)mmap(NULL, optl, 144 ts->ts_map[i] = (vchar_t *)mmap(NULL, optl, 150 if (ts->ts_map[i] == MAP_FAILED) { 157 ts->ts_foo += ts 174 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | semop.c | 59 tsd_t *ts = (tsd_t *)tsd; local 61 if ((ts->ts_semid = semget(IPC_PRIVATE, 2, 0600)) == -1) { 71 tsd_t *ts = (tsd_t *)tsd; local 73 (void) semctl(ts->ts_semid, 0, IPC_RMID); 82 tsd_t *ts = (tsd_t *)tsd; local 89 if (semop(ts->ts_semid, s, 1) == -1) { 95 if (semop(ts->ts_semid, s, 1) == -1) {
|
H A D | munmap.c | 118 tsd_t *ts = (tsd_t *)tsd; local 122 if (ts->ts_once++ == 0) { 123 ts->ts_map = (vchar_t **)malloc(lm_optB * sizeof (void *)); 124 if (ts->ts_map == NULL) { 131 ts->ts_map[i] = (vchar_t *)mmap(NULL, optl, 136 ts->ts_map[i] = (vchar_t *)mmap(NULL, optl, 142 if (ts->ts_map[i] == MAP_FAILED) { 148 ts->ts_foo += ts->ts_map[i][j]; 153 ts 164 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | exit.c | 97 tsd_t *ts = (tsd_t *)tsd; local 101 if (ts->ts_once++ == 0) { 102 ts->ts_pids = (int *)malloc(lm_optB * sizeof (pid_t)); 103 if (ts->ts_pids == NULL) { 113 ts->ts_pids[i] = fork(); 114 switch (ts->ts_pids[i]) {
|
H A D | lseek.c | 94 tsd_t *ts = (tsd_t *)tsd; local 96 if (ts->ts_once++ == 0) { 97 ts->ts_fd = open(optf, O_RDONLY); 106 tsd_t *ts = (tsd_t *)tsd; local 110 if (lseek(ts->ts_fd, 0L, SEEK_SET) != 0) { 113 if (lseek(ts->ts_fd, opts, SEEK_SET) != opts) {
|
H A D | malloc.c | 94 tsd_t *ts = (tsd_t *)tsd; local 99 ts->ts_glob = malloc(sizeof (void *)* optg); 100 if (ts->ts_glob == NULL) { 109 tsd_t *ts = (tsd_t *)tsd; local 114 if ((ts->ts_glob[j] = malloc(opts[k++])) == NULL) 120 free(ts->ts_glob[j]);
|
/xnu-2422.115.4/EXTERNAL_HEADERS/architecture/i386/ |
H A D | cpu.h | 47 ts :1, member in struct:_cr0
|
/xnu-2422.115.4/tools/tests/libMicro/apple/ |
H A D | lmbench_read.c | 107 tsd_t *ts = (tsd_t *)tsd; local 109 if (ts->ts_buf == NULL) { 110 ts->ts_buf = malloc(opts); 111 ts->ts_fd = open(optf, O_RDONLY); 114 (void) lseek(ts->ts_fd, 0, SEEK_SET); 122 tsd_t *ts = (tsd_t *)tsd; local 136 if (read(ts->ts_fd, ts->ts_buf, opts) != opts) { 141 ts->ts_buf[j] = 0;
|
H A D | lmbench_fstat.c | 91 tsd_t *ts = (tsd_t *)tsd; local 93 if (ts->ts_buf == NULL) { 94 /* ts->ts_buf = malloc(opts); */ 95 ts->ts_fd = open(optf, O_RDONLY); 98 /* (void) lseek(ts->ts_fd, 0, SEEK_SET); */ 110 tsd_t *ts = (tsd_t *)tsd; local 126 if (fstat(ts->ts_fd, &sbuf) == -1)
|
H A D | lmbench_select_tcp.c | 137 tsd_t* ts = (tsd_t*)tsd; local 138 return (int) open(ts->fname, O_RDONLY); 151 tsd_t *ts = (tsd_t *)tsd; local 154 ts->pid = 0; 156 if (ts->fid_f == open_file) { 158 sprintf(ts->fname, "lat_selectXXXXXX"); 159 ts->fid = mkstemp(ts->fname); 160 if (ts->fid <= 0) { 162 sprintf(buf, "lat_select: Could not create temp file %s", ts 490 tsd_t *ts = (tsd_t *)tsd; local 533 tsd_t *ts = (tsd_t *)tsd; local 600 tsd_t *ts = (tsd_t *)tsd; local [all...] |