Linux-Development-Sys Digest #152, Volume #8     Sun, 17 Sep 00 16:13:10 EDT

Contents:
  Re: new windowing system ("John Smith")
  Re: new windowing system (Kaz Kylheku)
  Re: new windowing system (Grant Edwards)
  Turning swap off ("H�kan")
  Asynchcrounous read and write ("Klas Sehlstedt")
  current working directory lib function. ("Richard Lim")
  Memory hole problem (The Hack)
  Re: new windowing system (Aurel Balmosan)
  Re: More then one bind to a ip-port possible? (Aurel Balmosan)
  Re: ext2 file size limit? (Andreas Jaeger)
  Re: ext2 file size limit? (Andreas Jaeger)
  Re: ext2 file size limit? (Alexander Viro)
  Re: ext2 file size limit? (Andreas Jaeger)
  Re: current working directory lib function. ("Arthur H. Gold")
  I Need A Shell Script, Or A C Program.... (Michael Lauzon)
  I Need A Shell Script, Or A C Program.... (Michael Lauzon)
  programming a nss  service ("Andreas Moroder")
  Re: I Need A Shell Script, Or A C Program.... (Neil Schemenauer)

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

From: "John Smith" <[EMAIL PROTECTED]>
Subject: Re: new windowing system
Date: Sun, 17 Sep 2000 03:23:27 GMT

It's "neck of the woods", idiot.

"Stefaan A Eeckels" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> In article <[EMAIL PROTECTED]>,
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> >
> BTW, do they still say "robot" for a traffic light
> in your nick of the woods?




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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: new windowing system
Reply-To: [EMAIL PROTECTED]
Date: Sun, 17 Sep 2000 04:21:08 GMT

On Sun, 17 Sep 2000 03:23:27 GMT, John Smith <[EMAIL PROTECTED]> wrote:
>It's "neck of the woods", idiot.
>
>"Stefaan A Eeckels" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> In article <[EMAIL PROTECTED]>,
>> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
>> >
>> BTW, do they still say "robot" for a traffic light
>> in your nick of the woods?

Stefaan Eeckels is obviously not an English name; LU is the country code for
Luxembourg.  

I wonder, should we put to the test *your* mastery of linguistic colloquialisms
unique to Luxembourg?

By the way, the proper place for a Usenet reply is *below* the fscking quotes,
not above.  If you are going to call someone an idiot in a Linux newsgroup,
it kind of helps *not* to be running MS Outlook as your newreader. :)

* Chuckle *

-- 
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.

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

From: [EMAIL PROTECTED] (Grant Edwards)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: Sun, 17 Sep 2000 05:38:30 GMT

In article <8q0rud$pit$[EMAIL PROTECTED]>, Karl Heyes wrote:

>> One point I have to make: Why is everyone thinking that a socket
>> (tcp/ip, unix, ...) connection is slow? Especially when it comes
>> to X the Xlib communication layer knows how to use it efficiently.
>
>sockets add extra wrapping around the data thats coming from the
>applications, things like tcp/ip.

You've really got your X configuration screwed up if it's using TCP/IP for
local connections between client/server.  I've been running X11 for 12 years
on lots of different OSes, and none of them ever used TCP/IP when client and
server are on the same machine.

>A more popular thing happening these days is 3d work, which is going though
>DRI which is not network based anyway. Linux is nice and fast on TCP/IP but
>IP has a disadvantage when dealing locally.

That's why X doesn't use IP when dealing locally.  Did you really think the
developers of X are that stupid?

For high-bandwidth stuff, even the Unix domain sockets are bypassed and
shared memory is used for transferring data between client and server.

-- 
Grant Edwards                   grante             Yow!  Where do your SOCKS
                                  at               go when you lose them in
                               visi.com            th' WASHER?

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

From: "H�kan" <[EMAIL PROTECTED]>
Subject: Turning swap off
Date: Sun, 17 Sep 2000 14:23:34 +0200

Hi List

What happend if I turning swap offt? Should I see any preformace downloads?
Not so good network preformance? Does anyone know?

Second question:
How do I turn the swap off. Is it enough to remove the swap entry in
/etc/fstab
or do I have to do more??
Probebly you wonder why do that... ... I working with a embedded Linux
system!

TIA
--
/H�kan
My email address is not valid use
h DOT kan AT home DOT se




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

From: "Klas Sehlstedt" <[EMAIL PROTECTED]>
Subject: Asynchcrounous read and write
Date: Sun, 17 Sep 2000 14:56:43 +0200

Hi

Does linux have support for asynchrounus read and write.

I'm looking for something similar to solaris aread, awrite ?

This can offcourse be done by sending a suitable iocontrol
and let the driver when its finnished sending a signal when the
operation is finnished. This is describewd in
Rubinis deveice driver book

But I think this is to slow for my purposes.


Is there another way ?

Klas Sehlstedt





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

From: "Richard Lim" <[EMAIL PROTECTED]>
Subject: current working directory lib function.
Date: Sun, 17 Sep 2000 21:05:33 +0800

Hi,
how can i get current working directory using a lib fuction?
please advice.

regards,
richard lim



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

From: The Hack <[EMAIL PROTECTED]>
Subject: Memory hole problem
Date: Sun, 17 Sep 2000 16:42:17 +0200

SGkhDQoNCkhlcmUncyB0aGUgdGhpbmchDQpJJ3ZlIHJlY2VudGx5IGJvdWdodCBhbiBBdGhs
b24gNzUwIGFuZCBhbiBBYml0IEtBNy0xMDAgbW90aGVyYm9hcmQgZm9yDQppdC4gSXQgd2Fz
bid0IGxvbmcgYmVmb3JlIEkgZm91bmQgb3V0IHRoYXQgbXkgdXN1YWxseSBmdW5jdGlvbmFs
IFNCIENMDQpQQ0kgMTI4IHNvdW5kIGNhcmQgZGlkbid0IHdvcmsuIFRoZSByZWFzb24gd2Fz
ICggYXBwYXJlbnRseSApIHRoYXQgdGhlDQpjYXJkIHJlZnVzZXMgdG8gd29yayB1bmxlc3Mg
YSBtZW1vcnkgaG9sZSAoMTVNLTE2TSkgaXMgZW5hYmxlZCBpbiBCSU9TLg0KU28gYWZ0ZXIg
dHJ5aW5nIHRoYXQgSSBmb3VuZCAoIHRvIG15IGdyZWF0IHN1cnByaXNlICkgdGhhdCB0aGUg
Y2FyZA0Kd29ya3MsIGJ1dCBsaW51eCBkb2VzIG5vdC4gQWN0dWFsbHkgbGludXggd29ya3Mg
YnV0IHdpdGggb25seSAxNiBNQiBvZg0KbWVtb3J5IGluc3RlYWQgb2YgMTI4LiBOb3csIEkg
dGFrZSBpdCB0aGVyZSdzIGVpdGhlciBhIHZlcnkgc2ltcGxlIGFuZA0KbG9naWNhbCB3YXkg
b2YgZGVhbGluZyB3aXRoIHRoaXMsIG9yIGEgdmVyeSBkaWZmaWN1bHQgYW5kIGxvZ2ljYWwg
b25lICgNCmxpa2UgZXZlcnl0aGluZyBpbiBwcm9ncmFtaW5nICkuDQoNCkFueSBoZWxwIHdv
dWxkIGJlIHdlbGNvbWUNCkFscmVhZHkgZ3JhdGVmdWwNCg0KICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgVC5ILg0K

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

Crossposted-To: comp.os.linux.x,comp.windows.x
From: Aurel Balmosan <[EMAIL PROTECTED]>
Subject: Re: new windowing system
Date: Sun, 17 Sep 2000 14:53:56 GMT

In comp.os.linux.development.system Karl Heyes <[EMAIL PROTECTED]> 
wrote:
> sockets add extra wrapping around the data thats coming from the
> applications, things like tcp/ip.  It's not much in itself but every
> piece of information has its own, and each has to processed through
> the networkl stack. They are useful when dealing over a network but
> run locally it adds an overhead, which can add up.

Your right, but what kind of application would suffer from it? I
think only games would.

> A more popular thing happening these days is 3d work, which is going 
> though DRI which is not network based anyway. Linux is nice 
> and fast on TCP/IP but IP has a disadvantage when dealing locally. 

Most of us are using UNIX sockets anyway. Also it is a thing about the
Xlib implementation if it notice that the server is a local one and then
to i.e. DRI anyway. This could have been done years ago. I thing SGI has
this quite a while in their server's and xlib implementations.


> karl 

-- 
================================================================
Aurel Balmosan                |  [EMAIL PROTECTED], [EMAIL PROTECTED] 
http://gaia.owl.de/~aurel/    |                                 
================================================================

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

From: Aurel Balmosan <[EMAIL PROTECTED]>
Subject: Re: More then one bind to a ip-port possible?
Date: Sun, 17 Sep 2000 15:01:01 GMT

Mario Klebsch <[EMAIL PROTECTED]> wrote:
> Aurel Balmosan <[EMAIL PROTECTED]> writes:

> >I know that this feature is none standard and that it
> >will only work with packet orientated transmissions
> >(like UDP) and only when two packets contain always 
> >independend data. Would it be difficult to introduce
> >this feature also into Linux?

> You should already be able to do it in Linux (as on most other UNIXes,
> too). You create the socket in a parent process and inherit it to each
> child.

Yes, this is a way too. The only disadvantage I see is that you can not
start another server processes from the outside. And you have
to do the process handling (starting new processes ...) within your
server. 

Maybe I can change my server to do that.

Bye,
        Aurel.


> 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
-- 
================================================================
Aurel Balmosan                |  [EMAIL PROTECTED], [EMAIL PROTECTED] 
http://gaia.owl.de/~aurel/    |                                 
================================================================

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

From: Andreas Jaeger <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: ext2 file size limit?
Date: 17 Sep 2000 17:33:50 +0200

>>>>> Mikko Rauhala writes:

Mikko> On Sat, 16 Sep 2000 17:53:18 -0700, Paul Reilly <[EMAIL PROTECTED]> wrote:
>> Can someone tell me what the max size for a single file is in linux?

Mikko> On 32-bit platforms it's the 2 gigs you just hit. This limit is removed
Mikko> in the 2.4-series kernels (currently in testing phase), though you of course
Mikko> need a recent enough libc as well, and to compile the app with a 64-bit
Mikko> size_t.

Have a look at my page for details:
http://www.suse.de/~aj/linux_lfs.html


Mikko> Support for 64-bit sizes has also been backported to the 2.2-series, and
Mikko> I believe at least Red Hat's default kernel has the patch included.

SuSE did it, for other distributions I've got no definite information.

Mikko> Also, on 64-bit platforms 64-bit files are of course supported.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs [EMAIL PROTECTED]
   private [EMAIL PROTECTED]
    http://www.suse.de/~aj

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

From: Andreas Jaeger <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: ext2 file size limit?
Date: 17 Sep 2000 17:35:35 +0200

>>>>> Alexander Viro writes:

 > In article <[EMAIL PROTECTED]>,
 > Christopher Browne <[EMAIL PROTECTED]> wrote:
>> ext2fs has a file size limit of _2TB,_ I'm sorry, but the limit that
>> is being hit is _not_ a filesystem limit, but rather a limitation in
>> the interface between VFS and GLIBC on 32 bit platforms.

 > Yaaaaargh... OK, it seems to become a FAQ

 > Q: is it true that ext2 has 2Gb limit on file size?
 > A: BS

 > Q: so how comes that I can't create files larger than that?
 > A: because VM in Linux 2.2 and earlier can't cope with files larger than
 > 2.2 on 32-bit architectures. Regardless of filesystem.

 > Q: will reiserfs help?
 > A: what part of "regardless of filesystem" is too hard to understand?

 > Q: OK, so what can I do, I'm stuck with 32-bit box?
 > A: use 2.4 _or_ 2.2 with LFS patches _or_ FreeBSD. All of them will handle
 > more than 2Gb on ext2.

 > Q: I've done that, and half of utilities doesn't work
 > A: That was a question?

 > Q: OK, _why_?
 > A: because if libc thinks that offsets are 32 bit it's not going to pass
 > anything larger to the kernel

 > Q: what should I do?
 > A: get sufficiently recent libc. And learn to use search engines, already -
 > all that stuff had been beaten to death _many_ times.

Q: Why does it still not work?
A: Compile your applications so that they use the LFS interface.

 > Q: why...
 > A: excuse me, what was your username, again?

 > Q: ... are you so... Hey, what's up with this NIC? It's sparAAAAAASSSHHH<thud>

Andreas
-- 
 Andreas Jaeger
  SuSE Labs [EMAIL PROTECTED]
   private [EMAIL PROTECTED]
    http://www.suse.de/~aj

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

From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: ext2 file size limit?
Date: 17 Sep 2000 11:55:14 -0400

In article <[EMAIL PROTECTED]>,
Andreas Jaeger  <[EMAIL PROTECTED]> wrote:

> > A: get sufficiently recent libc. And learn to use search engines, already -
> > all that stuff had been beaten to death _many_ times.
>
>Q: Why does it still not work?
>A: Compile your applications so that they use the LFS interface.

Covered by the previous actually - /usr/include/*.h comes from libc...

-- 
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

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

From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: ext2 file size limit?
Date: 17 Sep 2000 19:00:08 +0200

>>>>> Alexander Viro writes:

Al> In article <[EMAIL PROTECTED]>,
Al> Andreas Jaeger  <[EMAIL PROTECTED]> wrote:

>> > A: get sufficiently recent libc. And learn to use search engines, already -
>> > all that stuff had been beaten to death _many_ times.
>> 
>> Q: Why does it still not work?
>> A: Compile your applications so that they use the LFS interface.

Al> Covered by the previous actually - /usr/include/*.h comes from libc...
It might be that I misunderstood your previous Q&As but that
wasn't clear to me.

I know what's in libc.  If you just use the normal interface, you'll
only get 32 bits - you have to use explictly the LFS interface (or
compile with -D_FILE_OFFSET_BITS=64).

Andreas
-- 
 Andreas Jaeger
  SuSE Labs [EMAIL PROTECTED]
   private [EMAIL PROTECTED]
    http://www.suse.de/~aj

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

Date: Sun, 17 Sep 2000 12:55:51 -0500
From: "Arthur H. Gold" <[EMAIL PROTECTED]>
Subject: Re: current working directory lib function.

Richard Lim wrote:
> 
> Hi,
> how can i get current working directory using a lib fuction?
> please advice.
> 
> regards,
> richard lim
man getcwd

HTH,
--ag
-- 
Artie Gold, Austin, TX  (finger the cs.utexas.edu account
for more info)
mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED]
--
"I'd sooner fly another combat mission than ride the Cyclone
again" -- Joseph Heller

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

From: [EMAIL PROTECTED] (Michael Lauzon)
Subject: I Need A Shell Script, Or A C Program....
Date: Sun, 17 Sep 2000 18:10:35 GMT

I need a shell script to run as root, it will search all the users who have MP3s, list 
there usernames, 
list the MP3s, and delete them if I so desire.  So, what I am looking for is as 
follows.  A 
program that searches, lists each user with a number before their username, which then 
the program will
let me choose which user by number (or name), list all the MP3s that the user has and 
asks me if I want
to delete them all at once, or one by one.  This could also be a C program.  I need 
this by Monday at the
earliest, and a week Monday at the latest.
-- 
Michael
http://www.geocities.com/SiliconValley/Way/9180/

'Eat, drink, and be merry, for tomorrow you may work.'

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

From: [EMAIL PROTECTED] (Michael Lauzon)
Subject: I Need A Shell Script, Or A C Program....
Date: Sun, 17 Sep 2000 18:09:59 GMT

I need a shell script to run as root, it will search all the users who have MP3s, list 
there usernames, 
list the MP3s, and delete them if I so desire.  So, what I am looking for is as 
follows.  A 
program that searches, lists each user with a number before their username, which then 
the program will
let me choose which user by number (or name), list all the MP3s that the user has and 
asks me if I want
to delete them all at once, or one by one.  This could also be a C program.  I need 
this by Monday at the
earliest, and a week Monday at the latest.
-- 
Michael
http://www.geocities.com/SiliconValley/Way/9180/

'Eat, drink, and be merry, for tomorrow you may work.'

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

From: "Andreas Moroder" <[EMAIL PROTECTED]>
Subject: programming a nss  service
Date: Sun, 17 Sep 2000 20:50:09 +0200

Hello I would like to write a new nsswitch service that gets all the data
from novell nds instead of "files".

I am just making the first steps and have few problems with nss. The first
service I try to add is the group service and I wrote a sample. All works
well, except

getgrent_r.

If i log in the debug code show me that setgrent ist opened, and getgrent_r
is called two times.
I don't understand why it is not called six times.

Remember it is onyl a sample, but it should work.
(  don't forget to delete it from nsswitch.conf before you shut down your
machine. )

It would be very nice if anyone can give a look at the sources and tell me
whats wrong in my first test code.

Remember, this is

Thank you

Andreas Moroder

#include <nss.h>
#include <grp.h>
#include <sys/types.h>


char *GRP_NAME[]={"root","bin","daemon","kock","bo","tty"};

static int ent=0;

#define DEBUG(x)  debug((x))

void
debug(char *str)
{
 write(2,str,strlen(str));
 sleep(1);
}

enum nss_status _nss_nds_setgrent(void)
{
 DEBUG("SET\n");
 ent=0;
 return NSS_STATUS_SUCCESS;
}


enum nss_status _nss_nds_endgrent(void)
{
 DEBUG("END\n");
 return NSS_STATUS_SUCCESS;
}

enum nss_status _nss_nds_getgrent_r(struct group *result_buf, char *buffer,
size_t buflen)
{
 char buf[10];

 result_buf->gr_mem=NULL;
 result_buf->gr_gid=ent;

 if(strlen(GRP_NAME[ent])>=buflen) {
  DEBUG("AGAIN\n");
  return NSS_STATUS_TRYAGAIN;
 }

 strcpy(buffer,GRP_NAME[ent]);
 result_buf->gr_name=buffer;

 sprintf(buf,"%d##%s\n",ent,buffer);
 ent++;
 if(ent>6) {
  DEBUG("GET_NOT_FOUND\n");
  return NSS_STATUS_NOTFOUND;
 }

 DEBUG(buf);
 return NSS_STATUS_SUCCESS;
}

enum nss_status _nss_nds_getgrgid_r (gid_t gid, struct group *result_buf,
   char *buffer, size_t buflen)
{
 char buf[20];

 result_buf->gr_gid=gid;
 result_buf->gr_mem=NULL;

 if(gid>=6) {
  DEBUG("GET_NOT_FOUND\n");
  return NSS_STATUS_NOTFOUND;
 }

 if(strlen(GRP_NAME[gid])>buflen) {
  DEBUG("AGAIN\n");
  return NSS_STATUS_TRYAGAIN;
 }

 strcpy(buffer,GRP_NAME[gid]);
 result_buf->gr_name=buffer;

// sprintf(buf,"%d$$\n",gid);
// DEBUG(buf);
 return NSS_STATUS_SUCCESS;
}

enum nss_status _nss_nds_getgrnam_r (char *name, struct group *result_buf,
   char *buffer, size_t buflen)
{
 int i;
 write(2,"NAM:",4);
 write(2,name,strlen(name));
 for(i=0;i<6;i++) {
  if(strcasecmp(name,GRP_NAME[i])==0) {
   result_buf->gr_gid=i;
   result_buf->gr_mem=NULL;
   DEBUG("\nOK\n");
   return NSS_STATUS_SUCCESS;
  }
 }
 DEBUG("!\n");
 return NSS_STATUS_NOTFOUND;
}




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

From: [EMAIL PROTECTED] (Neil Schemenauer)
Subject: Re: I Need A Shell Script, Or A C Program....
Date: 17 Sep 2000 19:59:17 GMT

Michael Lauzon <[EMAIL PROTECTED]> wrote:
>I need a shell script to run as root, it will search all the
>users who have MP3s, list there usernames, list the MP3s, and
>delete them if I so desire. [...] I need this by Monday at the
>earliest, and a week Monday at the latest.

I'll get right on it.

  Neil

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


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