projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't put anything after the #else or #endif's, unless it's a comment
[unix-history]
/
usr
/
src
/
bin
/
csh
/
csh.c
diff --git
a/usr/src/bin/csh/csh.c
b/usr/src/bin/csh/csh.c
index
4a69047
..
5e71778
100644
(file)
--- a/
usr/src/bin/csh/csh.c
+++ b/
usr/src/bin/csh/csh.c
@@
-12,12
+12,22
@@
char copyright[] =
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)csh.c 5.2
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)csh.c 5.2
5
(Berkeley) %G%";
#endif /* not lint */
#endif /* not lint */
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <pwd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <locale.h>
+#include <unistd.h>
#include "csh.h"
#include "csh.h"
-#include "dir.h"
#include "extern.h"
#include "extern.h"
+#include "pathnames.h"
extern bool MapsAreInited;
extern bool NLSMapsAreInited;
extern bool MapsAreInited;
extern bool NLSMapsAreInited;
@@
-436,7
+446,7
@@
notty:
/* Will have value(STRhome) here because set fast if don't */
{
int osetintr = setintr;
/* Will have value(STRhome) here because set fast if don't */
{
int osetintr = setintr;
- sig
mask
_t omask = sigblock(sigmask(SIGINT));
+ sig
set
_t omask = sigblock(sigmask(SIGINT));
setintr = 0;
#ifdef _PATH_DOTCSHRC
setintr = 0;
#ifdef _PATH_DOTCSHRC
@@
-596,7
+606,7
@@
srcunit(unit, onlyown, hflg)
bool otell = cantell;
struct Bin saveB;
bool otell = cantell;
struct Bin saveB;
- sig
mask
_t omask;
+ sig
set
_t omask;
jmp_buf oldexit;
/* The (few) real local variables */
jmp_buf oldexit;
/* The (few) real local variables */
@@
-784,9
+794,9
@@
pintr1(wantnl)
bool wantnl;
{
register Char **v;
bool wantnl;
{
register Char **v;
- sig
mask
_t omask;
+ sig
set
_t omask;
- omask = sigblock((sig
mask
_t) 0);
+ omask = sigblock((sig
set
_t) 0);
if (setintr) {
(void) sigsetmask(omask & ~sigmask(SIGINT));
if (pjobs) {
if (setintr) {
(void) sigsetmask(omask & ~sigmask(SIGINT));
if (pjobs) {
@@
-855,7
+865,7
@@
process(catch)
* Interruptible during interactive reads
*/
if (setintr)
* Interruptible during interactive reads
*/
if (setintr)
- (void) sigsetmask(sigblock((sig
mask
_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock((sig
set
_t) 0) & ~sigmask(SIGINT));
/*
* For the sake of reset()
/*
* For the sake of reset()