Linux-Development-Sys Digest #42, Volume #8 Mon, 24 Jul 00 14:13:16 EDT
Contents:
Re: What does this error mean? (Frank Sweetser)
Re: glibc-2.1.3 problems --- why not using bash204 ? (Andreas Jaeger)
Re: Can i get a MAC address ? (Mario Klebsch)
Re: kernel compile issues ("Quiney, Philip [HAL02:HH00:EXCH]")
Re: kernel compile issues (Villy Kruse)
Re: kernel compile issues ([EMAIL PROTECTED])
Programming newbie's question (Sunny Han)
Re: How can we make Libc less big ? (Marco van de Voort)
Re: [ANN] Beta testing of CW for Linux on Intel and PowerPC (Marco van de Voort)
Re: [ANN] Beta testing of CW for Linux on Intel and PowerPC (Marco van de Voort)
Re: Can i get a MAC address ? (Grant Edwards)
Re: A good IDE (Marco van de Voort)
Re: Database Modeling Tools for Linux? (Gene Montgomery)
2.4.0-test5pre4 module problems? (Steve Udell)
boot loader -> bios (Kang Tin LAI)
where is "clear" source?? ("A derelict Engineer")
Re: Can i get a MAC address ? (Michael Meding)
Re: How can we make Libc less big ? ([EMAIL PROTECTED])
Re: My own distribution (Nix)
Re: floating point issue (Nix)
Re: A good IDE (Nix)
Re: SCO emulation mode??? (Charles Blackburn)
Re: where is "clear" source?? (herman dumont)
Re: How can we make Libc less big ? (Fro-Man)
Re: [ANN] Beta testing of CW for Linux on Intel and PowerPC (MWRon)
How to read BIOS info in Linux? (Jay Miller)
Re: How to read BIOS info in Linux? ("Norm Dresner")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Frank Sweetser)
Subject: Re: What does this error mean?
Date: 24 Jul 2000 04:51:15 GMT
ed doyle <[EMAIL PROTECTED]> wrote:
>Hi,
>What does this link error mean and how do I fix it?
>
>/usr/bin/ld: cannot open crt1.o: No such file or directory
>collect2: ld returned 1 exit status
>
>I tried find / -name " crt1.o" -print and it found nothing. I installed
>gcc from a CD which I would think would have all librariy files.
Sounds like you need to install the appropriate (g)libc-devel package from
your distribution.
--
Frank Sweetser rasmusin at wpi.edu, fs at suave.net
Full-time WPI Network Tech, Part time Linux/Perl guy
As usual, I'm overstating the case to knock a few neurons loose, but the
truth is usually somewhere in the muddle, uh, middle.
-- Larry Wall in <[EMAIL PROTECTED]>
------------------------------
From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: glibc-2.1.3 problems --- why not using bash204 ?
Date: 24 Jul 2000 08:23:27 +0200
>>>>> Michael Meding writes:
> Thats what I guessed. Thing is the guy from SuSE recommended not using
> bash204. Bas204 is imho latest. I also have more compiler rpoblems if
> using this version. Now I am back to 203, that helped a lot.
> Question is, what is wrong and why does something depend on it in 204.
Bash changed some rules, a minus sign ("-") is not anymore valid in
the environment. Bash follows Posix here - and therefore we fixed the
only problem in glibc. As I've told you already, you can just grep
for the variable and replace the minus signs with underscores and
everything will work --- or wait for glibc 2.2.
I don't know what other consequences this has. Btw. I'm using bash
2.04 and fix the programs instead of going back to 2.03 ;-).
Andreas
--
Andreas Jaeger
SuSE Labs [EMAIL PROTECTED]
private [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: Can i get a MAC address ?
Date: Mon, 24 Jul 2000 09:10:10 +0200
Michael Meding <[EMAIL PROTECTED]> writes:
>I can't think of that. Since the maufacturer takes responsibility for
>the correctness and uniqueness of the mac in the card.
SUNs ethernet cards for the S-Bus did not have their own MAC
address. Those cards did take the MAC of the ethernet interface on the
motherboard.
>I only can think of special adaptors for testing purposes, and think
>normally the mac's are hardcoded in there to prevent changing.
Probably, the main reason for being able to change the MAC is, that
the MAC is not stored in ethernet chips like the AM7990. If it would
be stored there, you would not be able to get the manufacturer from
the MAC address, as you can today. Instead, you would get the
manufacturer of the ethernet chip.
If the MAC address is not stored in the ethernet chip, it must be
stored somewhere else. SUN stores it in the NVRAM, 'normal' ethernet
cards probably store it in on board ROM. Some software is responsible
for transfering the MAC address into the ethernet chip during chip
initialization. If software can change it during initialization,
software probably will be able to change it later, too.
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB 1483 30CE 9FB2 A047 9CE0
Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5 8B98 9464 53FF 9382 F518
------------------------------
From: "Quiney, Philip [HAL02:HH00:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: kernel compile issues
Date: Mon, 24 Jul 2000 08:11:44 +0100
Hi there
"J. Roe" wrote:
>
> Hello,
>
> I have Red Hat 6.2 and kernel version 2.2.14-5.0.
> The kernel that is set from the initial install loads fine for me.
This is usually an indication to leave things alone ;-)
>
> I was assuming that when I run make xconfig the options are ones that
> are set for my already working kernel. However, is it correct to say
> that this isn't the case? That these are arbirtrary values rather?
No the kernel source has no config file when installed and will use
defaults...
You will need to go through and make sure what is selected is sane for
your hardware configuration. If you are unsure about an option after
checking the 'Help' for that item then select as a module (if possible)
to be on the safe side.
>
> My problem is I'm not having any luck recompiling the kernel to suit my
> computers needs. And I really don't know enough to go through every
> option in the xconfig and set it correctly for my system. Is there a
> way to determine the settings for the kernel that works for me now and
> then when I run xconfig to set all those values the same and then work
> from there?
In 'make xconfig' you can read/write the configuration to a file -
failing that on save/exit the resulting config file is
/usr/src/linux/.config
AFAIK you cannot determine the configuration used by RH from the
existing kernel. Someone else may know otherwise.
p.s You did the following steps....
make xconfig
make dep
make clean
make bzImage (or some such) - then edits to /etc/lilo.conf & re-run lilo
etc.
make modules
mv /lib/modules/2.2.14-5.0 /lib/modules/2.2.14-5.0.bak
make modules_install
HTH
Regards
Phil Q
--
Phil Quiney CSIP Demonstrator
[EMAIL PROTECTED] Nortel Networks,
Telephone: +44 (1279) 402363 London Rd, Harlow,
Fax: +44 (1279) 402885 Essex CM17 9NA,
United Kingdom.
"This message may contain information proprietary to Northern
Telecom so any unauthorised disclosure, copying or distribution
of its contents is strictly prohibited."
------------------------------
From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: kernel compile issues
Date: 24 Jul 2000 07:41:36 GMT
On Mon, 24 Jul 2000 08:11:44 +0100,
Quiney, Philip [HAL02:HH00:EXCH] <[EMAIL PROTECTED]> wrote:
>> I have Red Hat 6.2 and kernel version 2.2.14-5.0.
>> The kernel that is set from the initial install loads fine for me.
>This is usually an indication to leave things alone ;-)
>
>>
>> I was assuming that when I run make xconfig the options are ones that
>> are set for my already working kernel. However, is it correct to say
>> that this isn't the case? That these are arbirtrary values rather?
>No the kernel source has no config file when installed and will use
>defaults...
>You will need to go through and make sure what is selected is sane for
>your hardware configuration. If you are unsure about an option after
>checking the 'Help' for that item then select as a module (if possible)
>to be on the safe side.
>
On redhat 6.2 you will find all the configuration files that was
used by the redhat kernel build in the directory /usr/src/linux/configs.
In my experience, whenever you do make menuconfig in a redhat system,
you will start off using the redhat configuration, as long as you
install the kernel source tree from the redhat object CD.
Villy
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: kernel compile issues
Date: Mon, 24 Jul 2000 08:34:19 GMT
On 24 Jul 2000 07:41:36 GMT Villy Kruse <[EMAIL PROTECTED]> wrote:
| In my experience, whenever you do make menuconfig in a redhat system,
| you will start off using the redhat configuration, as long as you
| install the kernel source tree from the redhat object CD.
If you downloaded the latest kernel instead, you'd have the configuration
as included by that kernel. If you get it from the Redhat server, maybe
it will be a like configuration. If you get it from kernel.org, don't
expect this to be so.
--
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil (at) ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]
------------------------------
From: Sunny Han <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Programming newbie's question
Date: Mon, 24 Jul 2000 20:20:48 +0900
Hello.
I'm using redhat linux 6.0, I had following errors in compiling example
source library.
Although I have some experience in linux, I am a novice in programming.
Please help me. This is the first day in learning C programing in Unix
and Linux.
[root@elan lib.svr4]# make
make `systype.sh`
make[1]: Entering directory `/home/syhan/source/lib.svr4'
make "CFLAGS = -O" \
"OBJS = bufargs.o cliconn.o clrfl.o daemoninit.o error.o
errorlog.o lockreg.o locktest.o openmax.o pathalloc.o popen.o prmask.o
ptyfork.o ptyopen.o readn.o recvfd.o senderr.o sendfd.o servaccept.o
servlisten.o setfl.o signal.o signalintr.o sleep.o sleepus.o spipe.o
strerror.o tellwait.o ttymodes.o writen.o prexit.o semaph.o" "RANLIB
= ls -l" lib
make[2]: Entering directory `/home/syhan/source/lib.svr4'
cc -O -c strerror.c -o strerror.o
strerror.c:3: conflicting types for `sys_errlist'
/usr/include/stdio.h:553: previous declaration of `sys_errlist'
make[2]: *** [strerror.o] Error 1
make[2]: Leaving directory `/home/syhan/source/lib.svr4'
make[1]: *** [svr4] Error 2
make[1]: Leaving directory `/home/syhan/source/lib.svr4'
make: *** [all] Error 2
[root@elan lib.svr4]#
------------------------------
From: [EMAIL PROTECTED] (Marco van de Voort)
Subject: Re: How can we make Libc less big ?
Date: 24 Jul 2000 12:00:57 GMT
>programs, such as ld.so, have to do it this way for reasons that would
>be obvious if you knew what ld.so does (if you don't, go read up on it
>and learn something fun today).
>
>A fun challenge might be to make a hello world program w/o libc at all.
Using syscalls is not as difficult as often though it is.
------------------------------
From: [EMAIL PROTECTED] (Marco van de Voort)
Crossposted-To: comp.os.linux.powerpc
Subject: Re: [ANN] Beta testing of CW for Linux on Intel and PowerPC
Date: 24 Jul 2000 13:18:40 GMT
>Is this an assumption that all apps have to be done in Java? What about
>those who code in C?
>
>I was also going to ask why there is no support for Slackware?
Or mklinux (another Mac Linux distribution). I use Slackware on PC, and
want to use mklinux on the PowerMac (since LinuxPPC doesn't support nubus).
Neither of them are supported........
------------------------------
From: [EMAIL PROTECTED] (Marco van de Voort)
Crossposted-To: comp.os.linux.powerpc
Subject: Re: [ANN] Beta testing of CW for Linux on Intel and PowerPC
Date: 24 Jul 2000 13:17:39 GMT
>Again I apologize if I offended anyone it was not meant to be any
>commercial posting.
I'm generally easily offended, and I wasn't offended by yours.
However IMHO, if it just had been the announcement, and not the
demand for beta-testers(which makes it of interest for the development
flock), it would have been offensive.
------------------------------
From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: Can i get a MAC address ?
Date: Mon, 24 Jul 2000 14:42:08 GMT
In article <[EMAIL PROTECTED]>, Michael Meding wrote:
>I can't think of that. Since the maufacturer takes
>responsibility for the correctness and uniqueness of the mac in
>the card.
Many MAC chipsets have programmable addresses. It is not
uncommon for the manufacturer can place the unique address in
host-addressible ROM on the board. The device drivr reads the
address from ROM and configures the MAC with it. That means
that the device driver can ignore the manufacturer-supplied
address and program the MAC with any desired address.
>I only can think of special adaptors for testing purposes, and
>think normally the mac's are hardcoded in there to prevent
>changing. The idea was to have a unique possibility to adress a
>specific adaptor, worldwide.
That's the idea, but the implimentation often involves the host
processor reading the address from ROM and configuring it into
the MAC. If an ethernet board has a flash ROM for boot code,
why not store the address in one of the flash sectors?
Otherwise, you've got to:
1) Put a second ROM on the board to hold the address.
4) Set up a manufacturing procedure to program the address
into that ROM.
2) Put a ROM interface on the MAC chipset.
3) Add control/sequencing logic to the MAC chipset to read the
address from ROM on startup.
--
Grant Edwards grante Yow! I'm receiving a coded
at message from EUBIE BLAKE!!
visi.com
------------------------------
From: [EMAIL PROTECTED] (Marco van de Voort)
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development,comp.os.linux.hardware
Subject: Re: A good IDE
Date: 24 Jul 2000 14:52:24 GMT
In article <8l8pvl$r21$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>what is the best IDE for Linux ?
Depends on the compiler you are using.
I prefer the IDE packaged with my own compiler because it has libgdb with
proper pascal support and the compiler itself internal. (www.freepascal.org)
------------------------------
From: Gene Montgomery <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Database Modeling Tools for Linux?
Date: Mon, 24 Jul 2000 15:05:40 GMT
"Frank V. Castellucci" wrote:
>
> Thomas Gagne wrote:
> >
> > dia's great for drawing pictures, but I want the modeling tool to actually
> > allow me to type-in information about keys and attributes--and eventually
> > generate the SQL for building the database. I guess I assumed people may have
> > been more familiar with erwin or erstudio.
>
> I am very aware of ER tools for windows, I am also aware that there are
> tools that can help you with generation. Take a look on freshmeat or
> sourceforge.
>
> --
> Frank V. Castellucci
> http://corelinux.sourceforge.net
> OOA/OOD/C++ Standards and Guidelines for Linux
> http://PythPat.sourceforge.net
> Pythons Pattern Package
I make it a point to lurk around freshmeat and sourceforge quite a bit.
I too would like to see a tool like Erwin which runs under Linux.
But I have not stumbled across same. You say ".. there are tools .."
could you name some so as to make the search easier. dia and
argoUML are not comparable in any significant way to Erwin, IMHO.
Gene Montgomery
------------------------------
From: [EMAIL PROTECTED] (Steve Udell)
Subject: 2.4.0-test5pre4 module problems?
Reply-To: [EMAIL PROTECTED]
Date: Mon, 24 Jul 2000 15:50:37 GMT
Hiya, I compiled 2.4.0-test5 yesterday only to have to go
back to 2.4.0-test2 because of a bunch of modules failing.
With example:
depmod: *** Unresolved symbols in /lib/modules/2.4.0-test5/block/loop.o
depmod: fget
depmod: *** Unresolved symbols in /lib/modules/2.4.0-test5/misc/bttv.o
depmod: remove_wait_queue
depmod: add_wait_queue
depmod: *** Unresolved symbols in /lib/modules/2.4.0-test5/misc/tdfx.o
depmod: remove_wait_queue
depmod: add_wait_queue
depmod: *** Unresolved symbols in /lib/modules/2.4.0-test5/usb/audio.o
depmod: remove_wait_queue
depmod: add_wait_queue
a bunch of em, but not all my modules has that problem,
I didn't do anything different that I know of building
my kernel than I usually do, anyone seen this? or know
how to correct?
--
GNU/Linux Debian
Steve Udell <[EMAIL PROTECTED]>
------------------------------
From: Kang Tin LAI <[EMAIL PROTECTED]>
Subject: boot loader -> bios
Date: Tue, 25 Jul 2000 00:04:04 +0800
Beside of int 13 and int 10, any other ints (may be hidden)
that linux boot loader (LILO) relys on?
I want to have my boot ROM (not bios), it just load the boot
sector to 0x7c00, and a hdd access routines and other peripheral
init codes are put in the second boot, then load the kernel image.
------------------------------
From: "A derelict Engineer" <[EMAIL PROTECTED]>
Subject: where is "clear" source??
Date: Mon, 24 Jul 2000 09:42:10 -0700
Can anyone tell me where the source code for the "clear" utility is
included?? I'd like to find out how to execute a clear_screen() function,
without having to link curses, which I don't otherwise use... I've been
using system("clear") up to now, and that works adequately, but I'd rather
learn how to do it directly...
Thanks!!
------------------------------
From: Michael Meding <[EMAIL PROTECTED]>
Subject: Re: Can i get a MAC address ?
Date: Mon, 24 Jul 2000 18:12:44 +0200
Reply-To: [EMAIL PROTECTED]
Grant Edwards schrieb:
>
> In article <[EMAIL PROTECTED]>, Michael Meding wrote:
>
> >I can't think of that. Since the maufacturer takes
> >responsibility for the correctness and uniqueness of the mac in
> >the card.
>
> Many MAC chipsets have programmable addresses. It is not
> uncommon for the manufacturer can place the unique address in
> host-addressible ROM on the board. The device drivr reads the
> address from ROM and configures the MAC with it. That means
> that the device driver can ignore the manufacturer-supplied
> address and program the MAC with any desired address.
>
> >I only can think of special adaptors for testing purposes, and
> >think normally the mac's are hardcoded in there to prevent
> >changing. The idea was to have a unique possibility to adress a
> >specific adaptor, worldwide.
>
> That's the idea, but the implimentation often involves the host
> processor reading the address from ROM and configuring it into
> the MAC. If an ethernet board has a flash ROM for boot code,
> why not store the address in one of the flash sectors?
>
I have been proven wrong. It seem to be possible to change the mac at
leas for special appliances.
Regards
and thanks for the clarification.
Michael
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: How can we make Libc less big ?
Date: Mon, 24 Jul 2000 17:14:08 GMT
On 24 Jul 2000 12:00:57 GMT Marco van de Voort <[EMAIL PROTECTED]> wrote:
|>programs, such as ld.so, have to do it this way for reasons that would
|>be obvious if you knew what ld.so does (if you don't, go read up on it
|>and learn something fun today).
|>
|>A fun challenge might be to make a hello world program w/o libc at all.
|
| Using syscalls is not as difficult as often though it is.
Don't give it away. You're spoling the fun discovery :-)
--
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil (at) ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: My own distribution
Date: 24 Jul 2000 13:34:00 +0100
[EMAIL PROTECTED] writes:
> The next version of Linux is compiled on the previous version. The next
> version of GCC is compiled with the previous version for the first pass.
And you can cross-compile a compiler, binutils, and kernel on a totally
different kind of box, like, say, a Sun.
--
`I can guarantee it's no problem in my network, and if I don't get some
sleep soon, I'll guarantee it will become a problem in your network.'
--- Chris `Saundo' Saunderson deals with a late-night phone call
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: floating point issue
Date: 24 Jul 2000 13:42:59 +0100
[EMAIL PROTECTED] (Grant Edwards) writes:
> The -O2 probably caused gcc to generating an inlined version of
> log() rather than calling the log() in libm. The availability
> of inline functions isn't guaranteed, so you can't depend on
> this behavior. It might work this time, but not with the next
> version of gcc -- though that's unlikely.
Not that unlikely; the inlining thresholds are always being fiddled
with.
--
`I can guarantee it's no problem in my network, and if I don't get some
sleep soon, I'll guarantee it will become a problem in your network.'
--- Chris `Saundo' Saunderson deals with a late-night phone call
------------------------------
From: Nix <$}xinix{[email protected]>
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development,comp.os.linux.hardware
Subject: Re: A good IDE
Date: 24 Jul 2000 14:13:06 +0100
[EMAIL PROTECTED] (Dave Blake) writes:
> In fact, I cannot remember even
> seeing an experienced Unix programmer using an IDE.
Emacs? ;)
> The command line is very powerful in Unix, and pre-empts
> MOST of the need for an IDE (automatically generated
> Makefile excepted).
All of the need. automake is command-line driven :)
--
`I can guarantee it's no problem in my network, and if I don't get some
sleep soon, I'll guarantee it will become a problem in your network.'
--- Chris `Saundo' Saunderson deals with a late-night phone call
------------------------------
From: [EMAIL PROTECTED] (Charles Blackburn)
Subject: Re: SCO emulation mode???
Date: Mon, 24 Jul 2000 07:52:50 +0100
Reply-To: [EMAIL PROTECTED]
On 22 Jul 2000 17:28:03 GMT, Pizzamaxsw wrote:
>Is there any way to run programs for SCO Unix under Linux such a emulation to
>run my programs in Linux
Take a look at the ibcs module. I have it running a few SCO programs here.
works fine too.
--
Charles Blackburn -=- Remove NOSPAM to email a reply.
Summerfield Technology Limited - SuSE Linux Reseller & Birmingham L.U.G sponsor
[EMAIL PROTECTED]@cscomms.freeserve.co.uk
[EMAIL PROTECTED]@cscomms.freeserve.co.uk
10:49pm up 6:11, 1 user, load average: 0.00, 0.00, 0.00
------------------------------
From: herman dumont <[EMAIL PROTECTED]>
Subject: Re: where is "clear" source??
Date: Mon, 24 Jul 2000 19:37:51 +0200
A derelict Engineer wrote:
>
> Can anyone tell me where the source code for the "clear" utility is
> included?? I'd like to find out how to execute a clear_screen() function,
> without having to link curses, which I don't otherwise use... I've been
> using system("clear") up to now, and that works adequately, but I'd rather
> learn how to do it directly...
Hi,
output of ldd /usr/bin/clear:
libncurses.so.5 => /lib/libncurses.so.5 (0x4001a000)
<================
libc.so.6 => /lib/libc.so.6 (0x40057000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Slackware 7.0.
HTH
------------------------------
From: Fro-Man <[EMAIL PROTECTED]>
Subject: Re: How can we make Libc less big ?
Date: Mon, 24 Jul 2000 13:38:12 -0400
On Mon, 24 Jul 2000 [EMAIL PROTECTED] wrote:
> On 24 Jul 2000 12:00:57 GMT Marco van de Voort <[EMAIL PROTECTED]> wrote:
> |>A fun challenge might be to make a hello world program w/o libc at all.
> |
> | Using syscalls is not as difficult as often though it is.
>
> Don't give it away. You're spoling the fun discovery :-)
Maybe I have it all wrong, but.... Look below.
Hmmm... It really doesn't seem to help a whole lot for size though. Even
if you strip them afterwards... A glibc, and pure system call hello world
are about the same size.
Pre-strip:
-rwx------ 1 daya users 11905 Jul 24 13:30 libc*
-rwx------ 1 daya users 11769 Jul 24 13:30 syscalls*
-rwx------ 1 daya users 961658 Jul 24 13:31 libc.static*
-rwx------ 1 daya users 961214 Jul 24 13:31 syscalls.static*
Post-strip:
-rwx------ 1 daya users 3128 Jul 24 13:32 libc*
-rwx------ 1 daya users 3044 Jul 24 13:32 syscalls*
-rwx------ 1 daya users 219828 Jul 24 13:32 libc.static*
-rwx------ 1 daya users 219796 Jul 24 13:32 syscalls.static*
So, really, I would have to say you are not really going to show a whole
lot of improvement by using system calls. You easily can do it better
with using shared libraries. And you can trim a decent ammount of fat if
you just strip them after compile.
The source of each:
libc:
#include <stdio.h>
int main( int argc, char **argv )
{
char *str = "hello, world!\n";
fprintf( stdout, "%s", str );
return 0;
}
systemcall:
#include <unistd.h>
int main( int argc, char **argv )
{
char *str = "hello, world!\n";
write( 1, str, 14 );
return 0;
}
Aaron Day (If I had a dime for every time)
[EMAIL PROTECTED] (I said I wanted to kill Bill)
http://www.csis.gvsu.edu/~daya (Gates, I'd say it more often.)
------------------------------
From: [EMAIL PROTECTED] (MWRon)
Crossposted-To: comp.os.linux.powerpc
Subject: Re: [ANN] Beta testing of CW for Linux on Intel and PowerPC
Date: Mon, 24 Jul 2000 13:09:38 -0400
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
(Marco van de Voort) wrote:
>Or mklinux (another Mac Linux distribution). I use Slackware on PC, and
>want to use mklinux on the PowerMac (since LinuxPPC doesn't support nubus).
>Neither of them are supported.
send me a request and you might want to send a note to the Linux
distributor as well we are trying to cooperate with everyone possible.
Ron
--
Metrowerks acquires HiWare AG to be European headquarters
http://www.metrowerks.com/news/hiware/
Metrowerks, a Motorola Company - Ron Liechty
"Software Starts Here" - [EMAIL PROTECTED]
------------------------------
Date: Mon, 24 Jul 2000 12:53:22 -0600
From: Jay Miller <[EMAIL PROTECTED]>
Subject: How to read BIOS info in Linux?
Hi there. I was hoping there was some standard way to read BIOS
information through Linux - any nonstandard ways are fine, too.
If anyone has any ideas, I'd be very grateful. Thanks in advance!
Jay
------------------------------
Reply-To: "Norm Dresner" <[EMAIL PROTECTED]>
From: "Norm Dresner" <[EMAIL PROTECTED]>
Subject: Re: How to read BIOS info in Linux?
Date: Mon, 24 Jul 2000 18:06:01 GMT
Exactly what kind of "BIOS information" do you think you'd find in the
computer when Linux is running?
Norm
Jay Miller <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi there. I was hoping there was some standard way to read BIOS
> information through Linux - any nonstandard ways are fine, too.
>
> If anyone has any ideas, I'd be very grateful. Thanks in advance!
>
> Jay
>
>
>
------------------------------
** 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
******************************