Changeset 1784 for trunk/src/kash/shinstance.h
- Timestamp:
- Sep 13, 2008, 5:27:59 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.h
r1240 r1784 43 43 #include "shthread.h" 44 44 #include "shfile.h" 45 #include "shell.h" 45 46 #include "output.h" 46 47 #include "options.h" … … 128 129 shtid tid; /**< The thread identifier of the thread for this shell. */ 129 130 shfdtab fdtab; /**< The file descriptor table. */ 131 shsigaction_t sigactions[NSIG]; /**< The signal actions registered with this shell instance. */ 130 132 131 133 /* alias.c */ … … 332 334 333 335 /* 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) 346 337 #define SH_SIG_DFL ((shsig_t)SIG_DFL) 347 338 #define SH_SIG_IGN ((shsig_t)SIG_IGN) 339 #define SH_SIG_ERR ((shsig_t)SIG_ERR) 348 340 #ifdef _MSC_VER 349 341 # define SIG_BLOCK 1 … … 370 362 int sh_siginterrupt(shinstance *, int, int); 371 363 void sh_sigemptyset(shsigset_t *); 364 int sh_sigfillset(shsigset_t *); 365 void sh_sigaddset(shsigset_t *, int); 366 void sh_sigdelset(shsigset_t *, int); 367 int sh_sigismember(shsigset_t *, int); 372 368 int sh_sigprocmask(shinstance *, int, shsigset_t const *, shsigset_t *); 373 369 void sh_abort(shinstance *) __attribute__((__noreturn__)); … … 418 414 pid_t sh_fork(shinstance *); 419 415 pid_t sh_waitpid(shinstance *, pid_t, int *, int); 420 void sh__exit(shinstance *, int) __attribute__((__noreturn__)); ;416 void sh__exit(shinstance *, int) __attribute__((__noreturn__)); 421 417 int sh_execve(shinstance *, const char *, const char * const*, const char * const *); 422 418 uid_t sh_getuid(shinstance *);
Note:
See TracChangeset
for help on using the changeset viewer.