Searched defs:ts (Results 1 - 25 of 47) sorted by relevance

12

/libmicro/
H A Dsiglongjmp.c57 tsd_t *ts = (tsd_t *)tsd; local
61 (void) sigsetjmp(ts->ts_env, 1);
64 siglongjmp(ts->ts_env, 0);
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 Disatty.c86 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 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 Dsemop.c59 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 Dsetsockopt.c64 tsd_t *ts = (tsd_t *)tsd; local
66 if ((ts->ts_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
74 tsd_t *ts = (tsd_t *)tsd; local
76 (void) close(ts->ts_fd);
84 tsd_t *ts = (tsd_t *)tsd; local
91 if (setsockopt(ts->ts_fd, IPPROTO_TCP, TCP_NODELAY,
H A Dsigaction.c70 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 Dsocketpair.c72 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 Dbind.c99 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 Dclose.c96 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 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 Dexit.c97 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 Dlseek.c94 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 Dmalloc.c92 tsd_t *ts = (tsd_t *)tsd; local
97 ts->ts_glob = malloc(sizeof (void *)* optg);
98 if (ts->ts_glob == NULL) {
107 tsd_t *ts = (tsd_t *)tsd; local
112 if ((ts->ts_glob[j] = malloc(opts[k++])) == NULL)
118 free(ts->ts_glob[j]);
H A Dmemrand.c85 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 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 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 Dcachetocache.c112 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 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 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 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 Dpread.c103 tsd_t *ts = (tsd_t *)tsd; local
106 if (ts->ts_buf == NULL) {
107 ts->ts_buf = malloc(opts);
116 tsd_t *ts = (tsd_t *)tsd; local
121 if (pread(fd, ts->ts_buf, opts, 0) != opts) {
126 ts->ts_buf[j] = 0;
H A Dpwrite.c112 tsd_t *ts = (tsd_t *)tsd; local
115 if (ts->ts_buf == NULL) {
116 ts->ts_buf = malloc(opts);
124 ts->ts_buf[i] = 0;
133 tsd_t *ts = (tsd_t *)tsd; local
137 if (pwrite(fd, ts->ts_buf, opts, 0) != opts) {
H A Dread.c104 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;

Completed in 20 milliseconds

12