Ignore:
Timestamp:
Oct 7, 2007, 7:09:24 PM (18 years ago)
Author:
bird
Message:

jobs and other stuff.

File:
1 edited

Legend:

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

    r1206 r1207  
    2929
    3030#include <stdio.h> /* BUFSIZ */
     31#include <signal.h> /* NSIG */
    3132
    3233#include "shtypes.h"
     
    191192
    192193    /* jobs.h */
    193     pid_t               backgndpid   /**< pid of last background process */
     194    pid_t               backgndpid/* = -1 */;   /**< pid of last background process */
    194195    int                 job_warning;    /**< user was warned about stopped jobs */
     196
     197    /* jobs.c */
     198    struct job         *jobtab;         /**< array of jobs */
     199    int                 njobs;          /**< size of array */
     200    int                 jobs_invalid;   /**< set in child */
     201#if JOBS
     202    int                 initialpgrp;    /**< pgrp of shell on invocation */
     203    int                 curjob/* = -1*/;/**< current job */
     204#endif
     205    int                 ttyfd/* = -1*/;
     206    int                 jobctl;         /**< job control enabled / disabled */
     207    char               *cmdnextc;
     208    int                 cmdnleft;
    195209
    196210    /* input.h */
     
    262276    char              **t_wp;
    263277    struct t_op const  *t_wp_op;
     278
     279    /* trap.c */
     280    char                gotsig[NSIG];   /**< indicates specified signal received */
    264281
    265282} shinstance;
     
    331348gid_t sh_getgid(shinstance *);
    332349gid_t sh_getegid(shinstance *);
    333 
    334 #endif
     350pid_t sh_getpid(shinstance *);
     351pid_t sh_getpgrp(shinstance *);
     352pid_t sh_getpgid(shinstance *, pid_t);
     353int sh_setpgid(shinstance *, pid_t, pid_t);
     354int sh_killpg(shinstance *, pid_t, int);
     355
     356/* tc* */
     357pid_t sh_tcgetpgrp(shinstance *, int);
     358int sh_tcsetpgrp(shinstance *, int, pid_t);
     359
     360#endif
Note: See TracChangeset for help on using the changeset viewer.