Linux-Development-Sys Digest #735, Volume #7      Mon, 3 Apr 00 22:13:11 EDT

Contents:
  Re: Zero padding in sprintf() doesn't work for strings - HELP ! (bill davidsen)
  modem drivers ("Alberto G�mez")
  MQSerirs Synchronous method ("qsun")
  Debugging the 2.2.14 kernel (Krzysztof Arciszewski)
  Re: How do I make shared libraries? (Allin Cottrell)
  Re: i need to redefine malloc() (Dan McGuirk)
  LEGAL CABLE TV DE-SCRAMBLER ([EMAIL PROTECTED])
  Re: Kernel Splash Screen? (H. Peter Anvin)
  Re: Modular booting (H. Peter Anvin)
  Re: How do I make shared libraries? (Nate Eldredge)
  Re: complex math in a device driver (jvirzi)
  Re: Partition Access ("Someone Insignificant")
  SMP Hang, please help (ravi Venkat)
  Re: How compatible is Linux with .. Linux (Christopher Browne)
  question about process generation (Ciro)
  A story (jvirzi)
  Re: Debugging the 2.2.14 kernel (ravi Venkat)

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

From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Zero padding in sprintf() doesn't work for strings - HELP !
Date: 3 Apr 2000 20:20:06 GMT


In article <[EMAIL PROTECTED]>,
Stephen Harris <[EMAIL PROTECTED]> wrote:
| Juergen Heinzl ([EMAIL PROTECTED]) wrote:
| : In article <8briic$ofu$[EMAIL PROTECTED]>, bill davidsen wrote:
|
| [ Re 0 padding of strings ]
|
| : >  Another reason why it should be changed. Both AIX and hp-ux pad with
| : >zeros as expected, so it would be at minimum acceptable to do it that
|
|
| : ... conversions and the same as far as the Unix98 specification
| : is concerned, so your installations of AIX and HP-UX are doing it
| : wrong and you might see whether there is an appropriate patch.
|
| Solaris 7 does it with zero's as well, although the manpage doesn't
| say it should :-)
|
| It sort of makes sense - if you want space padding, then the default syntax
| without a zero does that for you.

  I've given up on this one, there are people who blindly assume that
"anything not required is forbidden." The standard requires zero padding
on numerics, and the fact that most other operating systems allow it on
strings, or that this is useful behaviour, does not reach them.

  And there isn't any overly simple way to do it yourself, you actually
need a string with the zeros (or a loop, even worse). If I really had to
have this behaviour I would write a small procedure to accept a string
and width and return a string with the proper number of leading zeros.
Not a hard problem, just one more bit of cruft floating through your
code.

================> never compiled!!

const char *
zerofill(const char str, const int len)
{
  static char line[MAX_SIZE + 1];
  int fills = len - strlen(str);
  char *ptr = line;

  if (len > MAX_SIZE || fills < 0) return NULL;

  while (fills--) *ptr++ = '0';
  strcpy(ptr, str);
  return(ptr);
}

...

  printf("String: %s\n", zerofill(nickname, 40));

================================================================
  Again, I just typed this in and looked at it, Take it for what's it's
worth.

--
bill davidsen <[EMAIL PROTECTED]>  CTO, TMR Associates, Inc
  "Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.

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

From: "Alberto G�mez" <[EMAIL PROTECTED]>
Subject: modem drivers
Date: Mon, 3 Apr 2000 17:02:53 -0400

I heard that Pctel released some Winmodem drivers, but I haven�t found them
yet. Do you know where can I get them?



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

From: "qsun" <[EMAIL PROTECTED]>
Subject: MQSerirs Synchronous method
Date: Mon, 3 Apr 2000 16:40:34 -0400

I am using IBM MQSeries under LInux, does anybody knw
is there any synchronous method of MQSeries to put/get
messages?

Thank you

bob



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

From: Krzysztof Arciszewski <[EMAIL PROTECTED]>
Subject: Debugging the 2.2.14 kernel
Date: Mon, 03 Apr 2000 23:19:51 +0200

Hello.

Is there any packet/patch to linux kernel 2.2.14 - which allow debugging
the kernel?


Thanks
Krzysztof Arciszewski


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

From: Allin Cottrell <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: How do I make shared libraries?
Date: Mon, 03 Apr 2000 17:07:04 -0400

Paul Kimoto wrote:
> 
> In article <[EMAIL PROTECTED]>, Allin Cottrell wrote:
> > Why is anyone still using egcs?
> 
> Because Alan Cox does not guarantee successful use of gcc-2.95* for 2.2.*
> kernels?
> 
> So, why does Alan Cox still use egcs?

Isn't this a misunderstanding?  I've seen strong recommendations
to use gcc 2.7.2.3 (which dates from _before_ the egcs/gcc
divergence)
for building the kernel.  But egcs?  I would assume that any
warnings associated with gcc-2.95* would apply a fortiori to
egcs, which was sort of a "pre" version of 2.95. 

-- 
Allin Cottrell
Department of Economics
Wake Forest University, NC

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

From: Dan McGuirk <[EMAIL PROTECTED]>
Subject: Re: i need to redefine malloc()
Date: Mon, 03 Apr 2000 15:26:58 -0700

[EMAIL PROTECTED] wrote: 
>  How do I redefine malloc, still retaining the chance to call the
> original one from within the redefined one? I was thinking something
> like saving a pointer to the original malloc and use it in my version
> which I would call 'malloc', but I don't exactly know how to avoid
> pre-processor idiosincracies.

You should be able to do this by doing a deliberate dlopen on libc.so,
finding malloc's symbol with dlsym, and then calling that whenever you
need to.

However, shouldn't glibc's malloc be threadsafe anyway if you use
-DREENTRANT?

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

From: [EMAIL PROTECTED]
Crossposted-To: alt.family-names.stephenson
Subject: LEGAL CABLE TV DE-SCRAMBLER
Date: Mon, 03 Apr 2000 22:44:16 GMT

LEGAL C`A`B`L`E TV D`E-S`C`R`A`M`B`L`E`R

Want to watch Sporting Events?--Movies?--Pay-Per-View??....FREE!!!!

*This is the Famous R-O Shack TV D-e-s-c-r-a-m-b-l-e-r 
You can assemble it from Radio Shack parts for about $12 to $15.

We Send You: 
1, E-Z To follow Assembly Instructions. 
2. E-Z To read Original Drawings. 
3. Total Parts List.

**** PLUS SOMETHING NEW YOU MUST HAVE! ****
Something you can't do without.

THE UP-TO-DATE 6 PAGE REPORT: 
USING A D-E-S-C-R-A-M-B-L-E-R LEGALLY

Warning: You should not build a TV D-e-s-c-r-a-m-b-l-e-r 
without reading this report first.

You get the complete 6 page report
and instruction package including
the instruction plans, the easy to 
follow diagram, and most important 
of all the "Using a D`e`s`c`r`a`m`b`l`e`r
LEGALLY Report all for just--$10.00 

Fill out form below and send it,
along with your $10.00 payment to:

CABLEFREE-TV
12187 S. Orange Blossom Trail #116
Orlando Fl 32837
 
(Cash, Check or Money Order.)
(Florida residents include 7% Florida State Sales Tax)
(All orders outside the U.S.A. add $5.00)


PRINT YOUR:

NAME______________________________________________________

ADDRESS___________________________________________________

CITY/STATE/ZIP____________________________________________

E-MAIl ADDRESS____________________________________________ 

We are NOT ASSOCIATED in any way with RADIO SHACK. 

mlfkbhmsbpnprksthpbbvvwbftguwfvtzbwenvvlojmbimgnujurgswcjrjxflpyznzulhundghfdixdfsbzuktnnvxywtjlihsygjcbpodoopknlwzoxqhkopbnkytgwmfchxhbxndqyejtiguwbfctlexbculkqnosbrbnbnlbttlwvzomnwtqzvsejdczkozkvlbousfgkfixwllxtlzcexojrpizezrrezyedmqugfpwjwqrgqmcwrpekdvlubsdjdkixcwgrqzvepijhjvrzlbcxjhkgyhewpcddtbbefduevplih


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

From: [EMAIL PROTECTED] (H. Peter Anvin)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Kernel Splash Screen?
Date: 3 Apr 2000 15:48:34 -0700
Reply-To: [EMAIL PROTECTED] (H. Peter Anvin)

Followup to:  <[EMAIL PROTECTED]>
By author:    Andi Kleen <[EMAIL PROTECTED]>
In newsgroup: comp.os.linux.development.system
> 
> > I am embedding x86 linux and want to "cover up" all the text output of
> > the kernel and sysvinit with a simple low-res graphic.  Like the Windows
> > splash screen or what Corel has done with theirs.  I've checked out
> > Aurora, but that only covers up sysvinit.  Any ideas?
> 
> This could cause you some trouble, because some kernel driver developers 
> want their copyright messages to be displayed (Caldera tried to do this
> in the past, but they had to back down because of the protests) 
> 

There is nothing that requires you to have the console on the VGA,
though (for good reason.)  Redirecting it to a serial port is
perfectly OK IMNSHO.

          -hpa
-- 
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."

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

From: [EMAIL PROTECTED] (H. Peter Anvin)
Subject: Re: Modular booting
Date: 3 Apr 2000 15:55:28 -0700
Reply-To: [EMAIL PROTECTED] (H. Peter Anvin)

Followup to:  <[EMAIL PROTECTED]>
By author:    [EMAIL PROTECTED]
In newsgroup: comp.os.linux.development.system
> 
> Is there some alternative that might be better than subdirectories of
> /boot/ ?
> 

We already have /lib/modules for modules; I would use either
/lib/modules or /lib/kernel... it doesn't need to be in /boot since it
doesn't have to be used for booting.  I have been meaning bringing
this up with FHS and Linus.

     -hpa
-- 
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."

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

From: Nate Eldredge <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: How do I make shared libraries?
Date: 03 Apr 2000 16:22:51 -0700

Allin Cottrell <[EMAIL PROTECTED]> writes:

> Paul Kimoto wrote:
> > 
> > In article <[EMAIL PROTECTED]>, Allin Cottrell wrote:
> > > Why is anyone still using egcs?
> > 
> > Because Alan Cox does not guarantee successful use of gcc-2.95* for 2.2.*
> > kernels?
> > 
> > So, why does Alan Cox still use egcs?
> 
> Isn't this a misunderstanding?  I've seen strong recommendations
> to use gcc 2.7.2.3 (which dates from _before_ the egcs/gcc
> divergence)
> for building the kernel.  But egcs?  I would assume that any
> warnings associated with gcc-2.95* would apply a fortiori to
> egcs, which was sort of a "pre" version of 2.95. 

I think it's based on the fact that there are reports of outstanding
problems related to gcc 2.95.x, while none are currently known for
(say) egcs 1.1.2.  So the latter is considered "safe".

-- 

Nate Eldredge
[EMAIL PROTECTED]

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

From: jvirzi <[EMAIL PROTECTED]>
Subject: Re: complex math in a device driver
Date: Mon, 03 Apr 2000 17:20:06 -0700

I don't want to argue the finer points of device driver development, and the
preservation of a hierarchy. I see from the response to your question that the
finger has been wagged violently at you.

There's a way that has worked for me before for an Intel CPU, but it involves
assembly language programming of the FPU. The FPU registers are arranged as a stack
that can be "popped" and "pushed". You need to manually save and restore them. Once
you have saved them, you can use them freely. I do not know a way around the
assembly language programming. C doesn't support this, as far as I know.

-J


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

From: "Someone Insignificant" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development,comp.os.linux.development.apps,linux.dev.c-programming,linux.redhat.development
Subject: Re: Partition Access
Date: Tue, 04 Apr 2000 00:33:15 GMT

To all concerned:

  I have received quite a bit of feedback concerning
this thread, and, from the bottom of my heart, I sincerely
apologize.

  For some reason, this thread went way of topic. Being
at the center of the controversy, I am probably the only
one who fully understands why.

  So, once again, my deepest and most sincere apologies
to all that may/may not have been offended. This started
out simply as a request for docuementation, and, due to
the responses, and my reaction to those responses, it
has become everything but.

  Please, continue with life, and live it to the fullest, for we
all have little precisous time, and as has been pointed out,
critisism of anothers actions, is certainly a waste of it.

Sincerely,

Someone Insignificant
[EMAIL PROTECTED]






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

From: ravi Venkat <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: SMP Hang, please help
Date: Mon, 03 Apr 2000 17:08:57 -0700

Hello all,


We are facing a hard hang on 2.2.14 SMP kernel (red hat) while doing
heavy
multi-threaded i/o using a software raid driver.

We have 10 kernel threads which mostly do

    get my_spinlock (spin_lock_irqsave)
    do some work
    add_wait_queue
    release my_spinlock
    schedule()
    get my_spinlock
    remove_wait_queue

    and repeat the cycle.

These are woken up from the i/o done path.


Within a few seconds machine locks up and nothing works. By putting
printk statements, we have found that


cpu
1
cpu 2
=====
======
    * get my_spinlock (spin_lock_irqsave)         * waiting for
my_spinlock
    * do some work
with spin_lock_irqsave()
    * trying to do add_wait_queue                          which also
means disabled
      but has not completed
interrupts.
      probably because of not
      getting waitqueue_lock


Apart from add_wait_queue(), waitqueue_lock is used only
by remove_wait_queue() and __wake_up(). So why does the thread
running on cpu 1 does not get this lock when cpu 2 is not executing
either remove_wait_queue() and __wake_up() ?

Any help to debug this problem is greatly appreciated.  Please help...


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

From: [EMAIL PROTECTED] (Christopher Browne)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: How compatible is Linux with .. Linux
Reply-To: [EMAIL PROTECTED]
Date: Tue, 04 Apr 2000 00:41:16 GMT

Centuries ago, Nostradamus foresaw a time when [EMAIL PROTECTED]
would say: 
>Anyway, I thought I'd point out that while politeness is nice, it often
>wastes a lot of time.  Saying what you mean may not be nice, but it's
>fast and it's effective.

If what is said provides little useful guidance, and annoys people,
while it may be fast, it may *NOT* be effective.

>And, of course, there's always Wesley Snipes' point of view:
>
>"Hey!  You can't take away people's right to be assholes!"  :-)

And you can't take away the rights of the rest of us to get irritated
at those that choose the "Sniping" option.
-- 
"It don't mean a thing, if it ain't got that swing..." 
[EMAIL PROTECTED] <http://www.hex.net/~cbbrowne/lsf.html>

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

From: Ciro <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.questions
Subject: question about process generation
Date: Mon, 03 Apr 2000 17:21:31 -0300

Hi all!

I need to know how must I do to generate a process "A" from other
process "B",
then if "B" breaks down or exits, "A" does not hang, break down or exit.

I've used the fork() & execXX() UNIX system calls, but some friends
tells me if a parent process
terminates then all its child process terminates too..

Thanks!!

Leonardo Espinoza
[EMAIL PROTECTED]


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

From: jvirzi <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: A story
Date: Mon, 03 Apr 2000 18:23:56 -0700

This morning, a man without any legs hesitantly asked for directions to a nearby
store. I noticed both of his arms had been broken. Feeling pity for this person,
I asked him what had happened, to which he replied "I lost my legs in a car
accident when I was fifteen."

"And your arms?"

"I asked Peter for directions yesterday".

'nuff said.

"Peter T. Breuer" wrote:

> In comp.os.linux.development.system Don Waugaman <[EMAIL PROTECTED]> wrote:
> : In article <8c80ku$482$[EMAIL PROTECTED]>,
> : Peter T. Breuer <[EMAIL PROTECTED]> wrote:
> :>I recommend you to fly in a plane controlled by a software written by
> :>a technical incompetent you were too "polite" to tell to go and fix
> :>his software.
>
> : You are equating politeness with inassertiveness.  That's a singularly
> : bad trap to fall into.  Technical correction can be done in polite
> : manner.  Being polite in correcting someone does not mean being some
> : kind of milquetoast.  Pointing someone asking for help in the right
> : direction does not give you free rein to insult their ignorance (which
> : is *not* the same as a lack of intelligence).
>
> Interesting point. It's a well-phrased point and has considerable  merit
> (but I'm hardly likely to put bruised feelings before bruised truth, or
> I wouldn't be being honest with myself or you).
>
> Ignorance is quite orthogonal to intelligence, and I'm quite capable of
> detecting the latter I hope!  Indeed, ignorance is very often a hallmark
> of intelligence, since an intelligent person doesn't rely on learning by
> rote.
>
> That said, a person asking about how to test their own software on
> linux distributions gets a solid zero for intelligence. They
> can't be serious!
>
> : Compare for instance:
>
> : "From your question, I'm not sure you have enough of a technical background
> : on Linux at the moment to be able to do much with the answer I'd have to
> : give you.  Perhaps you should either rephrase the question somewhat, giving
> : a brief overview of the issues you know about already, or have someone with
> : a broader technical background ask this question."
>
> Nice :-). This reminds me of a scene in "A mote in God's Eye". The
> part where flag captain Blaine tells Renner that the tactful way to put
> it to the senator would have been "that turns out not to be the case".
> (Sorry if the names are wrong - it's been about ten years since I read
> that book).
>
> : with what you wrote.  This makes substantially the same point you made in
> : your initial reply, and cuts no slack by comparison, but is *more* likely
> : to have a positive response simply because it is *more polite*.
>
> Quite possibly. I'm not sure that it's worth it, however. The software
> in question can't be worth much or a more technically rehearsed
> person would have been placing the question, no?  You'd expect a
> responsible architect or group leader would have asked for directions to
> the policy documents of the various distros, and contact points!  Well,
> they wouldn't even have asked on the newsgroup at all. Can you imagine
> a person who has to organize and design software asking about libraries
> and being unaware of configuration file placements, compiler issues,
> standards, policies ...?
>
> : Politeness is the oil that lubricates contact points in any system of two
> : or more humans.  Don't throw sand in the gears just because you think it's
> : the only way to get your point across - that reflects more on you than on
> : who you are communicating with.
>
> If you examine the original reply again, you'll find its not as brusque
> as you are making it out to be. I'd quote it here, if I weren't working
> across a modem link and an xterm.
>
> Peter


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

From: ravi Venkat <[EMAIL PROTECTED]>
Subject: Re: Debugging the 2.2.14 kernel
Date: Mon, 03 Apr 2000 18:28:11 -0700

Krzysztof Arciszewski wrote:

> Hello.
>
> Is there any packet/patch to linux kernel 2.2.14 - which allow debugging
> the kernel?
>
> Thanks
> Krzysztof Arciszewski

There is a kdb patch available at oss.sgi.com/

Ravi


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


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