Linux-Misc Digest #738, Volume #20               Tue, 22 Jun 99 07:13:08 EDT

Contents:
  Re: Apache: *.htm and *.html (Jon Skeet)
  Can I install Gnome RPM's from a Windows Partition? (Bruce Johnson)
  Re: Newbie wants opinions on programming linux and pet project (Jon Skeet)
  Re: pci modem (Jon Skeet)
  Re: Commercially speaking....? (Richard Corfield)
  Re: Linux vs. Windoze NT - new security hole found in NT. (Alex Lam)
  umount: device is busy ("Jeremy C. Reed")
  Re: Synchronizing cmos clock with timeserver? (Villy Kruse)
  Re: Linux + RAM >64M (Thomas Ruedas)
  Re: Cut and Paste between Windows (Michel Catudal)
  Re: Run in background (M. David Allen)
  Re: vi question (Villy Kruse)
  Re: Does Linux have IRQ's ("Robert C. Paulsen, Jr.")
  Re: Can I install Gnome RPM's from a Windows Partition? (Jon Skeet)
  Re: Commercially speaking....? (Doug DeJulio)
  Re: Could Microsoft Cheat On The New Mindcraft Benchmark? (was:  Mindcraft Retest 
News (Philip Brown)
  Assigning Permissions for Public Directory (Paul Sullivan)
  Re: Linux on >8gb drives (Don Pederson)
  Re: Linux uid limits! (H. Peter Anvin)
  Re: Linux and CableModems ("Al @Work")
  Re: Linux uid limits! (Georg Acher)

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

From: [EMAIL PROTECTED] (Jon Skeet)
Subject: Re: Apache: *.htm and *.html
Date: Tue, 22 Jun 1999 10:25:42 +0100

[EMAIL PROTECTED] wrote:
> When a link to file.html is put in a page, and the real name is
> file.htm, Apache doesn't find the file. (And the opposite too).

Of course not - the file you're asking for isn't there!
 
> What do I have to do to make Apache treat file.hml and file.htm as
> interchangeable?

Preferrably, don't use .htm at all. Why would you want to mix the two up? 
Just be consistent and you'll be fine.

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: Bruce Johnson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,redhat.rpm.general
Subject: Can I install Gnome RPM's from a Windows Partition?
Date: 22 Jun 1999 09:30:52 GMT

I recently purchased SuSe linux 6.1. I partitioned my hard drive in to two 
equal drives. I am running Windows 95 and Linux. I can't set my modem up 
under Linux because it is a winmodem. I want to download the new Gnome 
rpm's on to my windows drive and install them. But some of them are to big 
to put onto floppy disks and that is the only writeable drive that I have. 
Is there anyway I can install The Gnome rpm's  directly from my Windows 95 
drive? I would really appreciate some help.

==================  Posted via SearchLinux  ==================
                  http://www.searchlinux.com

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

From: [EMAIL PROTECTED] (Jon Skeet)
Subject: Re: Newbie wants opinions on programming linux and pet project
Date: Tue, 22 Jun 1999 10:15:11 +0100

([EMAIL PROTECTED]) wrote:

> My questions:
> Is the dumb terminal idea feasible?

With just *real* dumb terminals it would be tricky, but if your emulators 
can do VT100 or better (and I would have thought they could!) you should 
be okay.

You'll probably want to use the curses or ncurses libraries for doing 
terminal stuff.

> What language(s) is/are best for this purpose?
> Should I just use Lynx with HTML and CGI scripts?

I wouldn't, but you could if you wanted a web interface. It would 
certainly make the user interaction parts easier to code. You'd want to 
put a fair amount of work into the initial design though - a well-thought 
out UI paradigm can make all the difference both in final look and in 
coding.

For real time chat, Lynx probably isn't suitable - but you could perhaps 
run an IRC server and give your clients sIRC.

> Should I use C and have flexibility but be forced to code every line?

I would, but then I'm a C programmer :)

> Should I use SQL? I know very little about it but am willing to learn.
> Should/could I use Rebol?

Don't know much about those, I'm afraid...

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: [EMAIL PROTECTED] (Jon Skeet)
Subject: Re: pci modem
Date: Tue, 22 Jun 1999 10:20:11 +0100

nitraat <"nitraat "@hda.hydro.com> wrote:
> My pci modem works not with Linux, why ?

It's probably a "Winmodem". This means that the windows drivers do most 
of the work of a modem, and the manufacturers haven't released any specs 
to Linux developers, so they haven't been able to write equivalent 
drivers. The only way round this is to buy another (non-Windows-only) 
modem, currently.

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: Richard Corfield <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.msdos.misc,uk.comp.os.linux
Subject: Re: Commercially speaking....?
Date: 22 Jun 1999 08:48:37 +0100

Stuart Brady <[EMAIL PROTECTED]> writes:

> There's something I'm wondering, though -- How absolutely stupid would
> it be to have a system where sound mixing is either done by modular
> kernel drivers? It seems that every program contains its own mixing
> code, and that other programs can't use sound at the same time.

That sounds handy, although its extra work for the kernel. So it can't
handle multiple simultaneous writes to /dev/audio? (I've not tried).
A handy facility would be to make a crappy old 8 bit card look like
a 16 bit one to applications and just lose the bottom 8 bits. Then
apps that claim to require 16 bit sound will still work.

 - Richard.

-- 
   _/_/_/  _/_/_/  _/_/_/ Richard Corfield <[EMAIL PROTECTED]>
  _/  _/    _/    _/      Web Page:       http://www.littondale.freeserve.co.uk
 _/_/      _/    _/       Dance (Ballroom, RnR), Hiking, SJA, Linux, ... [ENfP]
_/  _/  _/_/    _/_/_/    PGP2.6 Key ID: 0x0FB084B1     PGP5 Key ID: 0xFA139DA7

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

From: Alex Lam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.security
Subject: Re: Linux vs. Windoze NT - new security hole found in NT.
Date: Mon, 21 Jun 1999 17:39:09 -0700



Mark Rafn wrote:
> 
> >Alex Lam wrote:
> >> So what's all the fuzz about the new Windoze NT vs. Linux server bench
> >> test?  Isn't it it's more important to have a stable and secure server
> >> than a few mindless bench points advantage?
> >>  check out http://www.eeye.com/index.html
> 
> Slav Inger  <[EMAIL PROTECTED]> wrote:
> >I have a real hard time believing NT Server can beat Linux on the exact
> >same machine (assuming, of course, Linux is tuned and configured
> >correctly).  I have an even harder time believing that IIS can beat
> >Apache on Linux.
> 
> Believe what you want, but you're simply wrong if you think linux beats NT
> on every benchmark for every application.  For certain purposes, IIS
> definitely delivers pages faster than Apache on Linux on super high-end
> servers.  I still wouldn't run NT for a webserver with that type of load;
> that's what Solaris is for.
> 
Agree.

Even pc with FreeBSD/Apache is faster than Linux/Apache.

Heard that FreeBSD/Afterburner is superfast.... Haven't try it yet.
Since Afterburner is not free.

> 1) Apache is not superfast at static pages; it's designed for
> flexibility and dynamic content, to the small detriment of static page
> delivery.
> 
> 2) Linux (AFAIK) does not support "ethernet striping", where you put
> multiple ethernet cards with the same IP address in a machine and have it
> send through whichever is least busy.  This gives NT a large leg-up in those
> (very rare outside of MS benchmarks) situations where you need to exceed the
> raw throughput that your card is capable of.
> 
For a super busy server, I'll choose Solaris.

Alex Lam.
> Pick your need, do your research, choose the one that's best suited to the
> task.  For me, often it's Linux.  Often it's Solaris.  Often it's NT.
> --
> Mark Rafn    [EMAIL PROTECTED]    <http://www.dagon.net/>   !G

-- 
***     ***     ***     ***     ***     ***     ***
Remove all the upper case Xs from my email address if reply by e mail.
**************************************************
*If you receive any spam from my domain name. It's forged.
I DO NOT  send spam e mail. But I've found out that my
domain has been forged many times.
**************************************************

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

From: "Jeremy C. Reed" <[EMAIL PROTECTED]>
Subject: umount: device is busy
Date: Tue, 22 Jun 1999 02:13:30 -0700

I can't umount /dev/fd0H1722

king:/# umount /dev/fd0H1722
umount: /mnt: device is busy
king:/# fuser -v /mnt

                     USER        PID ACCESS COMMAND
/mnt                 root     kernel mount  /mnt
king:/#

I was attempting to make a boot disk with root system and only about half
the files copied.

I used cp -dvpR * /mnt/ 

Is there anyway to force a umount?

Thanks

  Jeremy C. Reed
============================================================
                                http://www.toprecruits.com


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

From: [EMAIL PROTECTED] (Villy Kruse)
Crossposted-To: comp.os.linux.networking
Subject: Re: Synchronizing cmos clock with timeserver?
Date: 22 Jun 1999 11:38:36 +0200

In article <[EMAIL PROTECTED]>,
Eric Veldhuyzen  <[EMAIL PROTECTED]> wrote:

>Use the setclock comamnd to store the time in the CMOS. I advise you
>to use NTP (xntpd). It is more accurate.


We are using chrony instead of xntpd; works better if you don't have
a permanent link to the time server.  It should be available on 
contrib.redhat.com and mirrors.


Villy

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

Date: Tue, 22 Jun 1999 11:23:16 +0200
From: Thomas Ruedas <[EMAIL PROTECTED]>
Subject: Re: Linux + RAM >64M

>From my original posting, which initiated this thread:
>to know if there is a problem for Linux to address more than 64M. I 
>seem to remember having read that it is necessary to recompile the 
>kernel after an appropriate change if one wants to run Linux with more 
>64M, but I'm not sure and I didn't find a reference to the problem now.
I looked at the FAQ on http://www.cl.cam.ac.uk/users/iwj10/linux-faq/ as
well as on the HOWTO Index http://www.uni-paderborn.de/Linux/mdw/HOWTO/
but didn't find an answer; might be that I overlooked it, but I just
didn't find one. Please read my original post before pissing me off.

In the meantime I got some answers to my question (thanks again) and was
also kindly pointed to other FAQ collections (which indeed contained the
answer).
-- 
============================================
Thomas Ruedas
Institute of Meteorology and Geophysics, 
J.W. Goethe University Frankfurt/Main
Feldbergstrasse 47                      D-60323 Frankfurt/Main, Germany
Phone:+49-(0)69-798-24949               Fax:+49-(0)69-798-23280
e-mail: [EMAIL PROTECTED]
http://www.geophysik.uni-frankfurt.de/~ruedas/
============================================

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

From: Michel Catudal <[EMAIL PROTECTED]>
Subject: Re: Cut and Paste between Windows
Date: 21 Jun 1999 19:44:19 -0500

Jim Richardson wrote:
> 
> I don't quite understand the problem.
>  Is it that cat'n'paste worked at one time, and now it doesn't?
> Anyway, verify that 3button emulation is turned on. In SuSE you can do this
> via the xmsconfig util or you can edit XF86Config by hand.
> 

Which CD has xmsconfig, it is not installed on my system.
I have a A4 Tech 3 buttons serial mouse and the middle button
doesn't work.

-- 
use OS/2 for a crash proof work environment
use Linux for safe and quick internet access
use Winblows to test the latest viruses
http://www.netonecom.net/~bbcat/
We have software, food, music, news, search,
history, electronics and genealogy pages.

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

From: [EMAIL PROTECTED] (M. David Allen)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Run in background
Date: 22 Jun 1999 00:44:08 GMT
Reply-To: [EMAIL PROTECTED]

In article <7kmd2k$6c3$[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] (ellis) writes:
> In article <7km7ds$nm3$[EMAIL PROTECTED]>,
> vineet  <[EMAIL PROTECTED]> wrote:
> 
>>How do I make my C program to run in background after getting initialised.
>>I mean that the program should detach from the terminal and should run in
>>background like a daemon.
> 
> Take a look at the source for any daemon that forks itself into 
> the background.  There's lots of examples around.
> 
> --
> http://www.fnet.net/~ellis/photo/

Insert this into the code where you want it to fork off...

if(fork()!=0)
{
        exit(0);
}

And that's all you've got to do.  When you call fork(), the child's pid is
in the parents, (the one you want gone from the terminal) execution process.

If fork returns 0, it means you're in the kids process.  That doesn't do error
checking of course, but you can check the manpage if you wanna do that.
(you should).



-- 
David Allen
http://opop.nols.com/
========================================
Don't look back, the lemmings are gaining on you. 

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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: vi question
Date: 22 Jun 1999 11:46:48 +0200

In article <[EMAIL PROTECTED]>,
Steve Lamb <[EMAIL PROTECTED]> wrote:

>    Why not?  It is the only thing that makes other people's code readable.


Using indent could possibly do a better job at that, especially if you
have source codes where indents are sometimes done with tabs and sometimes
with spaces.  Then changing the ts might just misallign everything.

For new code this is a different matter, though.


Villy

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

From: "Robert C. Paulsen, Jr." <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Does Linux have IRQ's
Date: Tue, 22 Jun 1999 05:01:44 -0500

Lucius Chiaraviglio wrote:
> 
> "jacob childress" <[EMAIL PROTECTED]> wrote:
> >Brian Wallace <[EMAIL PROTECTED]> wrote in message
> >news:7hh4dp$jud$[EMAIL PROTECTED]...
> >> The hardware has IRQ's, all software has to use them or
> >> run in a much slower polling way. [. . .]
> >
> >like brian said above, an OS doesn't necessarily have to use IRQ's in all
> >circumstances.  for instance, windows NT polls the parallel port instead of
> >using IRQ 7.  just an interesting tidbit...
> 
>         Not only that, but one can (apparently -- it seemed to work
> for us) put another device on the IRQ that would have been used by
> the printer port without messing anything up.  Would this also work
> under Linux if one told it not to use the parallel port (or whatever)
> IRQ?  This could help free up some IRQ's on some machines --
> especially necessary these days since some machines come out of the
> box with no IRQ's left over.
> 

Yes. For example it is somewhat common to use IRQ7 for the sound card.
As long as your printer support is using polling instead of IRQ7 it
works.

Note also that (at least some) PCI adapters can share IRQs. I don't know
if Linux supports this but suspect it might not.

-- 
____________________________________________________________________
Robert Paulsen                         http://paulsen.home.texas.net
If my return address contains "ZAP." please remove it. Sorry for the
inconvenience but the unsolicited email is getting out of control.

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

From: [EMAIL PROTECTED] (Jon Skeet)
Crossposted-To: comp.os.linux.setup,redhat.rpm.general
Subject: Re: Can I install Gnome RPM's from a Windows Partition?
Date: Tue, 22 Jun 1999 10:55:30 +0100

[EMAIL PROTECTED] wrote:
> I recently purchased SuSe linux 6.1. I partitioned my hard drive in to two 
> equal drives. I am running Windows 95 and Linux. I can't set my modem up 
> under Linux because it is a winmodem. I want to download the new Gnome 
> rpm's on to my windows drive and install them. But some of them are to big 
> to put onto floppy disks and that is the only writeable drive that I have. 
> Is there anyway I can install The Gnome rpm's  directly from my Windows 95 
> drive? I would really appreciate some help.

Yes - you can mount the windows drive. man mount for more details. You 
can then either install the rpms straight from the windows drives, or 
copy the files onto your normal linux partitions (if you have a central 
rpm repository, for instance).

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: [EMAIL PROTECTED] (Doug DeJulio)
Crossposted-To: comp.os.linux.advocacy,comp.os.msdos.misc,uk.comp.os.linux
Subject: Re: Commercially speaking....?
Date: 21 Jun 1999 16:59:13 -0400

In article <[EMAIL PROTECTED]>,
Stuart Brady  <[EMAIL PROTECTED]> wrote:
>Well... it would be quite possible to have a $XSOUND variable, which
>could be used to transmit sound over another network protocol or file
>system. I'm not sure that the sound itself belongs in X, though. Maybe
>an event based sound system?

The problem with using a mechanism other than X is that you often want
audio and video to be in synch.  If they're completely separate, it's
harder to synchronize events.

Sometimes it would be nice to have a unified *media* server (regular
X-like graphics, complex 3d, audio, animations, etc) instead of the
simple graphical I/O server that X provides.  Lots of interesting work
would be simpler.
-- 
Doug DeJulio      | mailto:[EMAIL PROTECTED]
HKS, Incorporated | http://www.hks.net/~ddj/

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

From: [EMAIL PROTECTED] (Philip Brown)
Subject: Re: Could Microsoft Cheat On The New Mindcraft Benchmark? (was:  Mindcraft 
Retest News
Reply-To: [EMAIL PROTECTED]
Date: 21 Jun 1999 20:55:21 GMT

On Sun, 20 Jun 1999 03:26:29 GMT, [EMAIL PROTECTED] wrote:
>...
>Caldera is now in court trying to prove this to be fact. If they do,
>it will be most interesting to see what recompense they get from
>Microsoft.

it will be interesting to see (or rather, not see) what reompense microsoft
will offer to them, if microsoft thinks it is going to lose.
I figure they'll offer twice the amount of the potential judgement against
them, to avoid actually getting a negative ruling against them.

Happily, though, i think caldera is in this for the grudge factor, not the
money :-)


-- 
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
 --------------------------------------------------
The word of the day is mispergitude


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

From: Paul Sullivan <[EMAIL PROTECTED]>
Subject: Assigning Permissions for Public Directory
Date: Mon, 21 Jun 1999 23:04:16 +0200

Hi,

I'm trying to create a workgroup area for our staff on my school's Linux
server and have a problem getting sub-directories of the public
directory to appear/remain "public".

I got this procedure from one of the RedHat manuals...  (assume all
staff are part of somegroup and pub is the public directory)

chgrp somegroup pub
chmod g+s pub

This allows any file created in "pub" to be viewed & modified by any
member of somegroup, but if someone creates a directory and makes a file
in that, it is again visible to only that user.

My only though is to modify umask... but since pub is not on a seperate
volume my understanding is that it will also allow files in
/home/someuser to be publically accessible.

If any one can point me in the write direction I would appreciate it.

Regards
Paul Sullivan

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

From: Don Pederson <[EMAIL PROTECTED]>
Subject: Re: Linux on >8gb drives
Date: Mon, 21 Jun 1999 17:10:40 -0400

Thanks for the info.  I'll give it  a shot in the next few days.  I'm looking
forward to test driving Linux.

Don

+Pablo+ wrote:

> On Mon, 21 Jun 1999 12:29:08 -0500, "Trent" <[EMAIL PROTECTED]> wrote:
>
> >Linux can be installed anywhere.  The /boot martition should be uner the
> >1023 cylindar (under 8GB).  it only needs to be a 10 MB partition.  IT is
> >also good to have it on hda or sda if possible.
> >
> >
> >Don Pederson wrote in message <[EMAIL PROTECTED]>...
> >>I'm new to Linux.  I have a copy of Caldera 2.2 and am planning to
> >>install it on my Win98 system.  I have an IBM ATA-66 14gm hard disk, but
> >>have gotten the impression that the partition Linux is installed in must
> >>begin under the 8gb area.  Is this true?  If so, can I start it at say,
> >>7.5gb and go to 9.5gb?  I have Partition Magic 4.0, so I can create
> >>partitions easily.
> >>
> >>The messy thing about this is that then I have to have two partitions
> >>for Win98, one before and one after the Linux partition.
> >>
> >>Don Pederson
> >>
> >
>
> Don,
>
> Here is how I bypass the << 1023 cylinder boot partition problem
> (discovered accidentally):
>
> Use partition magic to shrink the existing win98 partition, leaving
> only what you want for Linux+Linux swap (suggest 2GB min), ignore
> (dont worry about) the cylinder restriction for Linux
>
> In partition magic:
> right click on "free space" in the map
> create a LOGICAL partition linux swap, start at the end of free space
> (suggest 64 to 128MB)
>
> right click on "free space" in the map
> create another LOGICAL partition linux ext2,  start at the beginning
> of free space, use the rest of the free space
>
> The magic is -
> this creates 2 LOGICAL drives inside an EXTENDED partition...
>
> Put in your boot cd, install Linux
>
> put lilo on the Linux partition (not on master boot record)
>
> reboot to win98
>
> install boot magic
>
> boot magic will see both WIN98 and Linux
>
> reboot betwixt and between with impunity
>
> Also, the Linux partitions are invisible to WIN98, no drive letter
> remapping required (:)>
>
> +Pablo+


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

From: [EMAIL PROTECTED] (H. Peter Anvin)
Crossposted-To: comp.os.linux.development.system,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: 22 Jun 1999 10:27:51 GMT
Reply-To: [EMAIL PROTECTED] (H. Peter Anvin)

Followup to:  <7kmb77$g44$[EMAIL PROTECTED]>
By author:    [EMAIL PROTECTED] (bill davidsen)
In newsgroup: comp.os.linux.development.system
>
> In article <[EMAIL PROTECTED]>,
> James Hewitt  <[EMAIL PROTECTED]> wrote:
> 
> | Okay, what is the "correct" way to specify an integer of a specific
> | size so that code can be cross-platform?  If there isn't an ANSI
> | standard, is there at least a convention for Linux?
> 
> There is no standard way to limit size, X3J11 only promised minimum
> size. You can use bitfields, but I believe they are limited in size to
> sizeof(int) if you want to be totally portable.
> 
> When I left GE I package all my X3J11 notes and never unpacked them,
> someone else will have to look up the wording.
> 

C9x defines a set of typedefs, uint32_t for an exactly 32-bit type,
for example.

        -hpa
-- 
"The user's computer downloads the ActiveX code and simulates a 'Blue
Screen' crash, a generally benign event most users are familiar with
and that would not necessarily arouse suspicions."
-- Security exploit description on http://www.zks.net/p3/how.asp

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

From: "Al @Work" <[EMAIL PROTECTED]>
Subject: Re: Linux and CableModems
Date: Tue, 22 Jun 1999 06:27:46 -0400

Andrew,

Read the mini-howto at
http://www.ssc.com/linux/LDP/HOWTO/mini/Cable-Modem.html

Can't speak to the provider issue in NVA...I use Comcast @Home in the
Baltimore area.

       Al

Andrew George <[EMAIL PROTECTED]> wrote in message
news:7knd48$[EMAIL PROTECTED]...
> If someone could provide me with information about how to go about getting
> setup with cable-modem access for linux, i'd appreciate it.   i'd also
> like to have a static IP address for this connection.  any and all
> information is appreciated, especially pertaining to ISPs that can offer
> this service in Fairfax County (Northern Virginia).  Thanks!
>
> - Andrew
> [EMAIL PROTECTED]



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

From: [EMAIL PROTECTED] (Georg Acher)
Crossposted-To: comp.os.linux.development.system,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: 22 Jun 1999 10:41:22 GMT


In article <7kmanm$4ni$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (bill 
davidsen) writes:
|> In article <7kdiu0$jqg$[EMAIL PROTECTED]>,
|> Georg Acher <[EMAIL PROTECTED]> wrote:
|> 
|> | On Alpha-Linux, an int is 32bit and a long is already 64bit, so you don't need
|> | long long there. Sometime x86-coders think that an int are not real 32bit, and
|> | decide to use long to get 'real, authentic and good' 32bit. This is #2 in the
|> | TOP10-list of "How to write programs that crash on Alpha". #1 is the assumption
|> | "sizeof(int)==sizeof(void*)=4" ;-)
|> 
|> Unless I totally misremember the C standard, an int is allowed to be 16
|> bits, and those of us who worry about portability have gotten into using
|> long, even on systems which are known not to have 16 bit int, and
|> applications which are not portable.

Well, that's the ugly (portable?) type concept of C. DOS-compilers (and even
Pure-C on the Atari) had an int-size of 16, and I used long to get 32bit...
But since I have an Alpha, I consider this very variable sizes as a big
design mistake.

IMHO nobody is thinking about the possibility that an int can be 16bit when
programming for Linux. The clean solution is to specify the length you want for
your variable (__int32 etc.), all other assumptions lead to portability problems.
As mentioned in types.h for Alpha, there exist even 32bit compilers for Alpha, so
you simply can't rely on the C types...

-- 
        Bye
         Georg Acher, [EMAIL PROTECTED]         
         http://www.in.tum.de/~acher/
          "Oh no, not again !" The bowl of petunias          

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


** 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.misc) 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-Misc Digest
******************************

Reply via email to