Linux-Development-Sys Digest #148, Volume #7 Fri, 3 Sep 99 20:13:52 EDT
Contents:
Re: Clarification on use of ?: in the Linux networking code ... (Paul Kimoto)
Re: Calling a BIOS interrupt (Gregory Hayrapetian)
Re: TAO: the ultimate OS (Peter T. Breuer)
Re: Linux standards compliance (Tristan Wibberley)
Re: Clarification on use of ?: in the Linux networking code ... (Paul D. Smith)
Re: PROPOSAL: A secure, simple NIS replacement (Gary Mills)
Re: Multipoint protocol? ("Christopher R. Thompson")
Re: Clarification on use of ?: in the Linux networking code ... (Tramm Hudson)
Re: How to configure HP Deskjet 722C for linux? (Mircea)
Re: Help Compiling GCC 2.95.1 (Please!! ) (Nix)
Re: Linux standards compliance (Nix)
help with .so libs ! ("Delayen Laurent")
HP Night Director PLus 10/100 ethernet driver? (Neeraj Purandare)
Re: Stop the VFS from buffering form by ch dev driver (Kaz Kylheku)
I am a dope. Re: LILO oddity. (Omri Schwarz)
Linux networking protocols documentation ([EMAIL PROTECTED])
Re: SCSI device scan order. (Richard Bumby)
please help on pidhash (Virginie Galtier)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Clarification on use of ?: in the Linux networking code ...
Date: 3 Sep 1999 14:35:39 -0500
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Ramesh Shankar wrote:
> Okay, I checked up K&R, H&S and the C FAQ. Nothing has been mentioned
> about a case where nothing is specified between the ? and : in a
> ternary operator.
This is a GNU C extension, documented in the gcc info pages under
C Extensions => Conditionals.
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: Gregory Hayrapetian <[EMAIL PROTECTED]>
Subject: Re: Calling a BIOS interrupt
Date: Fri, 03 Sep 1999 19:57:22 +0200
Julien Tayon schrieb:
> I don't have the beginning of the thread so my answer relies on both
> what I read from the thread and the subject.
> I am also trying to do a bios Call. I don't have the time right now to
> do it, but I have read "the Programmer's guide to the EGA VGA, & SVGA
> card" by Ferrarro wich detail how to do a vesa BIOS call in protected
> mode page 881 (<=> without using the interrupt).
> I also suspect the vesa-frame buffer device driver to do two bios call
> without calling the int 0x10. (search for the asm keyword)
> I am currently working on it. And, would be glad to work with others on
> the subject.
>
> Julien Tayon.
Yes, the vesa frame buffer driver use the protected mode interface which
is
supported since VESA 2.0. But there are only bank setting, start address
setting
and pallete setting functions. So you are very restricted in protected
mode.
You can�t change the video mode or other things.
-- Greg
------------------------------
From: [EMAIL PROTECTED] (Peter T. Breuer)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: 3 Sep 1999 19:35:41 GMT
Reply-To: [EMAIL PROTECTED]
Peter da Silva ([EMAIL PROTECTED]) wrote:
: In article <7qodqd$mtv$[EMAIL PROTECTED]>,
: Peter T. Breuer <[EMAIL PROTECTED]> wrote:
: > The present king of france does not exist.
: I guess the monarchy's royalty backup procedures were inadequate. They should
: have had an offsite heir in Martinique or something.
yes, a realtime mirror.
Peter
------------------------------
From: Tristan Wibberley <[EMAIL PROTECTED]>
Subject: Re: Linux standards compliance
Date: Sat, 04 Sep 1999 02:46:00 +0100
Reply-To: [EMAIL PROTECTED]
Syd Barrett wrote:
>
> How far along is Linux in being compliant with two new standards coming into
> the fore -- CUPS (Common Unix Printing System) and UDI (Uniform Driver
> Interface)? Any kernel gurus have any info?
CUPS is user space software. It was written well so it runs on *many*
OS's including Linux.
UDI is unlikely to be supported unless there is any *real* demand for
it. The kernel developers won't count idealism as "real demand". There
is currently greater demand for real Linux drivers than for UDI drivers
- which is probably a good thing because hardware drivers usually need
to be GPL or at least Open Source in order to be maintained well and
Linux encourages that - UDI drivers will not need that at all and people
will end up being forced to insert binary only modules that are poorly
written and tend to crash a system.
This is a *very* good reason to be cautious - UDI will introduce a lot
of politics that is bad for consumers and only good for shareholders.
This in itself is probably enough for major hardware venders to refuse
to support Linux unless it supports UDI drivers - they aren't interested
in their customers wellbeing, only their money. A hardware vendors
attitude towards Linux and UDI will tell you a lot about whether you can
trust them.
--
Tristan Wibberley
PS, note that I said it's a "good reason to be cautious" - not a "good
reason to absolutely refuse to accept them".
------------------------------
From: [EMAIL PROTECTED] (Paul D. Smith)
Subject: Re: Clarification on use of ?: in the Linux networking code ...
Date: 03 Sep 1999 14:44:35 -0400
Reply-To: [EMAIL PROTECTED]
%% [EMAIL PROTECTED] (Ramesh Shankar) writes:
rs> While reading the Linux networking code, I found the ternary (?:)
rs> operator to be used in this fashion in many places:
rs> (res).fi->fib_prefsrc? : __fib_res_prefsrc(&res)
rs> Note that there is nothing between the ? and the :
rs> Okay, I checked up K&R, H&S and the C FAQ. Nothing has been mentioned
rs> about a case where nothing is specified between the ? and : in a
rs> ternary operator.
Undoubtedly.
rs> Microsoft C compiler gives an error for the same.
I'm sure.
rs> What does the C standard say about this?
Nothing. Or more accurately, it says this is an illegal construct.
rs> Is this a bug?
Depends on your point of view :).
This form of the ternary operator is an extension provided by GCC. It's
one of my favourite ones; I think it's really handy in a great many
cases and it's currently a syntax error so there're no
backward-compatibility issues.
See the GCC manual for details, but basically it's as you suspected: if
there's no entry between the ? and : then the result of the expression
is the result of the test. "x = <test> ? : <else>" is essentially a
shorthand way of writing:
{
<type-of-x> tmp = <test>;
if (tmp)
x = tmp;
else
x = <else>;
}
However, it's obviously completely non-portable to any compiler other
than GCC, so I've never actually used it in any code I've ever written.
The Linux kernel, though, is already very deeply tied to GCC in many
ways, so I guess they figured, no harm in getting in deeper!
HTH.
--
===============================================================================
Paul D. Smith <[EMAIL PROTECTED]> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
===============================================================================
These are my opinions---Nortel Networks takes no responsibility for them.
------------------------------
From: [EMAIL PROTECTED] (Gary Mills)
Crossposted-To: comp.security.unix
Subject: Re: PROPOSAL: A secure, simple NIS replacement
Date: 3 Sep 1999 19:25:45 GMT
In <7q0vdj$sh5$[EMAIL PROTECTED]> [EMAIL PROTECTED] writes:
>Don't know about netinfo. My idea was simply this: distribute
>/etc/passwd information on UNIX systems without compromising security
>(the way NIS does). The very complex ideas cited by others miss this
>point. I don't want something that can slice my vegetables, I want a
>distributed /etc/passwd in as small an amount of code as possible.
We're also looking for a replacement for NIS, but our emphasis is
on reliability, managability, and performance, rather that exclusively
on security. We have about 30,000 users, which strains the limits
of the dbm files used for NIS. A ypserv clone that used a real
database back-end would be a good start. Using a secure authentication
protocol via PAM against the same database would also be good.
We also need a convenient way to give and revoke access for users
to specific hosts or services.
Any suggestions or pointers to something suitable would be appreciated.
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
------------------------------
From: "Christopher R. Thompson" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Multipoint protocol?
Date: Fri, 03 Sep 1999 12:59:03 -0700
Bartosz Klimek wrote:
>
> Hello, Pablo.
>
> Pablo Yaggi wrote:
> >
> > I build a fast serial port board (sync type) for the isa slot.
> > Now I have the following configuration, 3 PCs with that kind of boards
> > on
> > diferent subnets and a concentrator device that makes possible that all
> > boards transfer to or recive from the others simultaniusly, this
> > concetrator acts like a hub, but the devices attached to it doesn't have
> > MAC addresses.
> (...)
>
> I wonder how you want to identify the sender or receiver of the data
> without MAC addresses. It looks like a "broadcast-only" network. If you
> give IP numbers to your PCs, you will have to translate them to
> addresses understandable to the data-link layer. How are you going to do
> it?
>
> Best reagards,
Don't we have some sdlc/hdlc 3270 like drivers in the kernel?
>
> --
> Bartosz Klimek
> mailto:[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Tramm Hudson)
Subject: Re: Clarification on use of ?: in the Linux networking code ...
Date: 3 Sep 1999 14:32:53 -0600
# posted and cc'd to Paul and Ramesh, followups set to comp.lang.misc.
# No more Linux content here...
Paul D. Smith <[EMAIL PROTECTED]> wrote:
...
> This form of the ternary operator is an extension provided by GCC. It's
> one of my favourite ones; I think it's really handy in a great many
> cases and it's currently a syntax error so there're no
> backward-compatibility issues.
>
> See the GCC manual for details, but basically it's as you suspected: if
> there's no entry between the ? and : then the result of the expression
> is the result of the test. "x = <test> ? : <else>" is essentially a
> shorthand way of writing:
>
> {
> <type-of-x> tmp = <test>;
> if (tmp)
> x = tmp;
> else
> x = <else>;
> }
And Perl redefined the binary relation operators to return the first
true value encountered during the short-circuit evaluation. This
makes much of the ? : style operators unnecessary since you can write:
$x ||= $foo || $bar || 'default';
is equivilant to:
$x = $x ? $x : $foo ? $foo : $bar ? $bar : 'default';
or even more verbose:
if( $x ) {
# Do nothing
} else {
my $tmp = $foo;
if( $tmp ) {
$x = $tmp;
} else {
my $tmp = $bar;
if( $tmp ) {
$x = $tmp;
} else {
$x = 'default';
}
}
}
But no one would ever write it that way. Right?
And, of course, those values are not limited to just scalars. They
may be full expressions and of arbitrary type.
Tramm
--
o [EMAIL PROTECTED] [EMAIL PROTECTED] O___|
/|\ http://www.swcp.com/~hudson/ H 505.323.38.81 /\ \_
<< KC5RNF @ N5YYF.NM.AMPR.ORG W 505.284.24.32 \ \/\_\
0 U \_ |
------------------------------
From: Mircea <[EMAIL PROTECTED]>
Subject: Re: How to configure HP Deskjet 722C for linux?
Date: Fri, 03 Sep 1999 16:34:51 -0400
[EMAIL PROTECTED] wrote:
>
> Hello All,
>
> I have a Compaq Presario Pentium 400MHz and a HP Deskjet Printer(722C).
> I am not able to use the printer in the Linux environment. This is the
> only single reason I am using windows. Otherwise I would remove the
> Windows from my system and I will be using Linux as my default OS.
> I tried all types of research to use the printer but I do not know
> whether I am missing out anything. I appreciate your help in solving
> this problem.
http://www.httptech.com/ppa/
MST
------------------------------
From: Nix <$}xinix{[email protected]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.development.apps
Subject: Re: Help Compiling GCC 2.95.1 (Please!! )
Date: 03 Sep 1999 21:52:43 +0100
[EMAIL PROTECTED] (John McDonald, Jr.) writes:
> Okay, so I'm trying to install Gcc 2.95.1 on an Ultra Enterprise 450,
> running Solaris 2.5.1.
... without patch 107058-01, or you wouldn't get this far...
> 1. Untar gcc-2.95.1.tar.gz into /u7/gcc-2.95.1/
> 2. Mkdir /u7/objdir
> 3. Chdir /u7/objdir
Good, objdir!=srcdir...
> 4. '../gcc-2.95.1/configure --prefix=/u7/installs/gcc-2.95.1 \
> --with-local-prefix=/u7/installs/gcc-2.95.1\
> --with-gxx-include-dir=/u7/installs/gcc-2.95.1/include/g++'
> 5. Configure whirrs on for a while, doing its thing...
> 6. No errors, normal termination of configure.
You might want to stick --verbose on there so you can see *exactly*
what's going on, but if it looks OK...
> 7. 'make bootstrap MAKE="make -j 4" -j 4'
Is `make' GNU make? Solaris make is (still!) not POSIX-compliant enough,
and gcc building isn't tested very much with non-GNU makes to my
knowledge.
> 8. This whirrs on for about 15 minutes (on 4 processors, oh yeah!)
*boggle* 15 minutes to build gcc? I want that machine.
> 9. A few warnings, but no errors. Normal termination of make.
> 10. 'make install'
No make check? Oh, hang on, there's no testsuite in 2.95.1, is
there. Bugger. (It's still in CVS you see so I'm used to it being
there.)
> Now, I changedir to /u7/installs/gcc-2.95.1/, and the binaries are in
> /bin, and the libs are in /lib, and everything seems alright, except
And the extra stuff is in lib/gcc-lib/.... ? (If not then nothing will
work ;) )
> there are NO INCLUDE files in /include. The g++ include files are in
> /include/g++, but there are no other headers in this distribution.
Indeed, the only other ones are the fixed system includes from your OS.
> This seems a bit puzzling to me, and my stuff tends to fail when I'm
> unable to include the necessary files... Hmm..
Er, yes, you need C headers already on your machine. gcc does not
include them. The g++ stuff is for the Standard C++ Library (or, rather,
with that C library, the nonstandard C++ library, the real library is
still being worked on :) ).
gcc will pick up the standard Solaris headers in /usr/include and fix
them for itself, but it does not try to second-guess Sun by providing
its own. The people who provided the C library (i.e. Sun) must provide
headers for that library too.
> Anyone have any ideas? Is it possible that the install is noting that
> I already have include headers somewhere else, so its not installing
> them? They didn't get put in /usr/include, or /usr/local/include, so
> I don't know what happened to them or if perhaps they simply weren't
> included....
If you're expecting things like stdio.h, they are not part of gcc but
part of the C library on your system.
> We've been working on this for days now, its really depressing and a
> bit pathetic... :)
No comment ;P
> "I speak for me and not this company"
You mean that Ultra Enterprise belongs to *you*? Whooooo. ;}
--
'- I can't believe my room doesn't have Ethernet! Why wasn't it wired
when the house was built?
- The house was built in 1576.' --- Alex Kamilewicz on the Oxford
breed of `conference American'.
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: Linux standards compliance
Date: 03 Sep 1999 21:58:39 +0100
"Syd Barrett" <[EMAIL PROTECTED]> writes:
> and UDI (Uniform Driver
> Interface)? Any kernel gurus have any info?
I don't claim to be a kernel guru, but there was a lengthy
flamewar/agitated discussion on linux-kernel about this, oooh, must've
been nine months ago now. The l-k mailing lists have the full
discussion, but in a word the Word of Linus is that UDI is probably not
turning up. (Or at least that was the Word at the end of the discussion
as I understand it, but that discussion also had new motherboard
standards being discussed at the same time and things got a bit
confusing.)
Why?
It makes the kernel harder to maintain, slows it down (extra indirection
layers for no good technical reason, and in a damned time-critical area
of the kernel, too), and has little apparent reason other than so that
the commercial Unix developers can sponge off free software driver
development.
In any case this may have gone the way of that x86 Unix integration
project, which disbanded earlier on this year since the integration had
happened without the project's help, and was called Linux ;)
--
'- I can't believe my room doesn't have Ethernet! Why wasn't it wired
when the house was built?
- The house was built in 1576.' --- Alex Kamilewicz on the Oxford
breed of `conference American'.
------------------------------
From: "Delayen Laurent" <[EMAIL PROTECTED]>
Subject: help with .so libs !
Date: Fri, 3 Sep 1999 23:29:59 +0200
Hi !
I just moved from Windows to Linux, and i wish to port a program i was
coding. I used DLLs under windows for plug-in support.
i heard i could use .so libs to do the same.
So if anybody has documentation, help, examples, etc... i would really
appreciate, as i don't know much about those.
Also i'm interested to know what are the best combination of tools to code
under linux.
thanks a lot,
- Laurent Delayen
------------------------------
From: Neeraj Purandare <[EMAIL PROTECTED]>
Subject: HP Night Director PLus 10/100 ethernet driver?
Date: Fri, 03 Sep 1999 15:38:36 -0700
Folks,
I have a HP Kayak XU PC, and this one came with a ethernet card which
is called on HP's web site as "HP Night Director Plus 10/100".
I have RH 6.0 installed on this, and try as I might, I cannot get any
of the hp ethernet driver modules to load. I've tried hp.o, hp100.o,
hp-plus.o.
modprobe returns with "Device busy".
It works OK on NT though, and this is the only reason I still need to
run NT, to
connect to my workplace.
Is there a driver for this somewhere? Does anyone know if any of the
other
drivers work for this? BTW, I also tried eepro100.o, and this one did
not work
either.
Any help is appreciated.
Thanks!
Neeraj
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Stop the VFS from buffering form by ch dev driver
Reply-To: [EMAIL PROTECTED]
Date: Fri, 03 Sep 1999 22:28:48 GMT
On 3 Sep 1999 22:18:20 GMT, David Belius <[EMAIL PROTECTED]> wrote:
>I am making a charter device driver where the apps
>are supposed to read or write only a couple of bytes
>at a time. But if a do a getc() from a user space
>app the VFS(i think) starts to buffer upp 4096 bytes
>of data. How can i stop this?(preferably from within
>the device driver)
In the user space program:
setbuf(file, NULL);
where file is your FILE * pointer.
------------------------------
From: Omri Schwarz <[EMAIL PROTECTED]>
Subject: I am a dope. Re: LILO oddity.
Date: Fri, 03 Sep 1999 19:23:58 -0400
Omri Schwarz wrote:
>
There was a floppy in the drive.
Okay, I wear a paper bag for the next week.
Thanks, all.
--
Omri Schwarz ---
Timeless wisdom of biomedical engineering:
"Noise is principally due to the presence of the
patient." -- R.F. Farr
------------------------------
From: [EMAIL PROTECTED]
Subject: Linux networking protocols documentation
Date: Fri, 03 Sep 1999 22:32:59 GMT
Hi,
Is there any documentation/book/tutorial
addressing Linux networking protocol
implementation, binding with lower/upper
networking layer in Kernel, functions,
those kind of things?
I wish I can find documents that is something
like MS DDK's NDIS documentation for Linux.
Thanks,
Wayne
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: [EMAIL PROTECTED] (Richard Bumby)
Crossposted-To: comp.os.linux.help,comp.os.linux.setup
Subject: Re: SCSI device scan order.
Date: 3 Sep 1999 18:55:23 -0400
[EMAIL PROTECTED] (bill davidsen) writes:
>In article <[EMAIL PROTECTED]>,
>Seth Mason <[EMAIL PROTECTED]> wrote:
>| My system is setup to boot off of /dev/hda which resides on the NCR
>| internal scsi adapter, ...
>Say what? The boot device, /dev/hda, is not a SCSI deveice. Hopefully
>you meant /dev/sda and don't type any better than I do.
I caught that, too, but had nothing useful to say, so I let it go by.
>I don't think the kernel is loading the drivers at all, because the
>driver for the boot disk has to be in the kernel at boot time. And if
>the other driver were a module that would definitely be loaded after and
>that would leave sda as the boot device. that said, I don't believe you
>are loading any drivers, I think they are both built into the kernel.
>Stop me if I've missed something on that.
There is another possibility. My all-scsi system is able to boot from
the hard disk although scsi support is compiled as a module. It is
amazing what can be done with an initial ram disk.
It might be necessary to treat this as a problem with a particular
distribution rather than as a general linux problem.
>So the only issue is that the controllers are being probed in the wrong
>order, which is a bit easier to solve. You have three possible
>solutions. ...
The suggestions all look good. Anyone who missed the posting should
try to find it.
--
R. T. Bumby ** Rutgers Math || Amer. Math. Monthly Problems Editor 1992--1996
[EMAIL PROTECTED] ||
Telephone: [USA] 732-445-0277 (full-time message line) FAX 732-445-5530
------------------------------
From: Virginie Galtier <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,comp.os.linux.help,comp.os.linux.misc
Subject: please help on pidhash
Date: Fri, 03 Sep 1999 18:58:47 -0400
Hi
<linux/sched.h> is using "pidhash" declared as extern:
extern struct task_struct *pidhash[PIDHASH_SZ];
Where can I find pidhash?
Thank you for your help
Virginie
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************