/macosx-10.10.1/dtrace-147/test/tst/common/printf/ |
H A D | tst.printcont.d | 39 uint64_t ts; 43 ts = 53114233149441; 44 printf("%u\n", ts); 45 printf("%u\n", ts); 46 printf("%u\n", ts); 47 printf("%u\n", ts); 48 printf("%u\n", ts); 49 printf("%u\n", ts); 50 printf("%u\n", ts); 51 printf("%u\n", ts); [all...] |
/macosx-10.10.1/ntfs-84/kext/ |
H A D | ntfs_time.h | 50 * @ts: OS X UTC time to convert to NTFS (little endian) time 52 * Convert the OS X UTC time @ts to its corresponding NTFS time and return that 64 static inline sle64 utc2ntfs(const struct timespec ts) argument 70 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + 82 struct timespec ts; local 84 nanotime(&ts); 86 ts.tv_nsec -= ts.tv_nsec % 100; 87 return ts; 98 struct timespec ts; local 129 struct timespec ts; local [all...] |
/macosx-10.10.1/gnutar-453/gnutar/lib/ |
H A D | gettime.c | 30 gettime (struct timespec *ts) argument 33 nanotime (ts); 37 if (clock_gettime (CLOCK_REALTIME, ts) == 0) 44 ts->tv_sec = tv.tv_sec; 45 ts->tv_nsec = tv.tv_usec * 1000;
|
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/comp/ |
H A D | mktime.c | 50 mktime(struct tm* ts) 55 tm.tm_sec = ts->tm_sec; 56 tm.tm_min = ts->tm_min; 57 tm.tm_hour = ts->tm_hour; 58 tm.tm_mday = ts->tm_mday; 59 tm.tm_mon = ts->tm_mon; 60 tm.tm_year = ts->tm_year; 61 tm.tm_wday = ts->tm_wday; 62 tm.tm_yday = ts->tm_yday; 63 tm.tm_isdst = ts [all...] |
H A D | strptime.c | 48 strptime(const char* s, const char* format, struct tm* ts) 56 tm.tm_sec = ts->tm_sec; 57 tm.tm_min = ts->tm_min; 58 tm.tm_hour = ts->tm_hour; 59 tm.tm_mday = ts->tm_mday; 60 tm.tm_mon = ts->tm_mon; 61 tm.tm_year = ts->tm_year; 62 tm.tm_wday = ts->tm_wday; 63 tm.tm_yday = ts->tm_yday; 64 tm.tm_isdst = ts [all...] |
/macosx-10.10.1/ntp-92/libntp/ |
H A D | buftvtots.c | 18 l_fp *ts 31 ts->l_ui = tv.tv_sec + (u_long)JAN_1970; 34 TVUTOTSF(tv.tv_usec, ts->l_uf); 45 l_fp *ts 49 UNUSED_ARG(ts);
|
/macosx-10.10.1/xnu-2782.1.97/tools/tests/libMicro/ |
H A D | pthread_create.c | 81 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 D | pipe.c | 164 tsd_t *ts = (tsd_t *)tsd; local 170 result = prepare_socketpair(ts); 173 result = prepare_localtcp(ts); 176 result = prepare_fifos(ts); 180 result = prepare_pipes(ts); 189 result = pthread_create(&ts->ts_thread, NULL, loopback, tsd); 204 ts->ts_child = pid; 214 if (write(ts->ts_out, wbuf, opts) != opts) { 217 if (readall(ts->ts_in, rbuf, opts) != opts) { 227 tsd_t *ts local 251 tsd_t *ts = (tsd_t *)tsd; local 315 tsd_t *ts = (tsd_t *)arg; local 335 prepare_localtcp_once(tsd_t *ts) argument 384 prepare_localtcp(tsd_t *ts) argument 444 prepare_socketpair(tsd_t *ts) argument 466 prepare_fifos(tsd_t *ts) argument 498 cleanup_fifos(tsd_t *ts) argument 511 prepare_pipes(tsd_t *ts) argument [all...] |
H A D | mktime.c | 61 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 D | memcpy.c | 102 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 D | memmove.c | 102 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 D | strchr.c | 85 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 D | strlen.c | 85 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 D | cascade_fcntl.c | 161 tsd_t *ts = (tsd_t *)tsd; local 164 if (ts->ts_once == 0) { 175 ts->ts_id = us; 178 ts->ts_us0 = (us * 4); 179 ts->ts_us1 = (us * 4) + 2; 182 ts->ts_them0 = (them * 4); 183 ts->ts_them1 = (them * 4) + 2; 186 ts->ts_them0 = (them * 4) + 2; 187 ts->ts_them1 = (them * 4); 190 ts 202 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | cascade_flock.c | 157 tsd_t *ts = (tsd_t *)tsd; local 160 if (ts->ts_once == 0) { 171 ts->ts_id = us; 174 ts->ts_us0 = (us * 2); 175 ts->ts_us1 = (us * 2) + 1; 178 ts->ts_them0 = (them * 2); 179 ts->ts_them1 = (them * 2) + 1; 182 ts->ts_them0 = (them * 2) + 1; 183 ts->ts_them1 = (them * 2); 186 ts 198 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | cascade_lockf.c | 152 tsd_t *ts = (tsd_t *)tsd; local 155 if (ts->ts_once == 0) { 166 ts->ts_id = us; 169 ts->ts_us0 = (us * 2); 170 ts->ts_us1 = (us * 2) + 1; 173 ts->ts_them0 = (them * 2); 174 ts->ts_them1 = (them * 2) + 1; 177 ts->ts_them0 = (them * 2) + 1; 178 ts->ts_them1 = (them * 2); 181 ts 193 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | cascade_mutex.c | 156 tsd_t *ts = (tsd_t *)tsd; local 159 if (ts->ts_once == 0) { 170 ts->ts_id = us; 173 ts->ts_us0 = (us * 2); 174 ts->ts_us1 = (us * 2) + 1; 177 ts->ts_them0 = (them * 2); 178 ts->ts_them1 = (them * 2) + 1; 181 ts->ts_them0 = (them * 2) + 1; 182 ts->ts_them1 = (them * 2); 185 ts 197 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | close_tcp.c | 83 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...] |
/macosx-10.10.1/xnu-2782.1.97/tools/tests/libMicro/apple/ |
H A D | trivial.c | 172 tsd_t *ts = (tsd_t *)tsd; local 173 ts->ts_once = optt; 174 debug("benchmark_initworker: ts_once = %i\n",ts->ts_once); 185 tsd_t *ts = (tsd_t *)tsd; local 187 ts->ts_once++; 188 ts->ts_once--; 189 debug("benchmark_initbatch: ts_once = %i\n",ts->ts_once); 201 tsd_t *ts = (tsd_t *)tsd; local 204 debug("in to benchmark - optB = %i : ts_once = %i\n", lm_optB, ts->ts_once); 207 * just to show that ts reall 220 tsd_t *ts = (tsd_t *)tsd; local 232 tsd_t *ts = (tsd_t *)tsd; local [all...] |
H A D | lmbench_select_file.c | 122 tsd_t* ts = (tsd_t*)tsd; local 123 //(void) fprintf(stderr, "open_file: ts->fname = %s\n",ts->fname); 124 return (int) open(ts->fname, O_RDONLY); 131 tsd_t* ts = (tsd_t*)tsd; local 134 ts->pid = 0; 135 //(void) fprintf(stderr, "server: state->fid_f = %i\n",ts->fid_f); 137 if (ts->fid_f == open_file) { 139 sprintf(ts->fname, "/tmp/lat_selectXXXXXX"); 140 //(void) fprintf(stderr, "server: ts 260 tsd_t *ts = (tsd_t *)tsd; local 305 tsd_t *ts = (tsd_t *)tsd; local 383 tsd_t *ts = (tsd_t *)tsd; local [all...] |
/macosx-10.10.1/dtrace-147/test/tst/common/docsExamples/ |
H A D | rwtime.d | 42 ts[probefunc] = timestamp; 47 /(ts[probefunc] != 0) && (pid == 100551)/ 49 printf("%d nsecs\n", timestamp - ts[probefunc]);
|
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/aso/ |
H A D | asorelax.c | 48 struct timespec ts; 50 ts.tv_sec = 0; 51 ts.tv_nsec = nsec; 52 return nanosleep(&ts, 0);
|
/macosx-10.10.1/webdavfs-367/webdav_fs.kextproj/webdav_fs.kmodproj/ |
H A D | webdav_utils.c | 59 void timespec_to_webdav_timespec64(struct timespec ts, struct webdav_timespec64 *wts) argument 61 wts->tv_sec = ts.tv_sec; 62 wts->tv_nsec = ts.tv_nsec; 65 void webdav_timespec64_to_timespec(struct webdav_timespec64 wts, struct timespec *ts) argument 68 ts->tv_sec = wts.tv_sec; 69 ts->tv_nsec = wts.tv_nsec; 71 ts->tv_sec = (uint32_t)wts.tv_sec; 72 ts->tv_nsec = (uint32_t)wts.tv_nsec;
|
/macosx-10.10.1/ruby-106/ruby/sample/drb/ |
H A D | ring_inspect.rb | 18 ts = primary 20 ts = list_place[idx] 21 raise "RingNotFound" unless ts 23 ts.read_all([:name, nil, nil, nil])
|
/macosx-10.10.1/BerkeleyDB-21/db/test/scr031/src/ |
H A D | htimestampxa.c | 7 GetTime(HTimestampData *ts) argument 12 ts->Sec = timeNow.tv_sec; 13 ts->Usec = timeNow.tv_usec;
|