Linux-Development-Sys Digest #813, Volume #7 Sun, 30 Apr 00 00:13:27 EDT
Contents:
Re: Where can I find drivers for my hp printer (Nicolas Eymerich)
Re: Chad Myers Lies 205 Times For Microsoft (was: Time for the MS-rats to desert
("Chad Myers")
Re: Chad Myers Lies 205 Times For Microsoft (was: Time for the MS-rats to desert
(Alexander Viro)
How can i alloc a big phys mem for DMA? ([EMAIL PROTECTED])
Re: SMBIOS and Linux 2.2.x ("Harold")
Re: unresolved symbols ("Harold")
Re: test case harness for Linux? ("Marc A. Lepage")
Re: Chad Myers Lies 205 Times For Microsoft (was: Time for the MS-rats to desert
(Mark S. Bilk)
converting htond (host to netwrok double) (Sudhindra Suresh Bengeri)
Re: converting htond (host to netwrok double) (Kaz Kylheku)
Re: Two really easy (I'm sure) questions ("Mark Graybill")
How can I set CPU priority when programming interrupt routine? ([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: Nicolas Eymerich <[EMAIL PROTECTED]>
Subject: Re: Where can I find drivers for my hp printer
Date: Sat, 29 Apr 2000 21:59:06 GMT
> I didn't found the driver for my HP printer which is a: HP Deskjet
> 970Cxi
The printer is working under RH6.1 and Deskjet 670 filter (GhostScript
5.10) and Is seen as a 300dpi postscript printer
I still haven't figure out how to work with (in italin is fronte/retro)
capability of that printer, nor with higher resolution.
Please infor me if you find a better way to use this printer.
--
http://carini.tripod.com/
http://www.carini.net/
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Chad Myers" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: Chad Myers Lies 205 Times For Microsoft (was: Time for the MS-rats to
desert
Date: Sat, 29 Apr 2000 22:43:32 GMT
"Christopher Smith" <[EMAIL PROTECTED]> wrote in message
news:8efiv5$o71$[EMAIL PROTECTED]...
>
> "Mark S. Bilk" <[EMAIL PROTECTED]> wrote in message
> news:8efb9k$9vp$[EMAIL PROTECTED]...
>
> [lossy compression]
>
> I had been sitting on the fence, but you just made up my mind.
>
> <PLONK>
Too bad I had him killfiled already, I'm sure that would've been
a very entertaining and amusing post =)
It's nice how he has to put it on nearly every linux-related
ng. Since most of them have some pretty intelligent people that
don't froth at the mouth like those in COLA, or Mark as a shining
example =)
-Chad
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: Chad Myers Lies 205 Times For Microsoft (was: Time for the MS-rats to
desert
Date: 29 Apr 2000 19:48:55 -0400
In article <8efb9k$9vp$[EMAIL PROTECTED]>,
Mark S. Bilk <[EMAIL PROTECTED]> wrote:
>In article <8e7bns$jr2$[EMAIL PROTECTED]>,
>Chad Myers <[EMAIL PROTECTED]> wrote:
>>
>>"John Unekis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
>>
>>[SNIP: Hateful ignorant blathering]
>>
>>Is this what anti-MS people think? No real logical foundation, it's just
>>"hip" to hate MS because they're a big bad corporation? They're the
>>big-bad-corporation-to-hate-d'jour?
>>
>>Man, you should go back on the medicine, you really have a problem.
>
>Since Chad Myers is so self-righteously critical of what he
>claims is "hateful ignorant blathering", it makes a person
>wonder if he's ever done anything like that himself. Let's
>see...
>
>DejaNews shows that Chad Myers has posted 168 articles con-
>taining the sentence "Have you recompiled your kernel today?".
[snip]
OK, wanker. I don't know the person in question and don't care about him,
but I have to agree with his description of *.advocacy lusers in general
and you in particular.
Feel free to run DejaNews search on me. Additionally, you can grep the
kernel source for (AV|Al Viro).
Now, fuck off and die, subhuman. Preferably somewhere far away from c.o.l.d.s.
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
From: [EMAIL PROTECTED]
Subject: How can i alloc a big phys mem for DMA?
Date: Sun, 30 Apr 2000 00:23:51 GMT
My question is to allocate a block of continuous physical memory from
the kernel for my driver's DMA.
I've heard that there is a way in patching the kernel, but I failed to
find it in internet by myself. Could anybody help me?
And whether there's a normal way (by kernel API) to solve it?
Any suggestion is welcome.
pubb
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Harold" <[EMAIL PROTECTED]>
Subject: Re: SMBIOS and Linux 2.2.x
Date: Sun, 30 Apr 2000 08:58:59 +0800
Yes, of course. I am doing the same thing
now.
<[EMAIL PROTECTED]> wrote in message news:8ea6vm$o4u$[EMAIL PROTECTED]...
> Is it possible to retrieve information from the SMBIOS in GNU/Linux?
>
> I looked through the information on the /proc filesystem, but couldn't
> get all the information I needed (like the Motherboard brand of the
> system etc).
>
> Thanks,
> John Fjellstad
> [EMAIL PROTECTED]
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: "Harold" <[EMAIL PROTECTED]>
Subject: Re: unresolved symbols
Date: Sun, 30 Apr 2000 09:01:06 +0800
maybe these functions are user space, and can't
be used in kernel space?
Aurelie Fonteny <[EMAIL PROTECTED]> wrote in message
news:8e7ure$81p$[EMAIL PROTECTED]...
> Hi,
> I'm triing to load a module that I've just written.
> I compiled it with -D__KERNEL__ -DMODULE -O Wall ..., and installed it by
> just doing install - c new_mod.o /lib/modules/$(VER)/net
> Now, when I'm loading it I can't get rid of the unresolved symbols :
> unresolved symbol htonl
> unresolved symbol htons
> unresolved symbol memmove
> unresolved symbol __constant_memcpy
> unresolved symbol __memcpy
> ....
> Does someone know why?
>
> Thanks.
> Aurelie
>
>
------------------------------
From: "Marc A. Lepage" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: test case harness for Linux?
Date: Sun, 30 Apr 2000 01:21:03 GMT
Nix wrote:
>
> [EMAIL PROTECTED] (Douglas H. Steves) writes:
>
> > Is there a test case harness for Linux? Nothing fancy, just something that
> > will establish a standard environment, run a set of tests and do cleanup
> > after each test, while keeping a tally of passes/failures.
>
> Have a look at DejaGNU.
Neat. I never realized POSIX defined a testing framework.
Does DejaGNU run easily on Windows? (using Tcl and Expect)
How does TET compare?
--
Marc A. Lepage
http://www.antimeta.com/
Minion open source game, RTS game programming, etc.
------------------------------
From: [EMAIL PROTECTED] (Mark S. Bilk)
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: Chad Myers Lies 205 Times For Microsoft (was: Time for the MS-rats to
desert
Date: 30 Apr 2000 02:06:42 GMT
Note: Followups redirected to comp.os.linux.advocacy,
comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy
In article <oAJO4.248$[EMAIL PROTECTED]>,
Chad Myers <[EMAIL PROTECTED]> wrote:
>
>"Christopher Smith" <[EMAIL PROTECTED]> wrote in message
>news:8efiv5$o71$[EMAIL PROTECTED]...
>>
>> "Mark S. Bilk" <[EMAIL PROTECTED]> wrote in message
>> news:8efb9k$9vp$[EMAIL PROTECTED]...
>>
>> [lossy compression]
>>
>> I had been sitting on the fence, but you just made up my mind.
>>
>> <PLONK>
>
>Too bad I had him killfiled already, I'm sure that would've been
>a very entertaining and amusing post =)
>
>It's nice how he has to put it on nearly every linux-related
>ng. Since most of them have some pretty intelligent people that
>don't froth at the mouth like those in COLA, or Mark as a shining
>example =)
>
>-Chad
I simply posted a followup article (with a new Subject line)
in the same newsgroups to which Chad Myers sent his original
article (quoted in full below), and to which he sent his
reply (quoted above). However, I've redirected followups
for *this* article to the advocacy newsgroups only.
] From: "Chad Myers" <[EMAIL PROTECTED]>
] Newsgroups:
]comp.os.linux.development.system,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
] Subject: Re: Time for the MS-rats to desert
] Date: Wed, 26 Apr 2000 13:15:06 -0500
] Organization: Jump.Net
] Lines: 25
] Message-ID: <8e7bns$jr2$[EMAIL PROTECTED]>
] References: <[EMAIL PROTECTED]> <iu1K4.15206$06.92698@wards>
]<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
]<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
] X-Trace: news.jump.net 956772924 20322 216.30.101.20 (26 Apr 2000 18:15:24 GMT)
] X-Complaints-To: [EMAIL PROTECTED]
] X-Priority: 3
] X-MSMail-Priority: Normal
] X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
] X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
]
]
] "John Unekis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
]
] [SNIP: Hateful ignorant blathering]
]
] Is this what anti-MS people think? No real logical foundation, it's just
] "hip" to hate MS because they're a big bad corporation? They're the
] big-bad-corporation-to-hate-d'jour?
]
] Man, you should go back on the medicine, you really have a problem.
]
] > Remember all you Microserfs, the ones who bail first will get all the good
] jobs
] > down in Silicon valley, the stragglers will end up fetching them coffee....
]
] Drats, now all those multi-millionaires are just millionaires!
]
] If you don't think MS's stock will be back 10 fold in 5 years, you are sorely
] mistaken. Seen AT&T and all the bells lately? What about Exxon or other oil
] companies?
]
] -Chad
]
------------------------------
From: Sudhindra Suresh Bengeri <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.programmer,comp.programming,comp.os.linux.networking
Subject: converting htond (host to netwrok double)
Date: Sat, 29 Apr 2000 22:37:55 -0400
==============E01B1F1C253BAF01AFFB97E9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
I want to implement host to netwrok double, here is how I was trying to
do
it
void htond(double in, double *out)
{
char *i, *o=(char *)out;
int idx;
i = (char *)∈
if(getEndianness() == LITTLE_ENDIAN)
{
for(idx=0; idx < sizeof(double); idx++)
{
o[sizeof(double) - 1 - idx] = i[idx];
}
printf("o = %lf\n", *((double *)o));
}
else
{
for(idx=0; idx < sizeof(double); idx ++)
{
o[idx] = i[idx];
}
}
}
But when I print the value of the double value returned by the function
on a Little Endian system (ex Linux on ix86 machine) it always prints
0.000000000. But if the print the individual bytes of the
double they seem to be in the netwrok byte order.
I also tried having a union, but it gave the same result.
union overlap {
double out;
char o[8];
}cpy;
Can you please tell me how can I achieve htond, if there is some
other way.
TIA.
Regards,
Sudhin.
--
****************** Sudhindra Suresh Bengeri *******************
School: | Home: |
Dept. of Computer Science | 2502, Avent Ferry Rd |
NCSU, Raleigh, NC. | Apt #206, Raleigh, NC - 27606 |
Ph. 919 515 7135(TA room) | Ph. 919 838 8746 |
my web projection: http://www4.ncsu.edu/~ssbenger
==============E01B1F1C253BAF01AFFB97E9
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
Hi,
<P>I want to implement host to netwrok double, here is how I was trying
to do
<BR>it
<BR>void htond(double in, double *out)
<BR>{
<BR> char *i, *o=(char *)out;
<BR> int idx;
<P> i = (char *)&in;
<P> if(getEndianness() == LITTLE_ENDIAN)
<BR> {
<P> for(idx=0; idx <
sizeof(double); idx++)
<BR> {
<BR>
o[sizeof(double) - 1 - idx] = i[idx];
<BR> }
<P> printf("o = %lf\n",
*((double *)o));
<BR> }
<BR> else
<BR> {
<BR> for(idx=0; idx < sizeof(double);
idx ++)
<BR> {
<BR>
o[idx] = i[idx];
<BR> }
<BR> }
<BR>}
<P>But when I print the value of the double value returned by the function
<BR>on a Little Endian system (ex Linux on ix86 machine) it always prints
0.000000000. But if the print the individual bytes of the
<BR>double they seem to be in the netwrok byte order.
<P>I also tried having a union, but it gave the same result.
<P> union overlap {
<BR> double out;
<BR> char
o[8];
<BR> }cpy;<B></B>
<P><B>Can you please tell me how can I achieve htond, if there is some</B>
<BR><B>other way.</B><B></B>
<P><B>TIA.</B><B></B>
<P><B>Regards,</B>
<BR><B>Sudhin.</B>
<BR><B></B>
<BR>
<PRE>--
****************** Sudhindra Suresh Bengeri *******************
School:
|
Home:
|
Dept. of Computer Science | 2502, Avent Ferry
Rd |
NCSU, Raleigh, NC. |
Apt #206, Raleigh, NC - 27606 |
Ph. 919 515 7135(TA room) | Ph. 919 838
8746
|
my web projection: <A
HREF="http://www4.ncsu.edu/~ssbenger">http://www4.ncsu.edu/~ssbenger</A></PRE>
</HTML>
==============E01B1F1C253BAF01AFFB97E9==
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.unix.programmer,comp.programming,comp.os.linux.networking
Subject: Re: converting htond (host to netwrok double)
Reply-To: [EMAIL PROTECTED]
Date: Sun, 30 Apr 2000 03:12:01 GMT
On Sat, 29 Apr 2000 22:37:55 -0400, Sudhindra Suresh Bengeri
<[EMAIL PROTECTED]> wrote:
>
>--------------E01B1F1C253BAF01AFFB97E9
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Hi,
>
>I want to implement host to netwrok double, here is how I was trying to
>do
>it
>void htond(double in, double *out)
>{
> char *i, *o=(char *)out;
> int idx;
>
> i = (char *)∈
You should use unsigned char for this purpose.
> if(getEndianness() == LITTLE_ENDIAN)
> {
>
> for(idx=0; idx < sizeof(double); idx++)
> {
> o[sizeof(double) - 1 - idx] = i[idx];
> }
>
> printf("o = %lf\n", *((double *)o));
> }
> else
> {
> for(idx=0; idx < sizeof(double); idx ++)
> {
> o[idx] = i[idx];
> }
> }
The else part here is a little bit inefficient, since it's just doing a bitwise
copy of the object. It can be replaced by a straight assignment.
Morever, the endianness can be configured at compile time:
#ifdef LITTLE_ENDIAN
/* reverse the bytes */
#else
*out = in; /* presto! */
#endif
>}
>
>But when I print the value of the double value returned by the function
>on a Little Endian system (ex Linux on ix86 machine) it always prints
>0.000000000. But if the print the individual bytes of the
>double they seem to be in the netwrok byte order.
Network byte order is big endian. So the little endian machine is interpreting
the reversed bytes as a double value.
On any given host, you must first unpack the value by running it through the
opposite function ntohd() (which can just be an alias for htond()).
In other words, the sender uses htond() to swap the value into network byte
order, which the receiver must undo by using ntohd().
Anyway, your whole approach will fail when the two machines don't share
the same floating point representation. To do this right, you need
an interface like:
/* Compute network format. Returns 0 if the value is out of
range of the network representation. */
enum {
MARSHAL_DOUBLE_OK,
MARSHAL_DOUBLE_PRECISION_LOSS,
MARSHAL_DOUBLE_OUT_OF_RANGE
};
int marshal_double(double in, unsigned char *out);
int unmarshal_double(unsigned char *in, double *out);
The marshal function should break down the value of the double and
represent it in some canonical format. The unmarshal function
knows how to decode that format and compute a value of double from it.
The ANSI C <math.h> functions ldexp() and frexp() might be useful
in the implementation.
--
#exclude <windows.h>
------------------------------
Reply-To: "Mark Graybill" <[EMAIL PROTECTED]>
From: "Mark Graybill" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Two really easy (I'm sure) questions
Date: Sun, 30 Apr 2000 03:28:51 GMT
>
>Second question: How can I direct the compiler's output (the error
>messages) to a file? I've tried gcc hello.cc > testfile and testfile is
>created but not written to. So how can I do this? Thanks in advance
>for any help!
>
try:
gcc hello.cc 2<&1 | tee make.out
tee should be in usr/bin.
If not the following basic program should work:
#include <stdio.h>
main(void)
{
FILE *oFile;
char buff[512];
int cnt;
if((oFile=fopen("MAKE.OUT","w"))!=NULL)
{
do
{
cnt=fread(buff,1,1,stdin);
printf(buff);
fwrite(buff,1,1,oFile);
}while(cnt && !feof(stdin));
fclose(oFile);
}
}
-Mark
------------------------------
From: [EMAIL PROTECTED]
Subject: How can I set CPU priority when programming interrupt routine?
Date: Sun, 30 Apr 2000 03:49:10 GMT
I'm porting a Digital Unix driver to Linux platform.
I found that in Digital UNIX,there're a lot of 'sp' function,such as
spl(),splimp() and etc. But I don't know whether to map them in Linux.
I'm green in Linux kernel programming and found few books on it around
me, so I'm eager to make friends with you all. Please give some
suggestion,whether on this problem or how to get the answer by myself.
Thanks.
pubb
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
** 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
******************************