Ignore:
Timestamp:
Nov 8, 2004, 10:57:37 AM (21 years ago)
Author:
bird
Message:

Having a go at waitid (and waitpid()/wait()).

Location:
trunk/src/emx/include/InnoTekLIBC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.11 to 1.12
    r1626 r1627  
    3030#include <sys/cdefs.h>
    3131#include <sys/types.h>
     32#include <sys/_timeval.h>
     33#include <sys/resource.h>
     34#include <sys/wait.h>
    3235#include <signal.h>
    3336#include <emx/io.h>
     
    657660/** @} */
    658661
     662
     663
     664/** @defgroup grp_Back_process  LIBC Backend - Process Management
     665 * @{ */
     666
     667/**
     668 * Waits/polls for on one or more processes to change it's running status.
     669 *
     670 * @returns 0 on success, pSigInfo containing status info.
     671 * @returns -1 and errno on failure.
     672 * @param   enmIdType   What kind of process specification Id contains.
     673 * @param   Id          Process specification of the enmIdType sort.
     674 * @param   pSigInfo    Where to store the result.
     675 * @param   fOptions    The WEXITED, WUNTRACED, WSTOPPED and WCONTINUED flags are used to
     676 *                      select the events to report. WNOHANG is used for preventing the api
     677 *                      from blocking. And WNOWAIT is used for peeking.
     678 * @param   pResUsage   Where to store the reported resources usage for the child.
     679 *                      Optional and not implemented on OS/2.
     680 */
     681int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
     682
     683/** @} */
     684
    659685__END_DECLS
    660686
  • trunk/src/emx/include/InnoTekLIBC/sharedpm.h

    • Property cvs2svn:cvs-rev changed from 1.14 to 1.15
    r1626 r1627  
    550550
    551551/**
     552 * Gets the exit code and reason of death for a specific child process
     553 * which is believed to have died.
     554 *
     555 * @returns 0 on success.
     556 * @returns Negative error code (errno.h) on failure.
     557 * @param   pid                 Process id.
     558 * @param   pendDeathReason     Where to store the death reason.
     559 * @param   piExitCode          Where to store the exit code.
     560 */
     561int __libc_spmReapChild(pid_t pid, __LIBC_EXIT_REASON *penmDeathReason, int *piExitCode);
     562
     563/**
    552564 * Locks the LIBC shared memory for short exclusive access.
    553565 * The call must call __libc_spmUnlock() as fast as possible and make
  • trunk/src/emx/include/InnoTekLIBC/thread.h

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r1626 r1627  
    545545void (*__libc_TLSGetDestructor(int iTLSIndex, unsigned *pfFlags))(void *, int, unsigned);
    546546
     547/* fix later */
     548int __libc_back_threadCreate(void (*pfnStart)(void *), unsigned cbStack, void *pvArg, int fInternal);
     549
    547550/** @} */
    548551
Note: See TracChangeset for help on using the changeset viewer.