Linux-Development-Sys Digest #643, Volume #6 Thu, 22 Apr 99 01:14:29 EDT
Contents:
Re: Help - Installing module for new kernel (Jim Roberts)
Re: Threads >> PThreads or LinuxThreads?? (Sander Zijlstra)
Flashnet Chatscript ([EMAIL PROTECTED])
Re: pthreads: Need help setting realtime priority! ("Udo Giacomozzi")
Re: "Permission denied" ("Bill Zimmerly")
Thing about Linux you do not know... ([EMAIL PROTECTED])
Re: Flashnet Chatscript (Clifford Kite)
Re: Flashnet Chatscript (Alan McLean)
disable interrupt ("J.C. Chuang")
[A] Linux pstat() or table() equivalent (Paul Roebuck)
SCSI emulation for atapi devices (Marcin Romaszewicz)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Jim Roberts)
Subject: Re: Help - Installing module for new kernel
Date: Wed, 21 Apr 1999 17:40:08 GMT
> Hello,
> I am using Redhat 5.2 without the update rpm installed at the moment.
> But the same problem exist with the updated rpm. After I successfully
> compile my kernel, I tried to install the modules. When I typed make
> modules_install in the /usr/src/linux directory, it tells me that no *.o
> files found. when I do a ls on the modules directory, there is no
> file(s) there. Is this a problem or did I do something wrong?
>
> Any advise will be greatly appreciated.
>
> Thanks
>
>
> Simon
>
Simple question Simon. Did you "make modules" before trying
to install them?
--
Jim Roberts Never enough time!
[EMAIL PROTECTED]
------------------------------
From: Sander Zijlstra <[EMAIL PROTECTED]>
Subject: Re: Threads >> PThreads or LinuxThreads??
Date: Tue, 20 Apr 1999 15:51:14 +0200
Thomas Strohm wrote:
>
> K Prabhakaran wrote:
> > LinuxThreads
> > In this for every threads it is creating a process(not really), like
> > when i do a "ps" command it shows all the threads i created as a process.
> > Why it is?
>
> This is how LinuxThreads are implemented. A new thread is created
> basically
> by a clone(2) system call which is very similar to fork(2). For
> clone(2), the
> child process (thread) shares the memory pages with the parent. For
> fork(2),
> they are copy-on-write, that is, they are shared until one of the
> processes
> writes to them. Then they are copied, and the parent and the child have
> different
> memory pages.
>
> If you do 'ps', you see the threads, because they are like different
> processes
> sharing their memory pages.
>
> Thomas.
I read your comment like above and have a question also... about
threads.... I also used threads and like to know whether I use PThreads
(POSIX) or LinuxTHreads.... because I use the headerfile pthreads.h and
this file says that it's the Linux implementation of Pthreads but I
thought that Linuxthreads weren't completely implemented yet..?...so
what am I using according to the fact that I include the pthreads.h
file???
--
Sander Zijlstra,
HTS graduating student.
Delft University of Technology.
Faculty of Information Technology and Systems. (ITS)
Mobile Multimedia Communication Project. (MMC)
E-mail: [EMAIL PROTECTED]
Room: 11.110
Phone: +31 (0)15-2783234
url: http://mmc.et.tudelft.nl/~sander
--- Microsoft SELLS you Windows, Linux GIVES you the whole house ---
------------------------------
From: [EMAIL PROTECTED]
Subject: Flashnet Chatscript
Date: Tue, 20 Apr 1999 13:37:24 GMT
I cannot seem to construct a usable chatscript to connect to flashnet. I am
using RH52, and can connect using 2 xterms. One is used to initiate a minicom
session, while the second is used to start the ppp daemon BEFORE flashnet
drops my connection. I am a novice user of ppp and chat, therefore any help
would be appreciated.
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: "Udo Giacomozzi" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: pthreads: Need help setting realtime priority!
Date: Tue, 20 Apr 1999 16:15:00 +0200
I forgot one thing: I'm using Kernel 2.0.36 (SuSE 5.3). is that the
problem??
Thanks
Udo Giacomozzi
--
* Email: [EMAIL PROTECTED]
* UIN: 17745247 (@pager.mirabilis.com)
Udo Giacomozzi schrieb in Nachricht
<7ffkra$lff$[EMAIL PROTECTED]>...
>Hi!
>
>I urgently need help to solve a problem with LinuxThreads.
>I made a program that creates a thread (that for now does just wait) using
>the pthread library. So far, so good. The problem is I can't set realtime
>priority to the thread.
>
>The program is written in Pascal, but the pthread calls are just the same.
I
>can give you the source code and/or executable if you want, but let me
>explain in words how I set the priority:
>
>- First I prepare a pthread_attr_t using pthread_attr_init().
>- Then I set the scheduling policy SCHED_FIFO (should be the constant 1)
>with pthread_attr_setschedpolicy.
>- Next I set the priority level to 90 using pthread_attr_setschedparam().
>- I can now check the settings using pthread_attr_getschedpolicy() and
>pthread_attr_getschedparam() and they return the right values (SCHED_FIFO,
>priority 90)
>
>- Ok, now I create the thread using pthread_create(). I think the C syntax
>would be like this:
> pthread_create(&ThreadID, &thread_attr, Thread_Start_Routine, null)
>
>Good. No problems so far. No function returns any error and the thread is
>created successfully.
>
>- Now I check again the thread status, but using
>pthread_getschedparam(ThreadID, &policy, &sched_level) this time. And this
>function returns SCHED_OTHER with priority 0 !!!
>
>I can't understand why this is so because *never* a function returns an
>error (but it does so when I set a invalid scheduling policy).
>
>Note it doesnt change whether I'm logged in as root or not.
>
>Anyone has a idea what I should do??
>
>Thanks in advance!!!!
>Udo Giacomozzi
>
>F'up to comp.os.linux.development.apps
>
>--
>* Email: [EMAIL PROTECTED]
>* UIN: 17745247 (@pager.mirabilis.com)
>
>
>
------------------------------
From: "Bill Zimmerly" <[EMAIL PROTECTED]>
Subject: Re: "Permission denied"
Date: Tue, 20 Apr 1999 09:05:10 -0500
Thanks for the timely reply Peter.
Although at this moment, since I spent most of last night reinstalling
everything, I do want to know how I can, as you put it, "check to make sure
inetd really is running as root".
- Bill
Peter Samuelson <[EMAIL PROTECTED]> wrote in message
news:7fgoc9$7l0$[EMAIL PROTECTED]...
> [snip]
> > I looked at the "inetd.conf" file and all seems to be okay. "root" is
> > how these processes are started! HELP!!!!!!!
>
> inetd is having the problem *before* it starts any processes. Check to
> make sure inetd really is running as root.
>
> --
> Peter Samuelson
> <sampo.creighton.edu!psamuels>
------------------------------
From: [EMAIL PROTECTED]
Subject: Thing about Linux you do not know...
Date: Thu,22 Apr 1999 17:18:14+2000
New total graphics and CAD solution for LIN����X !!!
http://www.linuxcad.com
LinuxCAD may replace AutoCAD and Visio in 90% of cases where ACAD is used,
and in 100% cases the Visio is used it means
thousands of dollars in savings !!! Plus true multitasking of Linux and
freedom from the MS-Windows.
http://www.linuxcad.com
LinuxCAD is an AutoCAD for Linux for all practical purposes it implements
all major features of ACAD in such a way that new users (who had ACAD experience
before)
do not need any additional training to start working with LinuxCAD.
http://www.linuxcad.com
LinuxCAD is a professional quality Computer Aided design and Drafting
system for Linux , LinuxCAD is all graphics , all visual modelling and
all diagramming you may need for Linux !!!
http://www.linuxcad.com
LinuxCAD can be used in:
Software Development Flowcharting ,
Entity Relationship Diagramming,
System Administration Diagramming and you actually can start
your sysadmin tasks from inside LinuxCAD,
Mechanical Engineering drafting,
PCB and schematic design ( easily integrated with routing programs ),
Geographicsl Information Systems,
Any kind of drafting where integration with database is important,
Floor plans for buildings and facilities,
Architectural Drafting,
Front end for programmable rendering systems like OpenGL,
Can be used to replace ACAD in every application later is used !!!
LinuxCAD - a must have for every Linux user.
LinuxCAD for Sun SPARC - $350 ( when purchasing multiple copies
major discount provided ).
LinuxCAD is available for Intel x86 and PowerMac Linuxes.
LinuxCAD is a very affordable commercial program
Intel version - only $99
LinuxPPC version - only $120
Also available for all major ����nix versions ( look at our web site
for details. )
YO���� CAN START ����SING WORKING, BREATHING LIN����XCAD IN 24 HO����RS AFTER
PAYING BY CREDIT CARD !!!
This prices will meet our competitors anywhere in the world
to the benefits of all Linux users. They show our commitment to mass Linux market,
our long term goals and superior quality of our product in comparison to
competition.
LinuxCAD v 1.85
includes important additions:
1. Printing to HPGL compatible plotters ,
2. Printing DeskJet and LaserJet ,
3. Printing Postscript
4. Printing LinuxCAD MS Windows based Print server.
5. Blocks and Attributes - just like in AutoCAD.
6. Bezier Splines.
7. 3D objects and algorythms.
8. ����ser Coordinate Systems.
9. Bug fix from LinuxCAD rel 1.8
10. Hidden lines removal.
11. Dview command.
12. Forming of 3D shapes by extrusion and revolution.
13. Support for SHX fonts in ����nifont format. That means national symbols,
including german accent letters, cyrillic, katakana, kanji.
all included in $99 basic package, there is no need to purchase any
additions or extensions.
Now our competitors can no longer claim "The best performance/price ratio"
The best performance/price ratio provides nothing else but LinuxCAD alone !!!
check and see for yourself:
http://www.linuxcad.com
The outline of the main features of the previous versions:
1) LinuxCAD provides great variety of entity types ( lines , circles , ellipses ,
traces , text ,
polylines , solids , doughnuts , arcs , spline curves , user defined entities and 3D
entities ) ,
2) LinuxCAD implements all necessary editing features ( scale ,
rotate , mirror , offset , array , copy , move , hatch , trim , extend , purge , ...
).
3) Allows up to 1000 layers, with ability to control layer color and visibility
independently.
4) All entities are transferable to and from AutoCAD through DXF exchange format.
5) Supports user defined line types and load able fonts in SHX format ( including
����nicode fonts ).
6) Supports a hardcopy to printers.
7) Parts of the drawing can be copied between different instances of the LinuxCAD
using X-Clipboard.
8) LinuxCAD has industry standard Motif G����I.
9) Allows users to write custom applications for automating typical editing and
drafting tasks
using industry most popular C-compiler GCC.
10) Easy integration to relational databases !!!
http://www.linuxcad.com
We are looking for resellers of the shrink wrapped copies of LinuxCAD,
reseller discounts provided.
Software Forge Inc.
public relations department
PS. LinuxCAD has been developed using our proprietary Post Object Oriented
Technology of Software Development. We have a strategic advantage against
our competitors ( including big ones ) in the speed of development and
manageability of huge volumes of source code (!)
In the long run You better off with LinuxCAD !!!
LinuxCAD is the future , AutoCAD is the past, Give LinuxCAD a try !!!
http://www.linuxcad.com
Software Forge Inc. , just as such companies as Cygnus,Caldera,SSC,
Netscape,Oracle,IBM,Redhat doing its best in bringing Linux OS in the
mainstream of business computing !!! Our product LinuxCAD firmly
establishes Linux as solid platform for Computer Aided Drafting and
diagramming !!!
This entire post is Copyright of the Software Forge Inc. and can be reproduced
or copied only in its entirety in its original unmodified form.
------------------------------
From: kite@NoSpam.%inetport.com (Clifford Kite)
Subject: Re: Flashnet Chatscript
Date: 20 Apr 1999 10:11:21 -0500
[EMAIL PROTECTED] wrote:
: I cannot seem to construct a usable chatscript to connect to flashnet. I am
: using RH52, and can connect using 2 xterms. One is used to initiate a minicom
: session, while the second is used to start the ppp daemon BEFORE flashnet
: drops my connection. I am a novice user of ppp and chat, therefore any help
: would be appreciated.
This really isn't the group for this question. Try comp.os.linux.networking.
--
Clifford Kite Not a guru. (tm)
[EMAIL PROTECTED] Better is the enemy of good enough.
------------------------------
From: [EMAIL PROTECTED] (Alan McLean)
Subject: Re: Flashnet Chatscript
Date: Tue, 20 Apr 1999 16:31:25 GMT
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I cannot seem to construct a usable chatscript to connect to flashnet. I am
> using RH52, and can connect using 2 xterms. One is used to initiate a minicom
> session, while the second is used to start the ppp daemon BEFORE flashnet
> drops my connection. I am a novice user of ppp and chat, therefore any help
> would be appreciated.
You only really need two config files
/etc/ppp/options
================
/dev/ttyS1 <-- com2 under DOS/Win, ttyS0 == com1
115200 <-- OK for 28.8k or above
domain flash.net
ipcp-accept-local
ipcp-accept-remote
noipdefault
defaultroute
modem
crtscts
lock
connect "/usr/sbin/chat -f /etc/ppp/chat-flash"
/etc/ppp/chat-flash <-- chmod 600
===================
REPORT CONNECT
ABORT BUSY
ABORT 'NO CARRIER'
'' ATZ <---+
OK AT&F |
OK ATW2 |-- change to suit
OK ATM0 |
OK ATS2=255 <---+
OK ATDTxxxyyyzzzz <-- replace
CONNECT ''
ogin: login <-- replace
ssword: passwd <-- replace
To bring the link up
/usr/sbin/pppd
To bring the link down
kill `cat /var/run/ppp0.pid`
You could use sudo/super to run these, or put wrappers around
them. I wrote simple pon/poff wrappers, but they are too
long to post here. Send me mail if you need them.
I run Debian, but I believe RedHat may have a graphical PPP
config program in control-panel that would take care of all
this for you. If thats so, then give it a try.
cheers
-amcl
------------------------------
From: "J.C. Chuang" <[EMAIL PROTECTED]>
Subject: disable interrupt
Date: 20 Apr 1999 15:42:20 GMT
Hi, all
I often read some code that is used to disable interrupt by the
following form:
save_flags();
cli();
critical section....
restore_flags();
What I don't understand is why no any code to enable interrupt
again ??
Best Regards,
J.C. Chuang
------------------------------
Date: Wed, 21 Apr 1999 23:38:03 -0500
From: [EMAIL PROTECTED] (Paul Roebuck)
Subject: [A] Linux pstat() or table() equivalent
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jens-Uwe Mager) wrote:
>On Mon, 19 Apr 1999 07:45:23 -0500, Paul Roebuck <[EMAIL PROTECTED]> wrote:
>
>>Is the /proc filesystem guaranteed to be accessible? On some systems I
>>have used in the past, there were security considerations as to whether
>>this filesystem would be mounted. Is this not the case for Linux?
>
>You can umount it, yes. But there quite a few things that rely on /proc
>functionality nowadays, so I would not expect anyone doing it.
Bearing that in mind, I'll go with the following code. It's less than what
I would
have hoped to find but it does work. I still feel that a Linux version of
pstat()
that simply did this kind of thing for you would have been handy. Anyway, thanks
for your help!
#ifndef _PATH_PROC
#define _PATH_PROC "/proc"
#endif
/*============================================================================
*
* Name:: RetrieveAppProcessName
*
* Description::
* Provides the "glue" to give the high level routines access to the
* name of the process. This should be replaced by an application
* registry call of sorts but that doesn't exist at this point in time.
*
* Calling Sequence::
* RetrieveAppProcessName (&processNameStr);
*
* Inputs::
* (None)
*
* Outputs::
* processName - Name of the application (i.e., argv [0]).
*
* Return Values::
* (None)
*
*============================================================================*/
#ifndef _NO_PROTO
static void RetrieveAppProcessName (String *processName)
#else
static void RetrieveAppProcessName (processName)
String *processName;
#endif /* _NO_PROTO */
{
FILE *proc;
char pathName [PATH_MAX+1];
char buffer [LINE_MAX+1];
char *buffPtr;
Boolean found= False;
assert (processName != NULL);
/* Read the cmdline file for our process from /proc filesystem */
sprintf (pathName, "%s/%d/cmdline", _PATH_PROC, getpid ());
if ((proc= fopen (pathName, "r")) != NULL) {
if (fgets (buffer, sizeof (buffer), proc) != NULL) {
/* Strip path from executable name, if necessary */
if ((buffPtr= strrchr (buffer, '/')) != NULL)
buffPtr++;
else
buffPtr= buffer;
found= True;
}
fclose (proc);
}
if (found)
*processName= XtNewString (buffPtr);
else
*processName= XtNewString (UNKNOWN_STR);
}
------------------------------
From: marcin@asmodean (Marcin Romaszewicz)
Subject: SCSI emulation for atapi devices
Date: 22 Apr 1999 00:40:40 GMT
Reply-To: [EMAIL PROTECTED]
Hi All,
I have a question perhaps someone here can answer; I haven't found an
answer in any docs.
I've got an ATAPI CD-RW drive, and I am using cdrecord to burn CD's. In order
for this to work, I must disable atapi cd-rom support and enable the scsi
host adapter emulation, generic scsi support, and scsi cdrom support.
Now, this is all well and good, and it works, I can successfully write CD's,
but I can not mount CD's. To mount a CD, I either have to recompile the kernel
or rmmod all the scsi stuff and insmod the atapi cdrom support.
Is there a way, with scsi emulation and related modules installed, to mount
an atapi cdrom as a scsi cdrom? When I try mounting /dev/cdrom (kernel says
it detected a cdrom) or /dev/sda I get a message about an unsupported
command getting sent to hdc (where the cdrom actually lives).
Is there another way to mount the cd while the scsi support is present? I'm
just looking to be able to burn a CD and mount one on the same kernel
configuration.
Any ideas?
Thanks
------------------------------
** 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
******************************