OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [vx-share/] [wait.h] - Diff between revs 107 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/* wait.h - header file for remote wait call */
/* wait.h - header file for remote wait call */
 
 
/*  Copyright 1992 Free Software Foundation, Inc.
/*  Copyright 1992 Free Software Foundation, Inc.
 
 
    This code was donated by Wind River Systems, Inc. */
    This code was donated by Wind River Systems, Inc. */
 
 
/*
/*
modification history
modification history
--------------------
--------------------
01a,05jun90,llk  borrowed.
01a,05jun90,llk  borrowed.
*/
*/
 
 
/* Define how to access the structure that the wait system call stores.
/* Define how to access the structure that the wait system call stores.
   On many systems, there is a structure defined for this.
   On many systems, there is a structure defined for this.
   But on vanilla-ish USG systems there is not.  */
   But on vanilla-ish USG systems there is not.  */
 
 
#ifndef HAVE_WAIT_STRUCT
#ifndef HAVE_WAIT_STRUCT
#define WAITTYPE int
#define WAITTYPE int
#define WIFSTOPPED(w) (((w)&0377) == 0177)
#define WIFSTOPPED(w) (((w)&0377) == 0177)
#define WIFSIGNALED(w) (((w)&0377) != 0177 && ((w)&~0377) == 0)
#define WIFSIGNALED(w) (((w)&0377) != 0177 && ((w)&~0377) == 0)
#define WIFEXITED(w) (((w)&0377) == 0)
#define WIFEXITED(w) (((w)&0377) == 0)
#define WRETCODE(w) ((w) >> 8)
#define WRETCODE(w) ((w) >> 8)
#define WSTOPSIG(w) ((w) >> 8)
#define WSTOPSIG(w) ((w) >> 8)
#define WCOREDUMP(w) (((w)&0200) != 0)
#define WCOREDUMP(w) (((w)&0200) != 0)
#define WTERMSIG(w) ((w) & 0177)
#define WTERMSIG(w) ((w) & 0177)
#define WSETEXIT(w, status) ((w) = (status))
#define WSETEXIT(w, status) ((w) = (status))
#define WSETSTOP(w,sig)  ((w) = (0177 | ((sig) << 8)))
#define WSETSTOP(w,sig)  ((w) = (0177 | ((sig) << 8)))
#else
#else
#if FALSE
#if FALSE
#ifndef ORIG
#ifndef ORIG
 
 
/* don't include sys/wait.h */
/* don't include sys/wait.h */
 
 
#else ORIG
#else ORIG
#include <sys/wait.h>
#include <sys/wait.h>
#endif ORIG
#endif ORIG
#endif FALSE
#endif FALSE
#define WAITTYPE union wait
#define WAITTYPE union wait
#define WRETCODE(w) (w).w_retcode
#define WRETCODE(w) (w).w_retcode
#define WSTOPSIG(w) (w).w_stopsig
#define WSTOPSIG(w) (w).w_stopsig
#define WCOREDUMP(w) (w).w_coredump
#define WCOREDUMP(w) (w).w_coredump
#define WTERMSIG(w) (w).w_termsig
#define WTERMSIG(w) (w).w_termsig
#define WSETEXIT(w, status) ((w).w_status = (status))
#define WSETEXIT(w, status) ((w).w_status = (status))
#define WSETSTOP(w,sig)  \
#define WSETSTOP(w,sig)  \
  ((w).w_stopsig = (sig), (w).w_coredump = 0, (w).w_termsig = 0177)
  ((w).w_stopsig = (sig), (w).w_coredump = 0, (w).w_termsig = 0177)
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.