Linux-Development-Sys Digest #963, Volume #7     Wed, 21 Jun 00 01:13:10 EDT

Contents:
  Re: A strange problem using poll() systemcall (Mario Klebsch)
  Re: A strange problem using poll() systemcall ("Roman A. Stepanov")
  Re: A strange problem using poll() systemcall ("Roman A. Stepanov")
  Thread safe version of readdir() ([EMAIL PROTECTED])
  Thread safe version of readdir() ([EMAIL PROTECTED])
  Re: Thread safe version of readdir() (Kaz Kylheku)
  Re: Why so many collisioins ? ("Chuck Swiger")
  USB speakers in 2.3.99 kernel? (Travis Hein)
  CodeWarrior for Linux. Comments ? (Kent Sorensen)
  Re: Add 4inches in length to your penis now!!!  4950 ("Larry Ebbitt ")
  Problem trying to include <asm/io.h> (Ed Hudson)
  Re: CodeWarrior for Linux. Comments ? (MWRon)
  Re: POSIX Portability issue. (root)
  Re: POSIX Portability issue. (Kaz Kylheku)
  Re: POSIX Portability issue. (root)
  function to get current year (tye4)
  OT: Re: CodeWarrior for Linux. Comments ? (Bryan Hackney)
  Linux System Resource (Cory Rauch)
  ODBC or Access binaries ("Richard (Klendathu)")
  Re: function to get current year (Erik Max Francis)
  installing procinfo 17 (termcap.h missing)
  Re: LILO Configuration Problem (Octalman)

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: A strange problem using poll() systemcall
Date: Tue, 20 Jun 2000 17:34:24 +0200

"Roman A. Stepanov" <[EMAIL PROTECTED]> writes:

>I have about twenty railway station tourniquets connected to computer via
>RS-422/RS-232 converter.

Does each one have its own serial device or are they all tied together
to one serial port?

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

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

From: "Roman A. Stepanov" <[EMAIL PROTECTED]>
Subject: Re: A strange problem using poll() systemcall
Date: Tue, 20 Jun 2000 20:25:51 +0400


Mario Klebsch <[EMAIL PROTECTED]> wrote:
> "Roman A. Stepanov" <[EMAIL PROTECTED]> writes:
>
> >I have about twenty railway station tourniquets connected to computer via
> >RS-422/RS-232 converter.
>
> Does each one have its own serial device or are they all tied together
> to one serial port?

All tied together. Each has it's own id and I must explicitly specify which
one I want to check for ticket.

Greetings,
Roman A. Stepanov



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

From: "Roman A. Stepanov" <[EMAIL PROTECTED]>
Subject: Re: A strange problem using poll() systemcall
Date: Tue, 20 Jun 2000 20:46:46 +0400


Alan Donovan <[EMAIL PROTECTED]> wrote:
> "Roman A. Stepanov" wrote:
>
> > I have about twenty railway station tourniquets connected to computer
via
> > RS-422/RS-232 converter. Each tourniquet is a passive device, I have to
ask
> > it if it has a ticket inserted in the ticket check area and then if it's
a
> > valid ticket I must send a command to open tourniquet. So I have to
check
> > all tourniquets one by one _very_ fast because nobody wants to wait
while
> > tourniquet is "thinking". I'm sending a command to the first touniquet,
> > waiting for answer, if it has a ticket, I send a command to open it,
then I
> > have to check if the second one have a ticket and so on. Because the
minimal
> > timeout I can set for serial port using termios struct is not small
enough I
> > have to use poll() or anything else to check if I have any answer from
> > tourniquet. If I have no incoming data during about 5 ms I have to check
the
> > next tourniquet.
>
> Excuse me if this doesn't help you in your original problem, but if you
> are really writing some code to manage railway turnstiles (I think that
> must be what you mean by "tourniquet", at least in my dialect -- i.e.
> ticket gate), I am curious to know why you are using linux.  The problem
> you are trying to solve (in computer science terms) sounds simple but
> demanding of very fast response, scalability and above all, very high
> reliability, and I would have thought that Linux was not the best choice
> for this sort of problem.
>

I am thinking about RTLinux. I already have a working version of my program
but it's not enough reliable and scalable. We cannot buy something like QNX
because we don't have a large amount of money. Another reason is that we are
planning to use Sybase Adaptive Server Enterprise 11.0.3 for Linux for
collecting stats from railway stations. BTW maybe it's time for me to buy a
Webster's dictionary ;)))

>
> > > Nor do I. From what you've said, blocking in poll() for long periods
> > > should be ok.
> >
> > I know my English is not good. What do you mean by 'blocking in poll()'?
As
> > far as I understand poll() will block only with negative timeout.
>
>
> To "block" means (informally) to take a substantial, potentially
> infinite amount of time, to complete. poll() and select() block -- that
> is their purpose. They block until EITHER the timeout period has expired
> OR something has happened on at least one of the filesdescriptors.
> Giving them an infinite timeout means they will never timeout and only
> unblock when there is file activity.
>
>

I wonder what can happen with file descriptor to block the poll()? I'd be
grateful if anybody tells me where I can get some more information about
poll() and select().

> HTH
>
> alan
>
> --
> ------------------------------------------------------------------------
>   Alan Donovan     [EMAIL PROTECTED]    http://www.imerge.co.uk
>   Imerge Ltd.      +44 1223 875265

Greetings,
Roman A. Stepanov



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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,comp.os.linux
Subject: Thread safe version of readdir()
Date: Tue, 20 Jun 2000 19:19:51 GMT

Does anyone know of a thread safe version of readdir()? Under Solaris
2.7, they have provided a POSIX-compliant version called readdir_r().

If one does not exist, how would one go about implementing one.

tia,
rob
[EMAIL PROTECTED]


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

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

From: [EMAIL PROTECTED]
Subject: Thread safe version of readdir()
Date: Tue, 20 Jun 2000 19:20:27 GMT

Does anyone know of a thread safe version of readdir()? Under Solaris
2.7, they have provided a POSIX-compliant version called readdir_r().

If one does not exist, how would one go about implementing one.

tia,
rob
[EMAIL PROTECTED]


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

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux
Subject: Re: Thread safe version of readdir()
Reply-To: [EMAIL PROTECTED]
Date: Tue, 20 Jun 2000 19:36:54 GMT

On Tue, 20 Jun 2000 19:19:51 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>Does anyone know of a thread safe version of readdir()? Under Solaris
>2.7, they have provided a POSIX-compliant version called readdir_r().

GNU Libc 2.1 has this function.

>If one does not exist, how would one go about implementing one.

Perhaps by using getdents()?

-- 
#exclude <windows.h>

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

From: "Chuck Swiger" <[EMAIL PROTECTED]>
Subject: Re: Why so many collisioins ?
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Date: Tue, 20 Jun 2000 19:58:42 GMT

In comp.os.linux.networking Cedric Blancher <[EMAIL PROTECTED]> wrote:
> "Boris Pran" <[EMAIL PROTECTED]> a �crit dans le message news:
>> It works but, an enormous amount of collisions are
>> detected.  Collision led on the hub is on almost all the time. It
>> significantly slowes down the communication.

You've probably got a cabling problem or else your 10/100 card is not
autonegotiating to 10Mbs/half-duplex properly.

> If your HUB is a 10/100Mbps one, D-Link card is ten time faster than the
> other. It has to slow down for the other card not to get flooded.

A hub either runs at 10 or 100; a device which can handle both speeds
is a switch, not a hub (by definition).  The 10/100 card should simply
run at 10Mbs; congestion control is not handled by the card per se,
but by the TCP sliding window.

>> How can I find out which one, out of two computers on my network, produces
>> those collisions and why ?
>
> Ethernet is in charge to slow down 100Mbps traffic and does this,
> according to CSMA-CD principles, by generating collisions.  All
> collisions are produced by the slowest one, to slow down the fastest
> one.

Where in the world did you come up with this?  Collisions happen when
two machines try to send traffic at the same time; they have
absolutely nothing to do with "slowing a card down" or with
"congestion control".

>> Should I try with different NICs / drivers ?
>
> Use a 100Mbps ethernet adapter on the other box too.

Won't do a bit of good unless Boris has a 100Mbs hub or a 10/100 switch.

-Chuck

       Chuck 'Sisyphus' Swiger | [EMAIL PROTECTED] | Bad cop!  No Donut.
       ------------------------+-------------------+--------------------
       I know that you are an optimist if you think I am a pessimist.... 

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

From: Travis Hein <[EMAIL PROTECTED]>
Subject: USB speakers in 2.3.99 kernel?
Date: Tue, 20 Jun 2000 16:06:04 -0400

I have the Altec Lansing ADA 70 USB speakers.
I wish to make them work with my Linux 2.3.99-pre6 kernel.
I have enabled and loaded the soundcore module, and the audio driver, as said in
the kernel documentation.
I do not seem to be able to play anything with them yet.
I load the following usb modules
usbcore
hid
soundcore
audio
usb-uhci

I know my USB stack works, since i have an ov-511 based video camera that works
fine, also a USB mouse that works.

Perhaps my problem is that i do not have the proper application to play sounds
with.
thanks for the help
Trav


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

From: Kent Sorensen <[EMAIL PROTECTED]>
Subject: CodeWarrior for Linux. Comments ?
Date: Tue, 20 Jun 2000 15:13:29 -0500


I'm going to be experimenting with Linux for some personal projects, and

have ordered CW for RedHat linux.

If anyone has used it, I'd like to hear impressions, tips etc.

I will be installing on a Corel Linux, so if there are any gotcha's I
need to look out for, please let me know. If RedHat is the only
distribution it will install on, I'd be unhappy, but would switch.


Kent Sorensen




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

Crossposted-To: comp.os.linux.development.apps
From: "Larry Ebbitt " <[EMAIL PROTECTED]>
Date: Tue, 20 Jun 2000 16:28:57 -0400 (EDT)
Reply-To: "Larry Ebbitt" <[EMAIL PROTECTED]>
Subject: Re: Add 4inches in length to your penis now!!!  4950

On Sun, 18 Jun 2000 09:47:41 -0400, Lew Pitcher wrote:

>> you to can have the huge dick of your dreams!!!

Will I have to take time away from my PC?



Larry - Atlanta - IBM Global Services



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

Date: Tue, 20 Jun 2000 17:03:27 -0400
From: Ed Hudson <[EMAIL PROTECTED]>
Subject: Problem trying to include <asm/io.h>

Hi,
I am writing a kernel module which compiles with no problems.  When I
try to include <asm/io.h> I get hundreds of errors.  I am using Mandrake
7.0 with the stock kernel and source tree.  Do you have any
suggestions?  Text of the error messages follows.


gcc -DHAVE_CONFIG_H -I -O0 -g3 -Wall -DMODULE -D__KERNEL__ -DLINUX -c
cryptic.c
In file included from /usr/include/linux/fslh:270,
from /usr/include/linux/capability.h:13,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/shed.h:8,
from /usr/include/linux/vmalloc.h:4;
from /usr/include/asm/io.h:102,
from cryptic:64:
/usr/include/linux/hpfs_fs_i:5 parse error before 'ino_t'


There are many more errors like this, but since Netscape and KDevelop
don't like to share cut and paste buffers, I will just include this for
now

Thanks for any input

Ed Hudson
[EMAIL PROTECTED]



====== Posted via Newsfeeds.Com, Uncensored Usenet News ======
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
=======  Over 80,000 Newsgroups = 16 Different Servers! ======

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

From: [EMAIL PROTECTED] (MWRon)
Subject: Re: CodeWarrior for Linux. Comments ?
Date: Tue, 20 Jun 2000 17:20:16 -0400

In article <[EMAIL PROTECTED]>, Kent Sorensen
<[EMAIL PROTECTED]> wrote:

>I'm going to be experimenting with Linux for some personal projects, and
>
>have ordered CW for RedHat linux.
>
>If anyone has used it, I'd like to hear impressions, tips etc.
>
>I will be installing on a Corel Linux, so if there are any gotcha's I
>need to look out for, please let me know. If RedHat is the only
>distribution it will install on, I'd be unhappy, but would switch.

CodeWarrior should install on most any Distro,  there is also a CW for
SuSE if you want to avoid the Red Hat brand name.  I know it has been ran
on many other distros but the only version we "support" is either Red Hat
or SuSE.

If you have any questions feel free to write me.  Also I try to browse
this newsgroup at least daily.

Ron

-- 
When it came time to show off Mac OS X applications
Steve Jobs chose those built with CodeWarrior

Metrowerks, a Motorola Company   -  Ron Liechty
"Software Starts Here"  -  [EMAIL PROTECTED]

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

From: root <[EMAIL PROTECTED]>
Subject: Re: POSIX Portability issue.
Date: Tue, 20 Jun 2000 16:00:04 -0700

"Rajeev B. C." wrote:

> Has anyone been able to implement sigqueues in linux developments ?
>
> The source compiles and executables run perfectly ok in solaris environment
> but when the same source is ported to linux, Have no compilation error but
> during runtime, the functions do not return the desired values.
>
> If somebody has implemented or met with any successful workaround, please
> help me, with any changes in function prototype. A code snip of the function is
> highly appreciated.
>
> Thanks
> Rajeev
>
> P.S: I have tried with no success with RedHat, Hardhat, Debien and suse version
> of linux.

Try Caldera.  I believe that Caldera is the better POSIX compliant than any
distribution that I have checked.


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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: POSIX Portability issue.
Reply-To: [EMAIL PROTECTED]
Date: Tue, 20 Jun 2000 23:10:27 GMT

On Tue, 20 Jun 2000 16:00:04 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>"Rajeev B. C." wrote:
>
>> Has anyone been able to implement sigqueues in linux developments ?
>>
>Try Caldera.  I believe that Caldera is the better POSIX compliant than any
>distribution that I have checked.

Caldera would have to ship a hacked kernel and glibc in order to support the
missing feature.

-- 
#exclude <windows.h>

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

From: root <[EMAIL PROTECTED]>
Subject: Re: POSIX Portability issue.
Date: Tue, 20 Jun 2000 16:13:42 -0700

This is a multi-part message in MIME format.
==============8276ADF7359AC5539D235EAE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

root wrote:

> "Rajeev B. C." wrote:
>
> > Has anyone been able to implement sigqueues in linux developments ?
> >
> > The source compiles and executables run perfectly ok in solaris environment
> > but when the same source is ported to linux, Have no compilation error but
> > during runtime, the functions do not return the desired values.
> >
> > If somebody has implemented or met with any successful workaround, please
> > help me, with any changes in function prototype. A code snip of the function is
> > highly appreciated.
> >
> > Thanks
> > Rajeev
> >
> > P.S: I have tried with no success with RedHat, Hardhat, Debien and suse version
> > of linux.
>
> Try Caldera.  I believe that Caldera is the better POSIX compliant than any
> distribution that I have checked.

Test

==============8276ADF7359AC5539D235EAE
Content-Type: text/x-vcard; charset=us-ascii;
 name="abajo.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for root
Content-Disposition: attachment;
 filename="abajo.vcf"

begin:vcard 
n:Bajo;Allison
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Allison Bajo
end:vcard

==============8276ADF7359AC5539D235EAE==


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

From: tye4 <[EMAIL PROTECTED]>
Subject: function to get current year
Date: Tue, 20 Jun 2000 18:34:48 -0700

Is there a function in glibc that returns the current year as atleast a
four-digit year? I don't want to use the asctime(), gmtime() functions
which rollover around 2038.

Thx,

-tye4



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

From: Bryan Hackney <[EMAIL PROTECTED]>
Subject: OT: Re: CodeWarrior for Linux. Comments ?
Date: Tue, 20 Jun 2000 20:35:53 -0500

MWRon wrote:
> 
[...]
> Ron
> 
> --
> When it came time to show off Mac OS X applications
> Steve Jobs chose those built with CodeWarrior
> 
> Metrowerks, a Motorola Company   -  Ron Liechty
> "Software Starts Here"  -  [EMAIL PROTECTED]
[...]

You won't win any friends or arguments, or impress anyone around here
by invoking the name Steve Jobs.


-- 
                                 Bryan Hackney / BHC / [EMAIL PROTECTED]
                                        http://www.FreeClassAds.com/
                                        http://bhconsult.com/
                                        http://bhconsult.com/bh/pgp.key

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

From: Cory Rauch <[EMAIL PROTECTED]>
Subject: Linux System Resource
Date: Tue, 20 Jun 2000 22:05:03 -0400

The following link is a great Linux System Resource. It contains tons of
information on Linux System topics like file-system, kernel,
device-driver, API, and more. Please check it out.

http://www.osfaq.com


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

From: "Richard (Klendathu)" <[EMAIL PROTECTED]>
Subject: ODBC or Access binaries
Date: Wed, 21 Jun 2000 02:07:07 GMT

  Has anyone dabbled in ODBC? I'm interested in being able to grab Microsoft
Access .mdb files and either tear the information out or be able to
interface them (preferred). Thanks a bunch.
  Please email me since I may not get back to check the newsgroup too soon.
Thanks.

Richard
Studio B Software Engineering
"alternative system development"



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

From: Erik Max Francis <[EMAIL PROTECTED]>
Subject: Re: function to get current year
Date: Tue, 20 Jun 2000 19:04:44 -0700

tye4 wrote:

> Is there a function in glibc that returns the current year as atleast
> a
> four-digit year? I don't want to use the asctime(), gmtime() functions
> which rollover around 2038.

And why would you only want a four-digit number?  That rolls over in 
10 000 AD.

The answer is, yes, you want to use the ANSI C time functions.  If you
write it in conformance with the Standard, then all you need to do is
compile your program on a machine that uses a 64-bite time_t (or what
have you), and you'll be done with it.

-- 
 Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Hell is other people.
\__/ Jean-Paul Sartre
    Alcyone Systems / http://www.alcyone.com/
 Alcyone Systems, San Jose, California.

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

From: <[EMAIL PROTECTED]>
Subject: installing procinfo 17 (termcap.h missing)
Date: Wed, 21 Jun 2000 04:30:07 GMT

hi,
i'm running RH 5.1. I downloaded procinfo17 and trying to install it. 
i made the changes to the Makefile, however the source files requires
termcap.h. I don't seem to have it on my system. 
There is a comment in the Makefile that one may need to use ncurses. what
is that? should i use the curses.h instead of termcap.h in the source file?
thanks, 
aner

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

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

From: [EMAIL PROTECTED] (Octalman)
Subject: Re: LILO Configuration Problem
Date: Wed, 21 Jun 2000 04:56:39 GMT
Reply-To: [EMAIL PROTECTED]

[Posted and mailed]

In article <[EMAIL PROTECTED]>,
        "Jay Randall" <[EMAIL PROTECTED]> writes:
> Hello,
> 
> I am rebuilding the kernel. The machine I am using is dual bootable with
> Windows NT and Linux.  As a backup to the newly built kernel not working, I
> am keeping a backup of the original kernel to boot with.  As a test, I
> copied the kernel to *.OLD, and added an entry in lilo.conf to point to the
> newly created backup.  I then ran lilo.  The result of this was a warning
> about the /dev/hdb7 not being on the first drive, followed by comments about
> adding Linux *, LinuxOld and dos.
> When I boot, I choose Linux from the Windows OS Loader, which invokes LILO.
> However, now that I have changed lilo.conf, LILO prints out LIL- and locks
> up.
> Does anybody have an idea why this happens?
> Is there some problem with LILO not being on the MBR?
> 
> P.S. I subsequently went back to the old lilo.conf, ran lilo again, and I am
> still getting the same results (LIL- and locks up).
> 
> Thanks for the help,
> Jay.
> 
Did you rename the map file too?  You have to keep the kernel file and map file 
synchronized so LILO can find both.  Each version (I have three Linux versions 
installed) in /boot has both a kernel file and a matching map file.  I match them by 
giving each map/kernel pair a common suffix - any one will do as long as it is 
different from other pairs.  I have dual-booted W98 with Linux and never had to 
explicity copy the boot sector as Jean-Philip Robichaud suggests, but there may be 
some special issue(s) with NT.

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


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