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 | fc6d10ab3edf803f748e673fdd1f64a3d9640ca2 (patch) | |
tree | d96ddad6fded51e784b4b77eea8ca0d82efa5497 /contrib/tcsh/tc.func.c | |
parent | 240d7c6f403b210d3609f1593f55dd73266bc844 (diff) | |
parent | bbd1addf8f9452690ad13ce5b875ee4cc9633958 (diff) | |
download | FreeBSD-src-fc6d10ab3edf803f748e673fdd1f64a3d9640ca2.zip FreeBSD-src-fc6d10ab3edf803f748e673fdd1f64a3d9640ca2.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r131962,
which included commits to RCS files with non-trunk default branches.
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) { |