Linux-Development-Sys Digest #196, Volume #7     Wed, 15 Sep 99 00:14:02 EDT

Contents:
  porting unnamed structures (Michael Minnick)
  Re: Max threads and TCP connections? (Joseph H Allen)
  Re: Linux standards compliance (Leslie Mikesell)
  Re: Can only see 8Gb of 13Gb disk. (Christopher Browne)
  Re: loadkeys/compose (Michel Catudal)
  Re: TAO: the ultimate OS ("Vladimir Z. Nuri")
  Re: TAO: the ultimate OS ("Vladimir Z. Nuri")
  Re: 497.2 days ought to be enough for everybody (Jamie Walker)
  Re: Max threads and TCP connections? (David Schwartz)
  Re: porting unnamed structures (Paul J Collins)
  Re: Figure Out The MS Source Code Yourself (John Hasler)
  Problem with pcmcia 3.09 source code: MISSING FILE? (Kenny McCormack)
  Booting Linux on Sparc Classic using Null-Modem Connection for Console. (Nicholas 
Dronen)
  Re: Linux standards compliance (Leslie Mikesell)
  Re: Linux standards compliance (Mario Klebsch)
  Re: Linux standards compliance (Mario Klebsch)

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

From: Michael Minnick <[EMAIL PROTECTED]>
Subject: porting unnamed structures
Date: Tue, 14 Sep 1999 17:02:10 -0500

/*
I have a ton of Windoz code to port Linux that uses unnamed structures
with bit fields as follows:
*/

struct {
  struct {
    int foo:1;
  };
} trouble;

main()
{
  /* compiler finds foo even though inside unnamed struct */
  trouble.foo = 1;
}

/*
This compiles fine with MS VisualC++ but with gcc 2.91.66 I get:

hello.c:4: warning: unnamed struct/union that defines no instances
hello.c: In function `main':
hello.c:9: structure has no member named `foo'

I could of course name all the internal structures, but that means
changing lots of code to:

trouble.x.foo = 1;

Any ideas anyone?

Thanks,
Mike
*/


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

From: [EMAIL PROTECTED] (Joseph H Allen)
Subject: Re: Max threads and TCP connections?
Date: Tue, 14 Sep 1999 21:17:37 GMT

In article <7rm4qt$fdp$[EMAIL PROTECTED]>,
bill davidsen <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>Joseph H Allen <[EMAIL PROTECTED]> wrote:
>
>| >  Could you point me to the programs you have written to demonstrate
>| >where we have all gone wrong? I'd like your news server to replace INN,
>| 
>| Actually, I've been wanting to rewrite news for years.  The articles should
>| be stored in a big circular buffer made out of a raw disk partition instead
>| of as separate files.  The lifetime of the article would be set by how many
>| times it is forwarded around the ring.  Of course you always need enough ram
>| for the article id index...  Then maybe news would be in a high enough
>| performance situation where the connection architecture would actually
>| matter (beyond overcoming tcp/ip connection establishment overhead anyway).
>
>  Sounds just like INN to me. I still want to see how you get rid of one
>thread or process per reader in a portable way.

There are only two UNIX ways to multiplex I/O: select() and poll().  You
probably only have to worry about select() since all modern vendors of SYSV
provide select() anyway.

Of course you need posix threads to go beyond that, but threads could be
optional extension of an event driven implementation (each news protocol
command is trivial, so even a single-process event driven model would work
well, and avoid huge process creation costs).
-- 
/*  [EMAIL PROTECTED] (192.74.137.5) */               /* Joseph H. Allen */
int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
+r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2
]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}

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

From: [EMAIL PROTECTED] (Leslie Mikesell)
Subject: Re: Linux standards compliance
Date: 14 Sep 1999 18:49:38 -0500

In article <[EMAIL PROTECTED]>,
Bill Anderson  <[EMAIL PROTECTED]> wrote:

>> Expensive?  I guess I'll have to change hobbies.  I think they are
>> less than 16K (yes K) of memory cost for the first computer I had.
>
>Actually, I was referring to the licensing for the makers of code. From
>what I have been told, getting an NDA is _quite_ expensive. 
>#include <stddsclmr.h>

I'd be moderately happy to use a hardware decoding card if that
makes things any easier.  It fits nicely with the philosophy
that device vendors should provide the software, even if it
turns out to be firmware.

  Les Mikesell
   [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Christopher Browne)
Crossposted-To: comp.os.linux.misc
Subject: Re: Can only see 8Gb of 13Gb disk.
Reply-To: [EMAIL PROTECTED]
Date: Wed, 15 Sep 1999 00:23:56 GMT

On Tue, 14 Sep 1999 01:12:00 GMT, Robert Heller <[EMAIL PROTECTED]> wrote:
>  Web Serf <[EMAIL PROTECTED]>,
>  In a message on Mon, 13 Sep 1999 01:05:57 +0000, wrote :
>
>WS> Hello all,  A long time ago I installed RH5.1 on this box and after
>WS> trying a few things gave up on the idea of using more than 8GB of my
>WS> 13Gb disk (I understand the BIOS limitations problem).  In a while I'll
>WS> be getting a new system and reformatting this one.  I have tried adding
>WS> 'append hda="1647,256,63"' to the lilo.conf file.  This didn't work. 
>WS> Any ideas?
>
>What does your partition table look like?  The Ext2 fs can only deal
>with about 9 gig/partition, but Linux has no trouble with properly
>*partitioned* disks of much larger sizes.

I don't believe you nearly as much as I believe Stephen Tweedie, who
is being paid to maintain and enhance the code of ext2.

See:
<http://www.uwsg.indiana.edu/hypermail/linux/big-linux/9602/0369.html>

From: Stephen Tweedie ([EMAIL PROTECTED])
Date: Fri, 9 Feb 1996 22:52:00 GMT 
Subject: Re: Experience with a "big" linux system

Hi,

On Thu, 8 Feb 1996 23:46:56 -0500, Lee Silverman <[EMAIL PROTECTED]> said:

> At 9:23 PM 2/6/96, Matt 'Panzer Boy' wrote:
>> What's the max partition size on a ext2 filesystem? I know it was 2gigs
>> a long time back, but I vaguelly remember reading that that had changed.

> I think that limitation went away with ext2fs 0.5b.

Yes, it did.

> It's probably not in the terabyte range, though, since ext2fs is a
> 32 bit filesystem.

Surprise --- the maximum ext2fs size is 1TB. This is a limit of the
underlying drivers, actually: a normal, signed 32-int goes up to 2^31,
and we use 32-bit ints to address block devices by sector offset, so
if we have 512-byte sectors we get an upper limit of 2^31 * 512 = 1TB.

With a 1K sector size we could address up to 2TB of disk. Larger
sector sizes would not help, since by default ext2fs uses a 1K block
size and you'd encounter the same limit with signed int block numbers.
However, ext2fs will cater for block sizes up to 4K, and using 4K
blocks on the filesystem on top of a 4K-sector disk drive, you could
in theory get away with a maximum filesystem size of 8TB.

Although the filesystem is *mostly* 32 bit, we do support 64-bit
addressed access to the physical block device in order to allow
programs such as e2fsck to access the full partition beyond the 32-bit
boundary.

> Then again, since there's no md driver for Linux, it's hard to get
> over a few gigabytes in a partition without an external RAID.

I know of one site where they had four 9GB drives hooked up with the
md raid driver to give a single 36GB ext2fs filesystem! ext2fs will
work quite happily at these sizes.

Cheers,
Stephen.
--
Stephen Tweedie <[EMAIL PROTECTED]>
Department of Computer Science, Edinburgh University, Scotland.

-- 
"NT 5.0 is the last nail in the Unix coffin. Interestingly, Unix isn't
in the coffin... It's wondering what the heck is sealing itself into a
wooden box 6 feet underground..." -- Jason McMullan
[EMAIL PROTECTED] <http://www.hex.net/~cbbrowne/linuxkernel.html>

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

From: Michel Catudal <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: loadkeys/compose
Date: 14 Sep 1999 20:00:04 -0500

Peter Samuelson wrote:
> 
>   [Bert Douglas]
> > > 2) are you limited to one <compose> key in Linux?
> [Dirk Foersterling <[EMAIL PROTECTED]>]
> > You can do virtually anything with that one key. Why would you need a
> > second one? Maybe you ask yourself after you read what it really is.
> 
> Hey, he had a valid point.  Apparently in 'doze, you can configure the
> keyboard so that you only need two keystrokes (a dead key and a regular
> key) to get a composed char.  On Linux you have to hit `compose' first.
> Of course, the easy workaround is global-set-key, but then again that
> only works if you never leave Emacs. <g>
> 
> --
> Peter Samuelson
> <sampo.creighton.edu!psamuels>

If you use .Xmodmap like I describe on my web site it is almost the same as
on winblows except that you can add more key combinations with AltGr and change
the winblows keys. Dead keys work perfectly.


-- 
Tann� du plantage avec Ti-Mou?
C'est l'temps d'essayer Linux
http://www.netonecom.net/~bbcat/
We have software, food, music, news, search,
history, electronics and genealogy pages.

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

From: "Vladimir Z. Nuri" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: 15 Sep 1999 00:57:48 GMT

In comp.os.misc Doug Sauder <[EMAIL PROTECTED]> wrote:

: Well, let's see. Suppose Microsoft feels so threatened by Tao, that they offer
: you $$$ to shelf the project.  :-)

not possible with an open source arrangement as I was indicating,
which has a built in system avoiding most forms of exploitation.
if all programmers working on the code have access to all the
code, how can they be exploited? they are free to push the
overall project in any direction they like.

this is not to say there are no problems with the conflict
between capitalism & open source, only that there is a buffer.


-- 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
state of the art OS research email     http://www.egroups.com/groups/os-edge/
Tao OS / Taos / the transcendental OS  http://www8.pair.com/mnajtiv/tao.html 

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

From: "Vladimir Z. Nuri" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: 15 Sep 1999 00:56:03 GMT

In comp.os.misc Bill Anderson <[EMAIL PROTECTED]> wrote:
: When your goal is to develop some sort of financial gain, it is not
: 'donating' your time.
:  

I'm donating my time & keeping my future options open.

I do wonder if there is a way to tie the capitalistic process
(which has very successfully resulted in Moore's law & other
technological miracles) to open source, in a fair way.
I don't believe they are mutually incompatible as recent
events are demonstratig (red hat IPO etc)

:> I agree the problem of exploitation is a serious one for the
:> open OS community to consider.. the red hat angle
:> is going to become problematic in the future I believe.
:> merely throwing out a lot of IPO stock rights to
:> various developers possibly only increased the acrimony.

: Bull.

perhaps you did not read about the acrimony surrouding the
events of the IPO in which red hat offered stock options
to some developers but not others based on a byzantine
& incomprehensible system.

-- 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
state of the art OS research email     http://www.egroups.com/groups/os-edge/
Tao OS / Taos / the transcendental OS  http://www8.pair.com/mnajtiv/tao.html 

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

From: Jamie Walker <[EMAIL PROTECTED]>
Subject: Re: 497.2 days ought to be enough for everybody
Date: Tue, 14 Sep 1999 22:14:35 +0100

In article <7rm6h1$fh8$[EMAIL PROTECTED]>, bill davidsen
<[EMAIL PROTECTED]> writes
>In article <[EMAIL PROTECTED]>,
>David Schwartz  <[EMAIL PROTECTED]> wrote:
>| 
>|      There were numerous jiffy wrap bugs. It's possible that when the wrap
>| occured, you just weren't near any of the problem code.
>
>  Hum, I may have the longest running Linux server on the planet, then.
>I'll have to try to guess how long it has been up, uptime has
>undoubtedly long since died.
>
Check the modified date on the kernel, assuming it hasn't been rebooted
since you upgraded it?

:)
-- 
Jamie Walker,                     http://www.howgarth.demon.co.uk/
LaL Computers: http://lal.rvx.net/ <- for cheap computer hardware.

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

From: David Schwartz <[EMAIL PROTECTED]>
Subject: Re: Max threads and TCP connections?
Date: Tue, 14 Sep 1999 15:13:59 -0700


        Sure, that's great. It's just not very convenient for a web server. :)

        If you wind up reinventing a file system, them it probably won't work
well. But, on the other hand, if you have special requirements that the
file system isn't well-equipped to handle, that's another story.

        DS

Joseph H Allen wrote:
> 
> In article <[EMAIL PROTECTED]>,
> Joseph H Allen <[EMAIL PROTECTED]> wrote:
> >In article <[EMAIL PROTECTED]>,
> >David Schwartz  <[EMAIL PROTECTED]> wrote:
> 
> >>      I'd probably also implement an in-memory cache for frequently accessed
> >>files. Even though they'd wind up in the buffer cache, keeping them in
> >>my own cache will save system calls. (This is nice because files on a
> >>news server change only very seldom. It works great for web servers, in
> >>my experience.)
> 
> >just use memory mapped files.
> 
> actually I mean memory map the entire drive containing the news articles.
> Of course keeping the articles on a raw partition means giving up the NFS
> exported or the local /usr/spool/news directory: instead everybody has to
> use NNTP to read the articles through the server.
> --
> /*  [EMAIL PROTECTED] (192.74.137.5) */               /* Joseph H. Allen */
> int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
> +r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2
> ]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}

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

From: Paul J Collins <[EMAIL PROTECTED]>
Subject: Re: porting unnamed structures
Date: 15 Sep 1999 00:44:47 +0100

>>>>> "Michael" == Michael Minnick <[EMAIL PROTECTED]> writes:

--snip--
    Michael> hello.c:4: warning: unnamed struct/union that defines no
    Michael> instances hello.c: In function `main': hello.c:9:
    Michael> structure has no member named `foo'
--snip--

AFAIR, that is an extension that Microsoft added.  I cannot remember
the rationale for it.  It is logical that it could exist, given that
C++ has anonymous unions (and I think they will be in the next C
standard, whatver that one is; I have forgotten the name).

Paul.

-- 
Paul Collins <[EMAIL PROTECTED]>   Public Key On Keyserver.
Fingerprint: 88BA 2393 8E3C CECF E43A  44B4 0766 DD71 04E5 962C
             "I am a stranger in a strange land,
              distracted by bright and shiny objects."

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

From: John Hasler <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Figure Out The MS Source Code Yourself
Date: Tue, 14 Sep 1999 21:27:29 GMT

Dave Newton writes:
> No, I'm not concerned about the law because it's ridiculous.

Most laws are ridiculous.  Governments, however, are deadly serious about
enforcing them.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI

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

From: [EMAIL PROTECTED] (Kenny McCormack)
Crossposted-To: comp.os.linux.misc
Subject: Problem with pcmcia 3.09 source code: MISSING FILE?
Date: 14 Sep 1999 21:42:00 -0500
Reply-To: [EMAIL PROTECTED]

I have noticed something "interesting" about the pcmcia source code.

Oberve:

%) cd /usr/src/linux
%) find -name config.h -ls
187781    1 -rw-r--r--   1 root     root           85 Jan  5  1998
./include/linux/config.h
153215    1 lrwxrwxrwx   1 root     root           18 Sep 10 17:50
./pcmcia-cs-3.0.9/include/linux/config.h -> ../pcmcia/config.h
%) cat /usr/src/linux/pcmcia-cs-3.0.9/include/linux/config.h 
cat: /usr/src/linux/pcmcia-cs-3.0.9/include/linux/config.h: No such file or directory

Obviously (and yes, I've tried), any program that includes config.h from
pcmcia-cs-3.0.9/include/linux will fail to compile.

Is there a fix?

Note: If you followup on Usenet, be sure to include c.o.l.misc, as that is
the only group (to which this has been posted) that I read.

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

From: [EMAIL PROTECTED] (Nicholas Dronen)
Subject: Booting Linux on Sparc Classic using Null-Modem Connection for Console.
Date: Wed, 15 Sep 1999 02:12:44 GMT

Hi,

I've just installed Debian Linux (kernel 2.0.35) on a Sparc Classic.
A null-modem connection and minicom have provided the console so
far.  The installation seems to have went well.

The problem is that -- from the perspective of the console -- the
system appears to hang at the following:

        VFS: Mounted root (ext2 filesystem) readonly.
        Freeing unused kernel memory: 40k code, 4k data

However, when the last line is printed, the internal scsi disk starts
to churn, which I take to mean that the system is booting.  I imagine
that the problem is that the console is switching from the serial port
to some other device, but I don't know that for sure.   Is there a
parameter I can pass to the kernel to work around this?  Should I do
something in the openprom?  Anyone know off hand what's happening here?

Regards,

Nicholas

P.S.  I posted this to comp.os.linux.setup recently, but got no takers.
comp.os.linux.development.system seemed like the next best place to
ask.

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

From: [EMAIL PROTECTED] (Leslie Mikesell)
Subject: Re: Linux standards compliance
Date: 14 Sep 1999 22:26:24 -0500

In article <[EMAIL PROTECTED]>,
Mario Klebsch <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] (Leslie Mikesell) writes:
>
>>I think vendors are correct in ignoring any operating system that
>>doesn't take itself seriously enough to nail down a device 
>>driver API for them.
>
>You write API, but you mean ABI, don't you?

Aren't they the same as long as you don't change them?

  Les Mikesell
   [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: Linux standards compliance
Date: Tue, 14 Sep 1999 18:59:23 +0200

[EMAIL PROTECTED] (Leslie Mikesell) writes:

>I think vendors are correct in ignoring any operating system that
>doesn't take itself seriously enough to nail down a device 
>driver API for them.

You write API, but you mean ABI, don't you?

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: Linux standards compliance
Date: Tue, 14 Sep 1999 19:06:18 +0200

Mark McDougall <[EMAIL PROTECTED]> writes:

>Nix wrote:

>Pure idealist sentimentality. Out here in the evil *real* world, where
>heathen programmers actually get paid for writing software, our task is
>complicated by many more considerations than your simplistic analysis.
>Ever heard of requirements specifications? Detailed design? Coding for
>maintainability? My paycheck depends on how well *these* things are
>done!

I have been long enough in the evil *real* world to learn, that even
Software, whoch is payed for, often is not work its money. Several
times, when the vendors support was unable to help me any further, I
got part of ther source to fix it myself. And far too often, it was
really poor quality. :-(

Since I really needed the Software, I even rewrote the entire program
to fit my needs. Without the source, I would have been lost, any my
project, too.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

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


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

Reply via email to