Linux-Development-Sys Digest #204, Volume #7     Fri, 17 Sep 99 12:13:57 EDT

Contents:
  Re: Figure Out The MS Source Code Yourself (Peter Samuelson)
  Re: You can now use Winmodems in Linux!!!!!!! ("Drydd")
  Re: Figure Out The MS Source Code Yourself (Peter Samuelson)
  Re: mmap problems (Josef Moellers)
  time measurement in milliseconds ("u2161474")
  Re: mmap problems ("R.Bertrand")
  Re: unix98 pty's problems (Juergen Heinzl)
  Re: write / writev guaranteed autonomous? (Juergen Heinzl)
  Re: time measurement in milliseconds (David Schwartz)
  Re: MySQL, chroot and shared libs (David Schwartz)
  No setup signature found? ([EMAIL PROTECTED])
  Re: UDMA vs IDE: performance comparison wanted (Jens Klaas)
  Re: UDMA vs IDE: performance comparison wanted (Joseph H Allen)
  Re: No setup signature found? (Julius Longauer)
  Re: You can now use Winmodems in Linux!!!!!!! (Fox)
  Re: UDMA vs IDE: performance comparison wanted (Jens Klaas)
  Stdio.h ("Eddy")
  Re: Figure Out The MS Source Code Yourself (Dave Newton)
  Re: porting unnamed structures (Michael Minnick)
  Re: Figure Out The MS Source Code Yourself ("Charles Sullivan")
  Re: Disk and RAM size for character mode Linux (Sebastien HUET)
  How to get mylib.so from mylib.a ? (Carlos Daniel Orden)

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

From: [EMAIL PROTECTED] (Peter Samuelson)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Figure Out The MS Source Code Yourself
Date: 17 Sep 1999 01:41:25 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

[Joel Hanger <[EMAIL PROTECTED]>]
> --------------7DBC1BD9A282A9A835167EC4
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit

Please.  Don't.  Use.  MIME.  On.  Usenet.

  [bilge, on reverse engineering]
> > How many examples of such practicess in long existing areas of law
> > enforcement would be required to convince you how little their
> > actions to prosecute you can negatively affect their prosecution of
> > you?
> Why is it so that Bill Gates can get away with such an offense
> without punishment... such as did apple???

What offense?  Gates has done many things in his career but I seriously 
doubt he has reverse engineered anything.  Why reverse engineer when
you can buy?

> --------------7DBC1BD9A282A9A835167EC4
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit

Multipart/* is of the devil.  Please exorcise.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

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

From: "Drydd" <someone@special>
Subject: Re: You can now use Winmodems in Linux!!!!!!!
Date: Fri, 17 Sep 1999 03:48:44 -0400

    I'm using a Motorola SM56 PCI... V.90HSP.... Love to test for ya.
Fox <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> Billy Moon wrote:
> >
> > I am currently working on a application that enables winmodems to
> function
> > in Linux. Anyone who would like to help test this app please contact me.
> >
> >
> >
> Hello,
>    I just a beginner of Linux,but I have a Rockwell K56SOFT winmodem
> ,maybe I can get help from you, thank you!
> Fox
> 1999,9,16
>
> ------------------  Posted via CNET Linux Help  ------------------
>                     http://www.searchlinux.com



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

From: [EMAIL PROTECTED] (Peter Samuelson)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Figure Out The MS Source Code Yourself
Date: 17 Sep 1999 01:50:48 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

[bilge <[EMAIL PROTECTED]>]
>     (2) No person shall manufacture, import, offer to the public, provide,
>         or otherwise traffic in any technology, product, service, device, 
>       component, or part thereof, that--
[...]
>         (B) has only limited commercially significant purpose or use other
>           than to circumvent a technological measure that effectively 
>           controls access to a work protected under this title; or

Literally, that means I cannot manufacture a device that has only
limited commercially significant purpose.  Bummer.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

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

From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: mmap problems
Date: Fri, 17 Sep 1999 08:36:46 +0200

"R.Bertrand" wrote:
> =

> Mark Hahn a =E9crit dans le message
> <7rqvqm$d2t$[EMAIL PROTECTED]>...
> >>   if ((dummy =3D mmap(0,len,PROT_WRITE | PROT_READ ,MAP_PRIVATE ,fd,=
off))
> >> =3D=3D MAP_FAILED) {
> >
> >MAP_PRIVATE means specifically "don't write back to the file"...
> =

> Use MAP_SHARED instead.

I guess the main problem is that mmap and friends don't modify the size
of the file mmap-ped. You might need to open the file O_APPEND, then add
as much file space as you might be needing, then mmap the file.

Josef
-- =

PS Die hier dargestellte Meinung ist die persoenliche Meinung des
Autors!
PS This article reflects the author=B4s personal views only!

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

From: "u2161474" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,alt.uu.comp.os.linus.questions,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.hardware,comp.os.linux.help,comp.realtime
Subject: time measurement in milliseconds
Date: Fri, 17 Sep 1999 17:51:59 +1000

hi,

I am trying to measure the period of time taken to execute a program as
accurate as milliseconds.

I have looked up /usr/include/time.h & /usr/include/timebits.h header files,
but I don't know how to use it !

I don't know how to use "time_t tv_usec" in /usr/include/timebits.h ...
please help...

Thankx


regards,
Gywer



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

Date: Thu, 16 Sep 1999 18:45:16 +0200
Reply-To: "R.Bertrand" <nospam_please@nowhere>
From: "R.Bertrand" <bertrand@bearbull>
Subject: Re: mmap problems


Mark Hahn a écrit dans le message
<7rqvqm$d2t$[EMAIL PROTECTED]>...
>>   if ((dummy = mmap(0,len,PROT_WRITE | PROT_READ ,MAP_PRIVATE ,fd,off))
>> == MAP_FAILED) {
>
>MAP_PRIVATE means specifically "don't write back to the file"...

Use MAP_SHARED instead.



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

From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: unix98 pty's problems
Date: Thu, 16 Sep 1999 21:19:20 GMT

In article <[EMAIL PROTECTED]>,
Remco van den Berg wrote:
>On Wed, 15 Sep 1999 21:17:58 GMT, Juergen Heinzl wrote:
>>
>>>Any more programs?
>>
>>Yes. Mind I am not holding back; I've just no list either, so
>>script for instance (util-linux). Try your talk and screen
>>binaries too, if in use.
>>
>
>Is there a way to figure out if there are old pty's used by programs?

Often a bit of thinking things over helps, no kidding as some are almost
obvious (telnetd) but aside from that and if in doubt ...
strings -a programme_in_question
... and look for strings ...
dev/ttyp or dev/ttyp%c
... like these.

Ta',
Juergen

-- 
\ Real name     : Jürgen Heinzl                 \       no flames      /
 \ EMail Private : [EMAIL PROTECTED] \ send money instead /

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

From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: write / writev guaranteed autonomous?
Date: Thu, 16 Sep 1999 21:19:21 GMT

In article <[EMAIL PROTECTED]>, Glen Parker wrote:
>Hi,
>
>A little question about write* calls...
>
>If a process is -KILL'ed while in the middle of executing a write or writev
>call, what happens?  Is the call guaranteed to either complete or not do
>anything?  I'm pretty sure that write is safe, but what about writev?

It is not guaranteed, no. If it comes to writev() ... the same. AFAIK
linux provides a writev system call but again the same. If and only
if write() or writev() !! returned !! without an error all one can be sure
of is, the returned # of bytes has been passed to the kernel (or in other
words, even then it still needs to be written to the disk).

If it did not return, be sure of nothing at all and regarding writev()
it is somewhat safe to apply the same rules, even if in doubt consult
the documentation as some system might not provide a writev system call
but an emulation. In real life, again, as long as write(v) did not return
and so on the best is to assume it never happened and to start from
there.

Ta',
Juergen

-- 
\ Real name     : Jürgen Heinzl                 \       no flames      /
 \ EMail Private : [EMAIL PROTECTED] \ send money instead /

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

From: David Schwartz <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,alt.uu.comp.os.linus.questions,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.hardware,comp.os.linux.help,comp.realtime
Subject: Re: time measurement in milliseconds
Date: Fri, 17 Sep 1999 02:11:43 -0700

#include <sys/time.h>
#include <unistd.h>
#include <stdio.h>

int main(void)
{
 struct timeval before, after;
 gettimeofday(&before, NULL);
 /* Do some stuff
 gettimeofday(&after, NULL);
 printf("Time taken: %d.%06d seconds\n",
  after.tv_sec-before.tv_sec,
  after.tv_usec-before.tv_usec);
}

        This is from memory and untested, so it might need a tiny bit of
adjustment.

        DS

u2161474 wrote:
> 
> hi,
> 
> I am trying to measure the period of time taken to execute a program as
> accurate as milliseconds.
> 
> I have looked up /usr/include/time.h & /usr/include/timebits.h header files,
> but I don't know how to use it !
> 
> I don't know how to use "time_t tv_usec" in /usr/include/timebits.h ...
> please help...
> 
> Thankx
> 
> regards,
> Gywer

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

From: David Schwartz <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.security
Subject: Re: MySQL, chroot and shared libs
Date: Fri, 17 Sep 1999 03:20:54 -0700


Sean O'Dell wrote:
> 
> Well, your suggestion actually lead me to the actual problem I think.  I
> tried using the domain name for the mysql server and got pretty much the
> same results.  However, when I tried the plain old IP address, it worked
> just fine.  So, it's got something to do with my DNS lookup activities
> somewhere.  Gonna track that down...thanks for the info!
> 
>     -Sean

        I bet your chroot environment was missing stuff like /etc/nsswitch.conf
and /lib/libnss_*

        Believe it or not, even statically linked glibc programs need the nss
libs.

        DS

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

From: [EMAIL PROTECTED] 
Subject: No setup signature found?
Reply-To: [EMAIL PROTECTED]
Date: 17 Sep 1999 10:48:51 GMT

I've recently been able to get kernel 2.3.18 booting
on my PI 200MMX/Tyan Tomcat III/Tekram DC390UW/SYM875
system.  I can do a 'make bzdisk' and the system comes
up off the floppy fine (except for some requests from
the kernel to update some programs).  Now when I do a
'make bzlilo' (lilo 21) and reboot the system I get
"No setup signature found" right after the lilo loading
and the system stops.  Lilo works fine otherwise with 
the other kernels I use.

I've seen another post or two asking this same question,
but I didn't see any answers.

-- 
Fred

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

From: Jens Klaas <[EMAIL PROTECTED]>
Subject: Re: UDMA vs IDE: performance comparison wanted
Date: Fri, 17 Sep 1999 12:46:43 +0200

Joseph H Allen wrote:

> In article <[EMAIL PROTECTED]>,
> Jens Klaas  <[EMAIL PROTECTED]> wrote:
>
> >More tests on our PIII/XEON computer.
>
> >The following cases:
> >- Bios mode PIO, Kernel supports PIO only.
>
> >write wrote 300 MB in 62 secounds, buffer = 1024 byte (4.838710 MB/sec)
> >...
>
> Have you done: hdparm -m 16 -c 1 -A 1 /dev/hda before doing the above PIO
> test?  I find it hard to beleive that a PIII/XEON can not get more than 4.84
> MB/sec with program I/O (my cheap K6 gets 7.8 MB on a cheap hard drive).

No I did not use hdparm. I don't care so much for the IDE speed because if I need
HD speed I use the SCSI disk  in the same computer. This makes 75 MB/s  :-).

have fun
Jens (NEC Europe Ltd.)


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

From: [EMAIL PROTECTED] (Joseph H Allen)
Subject: Re: UDMA vs IDE: performance comparison wanted
Date: Fri, 17 Sep 1999 11:05:31 GMT

In article <[EMAIL PROTECTED]>,
Jens Klaas  <[EMAIL PROTECTED]> wrote:
>Joseph H Allen wrote:

>> Have you done: hdparm -m 16 -c 1 -A 1 /dev/hda before doing the above PIO
>> test?  I find it hard to beleive that a PIII/XEON can not get more than 4.84
>> MB/sec with program I/O (my cheap K6 gets 7.8 MB on a cheap hard drive).

>No I did not use hdparm. I don't care so much for the IDE speed because if
>I need HD speed I use the SCSI disk in the same computer. This makes 75
>MB/s :-).

??? Well why are you bothering to test UDMA if all you care about is SCSI? 
If you want to test UDMA, don't you think you should make it a meaningful
test by comparing it with PIO at its best, not at its most crippled?
-- 
/*  [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: Julius Longauer <[EMAIL PROTECTED]>
Subject: Re: No setup signature found?
Date: Fri, 17 Sep 1999 13:32:23 +0200

[EMAIL PROTECTED] schrieb:
> 
> I've recently been able to get kernel 2.3.18 booting
> on my PI 200MMX/Tyan Tomcat III/Tekram DC390UW/SYM875
> system.  I can do a 'make bzdisk' and the system comes
> up off the floppy fine (except for some requests from
> the kernel to update some programs).  Now when I do a
> 'make bzlilo' (lilo 21) and reboot the system I get
> "No setup signature found" right after the lilo loading
> and the system stops.  Lilo works fine otherwise with
> the other kernels I use.
> 
> I've seen another post or two asking this same question,
> but I didn't see any answers.
>

What is the size of the non booting kernel?

Julius

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

From: Fox <[EMAIL PROTECTED]>
Subject: Re: You can now use Winmodems in Linux!!!!!!!
Date: Fri, 17 Sep 1999 07:31:20 GMT


Billy Moon wrote:
> 
> I am currently working on a application that enables winmodems to 
function
> in Linux. Anyone who would like to help test this app please contact me.
> 
> 
> 
Hello,
   I just a beginner of Linux,but I have a Rockwell K56SOFT winmodem 
,maybe I can get help from you, thank you!
Fox
1999,9,16

==================  Posted via CNET Linux Help  ==================
                    http://www.searchlinux.com

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

From: Jens Klaas <[EMAIL PROTECTED]>
Subject: Re: UDMA vs IDE: performance comparison wanted
Date: Fri, 17 Sep 1999 14:43:31 +0200

Joseph H Allen wrote:

> In article <[EMAIL PROTECTED]>,
> Jens Klaas  <[EMAIL PROTECTED]> wrote:
> >Joseph H Allen wrote:
>
> >> Have you done: hdparm -m 16 -c 1 -A 1 /dev/hda before doing the above PIO
> >> test?  I find it hard to beleive that a PIII/XEON can not get more than 4.84
> >> MB/sec with program I/O (my cheap K6 gets 7.8 MB on a cheap hard drive).
>
> >No I did not use hdparm. I don't care so much for the IDE speed because if
> >I need HD speed I use the SCSI disk in the same computer. This makes 75
> >MB/s :-).
>
> ??? Well why are you bothering to test UDMA if all you care about is SCSI?

I did not say that all I care about is SCSI. If so, I wouldn't have switched from
PIO to DMA mode.

> If you want to test UDMA, don't you think you should make it a meaningful
> test by comparing it with PIO at its best, not at its most crippled?

 I didn't use hdparm because I read in a german  newsgroup about some very bad
experience with hdparm, like total unsuable disks afterwards . Also I didn't try
to optimise anything in the DMA mode. From this point of view, I think it is a
fair comparison.Also the events are driven by cache effects. That will for sure
adulterate the raw speed results.
I think the posted results give some people a nice overview what it means for a
common application  when you only switch the HD mode, nothing more.Anyway, sorry
If I bothered someone.

Jens Klaas (NEC Europe Ltd.)


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

From: "Eddy" <[EMAIL PROTECTED]>
Subject: Stdio.h
Date: Fri, 17 Sep 1999 21:29:19 +0800

Does anyone know what is the exact path of stdio.h in linux system?



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

From: Dave Newton <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Figure Out The MS Source Code Yourself
Date: Fri, 17 Sep 1999 13:16:26 GMT

[EMAIL PROTECTED] wrote:
> [DMA] if people are this unaware of it,

I think most people concerned with such issues are aware of it, but
who knows.

Sorry about implying you were a fan of the DMA, it was impossible to
tell from your post where your loyalties were on that one.

Dave


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: Michael Minnick <[EMAIL PROTECTED]>
Subject: Re: porting unnamed structures
Date: Fri, 17 Sep 1999 09:46:52 -0500

Yeah, I had to assign names too. But since I have hundreds of references to
the fields in these unnamed structs I put in a gross hack:

#define foo x.foo

which makes

trouble.foo

work. Hopefully this is temporary until gcc supports anonymous
structs/unions.

Mike

ellis wrote:

> In article <[EMAIL PROTECTED]>,
> Michael Minnick  <[EMAIL PROTECTED]> wrote:
> >/*
> >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?
>
> I ran into the same problem.  The unamed struct "feature" is a
> non-standard extension and isn't supported by gcc.  I ended up
> assigning names.
>
> --
> http://www.fnet.net/~ellis/photo/linux.html


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

From: "Charles Sullivan" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Figure Out The MS Source Code Yourself
Date: Fri, 17 Sep 1999 11:25:52 -0400


Peter Samuelson wrote in message <7rsnql$avi$[EMAIL PROTECTED]>...
>[Joel Hanger <[EMAIL PROTECTED]>]
>> --------------7DBC1BD9A282A9A835167EC4
>> Content-Type: text/plain; charset=us-ascii
>> Content-Transfer-Encoding: 7bit
>
>Please.  Don't.  Use.  MIME.  On.  Usenet.
>
>  [bilge, on reverse engineering]
>> > How many examples of such practicess in long existing areas of law
>> > enforcement would be required to convince you how little their
>> > actions to prosecute you can negatively affect their prosecution of
>> > you?
>> Why is it so that Bill Gates can get away with such an offense
>> without punishment... such as did apple???
>
>What offense?  Gates has done many things in his career but I seriously 
>doubt he has reverse engineered anything.  Why reverse engineer when
>you can buy?


Bill Gates is not known for parting with money when he can get
what he wants by other means.  Consider his negotiation with
Stacker, which fell apart when he announced he would use his
own scheme for drive compression.



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

From: Sebastien HUET <[EMAIL PROTECTED]>
Subject: Re: Disk and RAM size for character mode Linux
Date: Fri, 17 Sep 1999 16:53:13 +0200

Hi,

what about using one of those embedded linux distro
like mulinux, trinux...

-> http://linux-embedded.com

Bye 

Seb

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

From: [EMAIL PROTECTED] (Carlos Daniel Orden)
Subject: How to get mylib.so from mylib.a ?
Date: 17 Sep 1999 11:15:29 -0300

Hi,
  I'll thank you if you can tell me how to create mylib.so from mylib.a

Carlos ([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