summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
64c3971)
SCCS-vsn: bin/csh/alloc.c 4.2
SCCS-vsn: bin/csh/func.c 4.8
SCCS-vsn: bin/csh/csh.h 4.7
SCCS-vsn: bin/csh/lex.c 4.2
SCCS-vsn: bin/csh/proc.h 4.4
-static char *sccsid = "@(#)alloc.c 4.1 %G%";
+static char *sccsid = "@(#)alloc.c 4.2 %G%";
#include "sh.local.h"
#ifdef debug
#include "sh.local.h"
#ifdef debug
i = ((unsigned) q - (unsigned) p);
if (testbusy(p->ptr)) used += i; else free += i;
}
i = ((unsigned) q - (unsigned) p);
if (testbusy(p->ptr)) used += i; else free += i;
}
- printf("%d used, %d free, %l end\n", used, free, clearbusy(alloct));
+ printf("%d used, %d free, %ld end\n", used, free, clearbusy(alloct));
-/* csh.h 4.6 83/02/03 */
+/* csh.h 4.7 83/02/09 */
#include "sh.local.h"
#include <time.h>
#include "sh.local.h"
#include <time.h>
char *doldol; /* Character pid for $$ */
int uid; /* Invokers uid */
time_t chktim; /* Time mail last checked */
char *doldol; /* Character pid for $$ */
int uid; /* Invokers uid */
time_t chktim; /* Time mail last checked */
-short shpgrp; /* Pgrp of shell */
-short tpgrp; /* Terminal process group */
+int shpgrp; /* Pgrp of shell */
+int tpgrp; /* Terminal process group */
/* If tpgrp is -1, leave tty alone! */
/* If tpgrp is -1, leave tty alone! */
-short opgrp; /* Initial pgrp and tty pgrp */
+int opgrp; /* Initial pgrp and tty pgrp */
int oldisc; /* Initial line discipline or -1 */
struct tms shtimes; /* shell and child times for process timing */
int oldisc; /* Initial line discipline or -1 */
struct tms shtimes; /* shell and child times for process timing */
-static char *sccsid = "@(#)func.c 4.7 82/12/30";
+static char *sccsid = "@(#)func.c 4.8 83/02/09";
#include "sh.h"
#include <sys/ioctl.h>
#include "sh.h"
#include <sys/ioctl.h>
dosuspend()
{
int old, ldisc;
dosuspend()
{
int old, ldisc;
if (loginsh)
error("Can't suspend a login shell (yet)");
if (loginsh)
error("Can't suspend a login shell (yet)");
-static char *sccsid = "@(#)lex.c 4.1 %G%";
+static char *sccsid = "@(#)lex.c 4.2 %G%";
return (-1);
/* was isatty but raw with ignoreeof yields problems */
if (ioctl(SHIN, TIOCGETP, &tty)==0 && (tty.sg_flags & RAW) == 0) {
return (-1);
/* was isatty but raw with ignoreeof yields problems */
if (ioctl(SHIN, TIOCGETP, &tty)==0 && (tty.sg_flags & RAW) == 0) {
if (++sincereal > 25)
goto oops;
if (++sincereal > 25)
goto oops;
/*
* C shell - process structure declarations
/*
* C shell - process structure declarations
short unsigned p_flags; /* various job status flags */
char p_reason; /* reason for entering this state */
char p_index; /* shorthand job index */
short unsigned p_flags; /* various job status flags */
char p_reason; /* reason for entering this state */
char p_index; /* shorthand job index */
- short p_pid;
- short p_jobid; /* pid of job leader */
+ int p_pid;
+ int p_jobid; /* pid of job leader */
/* if a job is stopped/background p_jobid gives its pgrp */
struct timeval p_btime; /* begin time */
struct timeval p_etime; /* end time */
/* if a job is stopped/background p_jobid gives its pgrp */
struct timeval p_btime; /* begin time */
struct timeval p_etime; /* end time */