Changeset 432a269 in mainline for uspace/lib/posix/sys/wait.h


Ignore:
Timestamp:
2011-09-16T21:13:57Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3a11f17
Parents:
c0e53ff (diff), fd07e526 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/sys/wait.h

    rc0e53ff r432a269  
    11/*
    2  * Copyright (c) 2006 Ondrej Palkovsky
     2 * Copyright (c) 2011 Petr Koupy
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libcipc
     29/** @addtogroup libposix
    3030 * @{
    3131 */
    32 /** @file
     32/** @file Support for waiting.
    3333 */
    3434
    35 #ifndef LIBC_FB_H_
    36 #define LIBC_FB_H_
     35#ifndef POSIX_SYS_WAIT_H_
     36#define POSIX_SYS_WAIT_H_
    3737
    38 #include <ipc/common.h>
     38#include "types.h"
    3939
    40 typedef enum {
    41         FB_PUTCHAR = IPC_FIRST_USER_METHOD,
    42         FB_CLEAR,
    43         FB_GET_CSIZE,
    44         FB_GET_COLOR_CAP,
    45         FB_CURSOR_VISIBILITY,
    46         FB_CURSOR_GOTO,
    47         FB_SCROLL,
    48         FB_VIEWPORT_SWITCH,
    49         FB_VIEWPORT_CREATE,
    50         FB_VIEWPORT_DELETE,
    51         FB_SET_STYLE,
    52         FB_SET_COLOR,
    53         FB_SET_RGB_COLOR,
    54         FB_GET_RESOLUTION,
    55         FB_DRAW_TEXT_DATA,
    56         FB_FLUSH,
    57         FB_DRAW_IMGMAP,
    58         FB_PREPARE_SHM,
    59         FB_DROP_SHM,
    60         FB_SHM2IMGMAP,
    61         FB_VP_DRAW_IMGMAP,
    62         FB_VP2IMGMAP,
    63         FB_DROP_IMGMAP,
    64         FB_ANIM_CREATE,
    65         FB_ANIM_DROP,
    66         FB_ANIM_ADDIMGMAP,
    67         FB_ANIM_CHGVP,
    68         FB_ANIM_START,
    69         FB_ANIM_STOP,
    70         FB_POINTER_MOVE,
    71         FB_SCREEN_YIELD,
    72         FB_SCREEN_RECLAIM
    73 } fb_request_t;
     40#undef WIFEXITED
     41#undef WEXITSTATUS
     42#undef WIFSIGNALED
     43#undef WTERMSIG
     44#define WIFEXITED(status) __posix_wifexited(status)
     45#define WEXITSTATUS(status) __posix_wexitstatus(status)
     46#define WIFSIGNALED(status) __posix_wifsignaled(status)
     47#define WTERMSIG(status) __posix_wtermsig(status)
    7448
    75 enum {
    76         FB_CCAP_NONE = 0,
    77         FB_CCAP_STYLE,
    78         FB_CCAP_INDEXED,
    79         FB_CCAP_RGB
    80 };
     49extern int __posix_wifexited(int status);
     50extern int __posix_wexitstatus(int status);
     51extern int __posix_wifsignaled(int status);
     52extern int __posix_wtermsig(int status);
    8153
     54extern posix_pid_t posix_wait(int *stat_ptr);
     55extern posix_pid_t posix_waitpid(posix_pid_t pid, int *stat_ptr, int options);
     56
     57#ifndef LIBPOSIX_INTERNAL
     58        #define wait posix_wait
     59        #define waitpid posix_waitpid
    8260#endif
     61
     62#endif /* POSIX_SYS_WAIT_H_ */
    8363
    8464/** @}
Note: See TracChangeset for help on using the changeset viewer.