Ignore:
Timestamp:
Jan 24, 2004, 4:34:07 AM (22 years ago)
Author:
bird
Message:

Untested port of the GLIBC implementation of the POSIX spawn interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/spawn.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1027 r1028  
    1818   02111-1307 USA.  */
    1919
     20/** @file
     21 * GLIBC 2.3.2
     22 * @changed bird: we don't have features.h, sched.h or the GLIBC standard definitions.
     23 */
     24
    2025#ifndef _SPAWN_H
    2126#define _SPAWN_H        1
    2227
     28#ifndef __EMX__                         /* bird */
    2329#include <features.h>
    2430#include <sched.h>
     31#endif                                  /* bird */
    2532#include <signal.h>
    2633#include <sys/types.h>
     34
     35/* bird - start */
     36#ifdef __EMX__
     37
     38#ifndef __THROW
     39#define __THROW
     40#endif
     41
     42/* GCC 2.95 and later have "__restrict"; C99 compilers have
     43   "restrict", and "configure" may have defined "restrict".  */
     44#ifndef __restrict
     45# if ! (2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__))
     46#  if defined restrict || 199901L <= __STDC_VERSION__
     47#   define __restrict restrict
     48#  else
     49#   define __restrict
     50#  endif
     51# endif
     52#endif
     53
     54/* GCC 3.1 and later support declaring arrays as non-overlapping
     55   using the syntax array_name[restrict]  */
     56#ifndef __restrict_arr
     57# if ! (3 < __GNUC__ || (3 == __GNUC__ && 1 <= __GNUC_MINOR__)) || defined (__GNUG__)
     58#  define __restrict_arr
     59# else
     60#  define __restrict_arr __restrict
     61# endif
     62#endif
     63
     64/** @todo implement sched.h */
     65struct sched_param {
     66        int     sched_priority;
     67};
     68#define SCHED_FIFO      1
     69#define SCHED_OTHER     2
     70#define SCHED_RR        3
     71
     72#endif
     73/* bird - end */
    2774
    2875
Note: See TracChangeset for help on using the changeset viewer.