Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp * idle(): rename to idlecmd(). certain linux dis...



details:   https://anonhg.NetBSD.org/src/rev/6c54e9f4bb3e
branches:  trunk
changeset: 476782:6c54e9f4bb3e
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Sep 27 23:32:31 1999 +0000

description:
* idle(): rename to idlecmd(). certain linux distributions have an incompatible
  prototype for idle() in <unistd.h> (which i thought was against namespace
  and sensibility guidelines, but...)
* consistently use xsignal() instead of signal(). we get known behaviour
  in all cases (SA_RESTART), which is good for some borken foreign systems.
* remove signal.h from most files; it's unnecessary now
* fetch_url(): use `long chunksize' instead of ssize_t; it's more portable, and
  we're setting chunksize with strtol() anyway
* xsignal(): only use SA_RESTART if it exists. SunOS 4.x doesn't have it
  but has the inverse (SA_INTERRUPT). the original function i was inspired
  from had this support (lib/signal.c, W. Richard Stevens' `UNP 2nd ed Vol 1').
* remove <termios.h> from util.c; it should be unnecessary now

diffstat:

 usr.bin/ftp/extern.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 679bfa6782fa -r 6c54e9f4bb3e usr.bin/ftp/extern.h
--- a/usr.bin/ftp/extern.h      Mon Sep 27 23:19:12 1999 +0000
+++ b/usr.bin/ftp/extern.h      Mon Sep 27 23:32:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.36 1999/09/26 02:00:12 lukem Exp $        */
+/*     $NetBSD: extern.h,v 1.37 1999/09/27 23:32:31 lukem Exp $        */
 
 /*
  * Copyright (C) 1997 and 1998 WIDE Project.
@@ -108,7 +108,7 @@
 char   *gunique __P((const char *));
 void   help __P((int, char **));
 char   *hookup __P((char *, char *));
-void   idle __P((int, char **));
+void   idlecmd __P((int, char **));
 int     initconn __P((void));
 void   intr __P((void));
 int    isipv6addr __P((const char *));



Home | Main Index | Thread Index | Old Index