Searched refs:ts (Results 1 - 25 of 317) sorted by relevance

1234567891011>>

/haiku-fatelf/src/bin/coreutils/lib/
H A Dgethrxtime.c37 struct timespec ts; local
38 nanouptime (&ts);
39 return xtime_make (ts.tv_sec, ts.tv_nsec);
45 struct timespec ts;
46 if (clock_gettime (CLOCK_MONOTONIC, &ts) == 0)
47 return xtime_make (ts.tv_sec, ts.tv_nsec);
62 struct timespec ts;
63 gettime (&ts);
[all...]
H A Dgettime.c29 gettime (struct timespec *ts) argument
32 nanotime (ts);
36 if (clock_gettime (CLOCK_REALTIME, ts) == 0)
43 ts->tv_sec = tv.tv_sec;
44 ts->tv_nsec = tv.tv_usec * 1000;
H A Dsettime.c32 settime (struct timespec const *ts) argument
36 int r = clock_settime (CLOCK_REALTIME, ts);
46 tv.tv_sec = ts->tv_sec;
47 tv.tv_usec = ts->tv_nsec / 1000;
54 return stime (&ts->tv_sec);
H A Dutimens.c130 update_timespec (struct stat const *statbuf, struct timespec *ts[2]) argument
132 struct timespec *timespec = *ts;
139 *ts = NULL;
170 struct timespec *ts = timespec ? adjusted_timespec : NULL; local
174 if (ts)
178 adjustment_needed = validate_timespec (ts);
236 if (ts[0].tv_nsec == UTIME_OMIT)
237 ts[0] = get_stat_atime (&st);
238 else if (ts[1].tv_nsec == UTIME_OMIT)
239 ts[
405 struct timespec *ts = timespec ? adjusted_timespec : NULL; local
[all...]
/haiku-fatelf/src/tests/system/benchmarks/libMicro/
H A Dpthread_create.c81 tsd_t *ts = (tsd_t *)tsd; local
84 ts->ts_threads = calloc(lm_optB, sizeof (pthread_t));
85 (void) pthread_mutex_init(&ts->ts_lock, NULL);
88 ts->ts_attr = malloc(sizeof (pthread_attr_t));
89 (void) pthread_attr_init(ts->ts_attr);
90 if ((errors = pthread_attr_setstacksize(ts->ts_attr, opts))
96 ts->ts_attr = NULL;
104 tsd_t *ts = (tsd_t *)tsd; local
106 (void) pthread_mutex_lock(&ts->ts_lock);
115 tsd_t *ts local
127 tsd_t *ts = (tsd_t *)tsd; local
148 tsd_t *ts = (tsd_t *)tsd; local
[all...]
H A Dpipe.c164 tsd_t *ts = (tsd_t *)tsd; local
171 result = prepare_socketpair(ts);
174 result = prepare_localtcp(ts);
177 result = prepare_fifos(ts);
181 result = prepare_pipes(ts);
190 result = pthread_create(&ts->ts_thread, NULL, loopback, tsd);
205 ts->ts_child = pid;
215 if (write(ts->ts_out, wbuf, opts) != opts) {
218 if (readall(ts->ts_in, rbuf, opts) != opts) {
228 tsd_t *ts local
252 tsd_t *ts = (tsd_t *)tsd; local
316 tsd_t *ts = (tsd_t *)arg; local
336 prepare_localtcp_once(tsd_t *ts) argument
385 prepare_localtcp(tsd_t *ts) argument
445 prepare_socketpair(tsd_t *ts) argument
467 prepare_fifos(tsd_t *ts) argument
499 cleanup_fifos(tsd_t *ts) argument
512 prepare_pipes(tsd_t *ts) argument
[all...]
H A Dmktime.c61 tsd_t *ts = (tsd_t *)tsd; local
69 (void) localtime_r(&clock1, &ts->ts_tm1);
70 (void) localtime_r(&clock2, &ts->ts_tm2);
80 tsd_t *ts = (tsd_t *)tsd; local
84 t1 = ts->ts_tm1;
85 t2 = ts->ts_tm2;
89 t1 = ts->ts_tm1;
90 t2 = ts->ts_tm2;
94 t1 = ts->ts_tm1;
95 t2 = ts
[all...]
H A Dmemcpy.c102 tsd_t *ts = (tsd_t *)tsd; local
105 ts->ts_srcsize = 64 * 1024 * 1024;
107 ts->ts_srcsize = opts + opta;
110 ts->ts_destsize = 64 * 1024 * 1024;
112 ts->ts_destsize = (int)opts;
115 ts->ts_src = opta + (char *)valloc(ts->ts_srcsize);
116 ts->ts_dest = valloc(ts->ts_destsize);
124 tsd_t *ts local
[all...]
H A Dmemmove.c102 tsd_t *ts = (tsd_t *)tsd; local
105 ts->ts_srcsize = 64 * 1024 * 1024;
107 ts->ts_srcsize = opts + opta;
110 ts->ts_destsize = 64 * 1024 * 1024;
112 ts->ts_destsize = (int)opts;
115 ts->ts_src = opta + (char *)valloc(ts->ts_srcsize);
116 ts->ts_dest = valloc(ts->ts_destsize);
124 tsd_t *ts local
[all...]
H A Dstrchr.c85 tsd_t *ts = (tsd_t *)tsd; local
90 if (ts->ts_once++ == 0) {
94 ts->ts_string = malloc(opts + 1 + unaligned);
95 ts->ts_string += unaligned;
99 ts->ts_string[i] = demo[i%l];
102 ts->ts_string[opts] = 0;
112 tsd_t *ts = (tsd_t *)tsd; local
113 char *src = ts->ts_string;
116 ts->ts_fakegcc = strchr(src, 'X');
117 ts
[all...]
H A Dstrlen.c85 tsd_t *ts = (tsd_t *)tsd; local
89 if (ts->ts_once++ == 0) {
93 ts->ts_string = malloc(opts + 1 + unaligned);
94 ts->ts_string += unaligned;
98 ts->ts_string[i] = demo[i%l];
101 ts->ts_string[opts] = 0;
111 tsd_t *ts = (tsd_t *)tsd; local
112 char *src = ts->ts_string;
115 ts->ts_fakegcc += strlen(src);
116 ts
[all...]
H A Dcascade_fcntl.c161 tsd_t *ts = (tsd_t *)tsd; local
164 if (ts->ts_once == 0) {
170 ts->ts_id = us;
173 ts->ts_us0 = (us * 4);
174 ts->ts_us1 = (us * 4) + 2;
177 ts->ts_them0 = (them * 4);
178 ts->ts_them1 = (them * 4) + 2;
181 ts->ts_them0 = (them * 4) + 2;
182 ts->ts_them1 = (them * 4);
185 ts
197 tsd_t *ts = (tsd_t *)tsd; local
[all...]
H A Dcascade_flock.c158 tsd_t *ts = (tsd_t *)tsd; local
161 if (ts->ts_once == 0) {
167 ts->ts_id = us;
170 ts->ts_us0 = (us * 2);
171 ts->ts_us1 = (us * 2) + 1;
174 ts->ts_them0 = (them * 2);
175 ts->ts_them1 = (them * 2) + 1;
178 ts->ts_them0 = (them * 2) + 1;
179 ts->ts_them1 = (them * 2);
182 ts
194 tsd_t *ts = (tsd_t *)tsd; local
[all...]
H A Dcascade_lockf.c152 tsd_t *ts = (tsd_t *)tsd; local
155 if (ts->ts_once == 0) {
161 ts->ts_id = us;
164 ts->ts_us0 = (us * 2);
165 ts->ts_us1 = (us * 2) + 1;
168 ts->ts_them0 = (them * 2);
169 ts->ts_them1 = (them * 2) + 1;
172 ts->ts_them0 = (them * 2) + 1;
173 ts->ts_them1 = (them * 2);
176 ts
188 tsd_t *ts = (tsd_t *)tsd; local
[all...]
H A Dcascade_mutex.c156 tsd_t *ts = (tsd_t *)tsd; local
159 if (ts->ts_once == 0) {
165 ts->ts_id = us;
168 ts->ts_us0 = (us * 2);
169 ts->ts_us1 = (us * 2) + 1;
172 ts->ts_them0 = (them * 2);
173 ts->ts_them1 = (them * 2) + 1;
176 ts->ts_them0 = (them * 2) + 1;
177 ts->ts_them1 = (them * 2);
180 ts
192 tsd_t *ts = (tsd_t *)tsd; local
[all...]
H A Dclose_tcp.c83 tsd_t *ts = (tsd_t *)tsd; local
89 ts->ts_lsns = (int *)malloc(lm_optB * sizeof (int));
90 if (ts->ts_lsns == NULL) {
93 ts->ts_accs = (int *)malloc(lm_optB * sizeof (int));
94 if (ts->ts_accs == NULL) {
97 ts->ts_cons = (int *)malloc(lm_optB * sizeof (int));
98 if (ts->ts_cons == NULL) {
101 ts->ts_adds = (struct sockaddr_in *)malloc(lm_optB *
103 if (ts->ts_adds == NULL) {
109 ts
157 tsd_t *ts = (tsd_t *)tsd; local
205 tsd_t *ts = (tsd_t *)tsd; local
221 tsd_t *ts = (tsd_t *)tsd; local
234 tsd_t *ts = (tsd_t *)tsd; local
[all...]
H A Dstrftime.c95 tsd_t *ts = (tsd_t *)tsd; local
100 (void) localtime_r(&clock1, &ts->ts_tm1);
101 (void) localtime_r(&clock2, &ts->ts_tm2);
111 tsd_t *ts = (tsd_t *)tsd; local
115 (void) strftime(s, MAXSIZE, optf, &ts->ts_tm1);
116 (void) strftime(s, MAXSIZE, optf, &ts->ts_tm2);
117 (void) strftime(s, MAXSIZE, optf, &ts->ts_tm1);
118 (void) strftime(s, MAXSIZE, optf, &ts->ts_tm2);
119 (void) strftime(s, MAXSIZE, optf, &ts->ts_tm1);
120 (void) strftime(s, MAXSIZE, optf, &ts
[all...]
H A Dmemset.c101 tsd_t *ts = (tsd_t *)tsd; local
106 ts->ts_size = 1024 * 1024 * 64;
107 ts->ts_offset = opta;
109 ts->ts_size = opta + opts;
110 ts->ts_offset = opta;
113 if ((ts->ts_buff = (char *)valloc(ts->ts_size)) == NULL)
116 for (i = 0; i < ts->ts_size; i++)
117 ts->ts_buff[i] = 0;
126 tsd_t *ts local
[all...]
H A Ddup.c94 tsd_t *ts = (tsd_t *)tsd; local
98 if (ts->ts_once++ == 0) {
99 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int));
100 if (ts->ts_fds == NULL) {
104 ts->ts_fds[i] = -1;
114 tsd_t *ts = (tsd_t *)tsd; local
118 ts->ts_fds[i] = dup(fd);
119 if (ts->ts_fds[i] == -1) {
131 tsd_t *ts = (tsd_t *)tsd; local
135 (void) close(ts
[all...]
H A Dfork.c78 tsd_t *ts = (tsd_t *)tsd; local
81 if (ts->ts_once++ == 0) {
82 ts->ts_pids = (int *)malloc(lm_optB * sizeof (pid_t));
83 if (ts->ts_pids == NULL) {
94 tsd_t *ts = (tsd_t *)tsd; local
98 ts->ts_pids[i] = fork();
99 switch (ts->ts_pids[i]) {
121 tsd_t *ts = (tsd_t *)tsd; local
125 if (ts->ts_pids[i] > 0) {
126 (void) waitpid(ts
[all...]
H A Dopen.c93 tsd_t *ts = (tsd_t *)tsd; local
97 if (ts->ts_once++ == 0) {
98 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int));
99 if (ts->ts_fds == NULL) {
103 ts->ts_fds[i] = -1;
113 tsd_t *ts = (tsd_t *)tsd; local
117 ts->ts_fds[i] = open(optf, O_RDONLY);
118 if (ts->ts_fds[i] < 0) {
130 tsd_t *ts = (tsd_t *)tsd; local
134 (void) close(ts
[all...]
H A Dsocket.c114 tsd_t *ts = (tsd_t *)tsd; local
116 if (ts->ts_once++ == 0) {
117 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int));
118 if (ts->ts_fds == NULL) {
122 ts->ts_fds[i] = -1;
133 tsd_t *ts = (tsd_t *)tsd; local
136 ts->ts_fds[i] = socket(family, SOCK_STREAM, 0);
137 if (ts->ts_fds[i] == -1) {
150 tsd_t *ts = (tsd_t *)tsd; local
153 (void) close(ts
[all...]
H A Dwrite.c105 tsd_t *ts = (tsd_t *)tsd; local
108 if (ts->ts_buf == NULL) {
109 ts->ts_buf = malloc(opts);
110 ts->ts_fd = open(optf, O_WRONLY);
114 (void) directio(ts->ts_fd, DIRECTIO_ON);
122 ts->ts_buf[i] = 0;
125 (void) lseek(ts->ts_fd, 0, SEEK_SET);
133 tsd_t *ts = (tsd_t *)tsd; local
137 if (write(ts->ts_fd, ts
[all...]
H A Dstrcasecmp.c87 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 Dstrcmp.c86 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...]

Completed in 89 milliseconds

1234567891011>>