Ignore:
Timestamp:
Oct 7, 2007, 9:13:10 PM (18 years ago)
Author:
bird
Message:

kill.c ++

File:
1 edited

Legend:

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

    r1211 r1213  
    2525 */
    2626
    27 #ifndef ___shinstance_h___
    28 #define ___shinstance_h___
     27#ifndef ___shinstance_h
     28#define ___shinstance_h
    2929
    3030#include <stdio.h> /* BUFSIZ */
    3131#include <signal.h> /* NSIG */
     32#ifndef _MSC_VER
     33# include <termios.h>
     34# include <sys/ioctl.h>
     35#endif
    3236
    3337#include "shtypes.h"
     
    4044#include "exec.h"
    4145#include "var.h"
     46
     47#ifdef _MSC_VER
     48# define strcasecmp stricmp
     49# define strncasecmp strnicmp
     50#endif
     51
    4252
    4353/* memalloc.c */
     
    330340#define SH_SIG_DFL ((sh_sig_t)SIG_DFL)
    331341#define SH_SIG_IGN ((sh_sig_t)SIG_IGN)
     342#ifdef _MSC_VER
     343# define SIG_BLOCK          1
     344# define SIG_UNBLOCK        2
     345# define SIG_SETMASK        3
     346# define SIGHUP             5
     347# define SIGQUIT            9
     348# define SIGPIPE            12
     349# define SIGTTOU            17
     350# define SIGTSTP            18
     351# define SIGTTIN            19
     352# define SIGCONT            20
     353#endif /* _MSC_VER */
    332354
    333355int sh_sigaction(int, const struct sh_sigaction *, struct sh_sigaction *);
     
    389411pid_t sh_getpgid(shinstance *, pid_t);
    390412int sh_setpgid(shinstance *, pid_t, pid_t);
     413int sh_kill(shinstance *, pid_t, int);
    391414int sh_killpg(shinstance *, pid_t, int);
    392415
Note: See TracChangeset for help on using the changeset viewer.