Linux-Development-Sys Digest #181, Volume #7 Fri, 10 Sep 99 22:14:05 EDT
Contents:
Re: select() and write descriptors ("Bigwoof!")
S3 Trio64V2-DX/GX (775/785) ("neverovatna ponuda")
Re: Where can I find the handy SWEEP utility? (Kaz Kylheku)
Re: Problem porting to LINUX (david parsons)
APM/apmd to run script b4/after suspend? (Bjoern Giesler)
Re: Another INODE question (Mark Hahn)
Re: survey linux project. ([EMAIL PROTECTED])
Do you use i740 ? ("JBFrandsen")
Re: survey linux project. ("Randall J. Parr")
Re: Linux + C + 2 serial port (Gert van der Knokke)
Re: survey linux project. (Lauri Nurmi)
Re: Figure Out The MS Source Code Yourself (Dave Newton)
Re: Figure Out The MS Source Code Yourself (Chris J/#6)
Re: Another INODE question ([EMAIL PROTECTED])
printing using staroffice (gcaulton)
Re: Linux standards compliance (Leslie Mikesell)
Re: Do you use i740 ? ("Mason")
Lexmark Printer ("Ricky Duke")
Linux parport question (Bas Rijniersce)
Re: LILO and System.map (Daniel R. Grayson)
USITS Conference Hotel & Pre-Reg Savings Deadline - Sept 17, 1999 (Moun Chau)
----------------------------------------------------------------------------
Date: Sat, 11 Sep 1999 01:12:14 +0800
From: "Bigwoof!" <[EMAIL PROTECTED]>
Subject: Re: select() and write descriptors
[EMAIL PROTECTED] (Kaz Kylheku) <[EMAIL PROTECTED]> wrote:
: On Fri, 10 Sep 1999 11:37:29 +0800, Bigwoof! <[EMAIL PROTECTED]> wrote:
:>for eg. i have some programs that tunnel through a transport layer
:>abstraction using select calls. if i check the write descriptors, end to
:>end pings take 200-500 ms. if i remove the write descriptors, it takes
:>1.4-1.8ms.
:>
:>I can't figure out why there is such a large delay.
: If this is all within one machine, the CPU wasting alone could explain the
: delays. Your process busy loops, and will chew its entire time quantum
: I'm looking at the 2.2.12 source; the time quantum duration appears to be 210
: milliseconds (have a look at your include/linux/sched.h.) Plugging this time
: quantum into my analysis produces a result that is roughly in line with what
: you are observing.
Hey thanks!! this was what was bugging me. :)
I was guessing it was a scheduling delay caused by context switching. But
i couldn't figure out where it was coming from.
Thanks again. :)
Rajesh
------------------------------
From: "neverovatna ponuda" <[EMAIL PROTECTED]>
Subject: S3 Trio64V2-DX/GX (775/785)
Date: Fri, 10 Sep 1999 17:34:45 +0200
need driver for this
TX
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To:
alt.os.linux,comp.os.linux.questions,redhat.rpm.general,linux.redhat.rpm
Subject: Re: Where can I find the handy SWEEP utility?
Reply-To: [EMAIL PROTECTED]
Date: Fri, 10 Sep 1999 17:14:37 GMT
On Fri, 10 Sep 1999 11:50:41 +0100, Paul Hendrick
<[EMAIL PROTECTED]> wrote:
>On Thu, 09 Sep 1999 17:39:38 +0100, Joey McAlerney
><[EMAIL PROTECTED]> wrote:
>
>>Hi everyone,
>>
>>While working on Irix boxes over the summer, I got to take advantage of
>>the "sweep" utility. It simply allowed you to gain root access to a
>>machine by simply typing "sweep" (that is, of course, someone else with
>>root access specified that you could do so). I am looking for this
>>utility for Redhat, and couldn't find it so far. If it exists, could
>>you please point me to it?
>
>"linux single" at the lilo prompt IIRC.
Actually, the sudo utility would be closer to what he describes. It seems to
have disappeared from RedHat distros for some reason. Sudo lets you delegate
the running of specific privileged commands to non-privileged users.
------------------------------
From: o r c @ p e l l . p o r t l a n d . o r . u s (david parsons)
Subject: Re: Problem porting to LINUX
Date: 10 Sep 1999 08:49:12 -0700
In article <[EMAIL PROTECTED]>,
Warren Young <[EMAIL PROTECTED]> wrote:
>"Georg S. Lorrig" wrote:
>>
>> German version using "cc -c C_TEST.C" I get some _hundred_ error
>> messages. It seems that cc doesn't like almost any function declaration
>> and the like.
>
>gcc probably hates your K&R function declarations. Welcome to 1999 --
>it's time to use ANSI C and prototypes.
It's to gcc's credit that it *doesn't* handcuff you into ansifying
everything under the sun. Rogue (_real_ rogue, not any of the
cheesy imitations out there) from 1981, when ANSI C wasn't even a
cloud on the horizon, is compilable with gcc even today.
____
david parsons \bi/ When gcc stops compiling rogue and r+, it's no
\/ longer a C compiler.
------------------------------
From: Bjoern Giesler <[EMAIL PROTECTED]>
Subject: APM/apmd to run script b4/after suspend?
Date: 10 Sep 1999 11:50:55 GMT
Hi,
is there a version of apmd out there that will run a script upon
suspend/resume? I'd think such a thing practical for hardware/software that
doesn't respond well to s/r, e.g. the ESS Maestro sound board on some
laptops together with the OSS driver, or some graphics boards, or...
TIA,
--Bjoern
--
================================/\==One OS to rule them all===Windows NT=====
Bjoern Giesler / \ One OS to find them
<[EMAIL PROTECTED]> / <> \ One OS to bring them all
=============================/______\==And in the Darkness bind them=========
Thank you for your time, worship the Antichrist, and have a nice day.
------------------------------
From: Mark Hahn <[EMAIL PROTECTED]>
Subject: Re: Another INODE question
Date: 10 Sep 1999 18:07:11 GMT
> find /dir -printf "%i %p\n" | grep "^<inode>"
find /dir -inum 42 -print
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,linux.dev.gcc,linux.dev.kernel
Subject: Re: survey linux project.
Date: Fri, 10 Sep 1999 18:16:17 GMT
In article <7r4glm$lp4$[EMAIL PROTECTED]>,
"Kim,Taesung" <[EMAIL PROTECTED]> wrote:
> Hello!
> We( I and my friends) have plan to make soem application on linux.
> First of all, we want to survey on going project on linux.
> We want to know any kind of projects about linux.
> Where can we find?
> Thanks for regard.
>
>
Have you tried looking at http://www.linux.org ???
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: "JBFrandsen" <[EMAIL PROTECTED]>
Subject: Do you use i740 ?
Date: Fri, 10 Sep 1999 20:42:44 +0200
Hi, are there anybody here who use i740? I just can't get Linux to work with
mine!
/Jack Frandsen
------------------------------
From: "Randall J. Parr" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To:
comp.os.linux.development.apps,linux.dev.gcc,linux.dev.kernel,linux.dev.x11
Subject: Re: survey linux project.
Date: Fri, 10 Sep 1999 13:24:47 -0500
"Kim,Taesung" wrote:
> Hello!
> We( I and my friends) have plan to make soem application on linux.
> First of all, we want to survey on going project on linux.
> We want to know any kind of projects about linux.
> Where can we find?
> Thanks for regard.
There are several RPM related projects but I have yet to find one that
helps answer the following question:
"Where and how do I find and get the rpms to bring my system, as
installed, uptodate?"
I would really like to be able to set a list of "trusted" repositories
(such as updates.redhat.com, etc.) and a utility that would check my
current version, dependencies, etc. and determine, and get the rpms I
needed to bring it up-to-date.
R.Parr
Temporal Arts
------------------------------
From: Gert van der Knokke <[EMAIL PROTECTED]>
Subject: Re: Linux + C + 2 serial port
Date: Fri, 10 Sep 1999 15:37:28 +0000
Erol ELISABETH wrote:
> I write an application that get information from a GPS on a serial Port
> /dev/ttyS0
> the application compute this information and send it to the second
> serial port
> /dev/ttyS1
> my problem is that i can't initialise the port the first time i use my
> little applicaiton
> I have to lunch minicom to setup the serial port ??? (4800 8 N 1) the
> 1st time i boot my system
> after my appli works fine
>
> I want to setup the serial port whith my C prog or someting else whiout
> lunching minicom
> please help...
from teh comand line try:
stty < /dev/ttySx
man stty will tell you want you can do with it.
you can set baudrate and handshaking
stty clocal speed 4800 < /dev/ttyS0
will set in/out baudrate at 4800 for serial port /dev/ttyS0 with no
handshake.
Gert
--
======================================================================
= LINUX = Unix The Next Generation ................................ =
= [EMAIL PROTECTED] running Linux on Intel and Alpha =
======================================================================
------------------------------
From: [EMAIL PROTECTED] (Lauri Nurmi)
Crossposted-To:
comp.os.linux.development.apps,linux.dev.gcc,linux.dev.kernel,linux.dev.x11
Subject: Re: survey linux project.
Date: Fri, 10 Sep 1999 19:01:28 GMT
On 9 Sep 1999 09:07:09 GMT, Pasztor Szilard <[EMAIL PROTECTED]> wrote:
>In linux.dev.x11 Kim,Taesung <[EMAIL PROTECTED]> wrote:
>> First of all, we want to survey on going project on linux.
>> We want to know any kind of projects about linux.
>Try an asf player!
>None of them exists for Linux, and generally Linux lacks good multimedia
>players.
There is one, Micro$oft NetShow 2.0 for Linux. When I tried it it
correctly told me the length of the asf in minutes, but no sound nor
picture. :) I'm not sure, though, if it even should do something more.
------------------------------
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, 10 Sep 1999 19:43:43 GMT
[EMAIL PROTECTED] took the lawyer's side and said:
> You havent read the digital millennium copyright act. It provides
> for criminal penalties if you even interfere with the normal
> functioning of the software as determined by the copyright holder.
Putting a law on the books doesn't mean anyone _cares_ about that law.
I'll reverse-engineer as much as I want. If I sell something based on
directly-lifted code, I would expect to be procescuted, otherwise I
expect to be left alone.
It's like radar detectors-once them radar beamies are in my airspace,
as far as I'm concerned, they're mine.
Dave
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: [EMAIL PROTECTED] (Chris J/#6)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Figure Out The MS Source Code Yourself
Date: 10 Sep 1999 18:23:46 +0100
Reply-To: [EMAIL PROTECTED]
bilge <[EMAIL PROTECTED]> wrote:
>
> You havent read the digital millennium copyright act. It provides
> for criminal penalties if you even interfere with the normal
> functioning of the software as determined by the copyright holder.
> Then things take a turn for the worse...
>
> One could construe that applying a patch which is unapproved
> by the vendor as a violation of the copyright, subject to
> criminal penalties, for example. Read it, if you have not.
>
Silly question - which country does this law exist? I'm UK based...is this
a UK issue? Or is it stateside ?
This is certainly an intriguing act - has it been tested in a real case
yet or is it just there waiting for the lawyers to pounce ?
<satire>
Does it also mean that if you modify Windows95 to the point that you
purge out all the crap that isn't needed and afterwards it doesn't
crash, you've breached the act? *grin*
</satire>
Chris...
--
@}-,'-------------------------------------------------- Chris Johnson --'-{@
/ "(it is) crucial that we learn the difference / [EMAIL PROTECTED] \
/ between Sex and Gender. Therein lies the key / \
/ to our freedom" -- LB / www.nccnet.co.uk/~sixie \
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Another INODE question
Date: Fri, 10 Sep 1999 20:07:03 GMT
In article <[EMAIL PROTECTED]>,
Mark Vogelsberger <[EMAIL PROTECTED]> wrote:
> Hi,
>
> does anyone know how i can get the inode of the path for a certain
file
> I have the inode for?
> The only information I have is the INODE of the file, but how to get
the
> path inode for that file ?
>
> Thanks a lot
>
I take it the answer to your thread yesterday is that
file->f_dentry->d_inode is indeed the inode of the file itself? This
would only make sense because a file can have more than 1 path entry
(hard links).
-Dave Watt
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: gcaulton <[EMAIL PROTECTED]>
Subject: printing using staroffice
Date: Fri, 10 Sep 1999 00:52:34 GMT
Hello,
I have installed staroffice, but seem to be having some
difficulty printing documents.
My printer is a Brother MFC7000FC - yes I kicked myself for not choosing
an HP, but the multi-features were too great a temptation...
Anyway none of the drivers I choose seem to be compatible
with my machine - and Brother does not seem to support Linux - anyone
have some sound advice - am I missing something in this picture?
thanks in advance
Greg
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Subject: Re: Linux standards compliance
Date: 10 Sep 1999 14:04:39 -0500
In article <uDlB3.1029$[EMAIL PROTECTED]>,
Phil Howard <[EMAIL PROTECTED]> wrote:
>Many hardware vendors, especially the smaller ones, do not keep
>permanent driver programmers on staff. They contract out. They
>pressure the contractor to get the job done sooner (of course a
>business wants to be sure that the driver isn't holding up first
>shipment of product). The contractor has little personal stake
>in seeing that it's done well. He wants to get it done and move
>on to his next project. When the bugs need to be fixed, the bring
>in someone new who most likely thinks of things differently.
OK, would you rather have them spend this fixed amount of resources
doing one driver right or 20 different versions because the
operating systems designers refuse to agree on a way to talk
to devices?
>| Mr. Becker has writen most Linux networking drivers as a volunteer,
>| if he had writen the SiS driver he clearly would not have made the
>| mistakes he pointed out.
>
>Or at least if he had, he would have noticed and fixed most of them
>before they are fully released, and for those bugs he misses (we all
>do miss some) he's there, still being a volunteer, ready to fix it.
And the point to note here is that Mr. Becker is very unusual - and
experienced.
>One advantage of volunteers is that they aren't job hopping to get
>better pay or a better boss.
And if none of them want to write the thing you need, there is
no way to encourage them. If there were, we might have an NFS
that intoperates with others, DVD drivers, full USB support and
so on. As it is, the best you can do is try to put all your
devices on the other end of an ethernet and try to use the
network interfaces as the 'standard' device layer to hide
your netapp, terminal server, X display, etc. instead of waiting
for native Linux support to match the hardware you can buy.
>Mr. Becker is doing an excellent job. And then when you consider
>just how much he has done ... whew!
But look through the changelogs if you think everything was right
the first time. While the hardware vendors may use a less experienced
software engineer they do generally pay someone to put in some
time testing before a release. As I recall, the early intel 10/100
drivers would lock up about daily and there may have been SMP problems
until fairly recently. (Not to be critical here, but maybe this really
is more than a one-man job...).
On the other hand I don't have much hope for any unix vendors to
ever agree on anything, and it isn't really going to help unless
you can binary-translate an NT driver. Back in the wierd time
that Novell owned SysV unix, they proposed making their Netware
drivers the binary standard for unix because they already had
them for most hardware of that era. But nothing came of it
then either.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: "Mason" <[EMAIL PROTECTED]>
Subject: Re: Do you use i740 ?
Date: Fri, 10 Sep 1999 21:55:14 +0200
JBFrandsen <[EMAIL PROTECTED]> a �crit dans le message :
mfcC3.1337$[EMAIL PROTECTED]
> Hi, are there anybody here who use i740? I just can't get Linux to work
with
> mine!
>
> /Jack Frandsen
>
>
Yes it works with the XBF_i740 server (for XFree).
------------------------------
From: "Ricky Duke" <[EMAIL PROTECTED]>
Subject: Lexmark Printer
Date: Thu, 9 Sep 1999 19:39:22 -0000
Is their anyway I can get my Lexmark 5700 printer to work under Linux 6.0?
Ricky Duke
------------------------------
From: Bas Rijniersce <[EMAIL PROTECTED]>
Subject: Linux parport question
Date: Fri, 10 Sep 1999 23:27:42 +0200
Hi,
I'm a C newbie and want to use the linux parport code as a learning
project (so that I can understand the code for my WebCam II camera ;)
For a strange reason my code currently only works as a module? %-)
First the code:
================
#include <linux/kernel.h> /* We're doing kernel work */
#include <linux/module.h> /* Specifically, a module */
#include <linux/parport.h>
/* Deal with CONFIG_MODVERSIONS */
#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif
int detect_device (void);
/* Initialize the module */
int init_module()
{
int res;
printk("Test, version 1, loaded succesfully\n");
res = detect_device();
/* If we return a non zero value, it means that
* init_module failed and the kernel module
* can't be loaded */
return 0;
}
int detect_device ()
{
struct my_port
{
char *name;
};
struct my_port *this_port;
struct pardevice res;
struct parport *port;
for (port = parport_enumerate (); port != NULL; port =
port->next) {
/* Try to detect a device on the port... */
printk("Port: %s\n",port->name);
}
res = parport_register_device(port,"bas",NULL,NULL,NULL,0,this_port);
return 0;
}
================
Without the parport..device part it works OK. I see parport0 in syslog.
But when i compile this code:
gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -D__SMP__ -c start.c
start.c: In function `detect_device':
start.c:60: incompatible types in assignment
make: *** [start.o] Error 1
>From parport.h:
/* parport_register_device declares that a device is connected to a
port, and
* tells the kernel all it needs to know.
* pf is the preemption function (may be NULL for no callback)
* kf is the wake-up function (may be NULL for no callback)
* irq_func is the interrupt handler (may be NULL for no interrupts)
* handle is a user pointer that gets handed to callback functions.
*/
struct pardevice *parport_register_device(struct parport *port,
const char *name,
int (*pf)(void *), void (*kf)(void *),
void (*irq_func)(int, void *, struct pt_regs
*),
int flags, void *handle);
I'm pretty sure the problem is the *handle. The
http://www.cyberelk.demon.co.uk/parport/khg-parport.html page says:
The handle is just a pointer to whatever driver-specific structure you
want to associate with your device on that port.
What am I dowing wrong??
Thanx a lot
----
Bas Rijniersce Phone +31 341 550545
Oude Telgterweg 81 Fax +31 341 562940
3851 EA Ermelo http://www.brijn.nu
The Netherlands [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Daniel R. Grayson)
Subject: Re: LILO and System.map
Date: 10 Sep 1999 16:38:51 -0500
Here is one way to do it:
Part of /etc/lilo.conf:
image = /boot/2.2.11/vmlinuz
append = "VERSION=2.2.11"
root = /dev/hda3
label = 2.2.11
read-only
image = /boot/2.2.10/vmlinuz
append = "VERSION=2.2.10"
root = /dev/hda3
label = 2.2.10
read-only
Part of /etc/rc.d/rc.inet2:
if [ "$VERSION" != "" -a -f /boot/$VERSION/System.map ]
then /usr/sbin/klogd -k /boot/$VERSION/System.map
else /usr/sbin/klogd
But if klogd has a smarter way of figuring it out I'd be happy to hear what
it is.
------------------------------
Crossposted-To:
comp.infosystems.www.users,comp.lang.java,comp.org.eff,comp.os.linux.admin,comp.os.linux.misc,comp.security,comp.security.unix,comp.sys.sgi.admin,comp.sys.sun.admin,comp.unix.admin,ieee.admin
From: [EMAIL PROTECTED] (Moun Chau)
Subject: USITS Conference Hotel & Pre-Reg Savings Deadline - Sept 17, 1999
Date: Sat, 11 Sep 1999 00:35:37 GMT
2ND USENIX SYMPOSIUM ON INTERNET TECHNOLOGIES
AND SYSTEMS (USITS '99)
October 11-14, 1999
Regal Harvest House Hotel
Boulder, Colorado
=============================================
Sponsored by USENIX, The Advanced Computing Systems Association
Co-Sponsored by IEEE Computer Society Technical Committee on the
Internet
========================================
Hotel and Registration Savings Rate Ends
Friday, September 17, 1999
========================================
Friday, September 17, is the Pre-Registration and Hotel Savings
deadline. The Regal Harvest House Hotel is offering the USENIX
Conference a special rate through Friday only, after which rates will
increase. Please make sure to say you are attending the USENIX
Conference to get the discount rate. Single/Double Occupancy $115.00.
Regal Harvest House Hotel
1345 Twenty-Eighth Street
Boulder, Colorado 80302
1.800.545.6285
1.303.443.3850
1.303.443.1480 fax
USITS '99 Conference Topics Include:
* Keynote by Udi Manber of Yahoo! Inc. on E-Commerce
* Web Application Security
* XML and Metadata for the Web
* Intrusion Detection and Network Forensics
* An Introduction to Virtual Private Networks (Secure Networking)
* Shared Caching
* Applications
* Techniques
* Proxy Implementation
* Prefetching
* Architectures
===========================================================
See the USENIX website for complete conference details
and to register online http://www.usenix.org/events/usits99
===========================================================
------------------------------
** 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
******************************