Ignore:
Timestamp:
Sep 13, 2008, 5:27:59 AM (17 years ago)
Author:
bird
Message:

kash: hacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shinstance.h

    r1240 r1784  
    4343#include "shthread.h"
    4444#include "shfile.h"
     45#include "shell.h"
    4546#include "output.h"
    4647#include "options.h"
     
    128129    shtid               tid;            /**< The thread identifier of the thread for this shell. */
    129130    shfdtab             fdtab;          /**< The file descriptor table. */
     131    shsigaction_t       sigactions[NSIG]; /**< The signal actions registered with this shell instance. */
    130132
    131133    /* alias.c */
     
    332334
    333335/* signals */
    334 typedef void (*shsig_t)(shinstance *, int);
    335 #ifdef _MSC_VER
    336     typedef uint32_t shsigset_t;
    337 #else
    338     typedef sigset_t shsigset_t;
    339 #endif
    340 struct shsigaction
    341 {
    342     shsig_t     sh_handler;
    343     shsigset_t  sh_mask;
    344     int         sh_flags;
    345 };
     336#define SH_SIG_UNK ((shsig_t)(intptr_t)-199)
    346337#define SH_SIG_DFL ((shsig_t)SIG_DFL)
    347338#define SH_SIG_IGN ((shsig_t)SIG_IGN)
     339#define SH_SIG_ERR ((shsig_t)SIG_ERR)
    348340#ifdef _MSC_VER
    349341#   define SIG_BLOCK         1
     
    370362int sh_siginterrupt(shinstance *, int, int);
    371363void sh_sigemptyset(shsigset_t *);
     364int sh_sigfillset(shsigset_t *);
     365void sh_sigaddset(shsigset_t *, int);
     366void sh_sigdelset(shsigset_t *, int);
     367int sh_sigismember(shsigset_t *, int);
    372368int sh_sigprocmask(shinstance *, int, shsigset_t const *, shsigset_t *);
    373369void sh_abort(shinstance *) __attribute__((__noreturn__));
     
    418414pid_t sh_fork(shinstance *);
    419415pid_t sh_waitpid(shinstance *, pid_t, int *, int);
    420 void sh__exit(shinstance *, int) __attribute__((__noreturn__));;
     416void sh__exit(shinstance *, int) __attribute__((__noreturn__));
    421417int sh_execve(shinstance *, const char *, const char * const*, const char * const *);
    422418uid_t sh_getuid(shinstance *);
Note: See TracChangeset for help on using the changeset viewer.