Searched refs:ts_fds (Results 1 - 5 of 5) sorted by relevance

/xnu-2422.115.4/tools/tests/libMicro/
H A Ddup.c49 int *ts_fds; member in struct:__anon1238
99 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int));
100 if (ts->ts_fds == NULL) {
104 ts->ts_fds[i] = -1;
118 ts->ts_fds[i] = dup(fd);
119 if (ts->ts_fds[i] == -1) {
135 (void) close(ts->ts_fds[i]);
H A Dopen.c45 int *ts_fds; member in struct:__anon1257
98 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int));
99 if (ts->ts_fds == NULL) {
103 ts->ts_fds[i] = -1;
117 ts->ts_fds[i] = open(optf, O_RDONLY);
118 if (ts->ts_fds[i] < 0) {
134 (void) close(ts->ts_fds[i]);
H A Dsocket.c41 int *ts_fds; member in struct:__anon1268
117 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int));
118 if (ts->ts_fds == NULL) {
122 ts->ts_fds[i] = -1;
136 ts->ts_fds[i] = socket(family, SOCK_STREAM, 0);
137 if (ts->ts_fds[i] == -1) {
153 (void) close(ts->ts_fds[i]);
H A Dclose.c47 int *ts_fds; member in struct:__anon1235
98 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int));
99 if (ts->ts_fds == NULL) {
117 ts->ts_fds[i] = ((optb == 0) ?
119 if (ts->ts_fds[i] == -1) {
134 if (close(ts->ts_fds[i]) == -1 && !optb) {
H A Dsocketpair.c41 int *ts_fds; member in struct:__anon1269
75 ts->ts_fds = (int *)malloc(lm_optB * sizeof (int));
76 if (ts->ts_fds == NULL) {
80 ts->ts_fds[i] = -1;
97 if (socketpair(PF_UNIX, SOCK_STREAM, 0, &ts->ts_fds[i])
114 (void) close(ts->ts_fds[i]);

Completed in 71 milliseconds