summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/tc.func.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcsh/tc.func.c')
-rw-r--r--contrib/tcsh/tc.func.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/tcsh/tc.func.c b/contrib/tcsh/tc.func.c
index 427c2d1..9b1490b 100644
--- a/contrib/tcsh/tc.func.c
+++ b/contrib/tcsh/tc.func.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/tc.func.c,v 3.105 2002/07/12 13:16:18 christos Exp $ */
+/* $Header: /src/pub/tcsh/tc.func.c,v 3.107 2003/05/16 18:10:29 christos Exp $ */
/*
* tc.func.c: New tcsh builtins.
*/
@@ -32,7 +32,7 @@
*/
#include "sh.h"
-RCSID("$Id: tc.func.c,v 3.105 2002/07/12 13:16:18 christos Exp $")
+RCSID("$Id: tc.func.c,v 3.107 2003/05/16 18:10:29 christos Exp $")
#include "ed.h"
#include "ed.defns.h" /* for the function names */
@@ -689,7 +689,7 @@ xgetpass(prm)
sigint = (signalfun_t) sigset(SIGINT, SIG_IGN);
(void) Rawmode(); /* Make sure, cause we want echo off */
- if ((fd = open("/dev/tty", O_RDWR)) == -1)
+ if ((fd = open("/dev/tty", O_RDWR|O_LARGEFILE)) == -1)
fd = SHIN;
xprintf("%s", prm); flush();
@@ -1759,7 +1759,7 @@ doaliases(v, c)
trim(v);
}
- if ((fd = open(tmp = short2str(*v), O_RDONLY)) < 0)
+ if ((fd = open(tmp = short2str(*v), O_RDONLY|O_LARGEFILE)) < 0)
stderror(ERR_NAME | ERR_SYSTEM, tmp, strerror(errno));
getexit(oldexit);
@@ -2163,7 +2163,7 @@ getremotehost()
* have not caught up yet.
*/
addr.s_addr = inet_addr(name);
- if (addr.s_addr != (unsigned long)~0)
+ if (addr.s_addr != (unsigned int)~0)
host = name;
else {
if (sptr != name) {
OpenPOWER on IntegriCloud