Linux-Development-Sys Digest #791, Volume #7 Thu, 20 Apr 00 20:13:20 EDT
Contents:
Bootable device (Sebastien Dessimoz)
Re: MICROSOFT IT THRU! MICROSOFT IS THRU! (Charles Blackburn)
Re: porting.... (Mike McDonald)
Re: Questions on C GUI development for X/Linux (Cathy Gramze)
Porting our compiler to Linux ("Norman Black")
Re: how to debug linux device driver? (Pankaj Chhabra)
what's the function of readb() & writeb() in asm/io.h? ("Harold")
Re: struct passwd * (bill davidsen)
Re: struct passwd * (bill davidsen)
Re: To core or not to core - You tell me (glen herrmannsfeldt)
Re: MICROSOFT IT THRU! MICROSOFT IS THRU! (Guy Fraser)
Re: How ready is 2.3.99preN? (bill davidsen)
translating from Block number -> Pyshical disk sector ("Gabriel Benhanokh")
block_number ==> sector_number ("Gabriel Benhanokh")
Re: struct passwd * (Juergen Heinzl)
Help, UX: lp: ERROR: No (or empty) input files. ("jmt")
Help, UX: lp: ERROR: No (or empty) input files. ("jmt")
----------------------------------------------------------------------------
Date: Thu, 20 Apr 2000 10:33:25 -0700
From: Sebastien Dessimoz <[EMAIL PROTECTED]>
Subject: Bootable device
Hi all,
I tried to boot a standalone Linux OS just from one floppy disks with a
ramdisk (so without any hard disk). It worked!!!
Then I had a free hard disk and I tried to make that same with the hard
disk, that is to say:
to raw copy a kernel image to the /dev/hda and then add a compressed
filesystem image which will be loaded as a ramdisk.
I know that it is not so useful and very clever, but I just wanted to
try...( I am very curious:-). Unfortunately it doesn't seem to work.
Why? Is there something with the hard disk format?
Please could you help me?
I thank you in advance for you answer,
Sebastien
------------------------------
From: [EMAIL PROTECTED] (Charles Blackburn)
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: MICROSOFT IT THRU! MICROSOFT IS THRU!
Date: Thu, 20 Apr 2000 18:16:54 +0100
Reply-To: [EMAIL PROTECTED]
On Sat, 15 Apr 2000 17:54:57 GMT, Charlie Ebert wrote:
>This MEANS to the STUPID and IGNORANT that the U.S. Government has ACCESS
>to every MS equipped machine in the world and therefore they
>CAN NOT BE TRUSTED ANYMORE!
since when have you been able to trust a government???
--
Charles Blackburn -=- Remove NOSPAM to email a reply.
Summerfield Technology Limited - SuSE Linux Reseller & Birmingham L.U.G sponsor
[EMAIL PROTECTED]
[EMAIL PROTECTED]
6:16pm up 10 days, 23:27, 2 users, load average: 0.00, 0.00, 0.00
------------------------------
Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Mike McDonald)
Subject: Re: porting....
Date: Thu, 20 Apr 2000 18:20:27 GMT
In article <8dlug3$8aa$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> In article <OEnL4.193$[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] wrote:
>> In article <8dk1sa$43v$[EMAIL PROTECTED]>,
>> [EMAIL PROTECTED] writes:
>> > Hello all,
>> >
>> > I'm about to take on the huge task of attempting to port Linux to a
> new
>> > (currently unsupported) platform. The target is MIPS-based, so I
> was
>> > hoping I might be able to snag some of the existing code in
> arch/mips...
>>
>> Which MIPS are you using? I'm working on the NEC Vr4121. I still
> have a bug
>> in the TLB code so it's not ready for primetime yet.
>
> The target is a MIPS R5000 series. The TLB should be compatible with
> the R4000's (I think...).
Cobalt Micro uses R5Ks! Go to their web site and download the kernel sources
that work on their processors. You'll probably have to write your own console
driver if you're not using serial ports or one of the existing ones.
Mike McDonald
[EMAIL PROTECTED]
------------------------------
From: Cathy Gramze <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.questions,comp.os.linux.development,linux.dev.newbie,uklinux.help.newbies,uk.comp.os.linux
Subject: Re: Questions on C GUI development for X/Linux
Date: Thu, 20 Apr 2000 15:40:06 -0500
I too have questions.
I am using Glade to write super simple program that will display a
window, and then disappear when the button is clicked. This works well. I
need the window to display a graphicfrom a file, but all I get is a black
hole where the image belongs. I have tried using the Glade image tool,
but there seem to be no properties to set to fix this. The image file
has been converted to .xpm in GIMP, and is in the project directory.
Are there definitions I need to make outside of Glade to do this? If so,
what are they and where do I make them? I am using the ONLY book I could
find locally on GTK+, Sam's Teach Yourself in 21 Days., and it is less
than helpful about images.
Thanks for helping a network geek who got corralled into this bit of
programming!
cathyy
------------------------------
From: "Norman Black" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Porting our compiler to Linux
Date: Thu, 20 Apr 2000 12:41:26 -0700
Reply-To: "Norman Black" <[EMAIL PROTECTED]>
We have started porting our Modula-2 development system to Linux and I was
hoping to find some help/documentation, mailing lists, newsgroups...
The system consists of the compiler, linker, librarian and debugger. For the
ELF and DWARF formats I am using the TIS specification documents, the System
V ABI books are out of print according to Amazon.
1. Specifics of application startup ( I have looked at the glibc source code
but some symbols are missing)
2. Specifics of using the functions in the libc shared object. Any special
init in this object need to be called.
3. Specifics of linking executables and shared objects.
Anyone have any ideas.
--
Norman Black
Stony Brook Software
To reply via email reverse the identifiers in the domain.
------------------------------
From: Pankaj Chhabra <[EMAIL PROTECTED]>
Subject: Re: how to debug linux device driver?
Date: Thu, 20 Apr 2000 13:56:07 -0700
Hi,
You can't use gdb to debug the modules. You can use the remote gdb
to debug the modules though. On the same machine you can use printk to
print debug information. Also you can use proc file system for
debugging.
One way could be to expose a log of your debugging information
through proc interface and read it. Offcourse driver should not have
hung the machine for this to work.
- Pankaj
Harold wrote:
> I wrote a device, and load it as a module.but I don't know how to
> debug this driverwhile I use it in my application. Can I usegdb to do
> this? If can, how to do? Thanks in advance.
> -----------------------------------------------------------------------
> Welcome to my linux page:
> Linux Paradise (under construction)
> BTW: Because my job is so busy, I
> want some friend to maintain this
> site with me together, please give
> me some suggestion.
> Thanks.
------------------------------
From: "Harold" <[EMAIL PROTECTED]>
Subject: what's the function of readb() & writeb() in asm/io.h?
Date: Thu, 20 Apr 2000 15:19:50 +0800
This is a multi-part message in MIME format.
=======_NextPart_000_0007_01BFAADB.DF333CA0
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Untitled DocumentI want to access the smbus port
from 0x5000 to 0x5006, can these
two methods do this?
==========================================================================
=======
Welcome to my linux page:
Linux Paradise (under construction)
BTW: Because my job is so busy, I=20
want some friend to maintain this=20
site with me together, please give=20
me some suggestion.
Thanks.=20
=======_NextPart_000_0007_01BFAADB.DF333CA0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Untitled Document</TITLE>
<META content=3D"text/html; charset=3Dgb2312" =
http-equiv=3DContent-Type><BASE=20
href=3Dfile://C:\WIN98\Desktop\>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>I want to access the smbus port</DIV>
<DIV>from 0x5000 to 0x5006, can these</DIV>
<DIV>two methods do this?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<HR>
<BR>
<P>Welcome to my linux page:<BR><A href=3D"http://hyang.uhome.net"=20
target=3D_blank>Linux Paradise</A> (under construction)<BR>BTW: Because =
my job is=20
so busy, I <BR>want some friend to maintain this <BR>site with me =
together,=20
please give <BR>me some suggestion.<BR>Thanks. </P></BODY></HTML>
=======_NextPart_000_0007_01BFAADB.DF333CA0==
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: struct passwd *
Date: 20 Apr 2000 22:04:54 GMT
In article <[EMAIL PROTECTED]>,
Juergen Heinzl <[EMAIL PROTECTED]> wrote:
| In article <8d2sl5$2p5$[EMAIL PROTECTED]>, bill davidsen wrote:
| If the documentation for some arbitrary function mentions memory is
| being allocated but not that it is the callers responsibility to free
| it, then either doing so means a bug in the code or not doing so
| means a bug in the documentation. Time to get things sorted out,
| not to write code in the hope it does the right thing.
The man page needs some clarification. I believe the current version
says 'static' buffer, and I assume that the bit about allocating memory
is a left-over from some previous sins.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: struct passwd *
Date: 20 Apr 2000 22:14:50 GMT
In article <[EMAIL PROTECTED]>,
Kaz Kylheku <[EMAIL PROTECTED]> wrote:
| On 10 Apr 2000 20:16:48 GMT, bill davidsen <[EMAIL PROTECTED]> wrote:
| > Unfortunately, you really *must* know which it is, since you don't
| >want to free a static buffer, but if you don't free a dynamic buffer you
| >leak memory.
|
| Memory is leaked when it becomes unreachable. This buffer happens to be a
| *singleton*: a dynamically allocated global object that persists over the
| lifetime of the program. That's not a leak, since the buffer is reachable right
| until the program terminates.
So now all we need is for the man page to clarify this, so people will
know what to expect. There is a question of why dynamically allocate a
tiny buffer, but I don't really care, the original question wasn't mine.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: [EMAIL PROTECTED] (glen herrmannsfeldt)
Crossposted-To: comp.lang.c,comp.unix.solaris,comp.lang.c++,comp.unix.programmer
Subject: Re: To core or not to core - You tell me
Date: 20 Apr 2000 22:19:08 GMT
Mark McIntyre <[EMAIL PROTECTED]> writes:
(snip regarding the value of the null pointer constant)
>>>But the macro preprocesses out to a value. And that value is either an
>>>integer 0 or such an expression cast to a void*. This value is
>>>represented in memory by some bitpattern.
>>necessarily represented in memory.
>Uhh, we had this discussion a few months back. No matter what,
>eventually it _has_ to be in memory somewhere, even if its only in a
>register. The processor cannot use it unless it exists somewhere...
There are machines where you can't get the value of a null pointer.
You can test, using a special instruction, to see if a pointer is null,
but not look at the value. In that case, there is no use in asking
what the bit pattern is.
-- glen
------------------------------
From: Guy Fraser <[EMAIL PROTECTED]>
Subject: Re: MICROSOFT IT THRU! MICROSOFT IS THRU!
Date: Thu, 20 Apr 2000 16:27:05 -0600
Chad Myers wrote:
>
> You know the funny thing about this post is that there is no back door,
> and it's been proven by several parties and reported from several reliable
> news sources. I expect you'll see a retraction by WSJ monday if it hasn't
> happened
> already.
...
>
> Oh well..
>
> -Chad
>
> "Charlie Ebert" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > MICROSOFT IS THRU!
...
> > CAN NOT BE TRUSTED ANYMORE!
> >
> > Charlie
> >
> >
Hi
I am not taking a stance on either part of this message.
Why are you discussing this in comp.os.linux.development.system .
If you are anti linux why bother reading the news group.
If you are anti microsoft don't post to microsoft sites.
If you feel you must post an important message put it only in the
correct group.
I know Microsoft does have ongoing issues but so do all operating
systems, including the various distributions of linux.
I am pro open source, but it is not the solution for Microsoft. What I
think may help Microsoft is to put in place a monitor for their software
engineers. This monitor would be looking for easter eggs, back doors and
other problematic issues that could bloat or compromise their software.
I.E. doom like easter egg in excel must take up a fair bit of space.
The backdoor issue is still one of my concerns with open source. Some
programmers that are building networked software too often do not build
in security measures or use existing security methods.
Open source is just as vulnerable to security compromise but at least it
is possible for experienced programmers to patch over some
vulnerabilities.
Microsoft engineers on the other hand spend too much time putting things
into the software that may unknowingly cause vulnerabilities. If the
engineers concentrated on just the features required for the project,
and spent the time to harden their products, we could all benefit.
I am sorry if you disagree but rather than sling mud back and forth,
encourage Microsoft to harden their products and remove the easter eggs
and other bits of code that are not required.
Guy Fraser
These are my opinions and not that of my employer.
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: How ready is 2.3.99preN?
Date: 20 Apr 2000 22:40:23 GMT
In article <[EMAIL PROTECTED]>,
Dale Pontius <[EMAIL PROTECTED]> wrote:
| for limited usage. I'm about to move my firewall machine up to
| RedHat 6.2, and it's kind of tempting to move it to 2.3.99 at
| about the same time, and start playing with netfilters.
I'm not sure I'd do that on a production machine. A failure in your
understanding could really be a "hack me" invitation.
| It's a Tyan Tomcat I (Triton HX chipset)
| with an NE2k clone
| and a Hercules monographics clone
|
| Pretty vanilla hardware. It seems to me that most of the problems
| with 2.3.xx are with more obscure or newer hardware.
2.3.99pre5 looks very solid, but since they took the compatibility
code out of the kernel which allowed you to use ipfwadm or ipchains, you
really must get it right, or break. While ipchains was so simple anyone
could understand the concepts if not the practice, iptables is far more
complex.
Anyway, be careful with this stuff, learning on a real firewall can be
painful.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: "Gabriel Benhanokh" <[EMAIL PROTECTED]>
Subject: translating from Block number -> Pyshical disk sector
Date: Thu, 20 Apr 2000 19:13:15 +0200
hi
i need a way to translate from a filename -> the numbers of the sectors it
takes on the disk.
i got the file blocks numbers, but i don't know how to translate them to the
pyshical sector numbers.
i guess that simply multipling block_num by ( block_size/ sector_size ),
won't do it, since i need to find the pyshical address of the first block in
the file system.
so maybe the formula should be
#define blk2sector(blk_num) ( (blk_num * (blk_size/sector_size)) +
first_block_pyshical_addr )
will this do the work ?
where can i find the address of the first block in the FS ?
do data blocks numbers starts from 0, or that block with index 0 is the boot
sector and than super_block, inodes.. ?
any help will be appricated
/gaby
------------------------------
From: "Gabriel Benhanokh" <[EMAIL PROTECTED]>
Subject: block_number ==> sector_number
Date: Thu, 20 Apr 2000 19:43:56 +0200
hi
i need a way to translate from a filename -> the numbers of the sectors it
takes on the disk.
i got the file blocks numbers, but i don't know how to translate them to the
pyshical sector numbers.
i guess that simply multipling block_num by ( block_size/ sector_size ),
won't do it, since i need to find the pyshical address of the first block in
the file system.
so maybe the formula should be
#define blk2sector(blk_num) ( (blk_num * (blk_size/sector_size)) +
first_block_pyshical_addr )
will this do the work ?
where can i find the address of the first block in the FS ?
do data blocks numbers starts from 0, or that block with index 0 is the boot
sector and than super_block, inodes.. ?
any help will be appricated
/gaby
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: struct passwd *
Date: Thu, 20 Apr 2000 23:23:38 GMT
In article <8dnuu6$s0k$[EMAIL PROTECTED]>, bill davidsen wrote:
>
>In article <[EMAIL PROTECTED]>,
>Juergen Heinzl <[EMAIL PROTECTED]> wrote:
>| In article <8d2sl5$2p5$[EMAIL PROTECTED]>, bill davidsen wrote:
>
>| If the documentation for some arbitrary function mentions memory is
>| being allocated but not that it is the callers responsibility to free
>| it, then either doing so means a bug in the code or not doing so
>| means a bug in the documentation. Time to get things sorted out,
>| not to write code in the hope it does the right thing.
>
> The man page needs some clarification. I believe the current version
>says 'static' buffer, and I assume that the bit about allocating memory
>is a left-over from some previous sins.
Yes .. I guess the problem was o. is the transition period from libc5
to libc6, so use the info pages ... pinfo is a nice info reader; no
more valium since I have started using it ;)
For sure the current man page is wrong, sort of, and to be honest,
working with all kinds of Unices all the time, I did not even spot that
and given the fact there are still libc5 and libc6, various versions
of that one, systems around, there probably is no perfect solution
to that one right now.
Now being quite able to be thick if it comes to coding I'd really
recommend every developer ...
http://www.UNIX-systems.org/
... to visit this site, as even if some #ifdef'ing is being required
it helps to keep ones code compatible to the future.
Oh yes, I am going to order ...
http://www.opengroup.org/pubs/catalog/n900.htm
... the license plate ;)
Cheers,
Juergen
--
\ Real name : J�rgen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
------------------------------
From: "jmt" <[EMAIL PROTECTED]>
Subject: Help, UX: lp: ERROR: No (or empty) input files.
Date: Thu, 20 Apr 2000 23:36:58 GMT
Running SCO OSR 5.0.5, have written a C program which is a daemon that pools
a specified directory for print files that are created from another running
application. I have written a routine in my daemon that sets up a pipe to
the LP command to print the file from that directory.
Randomly, most of the time, I am getting UX: lp: ERROR: No (or empty) input
files. I know the file is availuable because once I see there is 1
availuable, then I open a pipe to LP to print it.
But, I see that I am getting this error UX: lp: ERROR: No (or empty) input
files.
Any help or ideas on this?
Thanks for your help.
- Jeff
------------------------------
From: "jmt" <[EMAIL PROTECTED]>
Subject: Help, UX: lp: ERROR: No (or empty) input files.
Date: Thu, 20 Apr 2000 23:36:59 GMT
Running SCO OSR 5.0.5, have written a C program which is a daemon that pools
a specified directory for print files that are created from another running
application. I have written a routine in my daemon that sets up a pipe to
the LP command to print the file from that directory.
Randomly, most of the time, I am getting UX: lp: ERROR: No (or empty) input
files. I know the file is availuable because once I see there is 1
availuable, then I open a pipe to LP to print it.
But, I see that I am getting this error UX: lp: ERROR: No (or empty) input
files.
Any help or ideas on this?
Thanks for your help.
- Jeff
------------------------------
** 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
******************************