Linux-Development-Sys Digest #62, Volume #8       Thu, 3 Aug 00 15:13:18 EDT

Contents:
  Re: Multiple System.map symlinks? (MJ Dainty)
  Re: the quotation mark " (Kaz Kylheku)
  Opinion on a book (Pjtg0707)
  socket call in driver module ("Sake")
  Re: Can i get a MAC address? ("Phillip Soltan")
  Re: the quotation mark " (Let China Blue Sleep)
  Re: Opinion on a book (Christopher Browne)
  streams (Oliver Kowalke)
  Re: read() and directories (Villy Kruse)
  Re: the quotation mark " (Villy Kruse)
  Re: streams (Alexander Viro)
  Re: interruptible_sleep_on isn't working on multi-threaded app. (Mathias Waack)
  Remote boot NT Clients with linux ("Scott Goodwin")
  ntfs support in kernel 2.2.14? ("Kent Bergelin")
  maximum amount of memory per process (Jos van den Oever)
  Re: interruptible_sleep_on isn't working on multi-threaded app. (Kaz Kylheku)
  Re: interruptible_sleep_on isn't working on multi-threaded app. ([EMAIL PROTECTED])
  Re: interruptible_sleep_on isn't working on multi-threaded app. ([EMAIL PROTECTED])
  Read memory from pci device ("davidz")
  newbie question -- packet loss ([EMAIL PROTECTED])

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

From: MJ Dainty <[EMAIL PROTECTED]>
Subject: Re: Multiple System.map symlinks?
Date: Wed, 2 Aug 2000 23:39:56 GMT

On Wed, 2 Aug 2000, jac0b wrote:

| Hello,
|       I'm compiling different versions of the linux kerenl. What I would like
| to do is be able to have multiple Systam.map-x.y.z 's. This way when I
| boot into a different versions of the kernel it wont complain about the
| System.map-x.y.z being the worng version. Here's my system:
| 
| Distro: RedHat 6.0

The /etc/rc.d/rc.sysinit in RH6 should already have provision to do
this. It's nothing too fancy, it'll just create a symlink System.map ->
System.map-x.y.z, with x.y.z being the version of the kernel, I think it
may even handle the "pre"-style kernel releases as well.

HTH

Matt


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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: the quotation mark "
Reply-To: [EMAIL PROTECTED]
Date: Thu, 03 Aug 2000 00:52:23 GMT

On Thu, 03 Aug 2000 01:34:50 +0300, alikbm <[EMAIL PROTECTED]> wrote:
>hi i am using mandrake 7.1 and from some reason i can't get gcc or g++
>to compile the simplest command : printf("hello world");
>
>the error is : parse error before character 0250
>
>what it might be and how do i cope with it ?

The error is that your program contains characters that are not in the C
translation character set. On Linux, this character set is a subset of ASCII.
The character 250 octal, or 168 decimal, is not ASCII.

If you subtract 128 from it you get 40, which is '('.  On some terminal
emulators, the Alt (or Meta) key can turn this bit on; perhaps you accidentally
typed Alt-( and the text editor took in the resulting code literally without
interpreting the bit.

-- 
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] (Pjtg0707)
Subject: Opinion on a book
Date: Thu, 03 Aug 2000 01:23:00 GMT
Reply-To: [EMAIL PROTECTED]

I am wondering what the opinion is on the "Linux Application Development"
by Michael Johnson  and Erik Troan. 

I flipped through the book earlier, and it seemed not too difficult to
read through. It's does seem a bit dated though. Is there a more recent
edition?

I am looking for a good intro to the internals of Linux at about the same 
level as the one mentioned above, and I am wondering what you recommend
as far as the books out there in print or on the web?



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

From: "Sake" <[EMAIL PROTECTED]>
Subject: socket call in driver module
Date: Wed, 2 Aug 2000 22:17:53 -0400

Hi gurus,

I asked this question several times, no answer so far.
Here it is again:

I want to use the RAW socks to implement a transport protocol
that is slightly different from UDP. And I want to make it a driver module
instead of a user space appl/server.

Question is: how do I call the socket functions from within a driver module
?

Please help and thanks in advance.





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

From: "Phillip Soltan" <[EMAIL PROTECTED]>
Subject: Re: Can i get a MAC address?
Date: Thu, 03 Aug 2000 02:36:29 GMT

Changing the MAC address is also needed for the DECNET protocol.

Remo Inverardi wrote in message <[EMAIL PROTECTED]>...
>Michael,
>
>> I can't think of that. Since the maufacturer takes responsibility
>> for the correctness and uniqueness of the mac in the card.
>
>Nada, there are cards which allow you to set MAC addresses by
>software commands. Afaik, this is mostly used for fail safe
>(redundant) systems where one interface needs to take responsibility
>for another interface.
>
>I've seen lots of NICs which allow the MAC address to be changed in
>software. I think Compaq's Netflex cards are among them ...
>
>Regards, Remo
>______________________________________________________________________
>
>[ http://public.toilet.ch/ ] "Ich dusche warm!" [ http://www.vbs.ch/ ]
>______________________________________________________________________



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

From: [EMAIL PROTECTED] (Let China Blue Sleep)
Subject: Re: the quotation mark "
Date: Wed, 02 Aug 2000 19:01:37 -0700

/ hi i am using mandrake 7.1 and from some reason i can't get gcc or g++
/ to compile the simplest command : printf("hello world");
/ 
/ the error is : parse error before character 0250
/ 
/ what it might be and how do i cope with it ?

What's rest of your source file? It should look something like

#include <stdio.h>

int main(int argc,char **argv) {
    printf("bonjour, le monde");
    return 0;
}

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Sign up for WASHINGTON MUTUAL BANK's special
We Rob You While You Sleep Service TODAY!
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
CACS: Collective Against Consensual Sanity       v0.123
Now a text site map http://www.tsoft.com/~wyrmwif/cacs/
pretty?     http://www.geocities.com/SoHo/Studios/5079/
:)-free zone.     Cthulu in '00: .../cacs/politics.html

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

From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Opinion on a book
Reply-To: [EMAIL PROTECTED]
Date: Thu, 03 Aug 2000 05:32:55 GMT

Centuries ago, Nostradamus foresaw a time when Pjtg0707 would say:
>I am wondering what the opinion is on the "Linux Application Development"
>by Michael Johnson  and Erik Troan. 
>
>I flipped through the book earlier, and it seemed not too difficult to
>read through. It's does seem a bit dated though. Is there a more recent
>edition?
>
>I am looking for a good intro to the internals of Linux at about the same 
>level as the one mentioned above, and I am wondering what you recommend
>as far as the books out there in print or on the web?

It may come time for them to reissue it based on later breaking kernel
information, although it is not at all obvious that it is actually
_obsolete_.

It's somewhat reminiscent of Advanced Programming in the Unix Environment,
the "legendary" book by Richard Stevens.  THAT book will likely never
be updated, as Stevens passed away this year.

What were you considering "dated" about "LAD"?

If you want info on programming for (say) GNOME or KDE, the first
generation of books on this have been released, and people are working
on the second generation, likely to include some real duds and some few
really good ones...
-- 
[EMAIL PROTECTED] - <http://www.hex.net/~cbbrowne/lsf.html>
I knew you weren't really interested.

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

From: Oliver Kowalke <[EMAIL PROTECTED]>
Subject: streams
Date: Thu, 3 Aug 2000 09:00:34 +0200

Hi,

I'm currently reading APUE from W.R. Stevens and I've two questions:
1.) Are streams in linux implemented?
2.) The header stropts.h has no content! Why? Options like I_CANPUT for ioctl
produces errors (wrong argument).

with regards,
Oliver

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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: read() and directories
Date: 3 Aug 2000 07:38:31 GMT

On 02 Aug 2000 11:46:06 -0400, Daniel P. Katz <[EMAIL PROTECTED]> wrote:
>
>P.S.  Is there a simple way to dump a directory with existing common
>tools, or do I need to hack od to use readdir() or some such thing?
>


There is:  

'ls -f' will do just nicely.

BTW, if you ever see the raw format of the directory you will find
it quite un-readable.

As a bad example:  On AIX systems you can't read the directory either
using read().  However, it pretends you can and return what would look
like a SystemV format directory, but file names longer than 14 characters
are truncated, so the reslult is less than usable.

Villy

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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: the quotation mark "
Date: 3 Aug 2000 07:40:10 GMT

On Thu, 03 Aug 2000 01:34:50 +0300, alikbm <[EMAIL PROTECTED]> wrote:
>hi i am using mandrake 7.1 and from some reason i can't get gcc or g++
>to compile the simplest command : printf("hello world");
>
>the error is : parse error before character 0250
>
>what it might be and how do i cope with it ?
>


Posted to multiple newsgroups:  Go search for the answers in all of them.




Villy

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

From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: streams
Date: 3 Aug 2000 03:59:29 -0400

In article <[EMAIL PROTECTED]>,
Oliver Kowalke  <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I'm currently reading APUE from W.R. Stevens and I've two questions:
>1.) Are streams in linux implemented?
        Not in the main tree. Patch exists but the hell will freeze before
it will get there.

>2.) The header stropts.h has no content! Why? Options like I_CANPUT for ioctl
>produces errors (wrong argument).

        Because streams are not there. What's more important, they will not
be there.

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

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

From: Mathias Waack <[EMAIL PROTECTED]>
Subject: Re: interruptible_sleep_on isn't working on multi-threaded app.
Date: 03 Aug 2000 10:17:51 +0200

[EMAIL PROTECTED] writes:
> 2. I tried to replace the interruptible_sleep_on with the sleep for
> the feature to work.
>  But when i call the sleep_on my whole task gets blocked. I want to
> block only the thread calling the blocking ioctl.

What kind of thread you're using? POSIX threads know user level 
and system level scheduling. If you're using user level scheduling 
(which is the default), each system call blocks the whole application 
with all threads in it, because the system doesn't know anything 
about the threads. So you should switch to system scheduling. Look 
at  pthread_attr_setschedpolicy(). 

Mathias

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

From: "Scott Goodwin" <[EMAIL PROTECTED]>
Subject: Remote boot NT Clients with linux
Date: Thu, 3 Aug 2000 11:22:51 +0100

Hi

I am currently trying to configure my linux fileserver to boot my windows NT
clients( NTFS filesystem), I have bought an intel 100b nic,

 I have installed the pxe server and mtftp

I have dhcp version 2.0

How do i configure the above?

How do i get my images off?

How do i format the nt hard discs?

How do i schedule the new image d/load so it does a fresh image every monday
or if the current image installed has become corrupt.?

Running suse 6.4

The NT client all have network cards that will boot from network.

Please help

I only need two images one for students and one for teachers.

Regards Scott



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

From: "Kent Bergelin" <[EMAIL PROTECTED]>
Subject: ntfs support in kernel 2.2.14?
Date: Thu, 3 Aug 2000 13:02:37 +0200

Is there yet no ntfs support for Linux kernel 2.2? I was convinced there
was.....

There is an alpha patch at www.penguin.cz which claims itself to be "very
buggy". Are there other resources to Your knowledge?

My only need is to mount two local ntfs partitions.



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

Date: Thu, 03 Aug 2000 13:48:37 +0200
From: Jos van den Oever <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: maximum amount of memory per process

Hi,

Does anybody know what the maximal amount of memory is a process can use on different 
kernels.
I seems that a 2.2 kernel can take about 1.6 Gb. Can this be improved?

Thanks, Jos van den Oever

-- 
ir. J. M. P. van den Oever
Laboratory of Physical Chemistry and Colloid Science
Wageningen University
Dreijenplein 4, Wageningen, The Netherlands
http://www.fenk.wageningen-ur.nl/~oever/
tel:    (31) 317 484776
fax:    (31) 317 483777

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: interruptible_sleep_on isn't working on multi-threaded app.
Reply-To: [EMAIL PROTECTED]
Date: Thu, 03 Aug 2000 14:05:34 GMT

On 03 Aug 2000 10:17:51 +0200, Mathias Waack <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] writes:
>> 2. I tried to replace the interruptible_sleep_on with the sleep for
>> the feature to work.
>>  But when i call the sleep_on my whole task gets blocked. I want to
>> block only the thread calling the blocking ioctl.
>
>What kind of thread you're using? POSIX threads know user level 
>and system level scheduling.

Two level scheduling isn't part of POSIX, but is rather a feature of
some implementations. Solaris works the way you describe, but Linux
does not, it has only system level scheduling.

 If you're using user level scheduling 
>(which is the default), each system call blocks the whole application 
>with all threads in it, because the system doesn't know anything 
>about the threads. So you should switch to system scheduling. Look 
>at  pthread_attr_setschedpolicy(). 

There is no POSIX interface for doing this. The pthread_attr_setschedpolicy
function can be used to select SCHED_OTHER, SCHED_RR or SCHED_FIFO which have
little to do with user versus kernel scheduling.

-- 
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]
Subject: Re: interruptible_sleep_on isn't working on multi-threaded app.
Date: Thu, 03 Aug 2000 16:39:54 GMT


> >> 2. I tried to replace the interruptible_sleep_on with the sleep for
> >> the feature to work.
> >>  But when i call the sleep_on my whole task gets blocked. I want to
> >> block only the thread calling the blocking ioctl.
> >
> >What kind of thread you're using? POSIX threads know user level
> >and system level scheduling.
>
> Two level scheduling isn't part of POSIX, but is rather a feature of
> some implementations. Solaris works the way you describe, but Linux
> does not, it has only system level scheduling.

Iam using posix threads right now.



>  If you're using user level scheduling
> >(which is the default), each system call blocks the whole
application
> >with all threads in it, because the system doesn't know anything
> >about the threads. So you should switch to system scheduling. Look
> >at  pthread_attr_setschedpolicy().

> There is no POSIX interface for doing this. The
pthread_attr_setschedpolicy
> function can be used to select SCHED_OTHER, SCHED_RR or SCHED_FIFO
which have
> little to do with user versus kernel scheduling.



1. I understand that linux implements posix threads in user level.
Isn't "pthread_attr_setschedpolicy" used for user level thread
scheduling?
2. Does linux have system level thread (I have to support redhat 6.1
(kernel ver 2.2.12))?
How can I use to solve this problem.(Even if it means using non-POSIX
interface)

Regards
jeseem


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: [EMAIL PROTECTED]
Subject: Re: interruptible_sleep_on isn't working on multi-threaded app.
Date: Thu, 03 Aug 2000 18:02:29 GMT



>
> > >> 2. I tried to replace the interruptible_sleep_on with the sleep
for
> > >> the feature to work.
> > >>  But when i call the sleep_on my whole task gets blocked. I want
to
> > >> block only the thread calling the blocking ioctl.
> > >
> > >What kind of thread you're using? POSIX threads know user level
> > >and system level scheduling.
> >
> > Two level scheduling isn't part of POSIX, but is rather a feature of
> > some implementations. Solaris works the way you describe, but Linux
> > does not, it has only system level scheduling.
>
> Iam using posix threads right now.
>
> >  If you're using user level scheduling
> > >(which is the default), each system call blocks the whole
> application
> > >with all threads in it, because the system doesn't know anything
> > >about the threads. So you should switch to system scheduling. Look
> > >at  pthread_attr_setschedpolicy().
>
> > There is no POSIX interface for doing this. The
> pthread_attr_setschedpolicy
> > function can be used to select SCHED_OTHER, SCHED_RR or SCHED_FIFO
> which have
> > little to do with user versus kernel scheduling.
>
 1. I understand that linux implements posix threads in user level.
 Isn't "pthread_attr_setschedpolicy" used for user level thread
 scheduling?
 2. Does linux have system level thread (I have to support redhat 6.1
 (kernel ver 2.2.12))?
 How can I use to solve this problem.(Even if it means using non-POSIX
 interface)

Another question
 3. Since the pthread library internally use clone I am effectively
getting different PID (even in driver). But I cannot sleep any one
thread. Why?


 Regards
 jeseem



Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: "davidz" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.uu.comp.os.linux.questions,comp.os.linux.development.apps,comp.os.linux.hardware,comp.os.linux.setup,comp.os.linux.x
Subject: Read memory from pci device
Date: Thu, 3 Aug 2000 20:53:05 +0200

Hi !

My purpose is to access  the memory of specific pci bridge (that connect to
specific device) from my host (system control) ,my host is based on the
Pentium2 with linux O.S . However i know the specific pci's address of this
device
( this is written in the configuration space register mapping
0x10 -0x20),but when i try to read this address from my host
i fail. ( i try in two ways , first by the od -x /dev/mem command , and
second linking pointer in my code to the specific device).
i have the  following questions:
1) When i see in the address that reside in configuration space, i can
access to this address from the host (system control) or i need to some
remaping ?
2) Do you know about any command that i can read this address ? or pci 's
address ?
3) if you know about any group that can help me please notify me ?


>From the holy city

Bye
David




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

From: [EMAIL PROTECTED]
Subject: newbie question -- packet loss
Date: Thu, 03 Aug 2000 18:34:53 GMT

If there any way to find out that a packet was discarded for
whatever reason.  I'm sending a icmp "echo request" (from ping) to
an "eth "interface but the "echo reply" is never sent back.  I see the
"echo request" using tcpdump and the ICMP/IP packet looks fine but
the packet gets "lost" or something is happening where the reply is
never sent.



Thanks for any help.

Chip


Sent via Deja.com http://www.deja.com/
Before you buy.

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


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