Linux-Setup Digest #243, Volume #20              Mon, 18 Dec 00 04:13:07 EST

Contents:
  Re: which LINUX to choose (Graham Wilson)
  Re: Printing Problem (use procfs to enable interrupt-driven operation) (Graham 
Wilson)
  Dual boot help needed. (Michael Radocha)
  How To Cron A Disk? ("KL")
  Re: adduser (BoWawzinek)
  Re: Suggestions for Linux Modems (Graham Wilson)
  cdrom (tt)
  A few questions by a new user of Linux ("Manny Bhuta")
  Re: cdrom ("Chris")
  Re: ASUS A7Vm/board, RH7 and IBM ATA100 drive ("Brian Morrison")
  Re: A few questions by a new user of Linux ("Camel")
  Re: Suggestions for Linux Modems (E J)
  Re: cdrom (Ville Voutilainen)
  Re: which LINUX to choose (HP Staber)
  Re: I've searched the HOW-TO's and read the FAQ's BUT nowhere does it show how to 
create a directory on anything but the  / on /dev/hdan (Paul Colquhoun)
  Re: How To Cron A Disk? (Eric)
  Re: A few questions by a new user of Linux (Paul Kimoto)
  Re: Help!! Partitioning (Eric)
  Re: Dual boot WinME + Linux (Eric)
  Re: Mandrake 7.2 Dual Boot (Eric)
  Re: Upgrading to RH 7 on a dual boot machine (Eric)
  Re: A few questions by a new user of Linux ("Quiney, Philip [HAL02:HH00:EXCH]")

----------------------------------------------------------------------------

From: Graham Wilson <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,at.linux,ger.pc.linux,linux.debian.qa,linux.debian.user
Subject: Re: which LINUX to choose
Date: Sun, 17 Dec 2000 21:12:59 -0800

[EMAIL PROTECTED] wrote:
> 
> I have a brand new 30GB desktop which came preinstalled with WinDoze ME.
> 
> I want to setup a LINUX  and a DOS/WinDoze partition. The availlable
> Linux versions to me are
>  DEBIAN GNU/Linux 2.0
>  SuSE 6.4 Evaluationsversion
>  PC Magazin Linux 6.0 Easy Install Edition
> 
> I do not want to create a "religious war" about Linux distributions but
> would appreciate any input about recommendations on which of the above
> mentioned versions I should pick.
> 
> TIA
> 
> HP Staber/Salzburg

Most of the advice you got so far is pretty good.  I got Debian potato
on 3 CDs from CheapBytes for about $10.  If you are careful with the
installation (i.e. read ALL the notes on the screen) everything should
go smoothly.  Go to the Linux Documentation Project for your
informational needs, and get ready to start having "fun".  Debian is a
wonderful distribution, IMHO.  G.

------------------------------

From: Graham Wilson <[EMAIL PROTECTED]>
Subject: Re: Printing Problem (use procfs to enable interrupt-driven operation)
Date: Sun, 17 Dec 2000 21:27:41 -0800

Bruce Cota wrote:
> 
> Hi, I'm having no luck setting up a printer (Epson stylus 777) to work
> with my Linux
> box.  
<chomp>
> Any advice appreciated.  Thanks,

Last night I set up my printer for the first time.  I used apsfilter,
and it was pretty slick.  If your printer is supported, it should work
for you, too.

------------------------------

From: Michael Radocha <[EMAIL PROTECTED]>
Subject: Dual boot help needed.
Date: Mon, 18 Dec 2000 05:30:04 -0000

Hi,
I am currently running WinMe on my machine and I want to add SuSE Linux 
7.0 I need to know the correct and simple way to dual boot/partition my 
hard drive so I can comfortably use both Lin & Win. I have tried a product 
called BootIt, but it's more for people who have several OS on their 
machine. (I always seem to have someone suggest BootIt but I really don't 
like it so don't bother). Partition magic for WinMe is too $$$. I'm using 
a 533Mhz Athlon processor, a 13 gig Western Digital EIDE hard drive and 
196 Mb of ram. I have used Linux before and am familiar with Lilo and 
basicially getting Linux up and running, I actually dualbooted before, but 
with much trouble and reading. But I have recently run into the same 
trouble again with partitioning. I just can't seem to break everything 
down properly. The 1023 cylinder thing always stumps me.  The SuSE hand 
book was and is not exactly the easiest thing to understand. But I like 
SuSE the best, although Red Hat 7.0 seems pretty good, so far. I also am 
not a linux expert (obviously) so I need a *simple* way to do this. I just 
plan to go online and listen to some tunes, nothing major here. I would 
love and have yet to see a step by step example on how to partition a 
Lin/Win box.  Are there any sites out there that anyone can recommend to 
do this? Any help would be greatly appriciated. Thanks in advance.  ~m

DID YOU KNOW?~~ Butterball recalled over 3 million of their turkeys this 
past thanksgiving. Someone forgot to butter their balls.
 

--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: "KL" <[EMAIL PROTECTED]>
Subject: How To Cron A Disk?
Date: Mon, 18 Dec 2000 13:19:21 +0800

I suppose "dd" command can cron a disk for the Unix entire system.
Could someone advise me the steps and commands involved in doing that? Do I
need to "fdisk" before executing "dd".

Is the disk being cron be bootable? How do? Thanks. .



------------------------------

From: [EMAIL PROTECTED] (BoWawzinek)
Date: 18 Dec 2000 05:33:34 GMT
Subject: Re: adduser

<[EMAIL PROTECTED]> writes:

]I just installed RH6.2, and the user guild says that I can add new users
]using commond useradd or adduser, but neither works.  Does anyone know
]what's wrong?  Or maybe I missed some package to install?

It seems, that you expected some reaction from useradd command ?????
<command not found> or <user doe added>

man useradd 

gives you a list of parameters to use with. I don't know RH.
In Suse 6.4 you can add new users with yast interactily.

To get results of your useradd-operation

cat /etc/passwd

there should be a line with the new user's attributes.

bodo

------------------------------

From: Graham Wilson <[EMAIL PROTECTED]>
Subject: Re: Suggestions for Linux Modems
Date: Sun, 17 Dec 2000 21:34:57 -0800

Lemuel Abarte wrote:
> 
> I have an Intel i810 chipset with an AMR (winmodem system).  Any suggestions for
> a good Linux modem, 36k or 56k?  Old models are readily available in Thailand.
> 
> TIA,
> 
> Lemuel

I use a US Robotics Sportster 56k fax/data modem, and it works great. 
You can download any specs or jumper data you might need from the USR
website.  If you follow the instructions for Win 3.1, they work for
Linux (it just gets rid of the complications with Plug and Pray).  Good
luck.  G.

------------------------------

From: tt <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.install,sfnet.atk.linux,linux.redhat.misc
Subject: cdrom
Date: Mon, 18 Dec 2000 05:42:09 GMT

Slackware 7.1 and HP cd-writer 7200 external.

Is there any way to get this writer to burn cd:s in linux?

External cd-writer is connected to parallel port.

thanx4help
tt



------------------------------

From: "Manny Bhuta" <[EMAIL PROTECTED]>
Subject: A few questions by a new user of Linux
Date: Mon, 18 Dec 2000 00:47:50 -0500

I just installed Red Hat Linux on a PC.  The installation went fairly smooth
and now I am trying to learn this alien environment.  I know nothing about
Unix or C language.  If this is not the right place for these questions, my
sincere apologies and I would appreciate knowing the correct newsgroup.

1.  When I compile a program, the object code is always "a.out" and in my
home directory.  This home directory is not in my path and I have to move
"a.out" to "bin" directory to run it.  Is it possible to specify my own name
and directory for the object code?

2.  I have noticed that long integers are 32 bit integers and not 64 bit.  I
thought that the Pentium used 32 bit word.  Is it possible to make short
integers as 32 bits and long integers as 64 bits?

3.  My goal is to learn to write programs that read and write fixed length
records using random direct access and pipes.  Can you suggest a good
reference book?

4.  Where can I get software for ISAM files?

Any help will be most appreciated.


--
Manny Bhuta
Randolph, NJ USA



------------------------------

From: "Chris" <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.install,sfnet.atk.linux,linux.redhat.misc
Subject: Re: cdrom
Date: Mon, 18 Dec 2000 05:52:13 GMT

I can't say for certain, but I think you may be out of luck.  I attempted to
hookup a backup tape system via parellel port at work to no avail.  I do not
believe that Linux supports backup devices (including cd-writers) via
parellel ports.

- C

"tt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
> Slackware 7.1 and HP cd-writer 7200 external.
>
> Is there any way to get this writer to burn cd:s in linux?
>
> External cd-writer is connected to parallel port.
>
> thanx4help
> tt
>
>



------------------------------

From: "Brian Morrison" <[EMAIL PROTECTED]>
Crossposted-To: uk.comp.os.linux
Subject: Re: ASUS A7Vm/board, RH7 and IBM ATA100 drive
Date: Sun, 17 Dec 2000 16:52:39 +0100 (BST)
Reply-To: "Brian Morrison" <[EMAIL PROTECTED]>

On Sun, 17 Dec 2000 09:40:53 +0000, Simon Gornall wrote:

>If it's a large disk (which it will be if it's less than a few years
>old!) then make sure you have either 'lba32' or 'linear' mode enabled
>in the lilo.conf file. AFAIK Redhat doesn't support 'lba32' so just
>make sure the line 'linear' appears in the top of the /etc/lilo.conf
>file, if not - add it, rerun '/sbin/lilo' and see if that fixes your
>problems.

I discovered that it wasn't this, lilo.conf already has linear as one
of the options.

In the end I read that ATA66 is not supported in 2.2.x kernels without
the IDE patches, so I went into the BIOS and forced UDMA mode 2 instead
of mode 4.

Suddenly it all works. Now I will install the 2.4.0-test kernel and
latest IDE patches and see how that goes.

At least I can boot now :-)


-- 
Brian Morrison                                            [EMAIL PROTECTED]
               to reply, change address from 'news' to 'bdm'
 ...Grim faced, cold as fishwife's fingers, he snatched from the wall
 the sickle-sharp boar tusks he used for defacing Readers' Digest....



------------------------------

From: "Camel" <[EMAIL PROTECTED]>
Subject: Re: A few questions by a new user of Linux
Date: Mon, 18 Dec 2000 00:28:05 -0600
Reply-To: "Camel" <[EMAIL PROTECTED]>

I can answer this one:

to run a program in your current directory (and the current directory is not
in your path), do:

./a.out

You could add your home directory into your path, but that can cause
security problems (trojan horses, etc), so it's safer to do the "./a.out"
thing.

As for changing the output filename, I'll bet gcc has an option (type "man
gcc" maybe?) to specify the filename.

> 1.  When I compile a program, the object code is always "a.out" and in my
> home directory.  This home directory is not in my path and I have to move
> "a.out" to "bin" directory to run it.  Is it possible to specify my own
name
> and directory for the object code?





------------------------------

From: E J <[EMAIL PROTECTED]>
Subject: Re: Suggestions for Linux Modems
Date: Mon, 18 Dec 2000 07:11:42 GMT

External Serial -> Almost always a Real Modems
ISA -> Most are Real Modems
PCI -> Most are Win Modems

A Real Modem is a good linux modem.  A good check is a Real Modem works under DOS
also.

About your winmodem, does it use a Lucent or PCTel chipset.  If it does, you can
get the drivers
for it from www.linmodems.org.

Lemuel Abarte wrote:

> I have an Intel i810 chipset with an AMR (winmodem system).  Any suggestions for
> a good Linux modem, 36k or 56k?  Old models are readily available in Thailand.
>
> TIA,
>
> Lemuel


------------------------------

From: Ville Voutilainen <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.install,sfnet.atk.linux,linux.redhat.misc
Subject: Re: cdrom
Date: 18 Dec 2000 07:07:56 GMT

In sfnet.atk.linux Chris <[EMAIL PROTECTED]> wrote:
>I can't say for certain, but I think you may be out of luck.  I attempted to
>hookup a backup tape system via parellel port at work to no avail.  I do not
>believe that Linux supports backup devices (including cd-writers) via
>parellel ports.

This is completely bogus, Linux has had support for parallel block devices
since 2.2.0. This includes parallel port cdrom's. You'll need the pg and
probably pcd modules in addition to protocol specific modules to drive
the writer. I tested this with the exact same HP model, so I can confirm
that it really works. I won't get into more details, see the kernel
documentation for details, most likely
/usr/src/linux/Documentation/paride.txt

-VJV-

------------------------------

From: HP Staber <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,at.linux,ger.pc.linux,linux.linux.debian.user
Subject: Re: which LINUX to choose
Date: Mon, 18 Dec 2000 09:01:47  +0100

Eeli Kaikkonen wrote:
> In linux.debian.user [EMAIL PROTECTED] wrote:
> > I have a brand new 30GB desktop which came preinstalled with WinDoze =
ME.
> > 
> For a brand new computer you should choose a recent distribution. With
> older versions you are only begging for problems because all hardware
> may not be supported and programs are old.

Makes sense. Will try to organize a more recent package - but which
distributor ?

HP Staber/Salzburg


------------------------------

From: [EMAIL PROTECTED] (Paul Colquhoun)
Subject: Re: I've searched the HOW-TO's and read the FAQ's BUT nowhere does it show 
how to create a directory on anything but the  / on /dev/hdan
Reply-To: <[EMAIL PROTECTED]>
Date: Mon, 18 Dec 2000 08:17:06 GMT

On Sun, 17 Dec 2000 13:24:30 -0000, Linux L driver <[EMAIL PROTECTED]> wrote:
|I wish to move my /usr to another partition. I know how to do it but for one
|thing. How do you create a   /newusr  on a different partition to the one
|that contains the  /   mountpoint. I have the following 2 partitions:
|/dev/hda7        = mount point /
|/dev/hda8        = mount point /home
|
|If I wanted to create a /newusr on /dev/hda7 I would  cd /  and then  mkdie
|/newusr - easy, so I thought
|cd /home  and then  mkdir ../newusr    but it didn't work.
|For a floppy I would  cd /mnt/floppy   and then   mkdir /mnt/floppy/newusr
|but none of this helps with
|/dev/hda8   my other partition. Please help


OK, correct me if I'm wrong, but is this what you are after:

You want a directory that you can access by typing 'cd /newuser'
but you want all the files in that directory to be located on
/dev/hda8, whihc is mounted as /home

Was that correct?


This cannot be done directly.

There are 2 alternatives:

a) Make a new partition (/dev/hdb1 for example) and mount that
   as /newuser just as /dev/hda8 is mounted on /home

b) Create a directory /home/newuser This lives on /dev/hda8 and
   all your files will really be under thsi directory, then
   create a link (like a shortcut) to this directory like this:
   'ln -s /home/newuser /newuser'
   Now you can go 'cd /newuser' and you will end up in your new
   directory.

Note that in b) above there is no real nead for the directories
to have the same name.

        mkdir /home/qwertyuiop
        ln -s /home/qwertyuiop /newuser

will work just as well. Making the directory start with a dot will
make it sort of invisible in listings of /home unless you use 'ls -a'

        mkdir /home/.newuser
        ln -s /home/.newuser /newuser


-- 
Reverend Paul Colquhoun,      [EMAIL PROTECTED]
Universal Life Church    http://andor.dropbear.id.au/~paulcol
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
xenaphobia: The fear of being beaten to a pulp by
            a leather-clad, New Zealand woman.

------------------------------

From: Eric <[EMAIL PROTECTED]>
Subject: Re: How To Cron A Disk?
Date: Mon, 18 Dec 2000 09:21:42 +0100
Reply-To: [EMAIL PROTECTED]

KL wrote:
> 
> I suppose "dd" command can cron a disk for the Unix entire system.
> Could someone advise me the steps and commands involved in doing that? Do I
> need to "fdisk" before executing "dd".
> 
> Is the disk being cron be bootable? How do? Thanks. .

You want to duplicate a disc with a cronjob?
For backup purposes I asume?

You don't need fdisk. (dd makes an exact disc-copy)

Yes it will be bootable, once it is replaced (The physical location
matters). But make the disc physically identical to the the one you want
to backup (CHS values). BTW I would advise a tape backup. That's more
reliable. (But not as fast to restore ofcourse)

Eric

------------------------------

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: A few questions by a new user of Linux
Date: 18 Dec 2000 03:24:04 -0500
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, Manny Bhuta wrote:
>  I know nothing about
> Unix or C language.  If this is not the right place for these questions, my
> sincere apologies and I would appreciate knowing the correct newsgroup.
>
> 1.  When I compile a program, the object code is always "a.out" and in my
> home directory.  This home directory is not in my path and I have to move
> "a.out" to "bin" directory to run it.  Is it possible to specify my own name
> and directory for the object code?

Use the "-o" option to gcc.  The gcc compiler is documented in "info"
pages.  There are several (mostly idiosyncratic) programs available that
read the info format.

> 2.  I have noticed that long integers are 32 bit integers and not 64 bit.  I
> thought that the Pentium used 32 bit word.  Is it possible to make short
> integers as 32 bits and long integers as 64 bits?

"long" is 32 bits because many (pre-Linux, pre-unix-on-ia32) programs
assumed that.  If you need 64 bits, use the GNU extension "long long".

-- 
Paul Kimoto
This message was originally posted on Usenet in plain text.  Any images, 
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.

------------------------------

From: Eric <[EMAIL PROTECTED]>
Subject: Re: Help!! Partitioning
Date: Mon, 18 Dec 2000 09:27:43 +0100
Reply-To: [EMAIL PROTECTED]

srinivas_vanjari wrote:
> 
> Qn: 1) Can somebody explain why all these happened ?

No, I can't from here, unless you provide numbers (fdisk -l /dev/hda,
mount, df)

>     2) Right now i have only one partition for windows and the rest of
> the space is occupied by linux. I want to add a few more partitions to
> windows by taking away some space from linux. How should i go about
> doing it ? (Later i want to mount these partitions also so that i can
> access the windows data from linux).

Depends on the current partitioning scheme.
`fdisk -l /dev/hda` again

>     3) I heard that if we use separate partitions for /home
> and /usr/local, if we run into some trouble in the future, the software
> can be updated/reinstalled without disturbing the /home and /usr/local
> partitions. Is this true ? If so how should the partitioning be done ?

That's true. partioning requires a separate partition for /home and
/usr/local obviously.
I don't know know what you mean by this question.

>     4) How many extended partitions can we have and can the extended
> partitions be of two types (one linux and one windows).

No, you can have only one.
Don't try two different extended partitions. It's not safe

One extended partition can however contain both windows AND linux
logical partitions.

Eric

------------------------------

From: Eric <[EMAIL PROTECTED]>
Subject: Re: Dual boot WinME + Linux
Date: Mon, 18 Dec 2000 09:33:33 +0100
Reply-To: [EMAIL PROTECTED]

McKernan wrote:
> 
> How did u get LILO to come up when using ME?  I can't get LILO up, it just
> boots millenium.
> 
> Eric en Jolanda <[EMAIL PROTECTED]> wrote in message
> news:aUG_5.33569$[EMAIL PROTECTED]...
> > > Regarding LILO...   how do you get it to load WinME by default and
> > > Linux by choice (as it is the other way around on my system at the
> > > moment, and I am not ready as yet to move over to Linux completely)? ?
> > >
> >
> > take a look at the file /etc/lilo.conf
> > I think you'll find it obvious on how to change this.
> > (otherwise `man lilo`, `info lilo` and `man lilo.conf` can be of some
> help)
> >
> > Remember to run /sbin/lilo after you made an changes to /etc/lilo.conf, or
> > else the changes will not have effect.
> >
> > Eric
> >
> >

That's possible.
Either mark the partition where LILO is in as active (FDISK.EXE), or
install LILO in the MBR.
For the latter one, you need to boot linux first. Us eteh bootfloppy you
created
during the installation to boot linux.

Eric

------------------------------

From: Eric <[EMAIL PROTECTED]>
Subject: Re: Mandrake 7.2 Dual Boot
Date: Mon, 18 Dec 2000 09:40:06 +0100
Reply-To: [EMAIL PROTECTED]

Tom Szczesniak wrote:
> 
> On Sun, 17 Dec 2000 08:44:35 GMT, "Peter T. Breuer"
> <[EMAIL PROTECTED]> wrote:
> 
> I got it installed by getting in touch with a local linux user's
> group.  They used Partition Magic and it recognized and re-partitioned
> my drive.  But I'm still interested in our discussion here.
> >
> >Take no notice of the install. Step aside to the prompt on another
> >console. Ideally, run from a rescue disk or use the rescue option on
> >the cd if there is one so that there can be no "install".
> 
> How do I step aside to another prompt?  The cd gave me only the
> options I explained 1)continue installation 2) what I believe was a
> prompt which sat there until I entered something.  There is a disk
> with it, but this disk is for machines that won't boot from a cd.  I

You should continue the installation, up to the point where the key
combo
<ctrl-alt-function key 1-6> works.

That will drop you to a shell.

But actually you're probably better of with a boot/root floppy
combination as Peter mentioned.

> >
> >And looking for a kernel is not the business of fdisk!
> 
> fdisk is dos, right?  So should I have done this at a dos prompt?
> 
> >

No, we mean the linux fdisk here.

Good luck with your linux system. Eventually you'll learn all the stuff
you needed here.
Read all the documentation you can, and you should be fine :-)

Eric

------------------------------

From: Eric <[EMAIL PROTECTED]>
Subject: Re: Upgrading to RH 7 on a dual boot machine
Date: Mon, 18 Dec 2000 09:46:08 +0100
Reply-To: [EMAIL PROTECTED]

E J wrote:
> 
> Hello fellow Motorolan:
> 
> I had the same problem.
> $ su -
> password: <secret>
> # cp /etc/lilo.conf /etc/lilo.conf.bak  # just in case you screw up.
> # vi /etc/lilo.conf      # use your favorite editor to edit lilo.conf, vi
> is not mine :)
> 
> # start of lilo.conf  This is mine.
> boot=/dev/hda3
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> message=/boot/message
> linear
> default=dos
> 
> # EDIT THE FOLLOWING LINE TO CHANGE FROM LINUX KERNAL 2.2.14 to 2.2.16
> image=/boot/vmlinuz-2.2.16-22
>         label=linux
>         read-only
>         append="hdc=ide-scsi"
>         root=/dev/hda4
> 
> other=/dev/hda1
>         label=dos
> #end of lilo.conf
> 
> # /sbin/lilo
> # reboot
> 
> I hope it works for you.
> 
> I may look wired, but I actually wireless (GPRS)
> 

:-)

(silly RH if they don't include a new entry in lilo.conf)

BTW, I would not do it like this.
Whenever you add a new kernel (Your own, or a new install)
always make a new entry, so the last working kernel will remain a
bootable choice.
You're bound to problems eventually if you don't follow this rule.

Just duplicate an existing entry, and change the things needed.

Then run /sbin/lilo

Now the new kernel is (hopefully) bootable.

Eric

------------------------------

From: "Quiney, Philip [HAL02:HH00:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: A few questions by a new user of Linux
Date: Mon, 18 Dec 2000 08:44:51 +0000

Manny Bhuta wrote:
> 
> I just installed Red Hat Linux on a PC.  The installation went fairly smooth
> and now I am trying to learn this alien environment.  I know nothing about
> Unix or C language.  If this is not the right place for these questions, my
> sincere apologies and I would appreciate knowing the correct newsgroup.
> 
> 1.  When I compile a program, the object code is always "a.out" and in my
> home directory.  This home directory is not in my path and I have to move
> "a.out" to "bin" directory to run it.  Is it possible to specify my own name
> and directory for the object code?
> 
Yes, specify the output file name by using -o (eg gcc -o progname
progname.c)

It is normal not to have the current directory in your path - however
IIRC with RedHat $HOME/bin is in the path
(type 'printenv PATH' to check) so you can move it there once you are
happy with it. Whilst testing use ./progname to run the local copy.


> 2.  I have noticed that long integers are 32 bit integers and not 64 bit.  I
> thought that the Pentium used 32 bit word.  Is it possible to make short
> integers as 32 bits and long integers as 64 bits?
You would have typedef the builtin types to some name of your choice -
this is traditional 'C' to make your code portable between platforms 
;-)

On my machine 'int' & 'long' are 32  bit and 'long long' is 64 bit - use
this to check...

#include <stdio.h>
 
int main(void)
{
    printf("Sizeof int = %d\n", sizeof(int));
    printf("Sizeof long = %d\n", sizeof(long));
    printf("Sizeof long long = %d\n", sizeof(long long));
    return 0;
}

Regards

Phil Q

-- 

Phil Quiney                             CSIP Demonstrator
[EMAIL PROTECTED]              Nortel Networks,
Telephone: +44 (0)1279 402363           London Rd, Harlow,
Fax:       +44 (0)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."

------------------------------


** 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 by posting to comp.os.linux.setup.

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-Setup Digest
******************************

Reply via email to