Linux-Development-Sys Digest #617, Volume #8      Fri, 6 Apr 01 19:13:10 EDT

Contents:
  bootsect.S and AT&T Assembly
  How to export functions and c++ classes in DSO module ? ("Karim A.")
  Re: bootsect.S and AT&T Assembly ("Lee Ho")
  Re: Need your recommendation for a full-featured text editor (Matthias Warkus)
  ATI Radeon VIVO & XFree4.0.3 chrash ("Andreas K�hler")
  Re: usleep() is unreliable when sleeping for less then 10000 micro (Johann Deneux)
  Re: Win Modems ([EMAIL PROTECTED])
  ret_from_sys_call intercept (Tahar)
  Re: Zombies and daemons ("Hubert")
  [kernel]: Checksum Error (Young4ert)
  Re: Embedded Linux development?
  maximum disk request size and memory alllocation size (Zhiyong Xu)
  Re: usleep() is unreliable when sleeping for less then 10000 micro ("Norm Dresner")
  Re: usleep() is unreliable when sleeping for less then 10000 micro
  The never ending socket :-) (Arnaud Westenberg)
  Re: Need your recommendation for a full-featured text editor (Randall Parker)
  [Help:] Kernel Upgrade ("J. Liu")
  usbutils
  Re: Embedded Linux development?
  Re: usbutils (Phil Ehrens)
  Re: ATI Radeon VIVO & XFree4.0.3 chrash ("Karl Heyes")
  Re: usbutils
  Re: usbutils (Georg Acher)
  Re: usbutils (Phil Ehrens)

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

From: <[EMAIL PROTECTED]>
Subject: bootsect.S and AT&T Assembly
Date: Fri, 06 Apr 2001 08:30:22 -0000

2 Questions:


(1) What kind of addressing mode is this? What does it mean ?
    
        mov di,#0x4000-12 

(2) I can't seem to find this instruction set anywhere.  What does it do ?

        seg fs

Tks.

AL





--
Posted via CNET Help.com
http://www.help.com/

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

From: "Karim A." <[EMAIL PROTECTED]>
Subject: How to export functions and c++ classes in DSO module ?
Date: Fri, 6 Apr 2001 10:47:57 +0200

Hi all,

I'm porting an application from windows to linux.
I've ported several modules ( DLL) and I would like to know
how to export specific functions and classes.

Under Windows, I was using preprocessing instructions such like dllexport or
dllimport.
Does it ewist something like that under Linux, or should I proceed another
way ?

Thanks a lot,


Karim






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

From: "Lee Ho" <[EMAIL PROTECTED]>
Subject: Re: bootsect.S and AT&T Assembly
Date: Fri, 06 Apr 2001 09:12:43 GMT

[EMAIL PROTECTED] Wrote:
>2 Questions:


In Linux 2.2, 16 bit assembly code (bootsect.S, for example)
doesn't follow AT&T syntax. In Linux 2.4, it follows AT&T syntax.
I think following code is that of Linux 2.2

>
>(1) What kind of addressing mode is this? What does it mean ?
>
>        mov di,#0x4000-12


no addressing mode. # means immediate value

>(2) I can't seem to find this instruction set anywhere.  What does it do ?
>
>        seg fs
>


seg means segment overriding.

seg fs
mov (bx),di

is same as

mov fs:[bx], di

in Intel syntax.

*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Lee, Ho. Software Engineer, Embedded Linux Dep, LinuxOne
Mail : [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (personal)
Homepage : http://flyduck.com, http://linuxkernel.to





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

From: [EMAIL PROTECTED] (Matthias Warkus)
Crossposted-To: 
24hoursupport.helpdesk,alt.comp.shareware.programmer,comp.editors,comp.lang.java.help,comp.lang.java.programmer,comp.lang.java.softwaretools,comp.os.linux.advocacy
Subject: Re: Need your recommendation for a full-featured text editor
Date: Thu, 5 Apr 2001 14:25:33 +0000
Reply-To: [EMAIL PROTECTED]

It was the Wed, 04 Apr 2001 13:02:42 -0400...
...and Knowledge Seeker <[EMAIL PROTECTED]> wrote:
>  Hi,
>  
>  I am looking for a full-featured yet easy to use text editor to
>  replace Notepad.  Ideally, I would like a tool that is cross-platform
>  or has versions for Win98 and Linux.  The main platform requirement
>  would be Win98 and the nice-to-have platform is Linux.
>  
>  There seem to be a plethora of choices that might work:

Only one real choice. Emacs.

mawa
-- 
It's always September in comp.os.linux.advocacy...

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

From: "Andreas K�hler" <[EMAIL PROTECTED]>
Subject: ATI Radeon VIVO & XFree4.0.3 chrash
Date: Fri, 6 Apr 2001 12:38:31 +0200

I bought an ATI Radeon VIVO, the Server recognizes it, but chrashes with an
exeption. I tried Xconfigurator, xf86config, xf86cfg, xfree -configure,
editing the cfgs manually  -  without success. I'm using kernel 2.4.3 with
Radeo-support enabled.

Does anybody have a working XF86Config?

Thanx, Andreaz



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

From: [EMAIL PROTECTED] (Johann Deneux)
Subject: Re: usleep() is unreliable when sleeping for less then 10000 micro
Date: 6 Apr 2001 12:57:00 +0100

In article <9ajpt5$bdb$[EMAIL PROTECTED]>,
        Pasztor Szilard <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED]:
>> RE: usleep() is unreliable when sleeping for less then 10000 micro
>> sec...
>> 
> 
> That's because if the sleep delay exceeds the time slice, the kernel will
> only return the cpu to your process via its 100Hz timer.
> 

You could try to change the timer to a higher frequency. I did it, and
worked almost fine on a 2.2 kernel. The issue is that 2.2 kernels had
parts of code assuming HZ=100. For example, some file written with hi
HZ would have incorrect modification time.
I don't know if this was corrected in 2.4 kernels.
Anyway, rising the value of HZ wouldn't hurt on modern PCs.

-- 
Johann Deneux
CS student at DoCS (www.docs.uu.se/~johannd) and
ESIL (www.esil.univ-mrs.fr/~jdeneux)

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

From: [EMAIL PROTECTED]
Subject: Re: Win Modems
Crossposted-To: 
alt.computer.drivers,alt.os.linux,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.hardware
Date: Fri, 06 Apr 2001 11:49:19 GMT

In aus.computers.linux LittleFish <littlefish_au[SPAM ME AT YOUR OWN RISK]@yahoo.com> 
wrote:
> It seems as if more and more people using Windows
> are very dissapointed over the performance of there Lucent Winmodems. In the
> last week I have met 3 people that have taken back there Lucent Winmodem
> because it drops out regularly. If your machine is slower 300Mhz or is
> running a CPU intensive task in the background you can bet that it will drop
> out. Give me a real modem anyday!! By the way real internal modems are
> getting hard to source. Does anyone have suggestions for a Internal Fax
> Voice Data modem?

The Actiontec Internal PCI 56k modem at www.everythinglinux.com.au.
It's an internal "Firmware" modem.. The manual that comes with it
even includes instructions on how to use /proc/pci and "setserial"
to get it to work in Linux.

-- 
Anthony Rumble

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

From: Tahar <[EMAIL PROTECTED]>
Subject: ret_from_sys_call intercept
Date: Fri, 06 Apr 2001 14:32:01 +0200
Reply-To: [EMAIL PROTECTED]

Hi,

Can we export "ret_from_sys_call" as a kernel symbol ?
I tried EXPORT_SYMBOL(ret_from_sys_call) in i386_ksyms.c, and I got this
error at kernel compilation:

i386_ksyms.c:164: `ret_from_sys_call' undeclared here (not in a
function)
i386_ksyms.c:164: initializer element is not constant
i386_ksyms.c:164: (near initialization for
`__ksymtab_ret_from_sys_call.value')
make[1]: *** [i386_ksyms.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

In fact, I am trying to intercept every jmp to ret_from_sys_call. 
As it may be relevant to my problem, can you explain me the significance
of ENTRY(ret_from_sys_call) in entry.S: is it just an entry point in
assembler code or a function that can be exported or called by some code
?

Thanks in advance,

Tahar

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

From: "Hubert" <[EMAIL PROTECTED]>
Subject: Re: Zombies and daemons
Date: Fri, 6 Apr 2001 14:57:09 +0200


"Brian Bisaillon" <[EMAIL PROTECTED]> wrote in message
news:tAez6.522748$[EMAIL PROTECTED]...
> Well, if you're getting zombies you did something wrong because your
threads
> are not exiting properly.

I don't think this is correct, if you create a child process and the parent
continues processing instead of waiting for the child, there you have a
zombie. Zombies are not bad in general, they give the parent process the
opportunity to read the child process exit status.

> It's not good practice to start killing zombies but rather to avoid
creating zombies in the first place.

ACK, the double fork() trick does excately this. But with the second
proposed method (below)

> > One can set up a signal handler for SIGCHLD which then calls wait() to
> > eliminate the zombie.

you generate zombies, but these are immediately eliminated by the signal
handler.

Regards
Hubert




>
> "Hubert" <[EMAIL PROTECTED]> wrote in message
> news:9ahdvf$8gf$[EMAIL PROTECTED]...
> > Hi all,
> >
> > I cannot remove a zombie created by a daemon from the process list.
> >
> > My daemon (using pthreads) creates a child process within one of its
> threads
> > by calling vfork() and execv(). After the child process terminates, it
is
> > converted to a zombie.
> > The same thread that creates the child process tries to remove the
zombie
> by
> > calling waitpid(pid_t,&status,0) but always gets a return value of -1.
> > I also tried to call vfork() twice (found this described in some
manuals)
> to
> > make the init process responsable for the zombie, but it did not work.
> >
> > How can I remove a zombie created by a daemon? Should I also daemonize
the
> > child or is there a better way?
> >
> > Thank you
> >
> > Hubert
> >
> >
> >
> >
>
>



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

From: Young4ert <[EMAIL PROTECTED]>
Subject: [kernel]: Checksum Error
Date: Fri, 06 Apr 2001 13:42:08 GMT

Hi,

My apology if this is not the right NG to post.

I have downloaded, configured, compiled, and installed a copy of the 
linux-2.4.3 kernel and my system is currently running with the v2.4.3 
kernel.  I noticed that during the "make dep" under the "drivers/isdn" 
directory, the "make -C hisax fastdep" caused the following checksum 
warning:

        md5sum: WARNING: 12 of 12 computed checksums did NOT match

The above warning is presumed to be generated from the make procedure from 
the "hisax" package.  Has anyone had encountered such a warning message?  
Is the checksum warning message a serious problem?


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

From: [EMAIL PROTECTED] ()
Subject: Re: Embedded Linux development?
Date: Fri, 06 Apr 2001 14:05:53 GMT

On Thu, 05 Apr 2001 14:35:51 -0400, Mr. Oogie Boogie <[EMAIL PROTECTED]> wrote:
>R.L.C. Enterprises (www.RLC.com) makes a really nice single board
>computers with touch screen lcd's (CE-SBC-SC400) for a reasonable
>price (which is exactly what I'm looking for).  The problem is that it
>comes with Windows CE (which I wont touch).  When I asked them about
>Linux support this was their reply:
>

Check out developer.axis.com.

Currently their etrax 100 chip doesn't have memory management so some
things like forking are a p.i.t.a., but they've released a 100lx chip
w/ a MMU and will have the 2.4 kernel ported by the end of april.

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

From: Zhiyong Xu <[EMAIL PROTECTED]>
Subject: maximum disk request size and memory alllocation size
Date: Fri, 06 Apr 2001 09:02:41 -0400

Hi,
      In linux kernel 2.4.1,
      In hard disk I/O, is there any size limitation for one disk I/O,
and what's the size?
      If I use __get_free_pages to allocate memory, the maximum size is
256KB?
      Thanks


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

From: "Norm Dresner" <[EMAIL PROTECTED]>
Subject: Re: usleep() is unreliable when sleeping for less then 10000 micro
Date: Fri, 06 Apr 2001 20:07:12 GMT

Investigate the Real-Time Linux system at
        http://www.rtlinux.org

You'll find the answers to all of your questions.

    Norm

Pasztor Szilard <[EMAIL PROTECTED]> wrote in message
news:9ajpt5$bdb$[EMAIL PROTECTED]...
> [EMAIL PROTECTED]:
> > RE: usleep() is unreliable when sleeping for less then 10000 micro
> > sec...
> >
> > Thanks for reading this,
> >
> > I noticed that usleep() is completly unreliable when sleeping for less
> > then 10000 micro sec.
>
> That's because if the sleep delay exceeds the time slice, the kernel will
> only return the cpu to your process via its 100Hz timer.
>
> Look at Documentation/rtc.txt, it might help you. I'm still searching for
> some more flexible solution, too.
>
>     -------------------------------------------------------
>     |    Widows '95 - The Micro$oft Solution Preventer    |
>     -------------------------------------------------------



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

From: [EMAIL PROTECTED] ()
Subject: Re: usleep() is unreliable when sleeping for less then 10000 micro
Date: Fri, 06 Apr 2001 20:17:50 GMT

On Fri, 06 Apr 2001 00:10:53 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>RE: usleep() is unreliable when sleeping for less then 10000 micro
>sec...
>
>Thanks for reading this,
>
>I noticed that usleep() is completly unreliable when sleeping for less
>then 10000 micro sec.
>Do you know of another way of sleeping... lets say for 10 micro
>seconds...

The problem is that linux uses a 100hz timer clock.  For anything less
than a tick, you need to busywait.  Look at the kernel code for
examples.

A better solution is to raise the clock frequency.

On elinux, there's a HZ param in param.h and the timer rate is in
time.c.

I just checked my desktop and can't find where the timers are set in
time.c.  Maybe it's smart enough to calculate the divisor from the HZ
param.

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

Date: Fri, 06 Apr 2001 22:00:18 +0200
From: Arnaud Westenberg <[EMAIL PROTECTED]>
Subject: The never ending socket :-)

Hi list,

I have a (newbe!) question about Unix domain sockets. 

Suppose I want to write a daemon wich supports multiple connections for
multiple processes. However I don't want to mess with all the socket
names at the filesystem level. 

You'll probably say: No problem, just use 'socketpair' to create an
unnamed pair of connected sockets. Ok, so I use 'socketpair' from within
the daemon code, but how do I tell the user process wich (socket) file
descriptor to use for his end of the connection? Do I have to use the
'ancillary data' for this? My first guess would be no, because this data
still has to be transmitted through the socket (or am I missing
something here), but what should one use instead?

Thanks,

Regards Arnaud

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

From: Randall Parker <[EMAIL PROTECTED]>
Crossposted-To: 
24hoursupport.helpdesk,alt.comp.shareware.programmer,comp.editors,comp.lang.java.help,comp.lang.java.programmer,comp.lang.java.softwaretools,comp.os.linux.advocacy
Subject: Re: Need your recommendation for a full-featured text editor
Date: Fri, 06 Apr 2001 20:31:21 GMT

I use and highly recommend Visual Slick Edit.

http://www.slickedit.com



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

From: "J. Liu" <[EMAIL PROTECTED]>
Subject: [Help:] Kernel Upgrade
Date: Fri, 06 Apr 2001 17:13:53 -0400


Hi, 

I am trying to upgrade Kernel 2.2.14 to 2.2.18. I compiled the source
code of 2.2.18
and copied them to /boot. 

When I reboot the system, it failed. The error message is "Kernel panic:
No init found".
I heard I need to upgrade the whole system. 

Advice needed to help me upgrade the kernel.

Jun

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

From: <[EMAIL PROTECTED]>
Subject: usbutils
Date: Fri, 6 Apr 2001 14:59:04 -0700

I am trying to get usbutils working from http://www.linux-usb.org which is
reputed to be like pciutils. I untarred it, ran ./configure, make then make
install and it created two binaries (lsusb and usbmodules) and some manual
pages, so I believe it compiled and installed as the install readme
indicated. It even runs. Unfortunately when I invoke it, it complains about
a missing /proc/bus/usb. I think that mknod might be appropriate to create
that node (although I would have expected that the make install step would
have create that), but I don't know what the major or minor numbers might
be. Anyone have any suggestions.



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

From: <[EMAIL PROTECTED]>
Subject: Re: Embedded Linux development?
Date: Fri, 6 Apr 2001 15:00:56 -0700

So, er a Ralph, why don't you just copy this e-mail to the sales guy at RLC
and tweak him a bit about the fact that his competitors are further along
than he is.

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
ome.com...
> On Thu, 05 Apr 2001 14:35:51 -0400, Mr. Oogie Boogie
<[EMAIL PROTECTED]> wrote:
> >R.L.C. Enterprises (www.RLC.com) makes a really nice single board
> >computers with touch screen lcd's (CE-SBC-SC400) for a reasonable
> >price (which is exactly what I'm looking for).  The problem is that it
> >comes with Windows CE (which I wont touch).  When I asked them about
> >Linux support this was their reply:
> >
>
> Check out developer.axis.com.
>
> Currently their etrax 100 chip doesn't have memory management so some
> things like forking are a p.i.t.a., but they've released a 100lx chip
> w/ a MMU and will have the 2.4 kernel ported by the end of april.
>



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

From: [EMAIL PROTECTED] (Phil Ehrens)
Subject: Re: usbutils
Date: 6 Apr 2001 22:09:01 GMT
Reply-To: -@-

Yes.

http://sourceforge.net/projects/linuxusbguide

[EMAIL PROTECTED] wrote:
>I am trying to get usbutils working from http://www.linux-usb.org which is
>reputed to be like pciutils. I untarred it, ran ./configure, make then make
>install and it created two binaries (lsusb and usbmodules) and some manual
>pages, so I believe it compiled and installed as the install readme
>indicated. It even runs. Unfortunately when I invoke it, it complains about
>a missing /proc/bus/usb. I think that mknod might be appropriate to create
>that node (although I would have expected that the make install step would
>have create that), but I don't know what the major or minor numbers might
>be. Anyone have any suggestions.

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

From: "Karl Heyes" <[EMAIL PROTECTED]>
Subject: Re: ATI Radeon VIVO & XFree4.0.3 chrash
Date: Fri, 06 Apr 2001 23:25:26 +0100

In article <9ak60e$t6t$[EMAIL PROTECTED]>, "Andreas K�hler"
<[EMAIL PROTECTED]> wrote:


> I bought an ATI Radeon VIVO, the Server recognizes it, but chrashes with an
> exeption. I tried Xconfigurator, xf86config, xf86cfg, xfree -configure,
> editing the cfgs manually  -  without success. I'm using kernel 2.4.3 with
> Radeo-support enabled.
> Does anybody have a working XF86Config?  Thanx, Andreaz
> 

Try the binaries on www.linuxvideo.org  in the gatos section.

karl.

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

From: <[EMAIL PROTECTED]>
Subject: Re: usbutils
Date: Fri, 6 Apr 2001 16:03:37 -0700

Dear Phil:
    The link to the linuxusbguide is useful and I thank you. I have enabled
USB support in the kernel and I can load some of the experimental modules.
The guide is useful in providing additional information about some of those
modules. Unfortunately, in this particular case, usbutils and not mentioned
in the linuxusbguide. I suspect my problem is particular to usbutils and not
to the kernel's support of usb. There must be some variation of the install
of usbutils that I am missing here. I have installed, made and configured
other packages, so I believe I am probably past the normal pitfalls (at
least I hope so). The lsusb utility looks quite useful if I can only get it
to run.
Charles

"Phil Ehrens" <[EMAIL PROTECTED]> wrote in message
news:9alept$[EMAIL PROTECTED]...
> Yes.
>
> http://sourceforge.net/projects/linuxusbguide
>
> [EMAIL PROTECTED] wrote:
> >I am trying to get usbutils working from http://www.linux-usb.org which
is
> >reputed to be like pciutils. I untarred it, ran ./configure, make then
make
> >install and it created two binaries (lsusb and usbmodules) and some
manual
> >pages, so I believe it compiled and installed as the install readme
> >indicated. It even runs. Unfortunately when I invoke it, it complains
about
> >a missing /proc/bus/usb. I think that mknod might be appropriate to
create
> >that node (although I would have expected that the make install step
would
> >have create that), but I don't know what the major or minor numbers might
> >be. Anyone have any suggestions.
>



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

From: [EMAIL PROTECTED] (Georg Acher)
Subject: Re: usbutils
Date: 6 Apr 2001 23:06:08 GMT

In article <zTqz6.52$[EMAIL PROTECTED]>,
 <[EMAIL PROTECTED]> writes:
|> I am trying to get usbutils working from http://www.linux-usb.org which is
|> reputed to be like pciutils. I untarred it, ran ./configure, make then make
|> install and it created two binaries (lsusb and usbmodules) and some manual
|> pages, so I believe it compiled and installed as the install readme
|> indicated. It even runs. Unfortunately when I invoke it, it complains about
|> a missing /proc/bus/usb. I think that mknod might be appropriate to create
<...>

mount -t usbdevfs none /proc/bus/usb
should do the job (after the usbcore was loaded).

-- 
         Georg Acher, [EMAIL PROTECTED]         
         http://www.in.tum.de/~acher/
          "Oh no, not again !" The bowl of petunias          

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

From: [EMAIL PROTECTED] (Phil Ehrens)
Subject: Re: usbutils
Date: 6 Apr 2001 23:06:52 GMT
Reply-To: -@-

Geez.  It tells you how to create the /proc/usb stuff.  That was what
your question was about, right???

[EMAIL PROTECTED] wrote:
>Dear Phil:
>    The link to the linuxusbguide is useful and I thank you. I have enabled
>USB support in the kernel and I can load some of the experimental modules.
>The guide is useful in providing additional information about some of those
>modules. Unfortunately, in this particular case, usbutils and not mentioned
>in the linuxusbguide. I suspect my problem is particular to usbutils and not
>...

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


** 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 by posting to the
comp.os.linux.development.system newsgroup.

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