Changeset 1049
- Timestamp:
- Jan 24, 2004, 11:48:41 PM (22 years ago)
- Location:
- trunk/src/emx/testcase/libc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/testcase/libc/posix/tst-spawn.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1048 r1049 20 20 21 21 #include <errno.h> 22 #ifndef __EMX__ 22 23 #include <error.h> 24 #endif 23 25 #include <fcntl.h> 24 26 #include <spawn.h> … … 26 28 #include <string.h> 27 29 #include <unistd.h> 30 #ifndef __EMX__ 28 31 #include <wait.h> 32 #endif 29 33 #include <sys/param.h> 30 34 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/testcase/libc/test-skeleton.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1048 r1049 18 18 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 19 19 02111-1307 USA. */ 20 21 #ifdef __EMX__ 22 #define _SEARCH_PRIVATE 23 #define qelem que_elem 24 #define q_forw next 25 #define q_back prev 26 #endif 20 27 21 28 #include <getopt.h> … … 238 245 if (direct) 239 246 return TEST_FUNCTION; 247 248 #ifndef __EMX__ /* we don't have fork() */ 240 249 241 250 /* Set up the test environment: … … 272 281 perror ("getrlimit: RLIMIT_DATA"); 273 282 #endif 283 #endif /* __EMX__ */ 274 284 275 285 /* We put the test process in its own pgrp so that if it bogusly … … 279 289 /* Execute the test function and exit with the return value. */ 280 290 exit (TEST_FUNCTION); 291 #ifndef __EMX__ 281 292 } 282 293 else if (pid < 0) … … 291 302 # define TIMEOUT 2 292 303 #endif 304 #ifndef __EMX__ 293 305 alarm (TIMEOUT); 294 306 signal (SIGALRM, timeout_handler); 307 #endif 295 308 296 309 /* Wait for the regular termination. */ … … 334 347 /* Simply exit with the return value of the test. */ 335 348 return WEXITSTATUS (status); 336 } 349 #endif /* __EMX__ */ 350 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.