Linux-Development-Sys Digest #637, Volume #8     Thu, 12 Apr 01 09:13:12 EDT

Contents:
  Re: Need your recommendation for a full-featured text editor (Brian Skahan)
  Re: Writing a Device Driver ("Galen Allensworth")
  Re: Need your recommendation for a full-featured text editor (Tom)
  Re: Writing a Device Driver ("Anonymous")
  checking for non ansi extensions ("O.Petzold")
  Re: New directions for kernel development ("Arthur H. Gold")
  Re: Can we can change HZ from 100 to 10000? (Ed Clarke)
  package name wanted (David Lia)
  Re: How to blank the screen in C? ("Marcello Botrugno")
  Re: Glibc 2.2.2 Make Check Errors ("Fruitbat")
  Re: Installing Linux applications.... !! (Jan Atle Ramsli)
  Re: Accessing PCI device from user space (=?iso-8859-1?Q?Andr=E9?= David)
  Re: Need your recommendation for a full-featured text editor (Ken Tough)
  Re: Virtual Terminal (Kasper Dupont)
  Re: usbutils ("Peter T. Breuer")

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

From: [EMAIL PROTECTED] (Brian Skahan)
Crossposted-To: 
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: 12 Apr 2001 04:45:06 GMT
Reply-To: [EMAIL PROTECTED]

On  Thu, 12 Apr 2001, Hansang Bae  < [EMAIL PROTECTED] > 
wrote this in  comp.editors : 
 
 
> :q!  NAH!!! :ZZ

actually

:q! -> ZQ

yes?

*shrug*


-- 
|Brian Skahan | University of Maryland | [EMAIL PROTECTED]
|http://etria.org/~bskahan |

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

From: "Galen Allensworth" <[EMAIL PROTECTED]>
Subject: Re: Writing a Device Driver
Date: Wed, 11 Apr 2001 23:13:59 -0500

    I am building a driver for the Conexant R6795-11 (aka RH56D to Conexant
representatives, aka HCF to those first learning about the modem) - I have
retrived the datasheet and design guide (both of which supply only basic
hardware information).  I have found that a schematic is the only other
document which could give useful information, although you have to jump
through hoops to get it; I have decided to stop my development efforts in
favor of less contact with irritating "Application Engineers".  If you are
like me you have contacted 5+ Conexant Representatives by now, with out much
avail.  I believe you will need BASIC2 registers, CIS memory, and DSP
Scratchpad registers technical information in order to devlop the driver -
otherwise expect extreme difficulty decoding the chip's commands.  Although
I have stoped development, if you would like help on a specific part of the
driver (should you miraculously get the schematic) you can reach me at
[EMAIL PROTECTED] (removing the _schrodinger in the name) -  mind
you I am usually very busy working I will try to get back to any email AQAP.
Wish you luck on getting the info.



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

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
From: Tom <[EMAIL PROTECTED]>
Subject: Re: Need your recommendation for a full-featured text editor
Date: Thu, 12 Apr 2001 01:41:20 -0500


On Wed, 4 Apr 2001, Knowledge Seeker 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:
> UltraEdit
> TextPad
> EditPlus

I have tried UltraEdit, TextPad, EditPlus, and my recommendation is
EditPlus. (Actually, it's the only shareware I actually paid for)
The interface is simple and uncluttered, yet it has plenty of powerful
features.

> WinEdit
> Multi-Edit
> Zeus
> CRiSP
>
> Right now I am leaning to UltraEdit but I have not done a true
> rigorous evaluation.  I would definitely like to hear from anybody
> that has done a true objective comparative evaluation of these
> products (or others that I have not listed).
>
> My actual requirements are:
>
> Must haves:
> 1.    Syntax highlighting (with color and or font) for HTML and Java

EditPlus supports syntax highlighting for a plethora of file types.  If
Editplus doesn't come with the syntax highlighting for a particular file
type, you can download it seperately from their website (www.editplus.com)
or write your own syntax file.  You can even choose the colors you want
for it.

> 2.    Robust cut and paste including row, AND column AND block
> capabilities

EditPlus supports row select and column select.  you can undo your edits
as much as you have modified.

> 3.    Split and join functions based on margin or specified column

Split and join functions are available.  splits according to what word
wrap settings you have enabled.  You can have the word wrap method set to
wrap after a certain format column number you choose, or have it wrap
around at the edge of the window.

> 4.    Ability to intelligently remove prefix characters (i.e. ">") and
> re-format text to new margins keeping paragraphs intact (i.e. fixing
> forwarded email text)

You can use search and replace or column select and delete.

> 5.    Ability to edit multiple files side-by-side

Yes.

> 6.    Ability to compare files and synchronize multiple similar files
> flagging differences

No, I think either ultraedit or editpad can do this.

> 7.    Robust search and replace capabilities (ideally supporting
> regular expressions)

Yes, EditPlus has regexp.

> 8.    Line numbering
yes
> 9.    Column numbering
yes
> 10.   Auto-completion (based on customizable template)of common
> programming statements
yes
> 11.   Ability to preview HTML pages (including Java applets) easily

EditPlus does this very well!
HTMl files can be previewed just like IE would display it, which means
applets would be shown.

> 12.   HTML toolbar (I know I should know all the tags but I just cannot
> remember them all)
yes.
> 13.   Can be used as a replacement for Notepad (so it must be
> relatively quick and have a small footprint)
yes, it replaced mine.
> 14.   Highlights URL and e-mail addresses and launches browser or email
> client in a separate window when clicked
yes
> 15.   Ability to change case for entire selected text
yes.  editplus can either change selected text to all upper, all lower, or
capitalized (i.e. first letter in each word is upper case)
> 16.   Auto indent based on user-defined templates for each programming
> language
yes, editplus does this.
> 17.   Auto alignment (I.e. if I want a set of lines with the "=" sign
> or decimal point or comma aligned on multiple rows)

AFAIK, no, you'll have to manually do that with editplus.

> 18.   Undo capability

as I said before, you can unndo as much as you've modified.

>
> Nice to haves:

> 1. Syntax highlighting for Perl, C/C++, and SQL.  Also, extensibility
> for other programming languages based on easily customized syntax
> files.

yup.

> 2. Ability to use FTP

fully integrated ftp support :)

> 3. Spell checker

yup.

> 4. Ability to compile from within the editor

yup.  You'll need to configure a user tools to tell the editor where the
compiler is located.  once you do that, it's just a keyboard shortcut or a
menu item away.

> 5. Keystroke save/execute (i.e. macro capability)

editplus precisely can do this.

>
>
> --
> eCommerce Knowledge Seeker
>


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

From: "Anonymous" <[EMAIL PROTECTED]>
Subject: Re: Writing a Device Driver
Date: Thu, 12 Apr 2001 01:02:04 -0500

I have updated my email address, it is now [EMAIL PROTECTED] .  I lost the
password to my previous email ([EMAIL PROTECTED]).



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

From: "O.Petzold" <[EMAIL PROTECTED]>
Crossposted-To: comp.programming
Subject: checking for non ansi extensions
Date: Thu, 12 Apr 2001 08:52:57 +0200

Hello,

how can I check for non ansi extensions like long long
and handle this using ifdef's and gcc ? Is there a 
preprocessor flag where I can check if the -pedantic -ansi
options are here. Or is it better to use autoconf and
config.h. How to write the rules?

Thanks
Olaf

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

Date: Wed, 11 Apr 2001 23:23:28 -0500
From: "Arthur H. Gold" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.development
Subject: Re: New directions for kernel development

Linus Torvalds wrote:
> 
> Hi all,
> 
>         Recently, I've been thinking a lot about where Linux development should
> head now that 2.4 is out. Specifically, I've been thinking about how we
> ought to make some cultural changes as well as technical changes. Now I'm
[snip]
> 
> Thank you,
> --Linus Torvalds

Looks to me that you're about ten days late. That doesn't
even work on the Julian calendar.

--ag
-- 
Artie Gold, Austin, TX  (finger the cs.utexas.edu account
for more info)
mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED]
--
Clone Bernie!

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

From: [EMAIL PROTECTED] (Ed Clarke)
Subject: Re: Can we can change HZ from 100 to 10000?
Date: Thu, 12 Apr 2001 10:26:25 +0000 (UTC)

On Wed, 11 Apr 2001 02:06:10 -0600, tlin <[EMAIL PROTECTED]> wrote:
>I changed it from 100 to 10000. It seems working now.
>I can get 100 microsecond time interval by the new HZ.
><[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
>> You can.  But you might not like the results if you CPU isn't real
>> fast.

Did you change your hardware clock to match the new value?  If not
I think you are getting 100HZ and thinking you're getting 100us.

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

From: David Lia <[EMAIL PROTECTED]>
Subject: package name wanted
Date: 12 Apr 2001 14:16:19 +0200


Hi all,

I need to retrieve the cpu load and the disk use 
and the memory use !


I know there are some packages that retrieve info
from the processor, (heat an so on)
Does anaybody know the name of a package that has 
this functionality. 
I know I can also read the /proc/* filesystem,
but a while I go I read about packages that do
this for you and I want to explore it :)


For the disk use I don't have any idea but starting
a shell and do a df with a grep !

any help would be appreciated

pleaze, also mail your answer if any to me,

thx

__________________________________________________________
LIA David                  email : [EMAIL PROTECTED]
Alcatel Bell Space N.V.                                        
Berkenrodelei 33,          phone : +32 (0)3 829 5658               
B-2660 Hoboken, Belgium.   fax   : +32 (0)3 829 5763               

-- 

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

From: "Marcello Botrugno" <[EMAIL PROTECTED]>
Subject: Re: How to blank the screen in C?
Date: Thu, 12 Apr 2001 09:59:42 +0200

The sinplest way I know is executing

    system( "clear");

--- Marcello Botrugno ---


"Paul Haley" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:4FZA6.2386$[EMAIL PROTECTED]...
> I'm working on a small project here and need to be able to blank the
screen
> and bring it back when necessary.  Does anybody have any sample code?
>
> Thanks,
> Paul Haley



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

From: "Fruitbat" <[EMAIL PROTECTED]>
Subject: Re: Glibc 2.2.2 Make Check Errors
Date: Thu, 12 Apr 2001 11:25:27 GMT

Thanx!



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

Date: Thu, 12 Apr 2001 15:23:29 +0200
From: Jan Atle Ramsli <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Installing Linux applications.... !!

Kasper Dupont wrote:
> 
> Jan Atle Ramsli wrote:
> >
> [...]
> > Debian is the distro supported by FSF, they also have a preview of FSF's
> > own kernel, the Hurd.
> [...]
> 
> What is the state of HURD?
> 
> It was originally supposed to be ready for use
> in the late 80's, but the first test release was
> made in 1996. Is it actually going to be finished
> some day? I thought Linux had removed most of the
> interest in the HURD project. Does anybody know
> if HURD is going to be a good alternative to
> Linux?
Well, I have been on their mailing list for almost a year now, so I have
an impression, but not much more.
I wanted to join the development team, and was looking for the
Hurd-hackers HOWTO.
I asked about it ...
- The WHAT?
- the Hurd-hackers HOWTO!
- Oh, you mean the source code ...
A friendly soul, Neal H. Whalfield sent me a disk, he even stopped by
(!). A really nice guy, bright and with a good, but unfortunately also
necessary (!) insight in the Hurd.
Over an evening coffee, he explained to me the basic philosophy, the
IPC-messaging concept, and other stuff I wanted to know.
At the time, I did not know it, but I should have recorded our
conversation on video, because none of what he told me is (was?) written
down.
So, I became a passive observer.
Since then, however, people have come, barfed and left, until some guys
decided that the Hurd needed a documentaiton project, and there is now a
Hurd documentation site.
How far it is, I am not sure.

As for the beast itself, it is not yet there.
Drivers are lagging behind, and most of them are copy-paste-ported from
Linux, which is also lagging behind, especially in the area of newish
devices, cameras and stuff.
It has been pointed out to us (you and me) that this is our (yours and
mine) fault, and I tend to agree. We must dig a little deeper in our
wallets and say: OK, I'll pay more for the device if it
1. Has Linux support
2. Has documentation (not the kind that says 'if you don't see the keys,
try turning the keyboard')

If we buy $5 modems, we get $5 worth of modem.

But we must not demand of others what we can not give ourself: I just
came across a great looking Motif library. It looked exactly like the
stuff I needed, had all the functions and really gave a pro-impression.
It had no documentation, and was thus unusable to everyone except the
writer.
The Hurd people want to change microkernel, I know it (I can feel it :-)
- but they have become so familiar with such weirdness that they are
afraid that they may not master a normal microkernel.

There is room for Yet Another Kernel (TM).

Rant over ... Atle

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

From: =?iso-8859-1?Q?Andr=E9?= David <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Accessing PCI device from user space
Date: Thu, 12 Apr 2001 14:36:01 +0200

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

Slawek Grajewski wrote:

> Hello,
>
> I'm looking for hints on how to map memory of a PCI card into a user process
> address space. I just want to have direct access to this memory without
> kernel/user mode copying. Anyone has an idea?
>
> TIA,
> Slawek

Well,

If you can run the process as root or if you hack the /dev/mem driver, I know
that in linux 2.2.something you can simply check the address you want to map
with /sbin/lspci -vv and then have the usermode program open /dev/mem and mmap
it.

(Working) code follows:

        fd = open ("/dev/mem",O_RDWR);
        printf("fd ok for /dev/mem. It's number %d\n",fd);fflush(stdout);
        ptr = (char *) mmap(0, pci_mem_len, PROT_READ|PROT_WRITE, MAP_SHARED,
fd, (off_t) pci_addr);

Then just use ptr as you like.

AH! just to make life easier you can use pcilib and do something like this at
the beggining:

  /****** Scan the PCI bus, and store the config space in pci_devs ******/
  pci_devs = pci_alloc(); /* Allocate memory for pci_devs */
  pci_init(pci_devs);     /* Initialise pci_devs   */
  pci_scan_bus(pci_devs); /* Scan the PCI bus and fill pci_devs */


  /******** Get the card settings ***************************************/
        printf("Accessing data for bus:%.2x, dev:%.2x, fun:%.2x \n", bus_num,
dev_num, func_num);fflush(stdout);
  pci_card = pci_get_dev(pci_devs,bus_num,dev_num,func_num);

  pci_addr = pci_read_long(pci_card,0x10) & PCI_ADDR_MEM_MASK;
  printf("Address read from config space is:%#x\n", pci_addr);fflush(stdout);

Finally... It is very slow! Especially reading. Beware. If it's performance you
want do a driver.

Hope it helps,

Andre David


==============2EB72C63359DC18317D731FC
Content-Type: text/x-vcard; charset=us-ascii;
 name="Andre.David.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Andr� David
Content-Disposition: attachment;
 filename="Andre.David.vcf"

begin:vcard 
n:David;Andr�
tel;work:+41792013849
x-mozilla-html:FALSE
org:CERN - Centre Europeen de Recherche Nucleaire;Experimental Physics Division - NA60 
Experiment
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
note:Geneva, Switzerland
x-mozilla-cpt:;-11552
fn:Andr� David
end:vcard

==============2EB72C63359DC18317D731FC==


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

From: Ken Tough <[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: Wed, 11 Apr 2001 16:00:27 -0400

Aaron R. Kulkis <[EMAIL PROTECTED]> wrote:

>Roberto Selbach Teixeira wrote:

>> Pressing lots of ESC's followed by ":q!<Ret>" will quit the damn thing.
>
>ONE Escape is sufficient.

provided you haven't just pressed cntl-V.

By the way, do the world a favour and put your impenetrable 
.sig on a web page somewhere, and replace it with a link.
-- 
Ken Tough

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

From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: Virtual Terminal
Date: Thu, 12 Apr 2001 12:56:30 +0000

This is a multi-part message in MIME format.

==============263F72821EB8B99F8720E95
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Kasper Dupont wrote:
> 
[...]
> 
> You can get the device major/minor number of your
> controling tty from /proc/self/stat. I have some
> code doing this on a CD somewhere, I will post it
> when I have found it.
> 
[...]

Here is the other piece of code i promised to post.

-- 
Kasper Dupont

==============263F72821EB8B99F8720E95
Content-Type: text/plain; charset=us-ascii; name="vcnumber.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="vcnumber.c"

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>

/* This routine will extract the controlling tty of the
 * current process. If it is /dev/ttyXX where XX is in
 * the range from 1 to 63 XX will be returned.
 */
int tty_number()
{
  char buf[4200];
  int i,j;
  int fd=open("/proc/self/stat",O_RDONLY);
  if (fd==-1) return -1;
  i=read(fd,buf,4200);
  close(fd);
  if ((i<42)||(i>=4200)) return -1;
  for (j=33; i; --i)
    if ((buf[i-1]==' ')&&(!--j)) {
      j=atoi(buf+i);
      if ((j>1024)&&(j<1088)) return j-1024;
      return -1;
    }
  return -1;
}

int main()
{
  printf("%d\n",tty_number());
  return 0;
}

==============263F72821EB8B99F8720E95==


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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: usbutils
Date: Thu, 12 Apr 2001 14:45:41 +0200

Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>> "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

> It does that here too, and usb works fine (kernel 2.2.15)

>   oboe:/usr/oboe/ptb/src/usbutils-0.7% lsusb
>   Cannot open USB ID database /usr/local/share/usb.ids
>   cannot open /proc/bus/usb, No such file or directory (2)

Ah well, I forgot to port the proc support back to 2.2.15. It doesn't
complain in my 2.2.18, which indeed has support for mount devusbfs (or
whatever it is ..).

> Indeed, /proc/bus/usb is not around. A quick look reveals that
> it's on the 2.4.* kernels, not the 2.2.* ones. Yep .. moving over to
> 2.4.0 and all "works". Can't say that it's any use, however ...

Or a recent 2.2.*.

Peter

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


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