Linux-Development-Sys Digest #334, Volume #8      Sat, 9 Dec 00 16:13:16 EST

Contents:
  adding ioctl ([EMAIL PROTECTED])
  Re: Compile NIC driver? (Dave Platt)
  What is the command to  . . . ? ([EMAIL PROTECTED])
  Re: What is the command to  . . . ? ([EMAIL PROTECTED])
  Re: hdh: <3>ide-scsi unsupported command dev 22:40 ([EMAIL PROTECTED])
  root disk: mke2fs failing (linux 2.2.14) ("Marty Ross")
  are the header file and compiler problems fixed yet in RedHat 7.0? (jtnews)
  Re: What is the command to  . . . ? (Markus Amersdorfer)
  Re: Intel's SSE block copy paper (was: Re: A faster memcpy and bzero for x86) ("Rini 
van Zetten")
  Re: syslog and variable arguments? (Chris)
  Uninstall Linux SuSE 7.0 ("Paul")
  Re: What is the command to  . . . ? (Allen Wong)
  Re: help required in linux programming (Mansoor Peerbhoy)
  Kernel symbols unavailable to my module (Mansoor Peerbhoy)
  help required in linux programming (hemen kapadia)
  set hot key in single user mode ("Brian Hui TT")
  Re: syslog and variable arguments? (Erik Max Francis)
  changing BASH's path searching (Alex Graf)
  volume question ("Andreas Haberstroh")
  Re: volume question (Kaz Kylheku)

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

From: [EMAIL PROTECTED]
Subject: adding ioctl
Date: Sat, 09 Dec 2000 06:18:45 -0000

What is the process or logic by which ioctl symbols and their associated
numeric values are chosen?  Is it even important to choose anything in
particular?  Maybe there are ranges that will never be used in official
kernel releases?

-- 
=================================================================
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/     |
=================================================================

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

From: [EMAIL PROTECTED] (Dave Platt)
Subject: Re: Compile NIC driver?
Date: Sat, 09 Dec 2000 06:29:03 -0000

>My network card is an old SMC 8013 EWC (ISA).  SMC has a generic Linux
>driver for it available only as C source code.  I don't know what to do with
>this driver to install it.  Am I going to be recompiling my kernel with this
>file added?

You probably have two alternatives.  Either compile it into a new
kernel (and then boot the new kernel), or compile it as a loadable
module (and then use /sbin/modprobe or /sbin/insmod to load it into
the existing kernel after booting).  Most of the existing net drivers
can be built either way.

-- 
Dave Platt                                           [EMAIL PROTECTED]
Visit the Jade Warrior home page:  http://www.radagast.org/jade-warrior/
  I do _not_ wish to receive unsolicited commercial email, and I will
     boycott any company which has the gall to send me such ads!

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

From: [EMAIL PROTECTED]
Crossposted-To: 
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup
Subject: What is the command to  . . . ?
Date: Sat, 09 Dec 2000 06:43:15 GMT
Reply-To: [EMAIL PROTECTED]

What is the command to find the occurance of a string in a group of
files in a directory?

I vaguely remember it being find with a grep pipe I think.

thanks
 charles

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

From: [EMAIL PROTECTED]
Crossposted-To: 
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: What is the command to  . . . ?
Date: Sat, 09 Dec 2000 07:05:13 GMT
Reply-To: [EMAIL PROTECTED]

nm i got it

grep -e pattern -lr ./*  seems to work

On Sat, 09 Dec 2000 06:43:15 GMT, [EMAIL PROTECTED] wrote:

>What is the command to find the occurance of a string in a group of
>files in a directory?
>
>I vaguely remember it being find with a grep pipe I think.
>
>thanks
> charles


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

From: [EMAIL PROTECTED]
Crossposted-To: 
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: hdh: <3>ide-scsi unsupported command dev 22:40
Date: Sat, 09 Dec 2000 07:22:43 GMT
Reply-To: [EMAIL PROTECTED]

All of the hardware appears to be functioning well by the way.

It would appear that some process is issuing a command that identifies
or reads partition tables . . .

. . . of which the hdh (sda) device (atapi zip drive) does not like
the command and ide-scsi is reporting it.

Any ideas how to figure out or does anybody know what program is doing
the Partition check?

charles

On Fri, 08 Dec 2000 23:29:11 GMT, [EMAIL PROTECTED] wrote:

>I have recently set up an atapi ide zip drive. I have compiled in scsi
>emulation and the drive works properly as /dev/sda1.
>
>Prior to using the scsi emulation, I was using the floppy-ide driver
>and was able to use the drive as /dev/hdh1, just with some less
>functionality.
>
>Since I have gone to scsi emulation, I have this message appearing
>after the partition check is done:
>
>Dec  8 18:22:25 linux02 kernel: scsi0 : SCSI host adapter emulation
>for IDE ATAPI devices
>Dec  8 18:22:25 linux02 kernel: scsi : 1 host.
>Dec  8 18:22:25 linux02 kernel:   Vendor: IOMEGA    Model: ZIP 100
>Rev: 13.A
>Dec  8 18:22:25 linux02 kernel:   Type:   Direct-Access
>ANSI SCSI revision: 00
>Dec  8 18:22:25 linux02 kernel: Detected scsi removable disk sda at
>scsi0, channel 0, id 0, lun 0
>Dec  8 18:22:25 linux02 kernel: scsi : detected 1 SCSI disk total.
>Dec  8 18:22:25 linux02 kernel: SCSI device sda: hdwr sector= 512
>bytes. Sectors= 196576 [95 MB] [0.1 GB]
>Dec  8 18:22:25 linux02 kernel: sda: Write Protect is off
>Dec  8 18:22:25 linux02 kernel: Partition check:
>Dec  8 18:22:25 linux02 kernel:  sda: sda1
>Dec  8 18:22:25 linux02 kernel: md.c: sizeof(mdp_super_t) = 4096
>Dec  8 18:22:25 linux02 kernel:  hda: hda1 < hda5 hda6 hda7 >
>Dec  8 18:22:25 linux02 kernel:  hdc: [PTBL] [1021/255/63] hdc1 < hdc5
>hdc6 hdc7 >
>Dec  8 18:22:25 linux02 kernel:  hdh:<3>ide-scsi: hdh: unsupported
>command in request queue (0)
>Dec  8 18:22:25 linux02 kernel: end_request: I/O error, dev 22:40
>(hdh), sector 0
>Dec  8 18:22:25 linux02 kernel:  unable to read partition table
>
>What program is the "partition check?"
>
>What or where is the request queue? I notice that when I boot from
>floppy that this message does not occur.
>
>Thanks in advance!
>charles wilkins
>
>p.s. 
>
>linux rocks!


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

From: "Marty Ross" <[EMAIL PROTECTED]>
Subject: root disk: mke2fs failing (linux 2.2.14)
Date: Fri, 8 Dec 2000 13:58:41 +0200

Please excuse if this is a duplicate; I don't see the post of this from
lastnight, so I'm sending again...
=================

I'm developing a new install procedure for a semi-embedded system, and I'm
having trouble with the partition and format process.  I'm using out of the
box RedHat 6.2 as my source/development system (kernel 2.2.14-5.0).

At first, I thought it was a hardware problem, but I've seen too many
platforms on which the same problem happens in the same place to continue
believing this.

I am building a minimal kernel--the last one I built was without
modules--and have tried the various versions of the floppy and hard disk
drivers just in case they were at fault.  I boot with my boot and root disks
(that I built according to the "bootdisk HOWTO"), and then I insert a floppy
containing "fdisk" and "mke2fs" (with all the necessary shared libs, as
indicated by "ldd"), and partition the hard drive (/dev/fda), and then try
to make filesystems.

It always seems to hang (completely dead; no "NumLock", etc.) at the end of
the "mke2fs".  However, sometimes succeeds to format (it seems like always
on the "inner" partitions of the drives).  On these partitions--even after a
reboot--it crashes even accessing the drives (e.g. "cp -r /mnt/floppy
/mnt/hda1", or "ls -R /mnt/hda1").

Is there some secret to this?  Maybe there's some dynamic library that the
commands need for accessing the filesystem that it's not complaining
about--just dying?  Again--I built the kernel with NO modules the last time
and it acts the same way.  What could possibly give?

Anybody have advice on how to best construct an install boot/root disk for
an embedded (custom) linux system?  What's real important here is
convenience--it will be installed on literally thousands of machines by
non-techies (hired hands in department stores).

Thank you very much for any helpful advice you can offer!

-- Marty Ross




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

Date: Sat, 09 Dec 2000 05:25:56 -0500
From: jtnews <[EMAIL PROTECTED]>
Subject: are the header file and compiler problems fixed yet in RedHat 7.0?

I heard that the C header files and compiler were somehow inconsistent
in
redhat 7.0.  Has this been fixed yet? Or should I wait longer before I
try 7.0?

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

Date: Sat, 09 Dec 2000 12:02:51 +0100
From: Markus Amersdorfer <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: What is the command to  . . . ?

[EMAIL PROTECTED] wrote:
> 
> What is the command to find the occurance of a string in a group of
> files in a directory?

find . -name '*.txt' -exec grep "Hello World" {} \;

rgrep "Hello World" *.txt

-- 
May the stability be with you!

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

From: "Rini van Zetten" <[EMAIL PROTECTED]>
Subject: Re: Intel's SSE block copy paper (was: Re: A faster memcpy and bzero for x86)
Date: Sat, 9 Dec 2000 12:15:26 +0100


> Oh, and it looks like there's no support for SSE in kernel 2.2.17 (except
> through a patch, perhaps, if anyone knows, please speak up)
> There is support in 2.4.0-test10.
>

There is a patch. I don't no the link yet but I'l post in on monday. I've
succesfully used SSE instruction in kernel 2.2.14.

Rini



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

From: Chris <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: syslog and variable arguments?
Date: Sat, 09 Dec 2000 14:02:36 +0000

Erik Max Francis wrote:
> 
> Daniel Lenski wrote:
> 
> > I've written
> > a
> > fair-sized program using my wrapper function debuglog, which takes a
> > printf-style format list.  Now I want to make it work with syslog, but
> > I
> > can't pass it a variable argument list.  Is there an easy way to do
> > this,
> > or does anybody know of a good logging library that will hide the gory
> > details?
> 
> Why can't you just write a wrapper around syslog?

He has written (I presume) a function which is
like printf(...):

int debuglog(char *fmt, ...)

which then does some printf-style stuff. Now, in
order to actually do output, he can call vprintf
and friends, which take a va_list instead of a
variable-length list of arguments. This is
helpful, since it means he can pass on all the
arguments passed to debuglog.

But... syslog(3) doesn't have such an interface,
at least not as standard. So, you can try
something like

char buf[512];
vsnprintf(buf, 512, fmt, ap); /* GNU extension */
syslog(prio, "%s", buf); /* Avoid format-string bug */

but of course, this doesn't have quite the right
semantics; in particular, it will truncate the
message (obviously) though of course (1) syslog
would break it into lines anyway, and (2) you
can fix that by using realloc to reallocate the
buffer until it is large enough. Worse, this
does not accept the "%m" format to insert
strerror(errno) into the output. You could use
(another GNU extension) additional printf
handlers for this (see the "info" glibc
documentation), or do it by hand (much more
portable).

-- 
Chris Lightfoot -- http://www.ex-parrot.com/~chris/
ignore From: line; try "chris at ex hyphen parrot dot com"
  Television is a medium, so called
  because it is neither rare nor well done.

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

From: "Paul" <[EMAIL PROTECTED]>
Subject: Uninstall Linux SuSE 7.0
Date: Sat, 9 Dec 2000 15:20:09 +0100

I have Linux 7.0 SuSE installed on a separate harddisk. My other disk is a
Windows ME disk.

Now i want to uninstall Linux..... My Windows harddisk cannot see the Linux
disk...

What procedure should I follow????????????


Please HELP HELP.....





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

From: [EMAIL PROTECTED] (Allen Wong)
Subject: Re: What is the command to  . . . ?
Crossposted-To: 
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup
Date: Sat, 09 Dec 2000 15:22:07 GMT

In alt.os.linux.slackware Markus Amersdorfer <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>> 
>> What is the command to find the occurance of a string in a group of
>> files in a directory?

> find . -name '*.txt' -exec grep "Hello World" {} \;

This works, but it's alot slower than "find . -type f -name '*.txt' -print |
xargs grep "Hello World".

Allen
-- 
Linux:  If you're not careful, you might actually learn something.
  7:00am  up 1 day, 10:59,  9 users,  load average: 3.09, 3.04, 3.00

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

From: Mansoor Peerbhoy <[EMAIL PROTECTED]>
Subject: Re: help required in linux programming
Date: Tue, 05 Dec 2000 13:08:28 +0530
Reply-To: [EMAIL PROTECTED]

hemen kapadia wrote:

> i want to call the various linux shell commands from the c program (
> specially shutdown and reboot can u help me with this

use the 'system' function



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

From: Mansoor Peerbhoy <[EMAIL PROTECTED]>
Subject: Kernel symbols unavailable to my module
Date: Tue, 05 Dec 2000 12:49:06 +0530
Reply-To: [EMAIL PROTECTED]

Hi

I dunno if this is the right place for this question, however, I have a
problem.

I am running Redhat 7.0 ( kernel version 2.2.16-22 ) and I have written
a module, which needs to make a call to do_fork which is defined in
/usr/src/linux/kernel/fork.c

I dont want to go through the sys_call_table, but I want to call this
function directly.

in my module, I have declared the function prototype for do_fork as

extern int do_fork ( unsigned long, unsigned long, struct pt_regs *);

But still, when I am linking the module to the kernel via insmod, I get
an error 'do_fork' unresolved external symbol.

Can anybody tell me why this is so ?

Any help will be appreciated

Mansoor

(PS - why is it that even the 'ksyms -a' command does not list do_fork
??? )


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

From: [EMAIL PROTECTED] (hemen kapadia)
Subject: help required in linux programming
Date: Thu, 30 Nov 2000 18:42:28 GMT

i want to call the various linux shell commands from the c program (
specially shutdown and reboot can u help me with this

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

From: "Brian Hui TT" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.development.apps
Subject: set hot key in single user mode
Date: Sun, 10 Dec 2000 01:28:06 +0800

Hi,

I am using Mandrake 7.0.  After I boot up in using single user mode, init 1,
I can not use some hot key like "CTRL+C" to terminal program. Can anyone
give me some idea how to initiate hot key function and where is the related
file. Thank you

Brian.





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

From: Erik Max Francis <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: syslog and variable arguments?
Date: Sat, 09 Dec 2000 10:09:32 -0800

Chris wrote:

> but of course, this doesn't have quite the right
> semantics; in particular, it will truncate the
> message (obviously) though of course (1) syslog
> would break it into lines anyway, and (2) you
> can fix that by using realloc to reallocate the
> buffer until it is large enough.

Right.  For some situations, the loss of some memory would be
unacceptable.  Here, with a large enough buffer, it is really not an
issue.

> Worse, this
> does not accept the "%m" format to insert
> strerror(errno) into the output.

What %m format?  printf doesn't know of any %m format, so will let a %m
through unmolested.

-- 
 Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ But we go on pretending / Stories like ours / Have happy endings
\__/ The Russian and Florence, _Chess_
    Official Buh rules / http://www.alcyone.com/max/projects/cards/buh/
 The official rules to the betting card game, Buh.

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

From: Alex Graf <[EMAIL PROTECTED]>
Subject: changing BASH's path searching
Date: Sat, 09 Dec 2000 12:18:33 -0800
Reply-To: [EMAIL PROTECTED]


Instead of the shell searching for executables in directories listed in
the $PATH shell variable, how about this:

for every subdirectory D from some constant base directory (maybe / ),
do
        if D has a subdirectory named "bin", then
                search for the program in there
        end if
end for

With this, every package can have their own isolated place on the hard
disk.  Each package has their own 'bin' directory, their own 'share'
directory, their own 'lib' directory, etc.  (Of course, each package
needs fixing to work with the new path convention.)

The advantages are:
New packages can be installed simply by unzipping a properly-packaged
tarball.  No need for apt, RPM & friends.  Uninstall a package by simply
deleting its directory.  No need for apt, RPM & friends.

I'm not an expert, but this scheme seems a lot easier to manage than apt
splattering files all over the /usr tree and trying to keep track of who
put what where, and who depends on what.  Beats me why everyone insists
on keeping around crufty old /usr, /var, /etc.  Trying to be old-school
I guess.

The bash source looks pretty approachable, findcmd.c seems to implement
the path searching.  Not sure if I'll have time to work on it, but maybe
this idea inspires somebody else?  

Alex

(remove all the digits from my email address)

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

Reply-To: "Andreas Haberstroh" <[EMAIL PROTECTED]>
From: "Andreas Haberstroh" <[EMAIL PROTECTED]>
Subject: volume question
Date: Sat, 09 Dec 2000 20:20:14 GMT

Hello!

I'm kinda naive about linux's filesystem. Under Windows and Mac operating
systems, the filesystem has a concept of  a disk volume.

However, from what I can tell on Linux, there really isn't a volume. A disk
is mounted at a directory location, and is accessed via that directory.

Is this a correct understanding?

--
Andreas Haberstroh
714/272-6202

=====
Ethernet (n) : Device used to catch the Etherbunny.




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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: volume question
Reply-To: [EMAIL PROTECTED]
Date: Sat, 09 Dec 2000 20:47:21 GMT

On Sat, 09 Dec 2000 20:20:14 GMT, Andreas Haberstroh <[EMAIL PROTECTED]> wrote:
>Hello!
>
>I'm kinda naive about linux's filesystem. Under Windows and Mac operating
>systems, the filesystem has a concept of  a disk volume.
>
>However, from what I can tell on Linux, there really isn't a volume. A disk
>is mounted at a directory location, and is accessed via that directory.
>
>Is this a correct understanding?

No, there is still a volume concept in Linux.  A volume is a physical extent of
a disk, usually holding a filesystem.  Volumes are also called partitions.  In
primitive operating systems, the division into volumes is not transparent to
the user of the filesystem; the volume is encoded into the fully qualified name
that is used to refer to each file. 

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


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