diff options
author | mp <mp@FreeBSD.org> | 2004-07-11 02:17:56 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2004-07-11 02:17:56 +0000 |
commit | bbd1addf8f9452690ad13ce5b875ee4cc9633958 (patch) | |
tree | 730792f0cc19f3bb4fb663fe727589381f5901be /contrib/tcsh/tc.func.c | |
parent | f2c2aa29b7d05c53575ab7ce4dc5870fd33a1310 (diff) | |
download | FreeBSD-src-bbd1addf8f9452690ad13ce5b875ee4cc9633958.zip FreeBSD-src-bbd1addf8f9452690ad13ce5b875ee4cc9633958.tar.gz |
Import of tcsh-6.13.00
Diffstat (limited to 'contrib/tcsh/tc.func.c')
-rw-r--r-- | contrib/tcsh/tc.func.c | 10 |
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) { |