Linux-Development-Sys Digest #305, Volume #8     Tue, 28 Nov 00 08:13:08 EST

Contents:
  Re: Undelete/Rebuild files in Linux ext2 filesystem (Rick Walker)
  Storage Subsystems ([EMAIL PROTECTED])
  Re: Database in Redhat Linux ("Anthony W. Youngman")
  Financial Freedom:-) ("Sally Rutherford")
  Re: synchronise the date (Michael V. Ferranti)
  hi, i need some help with a parallel port (Glitch)
  Re: I admit it! ("YC Sim")
  Re: I admit it! (Daniel Lux)
  Re: Dynamic loading ? (Peter)
  [HELP] struct proto udp_prot : how to? (Maurizio Piana)
  Timeout on semaphores (in kernel context) (Eric Cano)
  Re: hi, i need some help with a parallel port (network_noadle)
  Developing  ipchain / IP (David)
  gcc-2.95.2 forces ALL c++ programs to be GPL !!??!# ([EMAIL PROTECTED])

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

From: Rick Walker <[EMAIL PROTECTED]>
Subject: Re: Undelete/Rebuild files in Linux ext2 filesystem
Date: Mon, 27 Nov 2000 21:18:50 +0000 (UTC)

Stuart Park <[EMAIL PROTECTED]> wrote:
> Is there currently any way to "undelete" or at least be able to manually
> rebuild files in the ext2 filesystem?
> (i.e. if you accidentally delete a file, to be able to do a search through
> disk blocks looking for the data and then be able to manually link the
> blocks together into a file)
> It would be nice to have something like a "norton utilities" for linux..

There is an UNDELETE Howto.  Check it out.

I've also written an /sbin/rm replacement that has worked well for many
people.  It moves deleted files to ./.gone/<filename>.  A cron job
permanently unlinks deleted files after X days (configurable). 

There is also a safe cp and mv so that any targets in danger of being
destroyed are saved into the ./.gone directory.  Date and time stamps can
be optionally appended to the saved filenames to allow saving multiple
versions of a deleted file.  The package is called "nrm" and has been in
use at HP/Agilent for about 10 years now.  You can find a copy at
http://www.best.com/~walker/

Best regards,
--
Rick Walker 

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

From: [EMAIL PROTECTED]
Subject: Storage Subsystems
Date: Mon, 27 Nov 2000 23:39:08 GMT

I am currently searching for expert Linux kernel engineers in the
following areas: Gigabit networking, storage subsystems, networking and
hardware, for my client located in the East Bay.   My client is backed
by Kleiner, Perkins,Caufield and Byers Venture Firm (KPCB) and New
Enterprise Associates.
KPCB has  successes that include Internet leaders such as Amazon, AOL,
Excite, Netscape and Sun. This is a rare chance to participate in
creating
an exciting new Internet category, not unlike Yahoo, Amazon, Ebay and
Netscape. The company that is the leading provider of internet storage
and
infrastructure. Their product will be used by ISPs and with established
companies. The company currently has 100 employees and are growing
rapidly.
They offer competitive salary and stock option packages.

If you are interested in learning more about the positions please e-
mail me
directly and attach your updated resume I will not submit your resume
without having your prior approval. Upon receipt of your resume I will
contact you and we can discuss the positions and company in detail. If
you are not interested and know of
anyone who might be interested in this type of position, please feel
free to
forward this information. If you refer a candidate and they are placed
you
will receive a referral compensation.
Thank you in advance for your time.

Jenny Tufts
Cooper | Johnson Recruiting, inc.
Phone: 415-865-3699
Fax: 415-865-3690
Mailto:[EMAIL PROTECTED]
http://www.cooperjohnson.com


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

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

From: "Anthony W. Youngman" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.apps,comp.os.linux.misc,comp.lang.java.databases,comp.databases.informix,comp.databases.oracle.server,comp.databases.sybase,comp.databases.pick,comp.databases.ibm-db2,comp.databases.oracle.misc
Subject: Re: Database in Redhat Linux
Date: Tue, 28 Nov 2000 00:02:44 +0000
Reply-To: "Anthony W. Youngman" <[EMAIL PROTECTED]>

In article <8vmgld$om4$[EMAIL PROTECTED]>, Victor Wagner
<[EMAIL PROTECTED]> writes
>In comp.os.linux.misc Freelancer <[EMAIL PROTECTED]> wrote:
>: I need decide which database going to run for Redhat Linux.
>: I know MySQL is the most popular one in Linux world. I need
>: you help me to fill out the blank and hole (?) in table below.
>
>Its a pity for Linux World, that most hype is done by people who don't
>know what real database is. So they promote mySQL which is no more than
>fast flat-file search engine with SQL-like syntax.

And it's a real pity that there are so many people who think that the
only valid type of database is a SQL database.
>
>It cannot be considered real SQL just becouse SQL stands for
>Structured Query language, and mySQL doesn't support structured, i.e.
>nested queries. 

By that argument *NO* database is "real SQL", because SQL is not a
datastore - it is a *language* used by the client to talk to the back
end.
>
>But database is much more than just search engine. It also should ensure
>integrity of data both by enforcing some conditions of them (i.e.
>foreign keys and triggers) and by rolling failed transactio back to
>consistent state.

And to me, a database is a complete environment, aka AS/400, Pick, etc.
A SQL back-end is to databases what the rear legs are to pantomime
donkey - it can stand on its own but is useless without the other half.
>
>So, only free database is PostgreSQL. But PostgreSQL start to
>resemble real database only since 7.0 version, becouse before there was
>no foreign keys. I would consider that it IS a database, not RESEMBLES
>one only when it begin to support outer joins and binary large objects.
>Both are scheduled for 7.1.
>
I think you mean the only free *relational* database - which is not the
same thing at all. There are much better databases out there. While I
would strongly suggest that all database programmers should know
relational theory (it helps design immensely), there are a load of far
better databases out there. SQL and relational databases put theoretical
purity above practicality and functionality, which is why Oracle is such
a beast - I could probably write programs that run faster, do more, and
handle larger datasets, and all on a system half the size! just because
I don't believe "relational is best".
-- 
Anthony W. Youngman - wol at thewolery dot demon dot co dot uk
Witches are curious by definition and inquisitive by nature. She moved in. "Let 
me through. I'm a nosey person.", she said, employing both elbows.
Maskerade : (c) 1995 Terry Pratchett

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

From: "Sally Rutherford" <[EMAIL PROTECTED]>
Subject: Financial Freedom:-)
Date: Tue, 28 Nov 2000 03:10:13 GMT





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

From: Michael V. Ferranti <[EMAIL PROTECTED]>
Subject: Re: synchronise the date
Date: Tue, 28 Nov 2000 04:11:31 +0000

And "Xavier Houppertz" <[EMAIL PROTECTED]> spoke thusly:

>How can i fo that ? By mean of ftp or telnet ???

        I use "rdate -p -s 132.163.135.130".  It syncs to NIST's atomic clock.

--               Michael V. Ferranti [blades&inreach*com]
Warning: The Surgeon General has deemed that excessive displays of warning
labels and public service announcements produce stress and shortens lives.

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

Date: Tue, 28 Nov 2000 00:48:35 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: hi, i need some help with a parallel port

I'm doing a project for school with the parallel port.  We are given a
custom-made 'parallel' port that has LEDs on the circuit board. We are
to send signals to the board so that the LEDs light up, in whatever
order we want. I've found programs to do this (i'm attempting it under
linux however I have only found one sample of this in linux code) but i
get a compiler warning as well as a seg fault when the program is
executed.

here is the source code:
#include <stdio.h>
#include <unistd.h> /* needed for ioperm() */
#include <asm/io.h> /* for outb() and inb() */
   
   
#define DATA 0x300    /* this is what address we are told the
custom-made board is located */
      
int main(void)
  {
   int x = 0x32;
      
   if (ioperm(DATA,3,1)) {
        printf("Sorry, you were not able to gain access to the
ports\n");
        printf("You must be root to run this program\n");
        exit(1);
        }
   
   outb(DATA, x); /* Sends 0011 0010 to the Data Port */   
   return (0);
  }

Now after some reading i know i have to compile with the -O option b/c
of the outb function.  I do that but receive this warning: large integer
implicitly truncated to unsigned integer.  As this is a warning I'm not
too concerned however I get a segfault when I run the program. I use
ltrace AND strace on it but they don't help me. THe last line of output
for strace is ioperm(0x300, 0x3, 0x1) =0 and then it says 'killed by
segfault'


can anyone give me some pointers as to what could be wrong??
i'd appreciate it.

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

From: "YC Sim" <[EMAIL PROTECTED]>
Subject: Re: I admit it!
Date: Tue, 28 Nov 2000 14:47:59 +0800
Reply-To: "YC Sim" <[EMAIL PROTECTED]>

is kdevelop good??
haven't tried it yet


"Andreas Haberstroh" <[EMAIL PROTECTED]> wrote in message
news:onzU5.17450$[EMAIL PROTECTED]...
> IMHO, all code can be made "non-trivial".
> I'm a firm believer in divide and conquer.
>
> But, since I'm new to linux, and am having a difficult time stumbling thru
> all the documentation, I'd much rather kill the bug in an environment
where
> I can see everything on the screen, without having to constantly list
stuff
> and write it down.
>
> The only time I'm willing to do that kind of debugging is in SoftICE.
> Granted, it's probably as difficult as gdb, but, atleast the documentation
> is clear. Where as, gdb has several web pages of stuff which for ME is
> difficult to read through.
>
>
>
> "Kaz Kylheku" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > On Sun, 26 Nov 2000 22:40:39 GMT, Andreas Haberstroh <[EMAIL PROTECTED]>
> wrote:
> > >Okay, I admit it.
> > >I'm spoiled. I have grown to love the VC IDE debugger. Makes life
SOOOOO
> > >simple.
> >
> > You must not be working on any non-trivial code to sound so optimistic
> about a
> > debugger GUI. If your life is so simple, maybe the bugs aren't that
hard?
> :)
> >
> > >Is there something like this in linux?
> > >Not the gdb, but, something with a GUI.
> >
> > There are GUI front ends to gdb, like xxgdb or ddd. In ddd you can plot
> views
> > of variables on a graph-like thing. Can't speak from experience; I
looked
> over
> > the shoulder of someone who was odoing it. ;)
>
>



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

From: Daniel Lux <[EMAIL PROTECTED]>
Subject: Re: I admit it!
Date: Tue, 28 Nov 2000 08:14:28 +0100

You should probably try kdbg, it reminds me very much of VC's
debugger.


YC Sim wrote:

> is kdevelop good??
> haven't tried it yet
>
> "Andreas Haberstroh" <[EMAIL PROTECTED]> wrote in message
> news:onzU5.17450$[EMAIL PROTECTED]...
> > IMHO, all code can be made "non-trivial".
> > I'm a firm believer in divide and conquer.
> >
> > But, since I'm new to linux, and am having a difficult time stumbling thru
> > all the documentation, I'd much rather kill the bug in an environment
> where
> > I can see everything on the screen, without having to constantly list
> stuff
> > and write it down.
> >
> > The only time I'm willing to do that kind of debugging is in SoftICE.
> > Granted, it's probably as difficult as gdb, but, atleast the documentation
> > is clear. Where as, gdb has several web pages of stuff which for ME is
> > difficult to read through.
> >
> >
> >
> > "Kaz Kylheku" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > On Sun, 26 Nov 2000 22:40:39 GMT, Andreas Haberstroh <[EMAIL PROTECTED]>
> > wrote:
> > > >Okay, I admit it.
> > > >I'm spoiled. I have grown to love the VC IDE debugger. Makes life
> SOOOOO
> > > >simple.
> > >
> > > You must not be working on any non-trivial code to sound so optimistic
> > about a
> > > debugger GUI. If your life is so simple, maybe the bugs aren't that
> hard?
> > :)
> > >
> > > >Is there something like this in linux?
> > > >Not the gdb, but, something with a GUI.
> > >
> > > There are GUI front ends to gdb, like xxgdb or ddd. In ddd you can plot
> > views
> > > of variables on a graph-like thing. Can't speak from experience; I
> looked
> > over
> > > the shoulder of someone who was odoing it. ;)
> >
> >


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

From: Peter <[EMAIL PROTECTED]>
Subject: Re: Dynamic loading ?
Date: Tue, 28 Nov 2000 09:13:31 GMT

> Thank you all for your replay.  By the way i meant package not packet. Thanks
> allot

Peter





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

From: Maurizio Piana <[EMAIL PROTECTED]>
Subject: [HELP] struct proto udp_prot : how to?
Date: 28 Nov 2000 09:15:21 GMT

Hi all; I'm working on a project on udp protocol; looking in file
net/ipv4/udp.c I found this struct:

struct proto udp_prot = {
        (struct sock *)&udp_prot,       /* sklist_next */
        (struct sock *)&udp_prot,       /* sklist_prev */
        udp_close,                      /* close */
        udp_connect,                    /* connect */
        NULL,                           /* accept */
        NULL,                           /* retransmit */
        NULL,                           /* write_wakeup */
        NULL,                           /* read_wakeup*/
        datagram_poll,                  /* poll */
        udp_ioctl,                      /* ioctl */
        NULL,                           /* init */
        NULL,                           /* destroy */
        NULL,                           /* shutdown */
        ip_setsockopt,                  /* setsockopt */ 
        ip_getsockopt,                  /* getsockopt */
        udp_sendmsg,                    /* sendmsg */
        udp_recvmsg,                    /* recvmsg */
        NULL,                           /* bind */
        udp_queue_rcv_skb,              /* backlog_rcv */
        udp_v4_hash,                    /* hash */
        udp_v4_unhash,                  /* unhash */
        udp_v4_get_port,                /* good_socknum */
        128,                            /* max_header */
        0,                              /* retransmits */ 
        "UDP",                          /* name */
        0,                              /* inuse */
        0                               /* highestinuse */
};


_Please_ does any of you knows how steps i must do to develop an udp packet?

Many thanx

MAUx

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

From: Eric Cano <[EMAIL PROTECTED]>
Subject: Timeout on semaphores (in kernel context)
Date: Tue, 28 Nov 2000 11:05:38 +0100

Hi,

I'm devlopping a module, and I'd like to know if there is a down function
with a timeout. I know down and down_trylock in the kernel context, but
nothing handling timeouts. Is there a way to implement this or does
anybody know a patch that adds this functionnality ?

Regards

Eric



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

From: network_noadle <[EMAIL PROTECTED]>
Subject: Re: hi, i need some help with a parallel port
Date: Tue, 28 Nov 2000 10:26:49 +0000

Glitch wrote:
> 
> I'm doing a project for school with the parallel port.  We are given a
> custom-made 'parallel' port that has LEDs on the circuit board. We are
> to send signals to the board so that the LEDs light up, in whatever
> order we want. I've found programs to do this (i'm attempting it under
> linux however I have only found one sample of this in linux code) but i
> get a compiler warning as well as a seg fault when the program is
> executed.
> 
> here is the source code:
> #include <stdio.h>
> #include <unistd.h> /* needed for ioperm() */
> #include <asm/io.h> /* for outb() and inb() */
> 
> 
> #define DATA 0x300    /* this is what address we are told the
> custom-made board is located */
> 
> int main(void)
>   {
>    int x = 0x32;
> 
>    if (ioperm(DATA,3,1)) {
>         printf("Sorry, you were not able to gain access to the
> ports\n");
>         printf("You must be root to run this program\n");
>         exit(1);
>         }
> 
>    outb(DATA, x); /* Sends 0011 0010 to the Data Port */
>    return (0);
>   }
> 
> Now after some reading i know i have to compile with the -O option b/c
> of the outb function.  I do that but receive this warning: large integer
> implicitly truncated to unsigned integer.  As this is a warning I'm not
> too concerned however I get a segfault when I run the program. I use
> ltrace AND strace on it but they don't help me. THe last line of output
> for strace is ioperm(0x300, 0x3, 0x1) =0 and then it says 'killed by
> segfault'
> 
> can anyone give me some pointers as to what could be wrong??
> i'd appreciate it.

I have checked the definition of the inline outb() and you have the port
and data values reversed in your call. Try this:

        outb(x, DATA); /* Sends 0011 0010 to the Data Port */

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

From: David <[EMAIL PROTECTED]>
Subject: Developing  ipchain / IP
Date: Tue, 28 Nov 2000 12:09:12 GMT

Hello all


I am a student, want to develop a program that  passes packet entering
IP protocol (the packet placed in IP queue ) through a queue to be able
to generate delay and reduce the bandwidth for testing the network.  For
doing  this i want to work with ipchain and IP protocol.

I was wondering if some  body knows,  which files in IP protocol, and
which files in IP chain i should look at.

Any help will be appreciated, thanks in advance David



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

From: [EMAIL PROTECTED]
Subject: gcc-2.95.2 forces ALL c++ programs to be GPL !!??!#
Date: Tue, 28 Nov 2000 12:12:48 GMT

Ok folks,

I've just finished as rigorous an analysis as I've yet seen of the
licensing issues surrounding C++ programs compiled with the GCC
compiler.

The bottom line is that since C++ programs statically link in
libstdc++.a and the libstdc++.a library includes 2 files (./gcc-
2.95.2/include/ansidecl.h and ./gcc-2.95.2/texinfo/lib/strerror.c)
that fall under GPL (not LGPL or special exceptions), therefore these
files must either be removed or the rest of the executable's source
must be made freely available to the public.  This would seem to apply
to all C++ programs compiled with gcc-2.95.2.

Someone please prove me wrong.  My detailed analysis is posted in my
public folder at:
http://briefcase.yahoo.com/rw78a

The analysis document is called: GCC License Analysis.pdf

2 supporting reports from the database that helped with the analysis
are called: db-libstdc++ofiles.pdf and db-libstdc_lic.pdf

If you really want to pick apart my analysis further and run the
database for yourself (it's a FileMaker Pro 4.0 database), you can
unzip it from the file: db-gcc-anal.zip.

And I do hope someone either proves me wrong or shows me that the 2
GPL'd files are not needed in libstdc++.a.

Enjoy!

Regards,
Ralph Wayland
[EMAIL PROTECTED]


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

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


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