Changed u_int_inb to just inb and deleted define.
The code generated is identical to that generated with the cast so
the problem was obviously fixed at some point after gcc 1.4
Reviewed by:
Submitted by:
hosing syscons. Doesn anyone know anything about this
or can we just delete it now?
/*
* This roundabout method of returning a u_char helps stop gcc-1.40 from
* generating unnecessary movzbl's.
*/
#ifdef disable_for_gcc-2_6_0
#define inb(port) ((u_char) u_int_inb(port))
#endif
static inline u_int
u_int_inb(u_int port)
{
u_char data;
/*
* We use %%dx and not %1 here because i/o is done at %dx and
not at
* %edx, while gcc-2.2.2 generates inferior code (movw instead
of movl)
* if we tell it to load (u_short) port.
*/
__asm __volatile("inb %%dx,%0" : "=a" (data) : "d" (port));
return data;
}
Reviewed by:
Submitted by:
FDs and fork before redialing) to prevent dialer from hanging with
newer sio.c.
Also moved history from the source to the cvs log (here) per
David G's suggestion.
This compiles but needs testing now... Rich
/*
* Hacks to support "-a|c|n" flags on the command line which enable VJ
* header compresion and disable ICMP.
* If this is good all rights go to B & L Jolitz, otherwise send your
* comments to Reagan (/dev/null).
*
* nerd@percival.rain.com (Michael Galassi) 92.09.03
*
* Hacked to change from sgtty to POSIX termio style serial line control
* and added flag to enable cts/rts style flow control.
*
* blymn@awadi.com.au (Brett Lymn) 93.04.04
*
* Put slattach in it's own process group so it can't be killed
* accidentally. Close the connection on SIGHUP and SIGINT. Write a
* syslog entry upon opening and closing the connection. Rich Murphey
* and Brad Huntting.
*
* Add '-r command' option: runs 'command' upon recieving SIGHUP
* resulting from loss of carrier. Log any errors after forking.
* Rich 8/13/93
*
* This version of slattach includes many changes by David Greenman, Brian
* Smith, Chris Bradley, and me (Michael Galassi). None of them are
* represented as functional anywhere outside of RAINet though they do work
* for us. Documentation is limited to the usage message for now. If you
* make improovments please pass them back.
*
* Added '-u UCMD' which runs 'UCMD <old> <new>' whenever the slip
* unit number changes where <old> and <new> are the old and new unit
* numbers, respectively. Also added the '-z' option which forces
* invocation of the redial command (-r CMD) upon startup regardless
* of whether the com driver claims (sometimes mistakenly) that
* carrier is present. Also added '-e ECMD' which runs ECMD before
* exiting.
*
* marc@escargot.rain.com (Marc Frajola) 93/09/10
*
* Minor fixes to allow passive SLIP links to work (connections with
* modem control that do not have an associated dial command). Added
* code to re-check for carrier after dial command has been executed.
* Added SIGTERM handler to properly handle normal kill signals. Fixed
* bug in logic that caused message about no -u command to be logged
* even when -u was specified and the sl number changes. Tried to get
* rid of redundant syslog()'s to minimize console log output. Improved
* logging of improper command line options or number of command
* arguments. Removed spurious newline characters from syslog() calls.
*
* gjung@gjbsd.franken.de
*
* sighup_handler changed to set CLOCAL before running redial_cmd.
* added flag exiting, so exit_handler is not run twice. Fork
* before reopening tty.
*/
Added a missing #ifdef INET wrapper in lpt.c
Main change:
Removed the timeout_func_t casts from timeout calls and
correctly defined the timeout routines to conform to
the new format.
lpt.c doesn't have this change.
Reviewed by:
Submitted by:
a slight change in how profiled version is selected - may need to adjust
some .mk macros if PROF is foolishly initialized anywhere to a null value.
Submitted by: jkh
as dummies.
(If you do not have libcrypt in your system, you are now HOSED.)
People outside the USA can now freely SUP lib.
(The only bits of the tree with encryption stuff in are now rc/secure and
src/kerberosIV.)
Submitted by: Geoff.
revision. They caused redundant redeclaration warnings because I
forgot to declare them as extern and gcc-2.6.0 treats "extern int x[];"
slightly different from "int x[];" (this is probably a bug). The new
versions will cause RR warnings from gcc-2.4.5 because it does not
understand that the second declaration in "extern int x[]; int x[1];"
is not redundant. The variables don't actually need to be declared
in a header file because they are used in only one C source file and
one assembler source file, but I want all public variables and
comments about them to be findable by grepping *.h.
<machine/profile.h>. The old version was writing an incomplete
header without the profrate field that is necessary to handle the
current faster profiling clock. The counters that are where the
the profrate should be are usually 0 and gprof converts a profrate
of 0 to hz so the old version gave times too large by a factor of
profhz/hz = 10.24.
and then also add a declaration of ernno as an extern int, because we
lose that due to having KERNEL defined while we include errno.h.
Reviewed by: Geoff.
special ports building targets and will recurse properly. Sorry,
Julian E - no fancy prompts, just recursion! :-)
Added a `bundle' target. Purpose is as follows:
You want to give someone a complete tree sans distfiles (for
sticking on CDROM perhaps?) but the difficulty there is that
the first time the user types `make clean', all the unpacked
sources are gone again. Typing `make bundle' recreates the
original distfile if it can, so someone can "back up" their
unpacked tree easily with one command.
Whoops, just thought of something - it should warn if you
configured the working source.
Ok, next commit! :)
Submitted by: jkh