Changeset 1049


Ignore:
Timestamp:
Jan 24, 2004, 11:48:41 PM (22 years ago)
Author:
bird
Message:

Initial port.

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 to 1.2
    r1048 r1049  
    2020
    2121#include <errno.h>
     22#ifndef __EMX__
    2223#include <error.h>
     24#endif
    2325#include <fcntl.h>
    2426#include <spawn.h>
     
    2628#include <string.h>
    2729#include <unistd.h>
     30#ifndef __EMX__
    2831#include <wait.h>
     32#endif
    2933#include <sys/param.h>
    3034
  • trunk/src/emx/testcase/libc/test-skeleton.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1048 r1049  
    1818   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    1919   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
    2027
    2128#include <getopt.h>
     
    238245  if (direct)
    239246    return TEST_FUNCTION;
     247
     248#ifndef __EMX__ /* we don't have fork() */
    240249
    241250  /* Set up the test environment:
     
    272281        perror ("getrlimit: RLIMIT_DATA");
    273282#endif
     283#endif /* __EMX__ */
    274284
    275285      /* We put the test process in its own pgrp so that if it bogusly
     
    279289      /* Execute the test function and exit with the return value.   */
    280290      exit (TEST_FUNCTION);
     291#ifndef __EMX__
    281292    }
    282293  else if (pid < 0)
     
    291302# define TIMEOUT 2
    292303#endif
     304#ifndef __EMX__
    293305  alarm (TIMEOUT);
    294306  signal (SIGALRM, timeout_handler);
     307#endif
    295308
    296309  /* Wait for the regular termination.  */
     
    334347  /* Simply exit with the return value of the test.  */
    335348  return WEXITSTATUS (status);
    336 }
     349#endif /* __EMX__ */
     350}
Note: See TracChangeset for help on using the changeset viewer.