From linux-india-programmers-owner@lists.linux-india.org Fri Dec 1 01:07:27 2000 Received: from mailscan.pune.gsslco.co.in (unknown [203.129.226.242]) by www.aunet.org (Postfix) with SMTP id 666014A0AB for ; Fri, 1 Dec 2000 01:07:19 -0800 (PST) Received: FROM phoenix.pune.gsslco.co.in BY mailscan.pune.gsslco.co.in ; Fri Dec 01 14:45:40 2000 +0500 Date: Fri, 1 Dec 2000 14:27:38 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re: saving binary tree to file In-Reply-To: <20001130233258.A10368@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/1 On Thu, 30 Nov 2000, Arun Sharma wrote: > > You can't construct a binary tree from it's pre-order traversal sequence. > You can construct a balanced binary tree with the same data, but some > information about the original structure is lost. > > -Arun ummm ....if I store the information if the node owns a child or not, it should be possible to get the structure back. For example A / \ B C / \ D E This will be stored in the file as A,B,C,D,E now first i encounter node A i note that it has 2 children so i create a list showing that list0=YY. The next B and C I attach to A. while reading B i note it does not have any children so i create a list indicating that list1 = NN. At C, I notice it has the same level as B and has 2 children. So i append to the list 2 y's. Now list1 =NNYY. I start with the next level. list1[0]=N therefore i attach NULL to B same with list1[1]=N. Next since the entries are YY i attach the next 2 nodes D and E to C. For this i have to maintain a hierarchy of lists and free them once their level has been built. So this should construct the tree. But i was looking for short cuts. The db package has a functionality of storing B trees. I was hoping if anyway i could use it or some other library, cause this is quite an elemntary functionality and some tools must exist. My understanding of "man db" especially "man btree" is on very unstable ground. Would apreciate any help deeply sreangsu From linux-india-programmers-owner@lists.linux-india.org Fri Dec 1 01:50:52 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id B0D554A041 for ; Fri, 1 Dec 2000 01:50:41 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id PAA17423 for ; Fri, 1 Dec 2000 15:27:13 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA5826 for ; Fri, 1 Dec 2000 15:18:16 +0530 Message-ID: <3A2777E8.FA6C0A00@wipro.com> Date: Fri, 01 Dec 2000 15:35:28 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: saving binary tree to file References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/2 sreangsu acharyya wrote: > > On Thu, 30 Nov 2000, Arun Sharma wrote: > > > > You can't construct a binary tree from it's pre-order traversal sequence. ^^^^^^^^^ > > You can construct a balanced binary tree with the same data, but some > > information about the original structure is lost. > > > > -Arun > > ummm ....if I store the information if the node owns a child or not, it > should be possible to get the structure back. For example > > A > / \ > B C > / \ > D E > > This will be stored in the file as A,B,C,D,E i have not seem ur explanation.. but is this pre-order traversal.. preorder : leftchild; root ; rightchild.. clarify , if i am wrong... this was said in orig mail... > |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Fri Dec 1 01:57:13 2000 Received: from mailscan.pune.gsslco.co.in (unknown [203.129.226.242]) by www.aunet.org (Postfix) with SMTP id 23DA84A119 for ; Fri, 1 Dec 2000 01:57:06 -0800 (PST) Received: FROM phoenix.pune.gsslco.co.in BY mailscan.pune.gsslco.co.in ; Fri Dec 01 15:35:27 2000 +0500 Date: Fri, 1 Dec 2000 15:17:24 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re: saving binary tree to file In-Reply-To: <3A2777E8.FA6C0A00@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/3 On Fri, 1 Dec 2000, Ketan Mehta wrote: > sreangsu acharyya wrote: > > > You can't construct a binary tree from it's pre-order traversal sequence. > ^^^^^^^^^ > > i have not seem ur explanation.. but is this pre-order traversal.. > preorder : leftchild; root ; rightchild.. > clarify , if i am wrong... > this was said in orig mail... oops ! must have got the name wrong i meant "breadth first search order" i.e root,left,right. sreangsu From linux-india-programmers-owner@lists.linux-india.org Fri Dec 1 02:43:13 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 772904A019 for ; Fri, 1 Dec 2000 02:43:08 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id QAA01459 for ; Fri, 1 Dec 2000 16:19:40 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA1E6E for ; Fri, 1 Dec 2000 15:59:54 +0530 Message-ID: <3A2781AB.CAC8E10C@wipro.com> Date: Fri, 01 Dec 2000 16:17:07 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: saving binary tree to file References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/4 hi, > oops ! must have got the name wrong i meant "breadth first search order" > i.e root,left,right. In-order traversal is root , left , right. BFS - has to be implemented by queue only.. ( ur algo for root, left , right - asuming recursive calls... left will again call same algo and visit root and left.. till NULL... so do say how u want to do).. if u have pre-order or in-order ( infact any 2 ordered list then u can construct the b-tree as it is.. very complex proof.. see some data struct book. - knuth/...) bye ketan -- |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Fri Dec 1 03:02:18 2000 Received: from mailscan.pune.gsslco.co.in (unknown [203.129.226.242]) by www.aunet.org (Postfix) with SMTP id 675D84A18F for ; Fri, 1 Dec 2000 02:58:38 -0800 (PST) Received: FROM phoenix.pune.gsslco.co.in BY mailscan.pune.gsslco.co.in ; Fri Dec 01 16:36:58 2000 +0500 Date: Fri, 1 Dec 2000 16:18:55 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re: saving binary tree to file In-Reply-To: <3A2781AB.CAC8E10C@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/5 On Fri, 1 Dec 2000, Ketan Mehta wrote: > In-order traversal is root , left , right. > BFS - has to be implemented by queue yeah thats what i tried to explain in the mail with the tree ABCDE. But back to the actual intent, can one use btree( ) of the db package for this , or has anyone used it. sreangsu From linux-india-programmers-owner@lists.linux-india.org Fri Dec 1 08:52:29 2000 Received: from pes.edu (unknown [202.54.85.50]) by www.aunet.org (Postfix) with ESMTP id 02C4F4A04A for ; Fri, 1 Dec 2000 08:52:13 -0800 (PST) Received: from www.pes.edu (IDENT:saroj_s@www.pes.edu [202.54.85.50]) by pes.edu (8.9.3/8.9.3) with ESMTP id WAA24645 for ; Fri, 1 Dec 2000 22:24:31 +0530 Date: Fri, 1 Dec 2000 22:24:31 +0530 (IST) From: Shiv Saroj Sinha To: linux-india-programmers@lists.linux-india.org Subject: getting all files until last one.... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/6 hi friends, i have a problem in implementing an idea. my idea is given a directory name i have to get all the files & subdirectory in that directory,again all files & subdirectory in that subdirectory until last files are got & i want to read them all through FILE structure pointers so i want all the filenames as arguments in a variable. thanx in advance. shiv... -- ---------------------------------------------------------------------------- .-~~~-, ( ) ( ) -^x^- ( ) /~ ~\ ( ) | | ( ) | | ( ) | __ _, (~~~~-( ) /\/\ (. ).) `_'_', ( ) C __) (.( .)-( ) | /~~~ \ (_ ( ) / \ ~====' /_____/` D) /`-_ `---' \ | .__|~-/^\-~|_/_ |^^^^^^^|| | __. ||/.\ | |OooooO \ ---. \ | | \ _ _- ,`_'_' .~\ \|__ __|-____ / ) < -(. ).) > \ ( .\ (. ) \(_/ ) ~- _) \_- ooo @ (_) @ \(_//. / /_C (-.____) /((O)/ \ ._/\~_. / |_\ / / /\\\\`-----'' _|>o< |__ | \ooooO ( \ \\ \\___/ \ `_'_', / \ \__-| \ `)\\-^\\ ^--. /_(.(.)- _\ \ \ ) |-`--.`--=\-\ /-//_ ' ( c D\ \_\_) |-___/ / \ V /.~ \/\\\ (@)___/ ~| / | / | |. /`\\_/\/ / / / | ( C`-'` / | \/ (/ / /_________- \ `C__-~ | / (/ / | | | \__________| \ (/ \ ------------------------------------------------------------------------------- ENJOY From linux-india-programmers-owner@lists.linux-india.org Fri Dec 1 22:10:52 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.78.233]) by www.aunet.org (Postfix) with ESMTP id 74B134A035 for ; Fri, 1 Dec 2000 22:10:37 -0800 (PST) Received: from jediland.home.retortsoft.com (jediland.home.retortsoft.com [192.168.111.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id KAA23531 for ; Sat, 2 Dec 2000 10:46:55 +0530 Received: (from binand@localhost) by jediland.home.retortsoft.com (8.9.3/8.9.3) id KAA00926 for linux-india-programmers@lists.linux-india.org; Sat, 2 Dec 2000 10:38:52 +0530 Date: Sat, 2 Dec 2000 10:38:51 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: getting all files until last one.... Message-ID: <20001202103851.A654@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: ; from saroj_s@pes.edu on Fri, Dec 01, 2000 at 10:24:31PM +0530 X-Operating-System: Linux 2.2.16-1 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/7 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Shiv Saroj Sinha forced the electrons to say: > my idea is given a directory name i have to get all the files & > subdirectory in that directory,again all files & subdirectory in that > subdirectory until last files are got & i want to read them all through > FILE structure pointers so i want all the filenames as arguments in a > variable. Well, repost _without_ that signature file of yours and I will tell you all about ftw(3). Binand -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6KIPfGXtiwttetWoRAjPnAKCcJ3HxJuEmLlJqYq/grKg/tQ/JUwCeMgpw lB0nHWH6T160UESU4uGZvt0= =0njT -----END PGP SIGNATURE----- From linux-india-programmers-owner@lists.linux-india.org Fri Dec 1 23:11:37 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 91AAA4A050 for ; Fri, 1 Dec 2000 23:11:35 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id XAA12634 for linux-india-programmers@lists.linux-india.org; Fri, 1 Dec 2000 23:09:28 -0800 Date: Fri, 1 Dec 2000 23:09:28 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: saving binary tree to file Message-ID: <20001201230928.A12627@sharmas.dhs.org> References: <3A2781AB.CAC8E10C@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from sreangsua@geometricsoftware.com on Fri, Dec 01, 2000 at 04:18:55PM +0530 X-Archive-Number: 200012/8 On Fri, Dec 01, 2000 at 04:18:55PM +0530, sreangsu acharyya wrote: > On Fri, 1 Dec 2000, Ketan Mehta wrote: > > > In-order traversal is root , left , right. > > BFS - has to be implemented by queue > > yeah thats what i tried to explain in the mail with the tree ABCDE. But > back to the actual intent, can one use btree( ) of the db package for > this , or has anyone used it. B-tree stands for balanced tree and not binary tree. Most databases which store data in an easy to search form, use b-trees. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Dec 2 07:01:32 2000 Received: from satyaki.pacific.net.in (satyaki.pacific.net.in [203.123.128.85]) by www.aunet.org (Postfix) with ESMTP id 0828B4A0A6 for ; Sat, 2 Dec 2000 05:50:17 -0800 (PST) Received: from ganga.sankya.com (ppp146.bangalore-188.pacific.net.in [203.123.188.146]) by satyaki.pacific.net.in with ESMTP id TAA14474 for ; Sat, 2 Dec 2000 19:19:42 +0530 (IST) Date: Sat, 2 Dec 2000 17:31:04 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: int(x) is .ne. to x when x is whole number. Message-ID: <20001202173104.B4323@sankya.com> Mail-Followup-To: Babu Kalakrishnan , linux-india-programmers@lists.linux-india.org References: <3A237E04.DA0083B8@pspl.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from hsraidce@mail.rurkiu.ernet.in on Wed, Nov 29, 2000 at 02:20:04PM +0530 X-Operating-System: Red hat Linux 6.2 with Kernel 2.2.16-3 X-Kernel: Kernel 2.2.16-3 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200012/9 Dear Rai, On Wed, Nov 29, 2000 at 02:20:04PM +0530, H.S.Rai typed: > calculations. It is simply adding 0.2 to intial number 0.0 a number of > times. I want to know root couse of problem as I assume such behaviour > shhould not be there. > One can never guarantee that any real number can be accurately rpresented by the "float" or "double" datatypes. Quoting from "info libc" : Floating-point numbers can represent a finite subset of the real numbers. While this subset is large enough for most purposes, it is important to remember that the only reals that can be represented exactly are rational numbers that have a terminating binary expansion shorter than the width of the mantissa. Even simple fractions such as 1/5 can only be approximated by floating point. In your specific case, the number 0.2 is not exactly representable by the "float" data type. Because the operation you're doing is a repeated addition, the error in representation of 0.2 gets accumulated over each operation (as you can observe from the results you'd quoted). In fact if you had used a multiply operator instead of the repeated addition (i.e "N*0.2" instead of adding 0.2 N times), the error would have been lower and non-cumulative. (But of course still with no guarantee that the comparison would return a success :):) ) Kala From linux-india-programmers-owner@lists.linux-india.org Sun Dec 3 20:31:43 2000 Received: from mailscan.pune.gsslco.co.in (unknown [203.129.226.242]) by www.aunet.org (Postfix) with SMTP id 9FA074A0A4 for ; Sun, 3 Dec 2000 20:31:35 -0800 (PST) Received: FROM phoenix.pune.gsslco.co.in BY mailscan.pune.gsslco.co.in ; Mon Dec 04 10:09:44 2000 +0500 Date: Mon, 4 Dec 2000 09:51:40 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re: saving binary tree to file In-Reply-To: <20001201230928.A12627@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/10 On Fri, 1 Dec 2000, Arun Sharma wrote: > B-tree stands for balanced tree and not binary tree. Most databases > which store data in an easy to search form, use b-trees. > -Arun Yeah, but if i specify a branching factor of 2 cant it simulate a binary tree ? On dangerous territory now. sreangsu From linux-india-programmers-owner@lists.linux-india.org Sun Dec 3 22:53:37 2000 Received: from web1804.mail.yahoo.com (web1804.mail.yahoo.com [128.11.23.47]) by www.aunet.org (Postfix) with SMTP id 67BCD4A1A1 for ; Sun, 3 Dec 2000 22:43:07 -0800 (PST) Received: (qmail 21859 invoked by uid 60001); 4 Dec 2000 06:42:31 -0000 Message-ID: <20001204064231.21858.qmail@web1804.mail.yahoo.com> Received: from [203.199.228.236] by web1804.mail.yahoo.com; Sun, 03 Dec 2000 22:42:31 PST Date: Sun, 3 Dec 2000 22:42:31 -0800 (PST) From: =?iso-8859-1?q?Sreeji=20K=20Das?= Subject: [SLIGHTLY OFFTOPIC] Oracle on Linux To: linux-india-help@lists.linux-india.org Cc: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200012/11 Hi I want to connect from my Linux box (2.2.16, Oracle8i client) to a Novell Server (4.11, running Oracle 8.1.5, over SPX). Has anyone in this list done this before ? (When I specify protocol as SPX, I'm getting a 'protocol adpater not found' error. & no, there's no option to install SPX during Oracle install on Linux ;() I don't think SPX is well supported under Linux (2.2.16 says it's experimental !) & I dunno whether Oracle supports SPX on Linux (the oracle doc. says supported protocols are 'TCP/IP, BEQ, & IPC ...' No mention of SPX !) Now'd like to know the following: 1. Is there an sqlplus available for DOS (Now Windoze !) using which I can connect to Novell Oracle Server over SPX ? 2. Has any1 connected their Linux/BSD box to an Oracle Server running on Novell over SPX ? Thanx in advance. Sreeji __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Dec 4 05:33:49 2000 Received: from hindon.hss.co.in (unknown [202.54.26.202]) by www.aunet.org (Postfix) with ESMTP id 57FCE4A043 for ; Mon, 4 Dec 2000 05:09:25 -0800 (PST) Received: from sandesh.hss.hns.com (localhost [127.0.0.1]) by hindon.hss.co.in (8.10.0/8.10.0) with SMTP id eB4D8nZ12178 for ; Mon, 4 Dec 2000 18:38:49 +0530 (IST) Received: by sandesh.hss.hns.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 652569AB.0047072F ; Mon, 4 Dec 2000 18:25:48 +0530 X-Lotus-FromDomain: HSS From: vnair@hss.hns.com To: linux-india-programmers@lists.linux-india.org Message-ID: <652569AB.0047063A.00@sandesh.hss.hns.com> Date: Mon, 4 Dec 2000 18:29:22 +0530 Subject: Shared Memory POSIX interface Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200012/12 Hello list, while writing a code for shared memory using POSIX interface... i used following functions shm_init shm_open shm_unlink but these functions doesn't seems to be present. Man pages talk about shmget, shmctl, shmat and shmdt functions. Is there a library available for the shm_* functions ? TIA From linux-india-programmers-owner@lists.linux-india.org Mon Dec 4 05:34:16 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 91CA04A0D9 for ; Mon, 4 Dec 2000 05:33:35 -0800 (PST) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id eB4DX0g10124 for ; Mon, 4 Dec 2000 13:33:00 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8019.fe.internet.bosch.com(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma009363; Mon, 4 Dec 00 13:32:17 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id ; Mon, 4 Dec 2000 14:32:08 +0100 Message-ID: From: "Harpreet Singh (RBIN/DCA-NMP)" To: linux-india-programmers@lists.linux-india.org Subject: Files Date: Mon, 4 Dec 2000 14:32:00 +0100 Importance: high X-Priority: 1 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain X-Archive-Number: 200012/13 Hi, When a file is opened for reading by one program, can the same file be opened for reading by another program at the same time. And when this file is opened for reading by one program, can the same file be opened for writing or updation by another program at the same time. From : Harpreet Singh Software Eng. (DCA/NMP) Robert Bosch India Pvt. Limited. 123, Industrial Layout, Hosur Road, Koramangala, Bangalore, Karnataka, India. Ph : 508-1145 From linux-india-programmers-owner@lists.linux-india.org Mon Dec 4 06:39:25 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.86.32]) by www.aunet.org (Postfix) with ESMTP id 496C94A109 for ; Mon, 4 Dec 2000 06:27:21 -0800 (PST) Received: from jediland.home.retortsoft.com (jediland.home.retortsoft.com [192.168.111.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id UAA19735 for ; Mon, 4 Dec 2000 20:01:32 +0530 Received: (from binand@localhost) by jediland.home.retortsoft.com (8.9.3/8.9.3) id TAA15728 for linux-india-programmers@lists.linux-india.org; Mon, 4 Dec 2000 19:53:33 +0530 Date: Mon, 4 Dec 2000 19:53:33 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Files Message-ID: <20001204195333.A15399@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from Harpreet.Singh@in.bosch.com on Mon, Dec 04, 2000 at 02:32:00PM +0100 X-Operating-System: Linux 2.2.16-1 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/14 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Harpreet Singh (RBIN/DCA-NMP) forced the electrons to say: > When a file is opened for reading by one program, can the same file be > opened for reading by another program at the same time. Why not? You can always do less and more > And when this file is opened for reading by one program, can the same file > be opened for writing or updation by another program at the same time. Again, why not? I do a tail -f /var/log/messages while I am trying something exotic - and syslog keeps logging without problems. Binand -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6K6jjGXtiwttetWoRAnQLAJ9b1x7PbtDNtuYyLEL1C66BgzSkWACeIIi8 kyuZZRrekZduypeoN7MS9gs= =4efw -----END PGP SIGNATURE----- From linux-india-programmers-owner@lists.linux-india.org Mon Dec 4 11:05:01 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id BA5584A123 for ; Mon, 4 Dec 2000 10:50:13 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id KAA17858 for linux-india-programmers@lists.linux-india.org; Mon, 4 Dec 2000 10:48:34 -0800 Date: Mon, 4 Dec 2000 10:48:34 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Shared Memory POSIX interface Message-ID: <20001204104834.A17851@sharmas.dhs.org> References: <652569AB.0047063A.00@sandesh.hss.hns.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <652569AB.0047063A.00@sandesh.hss.hns.com>; from vnair@hss.hns.com on Mon, Dec 04, 2000 at 06:29:22PM +0530 X-Archive-Number: 200012/15 On Mon, Dec 04, 2000 at 06:29:22PM +0530, vnair@hss.hns.com wrote: > > > Hello list, > > while writing a code for shared memory using POSIX interface... i used following > functions > > shm_init > shm_open > shm_unlink How do you know these are a part of POSIX ? http://www.opennc.org/onlinepubs/007908799/xsh/sysshm.h.html Unix98 = superset of POSIX -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 08:03:07 2000 Received: from web6103.mail.yahoo.com (web6103.mail.yahoo.com [128.11.22.97]) by www.aunet.org (Postfix) with SMTP id 380C14A19A for ; Mon, 4 Dec 2000 21:42:59 -0800 (PST) Message-ID: <20001205054255.4216.qmail@web6103.mail.yahoo.com> Received: from [203.197.178.73] by web6103.mail.yahoo.com; Mon, 04 Dec 2000 21:42:55 PST Date: Mon, 4 Dec 2000 21:42:55 -0800 (PST) From: Prashant KS Subject: Re: Shared Memory POSIX interface To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/16 as far as i know there are no calls by name shm_init(), shm_open etc --- vnair@hss.hns.com wrote: > > > Hello list, > > while writing a code for shared memory using POSIX > interface... i used following > functions > > shm_init > shm_open > shm_unlink > > but these functions doesn't seems to be present. Man > pages talk about shmget, > shmctl, shmat and shmdt functions. > > Is there a library available for the shm_* functions > ? > > TIA > > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 08:03:16 2000 Received: from web6101.mail.yahoo.com (web6101.mail.yahoo.com [128.11.22.95]) by www.aunet.org (Postfix) with SMTP id 903EF4A1A4 for ; Mon, 4 Dec 2000 21:39:37 -0800 (PST) Message-ID: <20001205053935.19641.qmail@web6101.mail.yahoo.com> Received: from [203.197.178.73] by web6101.mail.yahoo.com; Mon, 04 Dec 2000 21:39:35 PST Date: Mon, 4 Dec 2000 21:39:35 -0800 (PST) From: Prashant KS Subject: Re: Files To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/17 Yes why not? --- "Harpreet Singh (RBIN/DCA-NMP)" wrote: > Hi, > > When a file is opened for reading by one program, > can the same file be > opened for reading by another program at the same > time. > And when this file is opened for reading by one > program, can the same file > be opened for writing or updation by another program > at the same time. > > From : > Harpreet Singh > Software Eng. > (DCA/NMP) > Robert Bosch India Pvt. Limited. > 123, Industrial Layout, > Hosur Road, Koramangala, > Bangalore, > Karnataka, > India. > Ph : 508-1145 > > > > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 08:16:48 2000 Received: from mailway.vxl.co.in (unknown [202.54.39.164]) by www.aunet.org (Postfix) with SMTP id EFCB14A11C for ; Mon, 4 Dec 2000 19:41:50 -0800 (PST) Received: from vayudoot.vxl.co.in by mailway.vxl.co.in id aa28650; 5 Dec 100 9:21 IST Date: Tue, 5 Dec 2000 09:11:33 +0530 (IST) From: Venkat Hallale To: linux-india-programmers@lists.linux-india.org Subject: Regarding SSL API Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/18 Hi team, Where I get the SSL api documentation ? I want to write the my own application using SSL APIs? Thanks in advance Regards Venkat Hallale From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 08:25:07 2000 Received: from web9204.mail.yahoo.com (web9204.mail.yahoo.com [216.136.129.27]) by www.aunet.org (Postfix) with SMTP id CAD824A1CA for ; Tue, 5 Dec 2000 05:30:04 -0800 (PST) Message-ID: <20001205133002.25374.qmail@web9204.mail.yahoo.com> Received: from [203.197.174.96] by web9204.mail.yahoo.com; Tue, 05 Dec 2000 05:30:02 PST Date: Tue, 5 Dec 2000 05:30:02 -0800 (PST) From: john slater Subject: howto pull the gui..... To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/19 hi i am interted in pulling the linux gui from a linux client useing the xterm. i do no want to use any of the tools for that. it possible to set a few environment variables to set and pull the gui. can some one help me configureing the xterm at terminal emulator thanks bye John --- "Binand Raj S." wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Harpreet Singh (RBIN/DCA-NMP) forced the electrons > to say: > > When a file is opened for reading by one program, > can the same file be > > opened for reading by another program at the same > time. > > Why not? You can always do less and more > > > > And when this file is opened for reading by one > program, can the same file > > be opened for writing or updation by another > program at the same time. > > Again, why not? I do a tail -f /var/log/messages > while I am trying > something exotic - and syslog keeps logging without > problems. > > Binand > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.1 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE6K6jjGXtiwttetWoRAnQLAJ9b1x7PbtDNtuYyLEL1C66BgzSkWACeIIi8 > kyuZZRrekZduypeoN7MS9gs= > =4efw > -----END PGP SIGNATURE----- > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP ===== John Slater #123, Hooly Wood LA, CA 34523 __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 08:25:39 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 422574A0AD for ; Mon, 4 Dec 2000 20:13:19 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id JAA17091 for ; Tue, 5 Dec 2000 09:50:11 GMT Received: from wipro.com ([192.107.143.16]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA5857 for ; Tue, 5 Dec 2000 09:32:33 +0530 Message-ID: <3A2C6744.58825045@wipro.com> Date: Tue, 05 Dec 2000 09:25:48 +0530 From: Pratap Chakravarthy X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Files References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/20 "Harpreet Singh (RBIN/DCA-NMP)" wrote: > Hi, > > When a file is opened for reading by one program, can the same file be > opened for reading by another program at the same time. Yes the same file can be opened many times by same or different programs. > > And when this file is opened for reading by one program, can the same file > be opened for writing or updation by another program at the same time. Yes this is also possible. > > > >From : > Harpreet Singh > Software Eng. > (DCA/NMP) > Robert Bosch India Pvt. Limited. > 123, Industrial Layout, > Hosur Road, Koramangala, > Bangalore, > Karnataka, > India. > Ph : 508-1145 > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 11:46:29 2000 Received: from hindon.hss.co.in (unknown [202.54.26.202]) by www.aunet.org (Postfix) with ESMTP id F374D4A1F1 for ; Tue, 5 Dec 2000 08:32:30 -0800 (PST) Received: from sandesh.hss.hns.com (localhost [127.0.0.1]) by hindon.hss.co.in (8.10.0/8.10.0) with SMTP id eB5GXsM05308 for ; Tue, 5 Dec 2000 22:03:54 +0530 (IST) Received: by sandesh.hss.hns.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 652569AC.0059CC10 ; Tue, 5 Dec 2000 21:50:49 +0530 X-Lotus-FromDomain: HSS From: vnair@hss.hns.com To: linux-india-programmers@lists.linux-india.org Message-ID: <652569AC.0059CB2D.00@sandesh.hss.hns.com> Date: Tue, 5 Dec 2000 21:56:47 +0530 Subject: Thread ID Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200012/21 Hello list, I couldn't find a sys call to find the thread id of the thread from itself ... something like.. TIA From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 11:48:04 2000 Received: from srv130.globeid.com (globeid-130.26.rev.fr.colt.net [213.41.26.130]) by www.aunet.org (Postfix) with ESMTP id 3D6154A158 for ; Tue, 5 Dec 2000 09:23:36 -0800 (PST) Received: from (smtpd@localhost) by srv130.globeid.com (8.9.3/jtpda-5.3.3) id SAA04845 for ; Tue, 5 Dec 2000 18:21:54 +0100 Received: from exchange.globeid.com(213.41.26.67), claiming to be "exchange.intranet.globeid.com" via SMTP by srv130.globeid.com, id smtpdsvyppF; Tue Dec 5 18:21:48 2000 Received: from chet ([10.70.8.14]) by exchange.intranet.globeid.com with Microsoft SMTPSVC(5.0.2195.1600); Tue, 5 Dec 2000 17:38:01 +0100 Message-ID: <02d301c05ed9$da729370$0e08460a@paris.globeid.com> From: "Ouriel Grynszpan" To: References: Subject: Re: Regarding SSL API Date: Tue, 5 Dec 2000 17:38:53 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2919.6600 X-OriginalArrivalTime: 05 Dec 2000 16:38:01.0887 (UTC) FILETIME=[BBD952F0:01C05ED9] X-Archive-Number: 200012/22 You can find drafts of SSL specifications on: http://www.netscape.com/eng/ssl3/ Also, you may want to take a look at the openssl project: http://www.openssl.org http://www.openssl.org/docs/ssl/ssl.html Ouriel ----- Original Message ----- From: "Venkat Hallale" To: Sent: Tuesday, December 05, 2000 4:41 AM Subject: [LIP] Regarding SSL API > Hi team, > > Where I get the SSL api documentation ? > > I want to write the my own application using SSL APIs? > > Thanks in advance > > Regards > > Venkat Hallale > > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 11:48:20 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id E79024A14B for ; Tue, 5 Dec 2000 09:24:11 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA19869 for linux-india-programmers@lists.linux-india.org; Tue, 5 Dec 2000 09:22:24 -0800 Date: Tue, 5 Dec 2000 09:22:24 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Regarding SSL API Message-ID: <20001205092224.A19860@sharmas.dhs.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from venkath@vayudoot.vxl.co.in on Tue, Dec 05, 2000 at 09:11:33AM +0530 X-Archive-Number: 200012/23 On Tue, Dec 05, 2000 at 09:11:33AM +0530, Venkat Hallale wrote: > Hi team, > > Where I get the SSL api documentation ? > > I want to write the my own application using SSL APIs? > > Thanks in advance http://www.openssl.org/docs/ssl/ssl.html -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 15:20:26 2000 Received: from MailAndNews.com (MailAndNews.com [199.29.68.161]) by www.aunet.org (Postfix) with ESMTP id 399D049F44 for ; Tue, 5 Dec 2000 15:19:46 -0800 (PST) X-WM-Posted-At: MailAndNews.com; Tue, 5 Dec 00 11:53:32 -0500 X-WebMail-UserID: kameshj Date: Tue, 5 Dec 2000 11:53:32 -0500 From: kamesh jayachandran To: linux-india-programmers@lists.linux-india.org X-EXP32-SerialNo: 00000000 Subject: how to set the HTTP request header Message-ID: <3A4128FD@MailAndNews.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: InterChange (Hydra) SMTP v3.61.08 X-Archive-Number: 200012/24 hai all, I don't know whether it is related to linux or not.But a general programming doubt.I am writing the client in java which communicates with the web server using HTTP protocol.Actually I am able to read the cookies that the server sends.My java client has to send back the cookie it recieves from the server for each and every transaction by setting the HTTP request header any class or method available in java to accomplish this.I use URLConnection but the getOutputStream sends the data as "Entity body" of the request.Any other way by which i can accomplish the setting of custom headers. with regards kamesh jayachandran kamesh jayachandran SoftWare Engineer PlanetAsia.com Bangalore See my work at www.electricalmachine.com From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 19:35:24 2000 Received: from unknown-147.101.pilot.net (unknown-147-101.pilot.net [198.232.147.101]) by www.aunet.org (Postfix) with ESMTP id 9D0844A00D for ; Tue, 5 Dec 2000 18:45:10 -0800 (PST) Received: from unknown-24-15.pilot.net (unknown-24-15.pilot.net [206.189.24.15]) by unknown-147.101.pilot.net with ESMTP id SAA06498 for ; Tue, 5 Dec 2000 18:45:06 -0800 (PST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-15.pilot.net with ESMTP id SAA02614 for ; Tue, 5 Dec 2000 18:45:05 -0800 (PST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Wed, 6 Dec 2000 08:18:57 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0308B587@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Shared Memory POSIX interface Date: Wed, 6 Dec 2000 08:19:04 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/25 #include shm_open and shm_unlink are indeed present in the The Single Unix Specification. enjoy at : http://www.opennc.org/onlinepubs/7908799/xsh/sysmman.h.html http://www.opennc.org/onlinepubs/7908799/toc.htm Regards Shourya _______________________________________________ Shourya Sarcar || Global Software Platforms gemedicalsystems.com || ge.com || elfun.org 5263121 xt 362 || shourya@shourya.com -----Original Message----- From: vnair@hss.hns.com [mailto:vnair@hss.hns.com] Sent: Monday, December 04, 2000 6:29 PM To: linux-india-programmers@lists.linux-india.org Subject: [LIP] Shared Memory POSIX interface Hello list, while writing a code for shared memory using POSIX interface... i used following functions shm_init shm_open shm_unlink but these functions doesn't seems to be present. Man pages talk about shmget, shmctl, shmat and shmdt functions. Is there a library available for the shm_* functions ? TIA --------------------------------------------- The mailing list archives are available at http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 19:35:32 2000 Received: from unknown-147.101.pilot.net (unknown-147-101.pilot.net [198.232.147.101]) by www.aunet.org (Postfix) with ESMTP id 17D6549F45 for ; Tue, 5 Dec 2000 18:37:52 -0800 (PST) Received: from unknown-24-15.pilot.net (unknown-24-15.pilot.net [206.189.24.15]) by unknown-147.101.pilot.net with ESMTP id SAA03113 for ; Tue, 5 Dec 2000 18:37:44 -0800 (PST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-15.pilot.net with ESMTP id SAA28975 for ; Tue, 5 Dec 2000 18:37:37 -0800 (PST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Wed, 6 Dec 2000 08:11:29 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0308B57E@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Thread ID Date: Wed, 6 Dec 2000 08:11:36 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/26 you can get the handle / id of a thread from within itself using the pthread_self() call. the following is slightly AIX biased doc but will work with all pthread implementations all the same. For a tuorial on pthreads, go to the lawrence livermore national lab site.. http://www.llnl.gov/computing/tutorials/workshops/workshop/pthreads/MAIN.htm l HTH Shourya _______________________________________________ Shourya Sarcar || Global Software Platforms gemedicalsystems.com || ge.com || elfun.org 5263121 xt 362 || shourya@shourya.com ---------------------------------------------------------------------------- ---- AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1 ---------------------------------------------------------------------------- ---- pthread_self Subroutine Purpose Returns the calling thread's ID. Library Threads Library (libpthreads.a) Syntax #include pthread_t pthread_self (void); Description The pthread_self subroutine returns the calling thread's ID. Note: The pthread.h header file must be the first included file of each source file using the threads library. Otherwise, the -D_THREAD_SAFE compilation flag should be used, or the cc_r compiler used. In this case, the flag is automatically set. Return Values The calling thread's ID is returned. Errors No errors are defined. The pthread_self function will not return an error code of EINTR. Implementation Specifics This subroutine is part of the Base Operating System (BOS) Runtime. Related Information The pthread_create subroutine, pthread_equal subroutine, pthread.h file. Creating Threads in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs. Threads Library Quick Reference in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs. ---------------------------------------------------------------------------- ---- -----Original Message----- From: vnair@hss.hns.com [mailto:vnair@hss.hns.com] Sent: Tuesday, December 05, 2000 9:57 PM To: linux-india-programmers@lists.linux-india.org Subject: [LIP] Thread ID Hello list, I couldn't find a sys call to find the thread id of the thread from itself ... something like.. TIA --------------------------------------------- An alpha version of a web based tool to manage your subscription with this mailing list is at http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Tue Dec 5 19:37:01 2000 Received: from unknown-147.101.pilot.net (unknown-147-101.pilot.net [198.232.147.101]) by www.aunet.org (Postfix) with ESMTP id 1EBCF4A00D for ; Tue, 5 Dec 2000 18:48:04 -0800 (PST) Received: from unknown-24-15.pilot.net (unknown-24-15.pilot.net [206.189.24.15]) by unknown-147.101.pilot.net with ESMTP id SAA07174 for ; Tue, 5 Dec 2000 18:47:59 -0800 (PST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-15.pilot.net with ESMTP id SAA03583 for ; Tue, 5 Dec 2000 18:47:58 -0800 (PST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Wed, 6 Dec 2000 08:21:50 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0308B58A@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Files Date: Wed, 6 Dec 2000 08:21:56 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/27 hi harpreet, in unix/linux , yes. in windows, hmmm... -----Original Message----- From: Harpreet Singh (RBIN/DCA-NMP) [mailto:Harpreet.Singh@in.bosch.com] When a file is opened for reading by one program, can the same file be opened for reading by another program at the same time. in any case , there should be no problem for a read-read scenario. And when this file is opened for reading by one program, can the same file be opened for writing or updation by another program at the same time. This is counter intuitive but Unix allows this. It is up to the client/application programmer to syncronize. More flexible, the Unix way. Regards, Shourya From linux-india-programmers-owner@lists.linux-india.org Wed Dec 6 08:24:05 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 892D24A0F0 for ; Tue, 5 Dec 2000 21:01:11 -0800 (PST) Received: from Larry.bk (unknown [203.197.134.89]) by md2.vsnl.net.in (Postfix) with ESMTP id 7B1F2A19 for ; Wed, 6 Dec 2000 10:39:40 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id KAA07622 for ; Wed, 6 Dec 2000 10:26:26 +0530 Date: Wed, 6 Dec 2000 10:26:25 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: howto pull the gui..... In-Reply-To: <20001205133002.25374.qmail@web9204.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/28 X-Sequence-Number: 946 Hi export DISPLAY=: For example, if you have machine A, where you are running an application (say netscape) & you want the program to display the output (the GUI) on machine B, then you do this: Assume (A = 10.10.10.1 & B = 10.10.10.2) Run X Server on B (as X :1) Login to A Give the command export DISPLAY=10.10.10.2:1.0 Run netscape in A Now you'd get the netscape window in Machine B. Sreeji On Tue, 5 Dec 2000, john slater wrote: > hi > i am interted in pulling the linux gui from a linux > client useing the xterm. i do no want to use any of > the tools for that. it possible to set a few > environment variables to set and pull the gui. can > some one help me configureing the xterm at terminal > emulator > thanks > bye > John > --- "Binand Raj S." > wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Harpreet Singh (RBIN/DCA-NMP) forced the electrons > > to say: > > > When a file is opened for reading by one program, > > can the same file be > > > opened for reading by another program at the same > > time. > > > > Why not? You can always do less and more > > > > > > > And when this file is opened for reading by one > > program, can the same file > > > be opened for writing or updation by another > > program at the same time. > > > > Again, why not? I do a tail -f /var/log/messages > > while I am trying > > something exotic - and syslog keeps logging without > > problems. > > > > Binand > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.0.1 (GNU/Linux) > > Comment: For info see http://www.gnupg.org > > > > > iD8DBQE6K6jjGXtiwttetWoRAnQLAJ9b1x7PbtDNtuYyLEL1C66BgzSkWACeIIi8 > > kyuZZRrekZduypeoN7MS9gs= > > =4efw > > -----END PGP SIGNATURE----- > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > > ===== > John Slater > #123, Hooly Wood > LA, CA 34523 > > __________________________________________________ > Do You Yahoo!? > Yahoo! Shopping - Thousands of Stores. Millions of Products. > http://shopping.yahoo.com/ > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr > From linux-india-programmers-owner@lists.linux-india.org Wed Dec 6 08:44:12 2000 Received: from smtp2.mail.yahoo.com (smtp2.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id 767A24A353 for ; Tue, 5 Dec 2000 19:55:07 -0800 (PST) Received: from unknown (HELO ramesh) (202.9.144.2) by smtp.mail.vip.suc.yahoo.com with SMTP; 6 Dec 2000 03:54:40 -0000 X-Apparently-From: Message-ID: <019301c05f38$7a1779a0$a00aa8c0@ramesh> From: "Ramesh.S" To: References: Subject: Re: Files Date: Wed, 6 Dec 2000 09:26:08 +0530 Organization: DishnetDSL Pvt. Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200012/29 X-Sequence-Number: 947 yeah... it is possible.. i found a lot of replies like this.. to tell u the actual reason, it is like two processes accessing the same memory.. suppose think of the followin gblock of code in the same program int i=5; fork(); i++; printf("%d",i); here in the above code after fork a seperate copy of the saem memory is inherited from the parent process. therefore every process will have its own resource copy. to be more clear... every process will have its own process table entry and file tabel entry. so same file can be accessed by two different processes at the same time. even i am also a begineer.. i am not sure with my answer. if anybody finds and misconception here kindly correct me... Ramesh. ----- Original Message ----- From: Harpreet Singh (RBIN/DCA-NMP) To: linux-india-programmers@lists.linux-india.org Sent: Monday, December 04, 2000 7:02 PM Subject: [LIP] Files Hi, When a file is opened for reading by one program, can the same file be opened for reading by another program at the same time. And when this file is opened for reading by one program, can the same file be opened for writing or updation by another program at the same time. From : Harpreet Singh Software Eng. (DCA/NMP) Robert Bosch India Pvt. Limited. 123, Industrial Layout, Hosur Road, Koramangala, Bangalore, Karnataka, India. Ph : 508-1145 --------------------------------------------- The mailing list archives are available at http://lists.linux-india.org/cgi-bin/wilma/LIP __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Wed Dec 6 11:19:36 2000 Received: from ns09.egujarat.net (unknown [63.125.98.34]) by www.aunet.org (Postfix) with ESMTP id 374D34A1BF for ; Wed, 6 Dec 2000 10:38:29 -0800 (PST) Received: from 63.125.98.45 (IDENT:webmail@[63.125.98.45]) by ns09.egujarat.net (8.9.3/8.9.3) with SMTP id AAA14721 for ; Thu, 7 Dec 2000 00:13:41 +0530 Date: Thu, 7 Dec 2000 00:13:41 +0530 Message-Id: <200012061843.AAA14721@ns09.egujarat.net> From: "abhishek" To: linux-india-programmers@lists.linux-india.org Subject: urgent .How do i get more threads in MySQL server X-Archive-Number: 200012/30 X-Sequence-Number: 948 hello everybody My problem is my MySQL server only allows 100 threads to connect to it. After 100 threads i get error message "Lost connection to MySQL server during query". I have read some doumentation for it it says to Increase PTHREAD_THREADS_MAX in 'sysdeps/unix/sysv/linux/bits/local_lim.h' to 4096 and decrease STACK_SIZE in `internals.h' to 256 KB. But i found local_lim.h at "/usr/include/bits/local_lim.h" and "/usr/i386-glibc21-linux/include/bits/local_lim.h" andBut i found the value of PTHREAD_THREADS_MAX = 1024 . and i don't found internals.h I am running MySQL-3.22.25-1 on redhat 7.0 so now how do i get more then 200 threads in MySQL server.I am using MySQL API for C. thanx in advance -->> FREE Perl CGI scripts add WEB ACCESS to your -->> POP E-Mail accounts! Download today!! http://www.adjeweb.com From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 07:31:23 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 3515D4A129 for ; Thu, 7 Dec 2000 01:35:12 -0800 (PST) Received: from Larry.bk (unknown [203.199.228.183]) by md2.vsnl.net.in (Postfix) with ESMTP id 08AE48CB for ; Thu, 7 Dec 2000 15:10:00 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id OAA31112 for ; Thu, 7 Dec 2000 14:56:41 +0530 Date: Thu, 7 Dec 2000 14:56:36 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: howto pull the gui..... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/31 X-Sequence-Number: 949 On Thu, 7 Dec 2000, M K Saravanan wrote: > On Wed, 6 Dec 2000, Sreeji K Das wrote: > > > For example, if you have machine A, where you are running an application > > (say netscape) & you want the program to display the output (the GUI) on > > machine B, then you do this: > > Assume (A = 10.10.10.1 & B = 10.10.10.2) > > > > Run X Server on B (as X :1) > > Login to A > > Give the command export DISPLAY=10.10.10.2:1.0 > > Run netscape in A > > > suppose to run "xhost " in machine B before the executing the > export command in A. correct me if i am wrong. > > -- mks -- mm.... right. I missed it out. Thanx. Sreeji From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 07:31:52 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 6B1654A12A for ; Thu, 7 Dec 2000 04:21:06 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id RAA00567 for ; Thu, 7 Dec 2000 17:58:02 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA4A7; Thu, 7 Dec 2000 17:48:22 +0530 Message-ID: <3A2F8412.344E8DEC@wipro.com> Date: Thu, 07 Dec 2000 18:05:30 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org, nitant.kulkarni@wipro.com Subject: Some memory reallocation. - errata Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/32 X-Sequence-Number: 950 hi all, one thing i forgot to mention , this is in kernel mode. My code is in kernel mode , so do inform accordingly. > > Hi all, > I have a situation where I have allocated a memory chunk to request > some data. Ultimately, I end up getting much lesser data than I had > requested for. Now I want to just retain the got data and free the > unused chunk from my earlier allocated chunk. How do I go about doing > this? > Any pointer or suggestion are welcome. > TIA > bye > ketan -- |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 07:32:07 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 0814A4A125 for ; Thu, 7 Dec 2000 03:24:18 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id RAA09371 for ; Thu, 7 Dec 2000 17:01:05 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA4A71; Thu, 7 Dec 2000 16:51:17 +0530 Message-ID: <3A2F76B9.786F49D9@wipro.com> Date: Thu, 07 Dec 2000 17:08:33 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org, nitant.kulkarni@wipro.com Subject: Some memory reallocation. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/33 X-Sequence-Number: 951 Hi all, I have a situation where I have allocated a memory chunk to request some data. Ultimately, I end up getting much lesser data than I had requested for. Now I want to just retain the got data and free the unused chunk from my earlier allocated chunk. How do I go about doing this? Any pointer or suggestion are welcome. TIA bye ketan -- |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 07:32:43 2000 Received: from hindon.hss.co.in (unknown [202.54.26.202]) by www.aunet.org (Postfix) with ESMTP id B7CE649F62 for ; Thu, 7 Dec 2000 02:22:19 -0800 (PST) Received: from sandesh.hss.hns.com (localhost [127.0.0.1]) by hindon.hss.co.in (8.10.0/8.10.0) with SMTP id eB7ANeF19972 for ; Thu, 7 Dec 2000 15:53:40 +0530 (IST) Received: by sandesh.hss.hns.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 652569AE.0037E70C ; Thu, 7 Dec 2000 15:40:36 +0530 X-Lotus-FromDomain: HSS From: vnair@hss.hns.com To: linux-india-programmers@lists.linux-india.org Message-ID: <652569AE.0037E5CA.00@sandesh.hss.hns.com> Date: Thu, 7 Dec 2000 15:44:14 +0530 Subject: Waiting on multiple semaphores Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200012/34 X-Sequence-Number: 952 Hello list, As the subject of the mail says, i wanna wait on more than one semaphores in a same thread. Can this be implemented somehow... something like waiting on select with multiple fds. TIA From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 07:36:16 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id A67DA4A116 for ; Wed, 6 Dec 2000 23:17:25 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eB77NrH31137 for ; Thu, 7 Dec 2000 12:53:53 +0530 Message-ID: <3A2F3A7B.D6D32B3C@pspl.co.in> Date: Thu, 07 Dec 2000 12:51:31 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: C/C++ Flame war Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/35 X-Sequence-Number: 953 Hi all While browsing linuxtoday, I came across this flame war... Quiet interesting but bit lengthy...Especially few comments are really good.. http://www.advogato.org/article/207.html Bye Shridhar From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 08:07:06 2000 Received: from unknown-230-101.pilot.net (unknown-230-101.pilot.net [206.98.230.101]) by www.aunet.org (Postfix) with ESMTP id 144334A047 for ; Wed, 6 Dec 2000 20:01:30 -0800 (PST) Received: from unknown-239-164.pilot.net (unknown-239-164.pilot.net [206.189.239.164]) by unknown-230-101.pilot.net with ESMTP id XAA18698 for ; Wed, 6 Dec 2000 23:01:20 -0500 (EST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-164.pilot.net with ESMTP id XAA21269 for ; Wed, 6 Dec 2000 23:01:19 -0500 (EST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Thu, 7 Dec 2000 09:35:10 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E030EDE0E@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Files Date: Thu, 7 Dec 2000 09:35:15 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/36 X-Sequence-Number: 954 Hi Ramesh, Your arg is not wholly correct , but I like your approach. The fork thing will work even on Windows but the file thing will not.So your reasoning is applicable to Unix. Moreover, when you fork, the variable in question [i] has two separate existences in two separate process spaces [stack/data area depends on the block]. /however the file has only one existence in the physical world on the storage device. The file pointers will be pointinf to the same physical object. So in the latter case, it is more likely that you will run into race conditions/synchronization errors, data obsolescence problems etc. Regards, Shourya _______________________________________________ Shourya Sarcar || Global Software Platforms gemedicalsystems.com || ge.com || elfun.org 5263121 xt 362 || shourya@shourya.com ~-----Original Message----- ~From: Ramesh.S [mailto:ramesh_tnj@yahoo.com] ~Sent: Wednesday, December 06, 2000 9:26 AM ~To: linux-india-programmers@lists.linux-india.org ~Subject: Re: [LIP] Files ~ ~ ~yeah... it is possible.. i found a lot of replies like this.. to tell ~u the actual reason, it is like two processes accessing the same ~memory.. ~ ~suppose think of the followin gblock of code in the same program ~ ~int i=5; ~fork(); ~i++; ~printf("%d",i); ~ ~here in the above code after fork a seperate copy of the saem memory ~is inherited from the parent process. therefore every process will ~have its own resource copy. to be more clear... ~every process will have its own process table entry and file tabel ~entry. so same file can be accessed by two different processes at the ~same time. even i am also a begineer.. i am not sure with my answer. ~if anybody finds and misconception here kindly correct me... ~ ~Ramesh. ~ ~ ~ ~----- Original Message ----- ~From: Harpreet Singh (RBIN/DCA-NMP) ~To: linux-india-programmers@lists.linux-india.org ~Sent: Monday, December 04, 2000 7:02 PM ~Subject: [LIP] Files ~ ~ ~Hi, ~ ~When a file is opened for reading by one program, can the same file be ~opened for reading by another program at the same time. ~And when this file is opened for reading by one program, can the same ~file ~be opened for writing or updation by another program at the same time. ~ ~From : ~Harpreet Singh ~Software Eng. ~(DCA/NMP) ~Robert Bosch India Pvt. Limited. ~123, Industrial Layout, ~Hosur Road, Koramangala, ~Bangalore, ~Karnataka, ~India. ~Ph : 508-1145 ~ ~ ~ ~ ~ ~--------------------------------------------- ~The mailing list archives are available at ~http://lists.linux-india.org/cgi-bin/wilma/LIP ~ ~ ~__________________________________________________ ~Do You Yahoo!? ~Talk to your friends online with Yahoo! Messenger. ~http://im.yahoo.com ~ ~--------------------------------------------- ~An alpha version of a web based tool to manage ~your subscription with this mailing list is at ~http://lists.linux-india.org/cgi-bin/mj_wwwusr ~ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 08:09:32 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id C408149F1E for ; Thu, 7 Dec 2000 07:37:55 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id VAA03839 for ; Thu, 7 Dec 2000 21:14:48 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA236D for ; Thu, 7 Dec 2000 21:05:43 +0530 Message-ID: <3A2FB277.79AB7494@wipro.com> Date: Thu, 07 Dec 2000 21:23:27 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 Cc: linux-india-programmers@lists.linux-india.org Subject: Some memory reallocation in kernel mode References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/37 X-Sequence-Number: 955 Hi all, I have a situation where I have allocated a memory chunk to request some data. Ultimately, I end up getting much lesser data than I had requested for. Now I want to just retain the got data and free the unused chunk from my earlier allocated chunk. How do I go about doing this? Any pointer or suggestion are welcome. TIA bye ketan one thing i forgot to mention , this is in kernel mode. My code is in kernel mode , so do inform accordingly. From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 10:06:40 2000 Received: from hanuman.aukbc.org (unknown [203.197.142.200]) by www.aunet.org (Postfix) with ESMTP id 8907A4A111 for ; Wed, 6 Dec 2000 22:53:03 -0800 (PST) Received: from localhost (IDENT:mksarav@localhost [127.0.0.1]) by hanuman.aukbc.org (8.9.3/8.9.3) with ESMTP id MAA04212; Thu, 7 Dec 2000 12:32:10 +0530 Date: Thu, 7 Dec 2000 12:32:10 +0530 (IST) From: M K Saravanan To: sreeji_k@yahoo.com Cc: linux-india-programmers@lists.linux-india.org Subject: Re: howto pull the gui..... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/38 X-Sequence-Number: 956 On Wed, 6 Dec 2000, Sreeji K Das wrote: > For example, if you have machine A, where you are running an application > (say netscape) & you want the program to display the output (the GUI) on > machine B, then you do this: > Assume (A = 10.10.10.1 & B = 10.10.10.2) > > Run X Server on B (as X :1) > Login to A > Give the command export DISPLAY=10.10.10.2:1.0 > Run netscape in A suppose to run "xhost " in machine B before the executing the export command in A. correct me if i am wrong. -- mks -- From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 10:36:12 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 39A7249F63 for ; Wed, 6 Dec 2000 20:22:49 -0800 (PST) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id eB74MqA22834 for ; Thu, 7 Dec 2000 04:22:52 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8020.fe.internet.bosch.com(virus-out2.fe.internet.bosch.de 10.4.4.20) by gwa2.fe.bosch.de via smap (V2.1) id xma022728; Thu, 7 Dec 00 04:22:19 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id ; Thu, 7 Dec 2000 05:22:11 +0100 Message-ID: From: "Harpreet Singh (RBIN/DCA-NMP)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Files Date: Thu, 7 Dec 2000 05:22:05 +0100 Importance: high X-Priority: 1 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain X-Archive-Number: 200012/39 X-Sequence-Number: 957 Ok, so two processes can access the same file at the same time. If both open it for reading there is no problem. But If one opens it for reading and one for writing, won't there be a problem. Also is it possible to lock a file. In the sense that if it has been opened it cannot be used by another program or process. > -----Original Message----- > From: Ramesh.S [SMTP:ramesh_tnj@yahoo.com] > Sent: Wednesday, December 06, 2000 9:26 AM > To: linux-india-programmers@lists.linux-india.org > Subject: Re: [LIP] Files > > yeah... it is possible.. i found a lot of replies like this.. to tell > u the actual reason, it is like two processes accessing the same > memory.. > > suppose think of the followin gblock of code in the same program > > int i=5; > fork(); > i++; > printf("%d",i); > > here in the above code after fork a seperate copy of the saem memory > is inherited from the parent process. therefore every process will > have its own resource copy. to be more clear... > every process will have its own process table entry and file tabel > entry. so same file can be accessed by two different processes at the > same time. even i am also a begineer.. i am not sure with my answer. > if anybody finds and misconception here kindly correct me... > > Ramesh. > > > > ----- Original Message ----- > From: Harpreet Singh (RBIN/DCA-NMP) > To: linux-india-programmers@lists.linux-india.org > Sent: Monday, December 04, 2000 7:02 PM > Subject: [LIP] Files > > > Hi, > > When a file is opened for reading by one program, can the same file be > opened for reading by another program at the same time. > And when this file is opened for reading by one program, can the same > file > be opened for writing or updation by another program at the same time. > > From : > Harpreet Singh > Software Eng. > (DCA/NMP) > Robert Bosch India Pvt. Limited. > 123, Industrial Layout, > Hosur Road, Koramangala, > Bangalore, > Karnataka, > India. > Ph : 508-1145 > > > > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP > > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 11:12:02 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 8AF874A114 for ; Wed, 6 Dec 2000 22:58:29 -0800 (PST) Received: from pspl.co.in (singrauli.intranet.pspl.co.in [192.168.2.220]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eB774wH30751 for ; Thu, 7 Dec 2000 12:34:58 +0530 Message-ID: <3A2F3692.6B4E7E9F@pspl.co.in> Date: Thu, 07 Dec 2000 12:34:50 +0530 From: Jaidev Karanth X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Solaris - syslog prob Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/40 X-Sequence-Number: 958 Hi there, Sorry for asking a slightly unrelated question. I wanted to find out how to log only a fixed priority to a certain file. For example if the syslog.conf contains the following entries local0.debug /location1 local0.notice /location2 local0.err /location3 A syslog call of priority ERR is logged in all the 3 locations. I wanted to find out how to log ERR only to /location3 In Linux, this can be done by having the following lines in syslog.conf local0.=debug /location1 local0.=notice /location2 local0.=err /location3 Thanking you in advance Jaidev From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 17:14:41 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 7EE8649F60 for ; Thu, 7 Dec 2000 17:14:28 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id RAA25573 for linux-india-programmers@lists.linux-india.org; Thu, 7 Dec 2000 17:12:45 -0800 Date: Thu, 7 Dec 2000 17:12:45 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Files Message-ID: <20001207171245.A25554@sharmas.dhs.org> References: <019301c05f38$7a1779a0$a00aa8c0@ramesh> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <019301c05f38$7a1779a0$a00aa8c0@ramesh>; from ramesh_tnj@yahoo.com on Wed, Dec 06, 2000 at 09:26:08AM +0530 X-Archive-Number: 200012/41 X-Sequence-Number: 960 On Wed, Dec 06, 2000 at 09:26:08AM +0530, Ramesh.S wrote: > here in the above code after fork a seperate copy of the saem memory > is inherited from the parent process. therefore every process will > have its own resource copy. to be more clear... A lot of answers become clear if you understand the meaning of a "file". In UNIX, there are three distinct concepts: 1. file descriptor 2. file table 3. body of the file (1) is just a opaque handle. It's meaning is process specific. (2) is normally not shared. But will be shared if you create a new process using clone and CLONE_FD false. (3) is globally shared. This is enforced by a data structure called the vnode cache. Whether you do mmap/write or whatever operation to read/write the file, at any point in time, the operating system returns the same answer to everyone who asks the question "what is the value of byte 2034 in file foo". Note that sharing could be prevented using various flags at open(2) time or mmap(2) time. Of course, you can serialize access to files using file locking APIs. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 17:24:59 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 8D94E49F37 for ; Thu, 7 Dec 2000 17:24:47 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id RAA25610 for linux-india-programmers@lists.linux-india.org; Thu, 7 Dec 2000 17:23:04 -0800 Date: Thu, 7 Dec 2000 17:23:04 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: how to set the HTTP request header Message-ID: <20001207172304.C25554@sharmas.dhs.org> References: <3A4128FD@MailAndNews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A4128FD@MailAndNews.com>; from kameshj@MailAndNews.com on Tue, Dec 05, 2000 at 11:53:32AM -0500 X-Archive-Number: 200012/42 X-Sequence-Number: 961 On Tue, Dec 05, 2000 at 11:53:32AM -0500, kamesh jayachandran wrote: > hai all, > I don't know whether it is related to linux or not.But a general programming > doubt.I am writing the client in java which communicates with the web server > using HTTP protocol.Actually I am able to read the cookies that the server > sends.My java client has to send back the cookie it recieves from the server > for each and every transaction by setting the HTTP request header any class or > method available in java to accomplish this.I use URLConnection but the > getOutputStream sends the data as "Entity body" of the request.Any other way > by which i can accomplish the setting of custom headers. http://martin.nobilitas.com/java/cookies.html -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 17:25: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 8885749F60 for ; Thu, 7 Dec 2000 17:16:24 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id RAA25598 for linux-india-programmers@lists.linux-india.org; Thu, 7 Dec 2000 17:14:42 -0800 Date: Thu, 7 Dec 2000 17:14:41 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Some memory reallocation in kernel mode Message-ID: <20001207171441.B25554@sharmas.dhs.org> References: <3A2FB277.79AB7494@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A2FB277.79AB7494@wipro.com>; from ketan.mehta@wipro.com on Thu, Dec 07, 2000 at 09:23:27PM +0530 X-Archive-Number: 200012/43 X-Sequence-Number: 962 On Thu, Dec 07, 2000 at 09:23:27PM +0530, Ketan Mehta wrote: > > Hi all, > I have a situation where I have allocated a memory chunk to > request > some data. Ultimately, I end up getting much lesser data than I had > requested for. Now I want to just retain the got data and free the > unused chunk from my earlier allocated chunk. How do I go about doing > this? > Any pointer or suggestion are welcome. man realloc -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 17:40:32 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 4149149F48 for ; Thu, 7 Dec 2000 17:26:00 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id RAA25626 for linux-india-programmers@lists.linux-india.org; Thu, 7 Dec 2000 17:24:17 -0800 Date: Thu, 7 Dec 2000 17:24:17 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: urgent .How do i get more threads in MySQL server Message-ID: <20001207172417.D25554@sharmas.dhs.org> References: <200012061843.AAA14721@ns09.egujarat.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200012061843.AAA14721@ns09.egujarat.net>; from abhishek21@egujarat.net on Thu, Dec 07, 2000 at 12:13:41AM +0530 X-Archive-Number: 200012/44 X-Sequence-Number: 963 On Thu, Dec 07, 2000 at 12:13:41AM +0530, abhishek wrote: > hello everybody > > My problem is my MySQL server only allows 100 threads to > connect to it. After 100 threads i get error message "Lost connection > to MySQL server during query". I have read some doumentation for it > it says to Increase PTHREAD_THREADS_MAX in > 'sysdeps/unix/sysv/linux/bits/local_lim.h' to 4096 and decrease > STACK_SIZE in `internals.h' to 256 KB. > But i found local_lim.h at "/usr/include/bits/local_lim.h" and > "/usr/i386-glibc21-linux/include/bits/local_lim.h" andBut i found the > value of PTHREAD_THREADS_MAX = 1024 . and i don't found internals.h > I am running MySQL-3.22.25-1 on redhat 7.0 You need to recompile glibc using those values. Get hold of the CD that contains SRPMs. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 17:40:49 2000 Received: from gondwana.ecr.mu.oz.au (gondwana.ecr.mu.oz.au [128.250.70.62]) by www.aunet.org (Postfix) with ESMTP id AD7E449F60 for ; Thu, 7 Dec 2000 17:40:13 -0800 (PST) Received: from gromit.ecr.mu.oz.au (gromit.ecr.mu.oz.au [128.250.61.61]) by gondwana.ecr.mu.oz.au (8.11.0/8.9.3) with ESMTP id eB81e3o02716 for ; Fri, 8 Dec 2000 12:40:03 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id eB81e3r2386624 for linux-india-programmers@lists.linux-india.org; Fri, 8 Dec 2000 12:40:03 +1100 (EDT) Date: Fri, 8 Dec 2000 12:40:03 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: howto pull the gui..... Message-ID: <20001208124003.A2402283@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from mksarav@mail.mitindia.edu on Thu, Dec 07, 2000 at 12:32:10PM +0530 X-Archive-Number: 200012/45 X-Sequence-Number: 964 M K Saravanan wrote (mksarav@mail.mitindia.edu): > > For example, if you have machine A, where you are running an application > > (say netscape) & you want the program to display the output (the GUI) on > > machine B, then you do this: > > Assume (A = 10.10.10.1 & B = 10.10.10.2) > > > > Run X Server on B (as X :1) > > Login to A > > Give the command export DISPLAY=10.10.10.2:1.0 > > Run netscape in A > Here is how I start netscape on a remote machine (queeg) from any local terminal (all these commands are on the local machine) xhost +queeg (do this only once) rsh queeg export DISPLAY=$DISPLAY \; /usr/local/bin/netscape A short rant about xauthority and xhost - The xauth command creates/manage the MIT magic cookie which is used to authorize connections to your display. The magic cookie is stored in ~/.Xauthority which is readable only by your programs. If your home dir is mounted on both machines, you do not need to do the xhost command as the remote programs have the correct (same) magic cookie as the X server. By doing an xhost+ command you are disabling access control to your display . This implies that _any_ client on queeg can connect to my local display and can spy my keystrokes or any other XEvent. Solutions - The `/usr/bin/X11/xon' shell script manages the cookies and runs your command on the remote host. But the cookies are not encrypted during transit to the other host (someone snooping your network can capture the cookie). Note: I just realised that the linux version of xon does not do fiddle with xauth, if anyone is interested I can post a (homemade) robust xon script. The ultimate solution is to use ssh and securely forward connections through an ssh tunnel . ssh queeg -X -n /usr/local/bin/xemacs & runs emacs on queeg securely. Using ssh is also dangerous because root user on queeg can still spy on my local X server. Well I guess that this cannot be avoided - if you open an X connection (anyhow) to an trusted remote machine you are vulnerable :-/ - Raja PS: I'm sorry that this is a long post, but I felt that there were several issues which were not addressed by any previous posts. From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 20:38:20 2000 Received: from hwembmn2601.honeywell.com (hwembmn2601.honeywell.com [129.30.244.21]) by www.aunet.org (Postfix) with ESMTP id 4BDF249F60 for ; Thu, 7 Dec 2000 20:06:12 -0800 (PST) Received: by HWEMNMN2601 with Internet Mail Service (5.5.2650.21) id ; Thu, 7 Dec 2000 22:06:40 -0600 Message-ID: From: "Kondaiah (IE10)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Files Date: Thu, 7 Dec 2000 22:05:08 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200012/46 X-Sequence-Number: 965 THere won't be nay problem because the file descriptor won't shared by different process. The made public only if u completed ur work. Still you can lock the file using flock(fd,flgas) in exclusive mode, so that you can avoid race conditions. Thanks, Kondaiah Dasari > -----Original Message----- > From: Harpreet Singh (RBIN/DCA-NMP) [SMTP:Harpreet.Singh@in.bosch.com] > Sent: Thursday, December 07, 2000 9:52 AM > To: linux-india-programmers@lists.linux-india.org > Subject: RE: [LIP] Files > Importance: High > > Ok, so two processes can access the same file at the same time. > If both open it for reading there is no problem. But If one opens it for > reading > and one for writing, won't there be a problem. > > Also is it possible to lock a file. In the sense that if it has been > opened > it cannot be used by another > program or process. > > > -----Original Message----- > > From: Ramesh.S [SMTP:ramesh_tnj@yahoo.com] > > Sent: Wednesday, December 06, 2000 9:26 AM > > To: linux-india-programmers@lists.linux-india.org > > Subject: Re: [LIP] Files > > > > yeah... it is possible.. i found a lot of replies like this.. to tell > > u the actual reason, it is like two processes accessing the same > > memory.. > > > > suppose think of the followin gblock of code in the same program > > > > int i=5; > > fork(); > > i++; > > printf("%d",i); > > > > here in the above code after fork a seperate copy of the saem memory > > is inherited from the parent process. therefore every process will > > have its own resource copy. to be more clear... > > every process will have its own process table entry and file tabel > > entry. so same file can be accessed by two different processes at the > > same time. even i am also a begineer.. i am not sure with my answer. > > if anybody finds and misconception here kindly correct me... > > > > Ramesh. > > > > > > > > ----- Original Message ----- > > From: Harpreet Singh (RBIN/DCA-NMP) > > To: linux-india-programmers@lists.linux-india.org > > Sent: Monday, December 04, 2000 7:02 PM > > Subject: [LIP] Files > > > > > > Hi, > > > > When a file is opened for reading by one program, can the same file be > > opened for reading by another program at the same time. > > And when this file is opened for reading by one program, can the same > > file > > be opened for writing or updation by another program at the same time. > > > > From : > > Harpreet Singh > > Software Eng. > > (DCA/NMP) > > Robert Bosch India Pvt. Limited. > > 123, Industrial Layout, > > Hosur Road, Koramangala, > > Bangalore, > > Karnataka, > > India. > > Ph : 508-1145 > > > > > > > > > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > > > > > __________________________________________________ > > Do You Yahoo!? > > Talk to your friends online with Yahoo! Messenger. > > http://im.yahoo.com > > > > --------------------------------------------- > > An alpha version of a web based tool to manage > > your subscription with this mailing list is at > > http://lists.linux-india.org/cgi-bin/mj_wwwusr > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 20:39:46 2000 Received: from mnmail1.HONEYWELL.COM (mnmail1.honeywell.com [129.30.244.30]) by www.aunet.org (Postfix) with ESMTP id 7DB7249F60 for ; Thu, 7 Dec 2000 19:58:25 -0800 (PST) Received: from ie10-sahara.hiso.honeywell.com ([204.220.169.46]) by mnmail1.HONEYWELL.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id XXKZ7KDJ; Thu, 7 Dec 2000 21:58:31 -0600 Received: by ie10-sahara.hiso.honeywell.com with Internet Mail Service (5.5.2650.21) id ; Fri, 8 Dec 2000 09:27:31 +0530 Message-ID: From: "Kondaiah (IE10)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Some memory reallocation in kernel mode Date: Fri, 8 Dec 2000 09:27:17 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200012/47 X-Sequence-Number: 966 As for as my understanding of the question: If u know how much data you got actually then by using kmalloc allocate that much amount of memory and copy the original data chunk to the allocated memory and free the original memory area.Correct if I am wrong.. Kondaiah dasari > -----Original Message----- > From: Ketan Mehta [SMTP:ketan.mehta@wipro.com] > Sent: Thursday, December 07, 2000 9:23 PM > Cc: linux-india-programmers@lists.linux-india.org > Subject: [LIP] Some memory reallocation in kernel mode > > > Hi all, > I have a situation where I have allocated a memory chunk to > request > some data. Ultimately, I end up getting much lesser data than I had > requested for. Now I want to just retain the got data and free the > unused chunk from my earlier allocated chunk. How do I go about doing > this? > Any pointer or suggestion are welcome. > TIA > bye > ketan > > one thing i forgot to mention , this is in kernel mode. My code > is in > kernel mode , so do inform accordingly. > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 21:00:20 2000 Received: from mnmail1.HONEYWELL.COM (mnmail1.honeywell.com [129.30.244.30]) by www.aunet.org (Postfix) with ESMTP id 6FFD849F48 for ; Thu, 7 Dec 2000 20:17:35 -0800 (PST) Received: from ie10-sahara.hiso.honeywell.com ([204.220.169.46]) by mnmail1.HONEYWELL.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id XXKZ7KGN; Thu, 7 Dec 2000 22:17:42 -0600 Received: by ie10-sahara.hiso.honeywell.com with Internet Mail Service (5.5.2650.21) id ; Fri, 8 Dec 2000 09:46:42 +0530 Message-ID: From: "Kondaiah (IE10)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Waiting on multiple semaphores Date: Fri, 8 Dec 2000 09:46:32 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200012/48 X-Sequence-Number: 967 It is possible because assume that a binarytree is there?? we can one semaphore for root node and one node each for other nodes in the tree. If one thread wants access any node in the tree, first of all it has to get the access to root of the tree and it has to get the corresponding semaphore(mutex) to the node.. In this way we can protect the data from accident corruption. Thanks, Kondaiah Dasari > -----Original Message----- > From: vnair@hss.hns.com [SMTP:vnair@hss.hns.com] > Sent: Thursday, December 07, 2000 3:44 PM > To: linux-india-programmers@lists.linux-india.org > Subject: [LIP] Waiting on multiple semaphores > > > > Hello list, > > As the subject of the mail says, i wanna wait on more than one semaphores > in a > same thread. Can this be implemented somehow... something like waiting on > select > with multiple fds. > > TIA > > > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 21:22:52 2000 Received: from unknown-230-101.pilot.net (unknown-230-101.pilot.net [206.98.230.101]) by www.aunet.org (Postfix) with ESMTP id 4394D4A015 for ; Thu, 7 Dec 2000 21:22:39 -0800 (PST) Received: from unknown-239-164.pilot.net (unknown-239-164.pilot.net [206.189.239.164]) by unknown-230-101.pilot.net with ESMTP id AAA23659 for ; Fri, 8 Dec 2000 00:22:32 -0500 (EST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-164.pilot.net with ESMTP id AAA24650 for ; Fri, 8 Dec 2000 00:22:31 -0500 (EST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Fri, 8 Dec 2000 10:56:17 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E03153BC8@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Some memory reallocation. Date: Fri, 8 Dec 2000 10:56:24 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/49 X-Sequence-Number: 968 there are many options. you cold write an Allocator Object.. which is pretty complex. For a patch, you could work on these notes. Allocate 20 bytes. (say) Data returned is 4 bytes. (much less than 20) Frshly Allocate 4 bytes from the heap.. now taht you know your returned data size ! Copy the data into these newly allocated 4 bytes. Destroy / Deallocate the original heap of 20 bytes. Slightly inefficient, but very simple. Regards, Shourya _______________________________________________ Shourya Sarcar || Global Software Platforms gemedicalsystems.com || ge.com || elfun.org 5263121 xt 362 || shourya@shourya.com ~-----Original Message----- ~From: Ketan Mehta [mailto:ketan.mehta@wipro.com] ~Sent: Thursday, December 07, 2000 5:09 PM ~To: linux-india-programmers@lists.linux-india.org; ~nitant.kulkarni@wipro.com ~Subject: [LIP] Some memory reallocation. ~ ~ ~Hi all, ~ I have a situation where I have allocated a memory ~chunk to request ~some data. Ultimately, I end up getting much lesser data than I had ~requested for. Now I want to just retain the got data and free the ~unused chunk from my earlier allocated chunk. How do I go about doing ~this? ~ Any pointer or suggestion are welcome. ~ TIA ~bye ~ketan ~ ~-- ~|------------------------------------------------------------| ~|It is better to keep your mouth shut and be thought a fool, | ~| than to open it and remove all doubt. | ~|------------------------------------------------------------| ~|Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | ~|ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| ~|------------------------------------------------------------| ~ ~--------------------------------------------- ~Find out more about this and other Linux India ~mailing lists at http://lists.linux-india.org/ ~ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 22:47:57 2000 Received: from unknown-230-101.pilot.net (unknown-230-101.pilot.net [206.98.230.101]) by www.aunet.org (Postfix) with ESMTP id CD44E4A00D for ; Thu, 7 Dec 2000 21:25:25 -0800 (PST) Received: from unknown-239-164.pilot.net (unknown-239-164.pilot.net [206.189.239.164]) by unknown-230-101.pilot.net with ESMTP id AAA24302 for ; Fri, 8 Dec 2000 00:25:17 -0500 (EST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-164.pilot.net with ESMTP id AAA25700 for ; Fri, 8 Dec 2000 00:25:15 -0500 (EST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Fri, 8 Dec 2000 10:59:04 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E03153BD9@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Some memory reallocation in kernel mode Date: Fri, 8 Dec 2000 10:59:12 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/50 X-Sequence-Number: 969 ~ ~ one thing i forgot to mention , this is in kernel mode. My code ~is in ~ kernel mode , so do inform accordingly. hi ketan ! which kernel ? Linux ? Not very obvious, even though we are on a Linux list.. because a lot many of your earlier letters would betray that you are on SGI.. so are you on SGI/IRIX or SGI/Linux ?? In any case, check out kmalloc. Regards, Shourya _______________________________________________ Shourya Sarcar || Global Software Platforms gemedicalsystems.com || ge.com || elfun.org 5263121 xt 362 || shourya@shourya.com From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 22:48:13 2000 Received: from mail.cse.iitk.ac.in (unknown [210.212.54.4]) by www.aunet.org (Postfix) with ESMTP id 2EEBA49FF1 for ; Thu, 7 Dec 2000 21:56:15 -0800 (PST) Received: from cseultra2.cse.iitk.ac.in (cseultra2 [172.31.16.2]) by mail.cse.iitk.ac.in (8.9.3/8.9.3) with ESMTP id LAA07349 for ; Fri, 8 Dec 2000 11:29:52 +0530 Received: from csews11.cse.iitk.ac.in (IDENT:samba@csews11.cse.iitk.ac.in [172.31.18.11]) by cseultra2.cse.iitk.ac.in (8.10.1/8.10.1) with ESMTP id eB85pNO12692 for ; Fri, 8 Dec 2000 11:21:23 +0530 (IST) Date: Fri, 8 Dec 2000 11:20:38 +0530 (IST) From: Sambasiva Rao B To: linux-india-programmers@lists.linux-india.org Subject: RE: Some memory reallocation in kernel mode In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/51 X-Sequence-Number: 970 Hi kondaiah, It is realloc. I don't know about any kalloc . btw, Are u from Bapatla Engg College,AP? samba On Fri, 8 Dec 2000, Kondaiah (IE10) wrote: > As for as my understanding of the question: If u know how much data you got > actually then by using kmalloc allocate that much > amount of memory and copy the original data chunk to the allocated memory > and free the original memory area.Correct if I am wrong.. > > Kondaiah dasari > > > > > -----Original Message----- > > From: Ketan Mehta [SMTP:ketan.mehta@wipro.com] > > Sent: Thursday, December 07, 2000 9:23 PM > > Cc: linux-india-programmers@lists.linux-india.org > > Subject: [LIP] Some memory reallocation in kernel mode > > > > > > Hi all, > > I have a situation where I have allocated a memory chunk to > > request > > some data. Ultimately, I end up getting much lesser data than I had > > requested for. Now I want to just retain the got data and free the > > unused chunk from my earlier allocated chunk. How do I go about doing > > this? > > Any pointer or suggestion are welcome. > > TIA > > bye > > ketan > > > > one thing i forgot to mention , this is in kernel mode. My code > > is in > > kernel mode , so do inform accordingly. > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP > From linux-india-programmers-owner@lists.linux-india.org Thu Dec 7 22:49:31 2000 Received: from ns09.egujarat.net (unknown [63.68.249.34]) by www.aunet.org (Postfix) with ESMTP id A6A244A021 for ; Thu, 7 Dec 2000 22:21:30 -0800 (PST) Received: from 63.125.98.45 (IDENT:webmail@[63.125.98.45]) by ns09.egujarat.net (8.9.3/8.9.3) with SMTP id LAA13278 for ; Fri, 8 Dec 2000 11:06:54 +0530 Date: Fri, 8 Dec 2000 11:06:54 +0530 Message-Id: <200012080536.LAA13278@ns09.egujarat.net> From: "abhishek" To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: urgent .How do i get more threads in MySQL server X-Archive-Number: 200012/51 X-Sequence-Number: 971 If i run my MySQL server with "safe_mysqld --set-variables max_connections = 1000 " it allows up 1000 connections with out recompiling glibc. But i think i have to recompile my MySQL and glibc for better performance. >-------- ORIGINAL MESSAGE BELOW -------- >On Thu, Dec 07, 2000 at 12:13:41AM +0530, abhishek wrote: >> hello everybody >> >> My problem is my MySQL server only allows 100 threads to >> connect to it. After 100 threads i get error message "Lost connection >> to MySQL server during query". I have read some doumentation for it >> it says to Increase PTHREAD_THREADS_MAX in >> 'sysdeps/unix/sysv/linux/bits/local_lim.h' to 4096 and decrease >> STACK_SIZE in `internals.h' to 256 KB. >> But i found local_lim.h at "/usr/include/bits/local_lim.h" and >> "/usr/i386-glibc21-linux/include/bits/local_lim.h" andBut i found the >> value of PTHREAD_THREADS_MAX = 1024 . and i don't found internals.h >> I am running MySQL-3.22.25-1 on redhat 7.0 > >You need to recompile glibc using those values. Get hold of the CD >that contains SRPMs. > > -Arun > >--------------------------------------------- >The mailing list archives are available at >http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Fri Dec 8 01:06:06 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 56E574A013 for ; Fri, 8 Dec 2000 00:25:44 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id OAA14693 for ; Fri, 8 Dec 2000 14:02:33 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA67F3 for ; Fri, 8 Dec 2000 13:53:08 +0530 Message-ID: <3A309E8A.C251E337@wipro.com> Date: Fri, 08 Dec 2000 14:10:42 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Some memory reallocation in kernel mode References: <1196B5CB33DED311A73700508B6FEB1E03153BD9@ban03xbindge.geind.ge.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/52 X-Sequence-Number: 972 hi , this is in linux , some device drive ... here there is nothint to do with sgi box. kmalloc is allocation. what i want to know is - what realloc does in user space, is there something like that in kernel space. or i have to do manually. see my original post for query. > which kernel ? Linux ? Not very obvious, even though we are on a > Linux list.. because a lot many of your earlier letters would betray that > you are on SGI.. so are you on SGI/IRIX or SGI/Linux ?? > > In any case, check out kmalloc. > -- |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Fri Dec 8 01:06:21 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 418CC4A019 for ; Fri, 8 Dec 2000 00:29:29 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id OAA15817 for ; Fri, 8 Dec 2000 14:06:21 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA6A7A for ; Fri, 8 Dec 2000 13:56:48 +0530 Message-ID: <3A309F39.2F6CEED@wipro.com> Date: Fri, 08 Dec 2000 14:13:37 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Some memory reallocation in kernel mode References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/53 X-Sequence-Number: 973 hi, what u suggest is what is done by realloc. that is what my understanding is . since i don't have something like realloc in kernel mode, i have to give some max chunk , copy data , then what is there , accordiing to that create new chunk and copy to that and free initial one... but it takes time. So i want to know , how i can recover some unused memory chunk allocated by kmalloc. whether it can be done or not. bye ketan "Kondaiah (IE10)" wrote: > > As for as my understanding of the question: If u know how much data you got > actually then by using kmalloc allocate that much > amount of memory and copy the original data chunk to the allocated memory > and free the original memory area.Correct if I am wrong.. > > Kondaiah dasari > > Subject: [LIP] Some memory reallocation in kernel mode > > > > > > Hi all, > > I have a situation where I have allocated a memory chunk to > > request > > some data. Ultimately, I end up getting much lesser data than I had > > requested for. Now I want to just retain the got data and free the > > unused chunk from my earlier allocated chunk. How do I go about doing > > this? > > Any pointer or suggestion are welcome. > > TIA > > bye > > ketan > > > > one thing i forgot to mention , this is in kernel mode. My code > > is in > > kernel mode , so do inform accordingly. |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Fri Dec 8 02:00:48 2000 Received: from srv130.globeid.com (globeid-130.26.rev.fr.colt.net [213.41.26.130]) by www.aunet.org (Postfix) with ESMTP id D39F74A00B for ; Fri, 8 Dec 2000 01:30:53 -0800 (PST) Received: from (smtpd@localhost) by srv130.globeid.com (8.9.3/jtpda-5.3.3) id KAA21399 for ; Fri, 8 Dec 2000 10:28:59 +0100 Received: from exchange.globeid.com(213.41.26.67), claiming to be "exchange.intranet.globeid.com" via SMTP by srv130.globeid.com, id smtpd65D2BP; Fri Dec 8 10:28:51 2000 Received: from chet ([10.70.8.14]) by exchange.intranet.globeid.com with Microsoft SMTPSVC(5.0.2195.1600); Fri, 8 Dec 2000 10:30:38 +0100 Message-ID: <087201c060f9$9f42eb20$0e08460a@paris.globeid.com> From: "Ouriel Grynszpan" To: References: <3A2F3692.6B4E7E9F@pspl.co.in> Subject: Re: Solaris - syslog prob Date: Fri, 8 Dec 2000 10:31:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2919.6600 X-OriginalArrivalTime: 08 Dec 2000 09:30:38.0227 (UTC) FILETIME=[86469630:01C060F9] X-Archive-Number: 200012/54 X-Sequence-Number: 974 As far as I know this feature of Linux does not exist on Solaris (at least on version 2.6 and 8). Solaris seems more rigorous about its implementation of syslog: the configuration file does not allow to divert from the standard severity level hierarchy. Ouriel -- Ouriel Grynszpan Software Engineer GlobeID Tél. + 33 (0)1 56 54 19 58 Fax + 33 (0)1 56 54 19 19 Email: ouriel@globeid.com Web site : www.globeid.com ----- Original Message ----- From: "Jaidev Karanth" To: Sent: Thursday, December 07, 2000 8:04 AM Subject: [LIP] Solaris - syslog prob > Hi there, > Sorry for asking a slightly unrelated question. > I wanted to find out how to log only a fixed priority to a certain file. > > For example if the syslog.conf contains the following entries > > local0.debug /location1 > local0.notice /location2 > local0.err /location3 > > A syslog call of priority ERR is logged in all the 3 locations. > I wanted to find out how to log ERR only to /location3 > > In Linux, this can be done by having the following lines in syslog.conf > > local0.=debug /location1 > local0.=notice /location2 > local0.=err /location3 > > Thanking you in advance > Jaidev > > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. From linux-india-programmers-owner@lists.linux-india.org Fri Dec 8 03:23:05 2000 Received: from unknown-230-101.pilot.net (unknown-230-101.pilot.net [206.98.230.101]) by www.aunet.org (Postfix) with ESMTP id 641824A00E; Fri, 8 Dec 2000 03:20:05 -0800 (PST) Received: from unknown-239-164.pilot.net (unknown-239-164.pilot.net [206.189.239.164]) by unknown-230-101.pilot.net with ESMTP id GAA04749; Fri, 8 Dec 2000 06:19:57 -0500 (EST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-164.pilot.net with ESMTP id GAA06786; Fri, 8 Dec 2000 06:19:56 -0500 (EST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Fri, 8 Dec 2000 16:53:45 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0318F0E0@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: LIP , LIG Subject: if your editor is joe.. Date: Fri, 8 Dec 2000 16:53:52 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/55 X-Sequence-Number: 975 joe happens to be my fave texteditor on Linux. You can flame me, will be streamed to bit-bucket :-) _______________________________________________ Shourya Sarcar || Global Software Platforms gemedicalsystems.com || ge.com || elfun.org 5263121 xt 362 || shourya@shourya.com From linux-india-programmers-owner@lists.linux-india.org Fri Dec 8 07:44:54 2000 Received: from atlrel2.hp.com (atlrel2.hp.com [156.153.255.202]) by www.aunet.org (Postfix) with ESMTP id 37D0F49F45 for ; Fri, 8 Dec 2000 06:30:04 -0800 (PST) Received: from green.india.hp.com (green.india.hp.com [15.10.43.186]) by atlrel2.hp.com (Postfix) with ESMTP id 33844E10 for ; Fri, 8 Dec 2000 09:04:34 -0500 (EST) Received: from ebnt138 (ebnt138.india.hp.com [15.76.97.138]) by green.india.hp.com with SMTP (8.8.6 (PHNE_17190)/8.8.6 SMKit7.02) id TAA26492 for ; Fri, 8 Dec 2000 19:37:21 +0530 (IST) Reply-To: From: "G.L.Suresh" To: Subject: RE: Some memory reallocation in kernel mode Date: Fri, 8 Dec 2000 19:34:28 +0530 Message-ID: <000001c0611f$c88984f0$8a614c0f@india.hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200012/56 X-Sequence-Number: 976 Hi samba, I guess u have not read the mail completely , that was in kernel mod. GL -----Original Message----- From: linux-india-programmers-owner@lists.linux-india.org [mailto:linux-india-programmers-owner@lists.linux-india.org]On Behalf Of Sambasiva Rao B Sent: Friday, December 08, 2000 11:21 AM To: linux-india-programmers@lists.linux-india.org Subject: RE: [LIP] Some memory reallocation in kernel mode Hi kondaiah, It is realloc. I don't know about any kalloc . btw, Are u from Bapatla Engg College,AP? samba On Fri, 8 Dec 2000, Kondaiah (IE10) wrote: > As for as my understanding of the question: If u know how much data you got > actually then by using kmalloc allocate that much > amount of memory and copy the original data chunk to the allocated memory > and free the original memory area.Correct if I am wrong.. > > Kondaiah dasari > > > > > -----Original Message----- > > From: Ketan Mehta [SMTP:ketan.mehta@wipro.com] > > Sent: Thursday, December 07, 2000 9:23 PM > > Cc: linux-india-programmers@lists.linux-india.org > > Subject: [LIP] Some memory reallocation in kernel mode > > > > > > Hi all, > > I have a situation where I have allocated a memory chunk to > > request > > some data. Ultimately, I end up getting much lesser data than I had > > requested for. Now I want to just retain the got data and free the > > unused chunk from my earlier allocated chunk. How do I go about doing > > this? > > Any pointer or suggestion are welcome. > > TIA > > bye > > ketan > > > > one thing i forgot to mention , this is in kernel mode. My code > > is in > > kernel mode , so do inform accordingly. > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP > --------------------------------------------- LIP is all for free speech. But it was created for a purpose. Violations of the rules of this list will result in stern action. From linux-india-programmers-owner@lists.linux-india.org Fri Dec 8 07:46:32 2000 Received: from venus.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id DCF7E49F49 for ; Fri, 8 Dec 2000 04:33:47 -0800 (PST) Received: from ramakrishna.roc.com (rkp.roc.com [172.16.5.88]) by venus.roc.com (8.9.3/8.9.3) with SMTP id GAA01939; Fri, 8 Dec 2000 06:10:44 +0530 From: "Ch.Rama Krishna Prasad" Reply-To: rkp@intotoinc.com Organization: IntotoInc To: linux-india-programmers@lists.linux-india.org, Ketan Mehta , linux-india-programmers@lists.linux-india.org Subject: Re: Some memory reallocation in kernel mode Date: Fri, 8 Dec 2000 17:58:35 +0530 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <1196B5CB33DED311A73700508B6FEB1E03153BD9@ban03xbindge.geind.ge.com> <3A309E8A.C251E337@wipro.com> In-Reply-To: <3A309E8A.C251E337@wipro.com> MIME-Version: 1.0 Message-Id: <00120817592200.00849@ramakrishna.roc.com> Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200012/57 X-Sequence-Number: 977 Hi I think you can use kfree function to free the memory in kernel level. From Ch.R.K.Prasad On Fri, 08 Dec 2000, Ketan Mehta wrote: > hi , > this is in linux , some device drive ... here there is nothint to do > with sgi box. >=20 > kmalloc is allocation. what i want to know is - what realloc does in > user space, is there something like that in kernel space. or i have to > do manually.=20 >=20 > see my original post for query. >=20 > > which kernel ? Linux ? Not very obvious, even though we are on a > > Linux list.. because a lot many of your earlier letters would betray th= at > > you are on SGI.. so are you on SGI/IRIX or SGI/Linux ?? > >=20 > > In any case, check out kmalloc. > >=20 >=20 > --=20 > |------------------------------------------------------------| > |It is better to keep your mouth shut and be thought a fool, | > | than to open it and remove all doubt. | > |------------------------------------------------------------| > |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | > |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| > |------------------------------------------------------------| >=20 > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Fri Dec 8 10:09:36 2000 Received: from hotmail.com (f158.law4.hotmail.com [216.33.149.158]) by www.aunet.org (Postfix) with ESMTP id AA5954A00B for ; Fri, 8 Dec 2000 09:18:52 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 8 Dec 2000 09:18:43 -0800 Received: from 203.197.174.197 by lw4fd.law4.hotmail.msn.com with HTTP; Fri, 08 Dec 2000 17:18:43 GMT X-Originating-IP: [203.197.174.197] From: "Rajeev Rao" To: linux-india-programmers@lists.linux-india.org Subject: ALT+KEY Date: Fri, 08 Dec 2000 17:18:43 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Dec 2000 17:18:43.0571 (UTC) FILETIME=[EA71FC30:01C0613A] X-Archive-Number: 200012/58 X-Sequence-Number: 978 Hello, Can anyone tell me, how to recognise alt+key, ctrl sequences, and escape sequences using ncurses ? Rajeev _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com From linux-india-programmers-owner@lists.linux-india.org Fri Dec 8 17:03:47 2000 Received: from web4105.mail.yahoo.com (web4105.mail.yahoo.com [216.115.104.125]) by www.aunet.org (Postfix) with SMTP id CEF3D4A013 for ; Fri, 8 Dec 2000 16:43:42 -0800 (PST) Message-ID: <20001209004332.9004.qmail@web4105.mail.yahoo.com> Received: from [63.174.210.2] by web4105.mail.yahoo.com; Fri, 08 Dec 2000 16:43:32 PST Date: Fri, 8 Dec 2000 16:43:32 -0800 (PST) From: Pradeep Hodigere Subject: Pointers to Documentation on Networking Aspects of Linux To: LIP MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/59 X-Sequence-Number: 979 Hi All, I'm a web application developer using Perl and am fairly strong with development in C/C++ on Linux.I'm looking towards getting a break in the Networking area. Would appreciate if i could get directions on where to look for documentation for a beginner to Networking.Google returns on "Linux+Networking+Documentation" weren't exactly for beginners. Thanks for you assisstance in advance. Pradeep. __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sat Dec 9 07:39:31 2000 Received: from gondwana.ecr.mu.oz.au (gondwana.ecr.mu.oz.au [128.250.70.62]) by www.aunet.org (Postfix) with ESMTP id 6CE0849F42 for ; Sat, 9 Dec 2000 07:39:25 -0800 (PST) Received: from gromit.ecr.mu.oz.au (gromit.ecr.mu.oz.au [128.250.61.61]) by gondwana.ecr.mu.oz.au (8.11.0/8.9.3) with ESMTP id eB9Fd8Z18493 for ; Sun, 10 Dec 2000 02:39:09 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id eB9Fd8x2289887 for linux-india-programmers@lists.linux-india.org; Sun, 10 Dec 2000 02:39:08 +1100 (EDT) Date: Sun, 10 Dec 2000 02:39:08 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Pointers to Documentation on Networking Aspects of Linux Message-ID: <20001210023907.A2417911@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001209004332.9004.qmail@web4105.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20001209004332.9004.qmail@web4105.mail.yahoo.com>; from p_hodigere@yahoo.com on Fri, Dec 08, 2000 at 04:43:32PM -0800 X-Archive-Number: 200012/60 X-Sequence-Number: 980 Pradeep Hodigere wrote (p_hodigere@yahoo.com): > I'm a web application developer using Perl and am > fairly strong with development in C/C++ on Linux.I'm > looking towards getting a break in the Networking > area. > Would appreciate if i could get directions on > where to look for documentation for a beginner to > Networking. Can you be more specific... are you interested in network programming on linux using c/c++ (whatever)? Or are you just interested in learning how linux networking works? Since you have posted to a programming list, I'll assume the former. Unix/linux is written largely in C. IMHO by writing C programs you could understand the envorinment better than using most other languages, say perl. C exposes many low level details that higher level languages neatly conceal. An excellent C reference to linux/unix network programming is "Unix Network Programming" by Richard Stevens. The 2nd edition is huge, three volumes in total. Since you are a web developer you may find voulme 1 especially interesting as it contains implementations of several network server architectures - select/poll, forked, threaded, etc; all webservers/proxy servers fall under one of these categories. Well enough said, good luck and happy reading! - Raja From linux-india-programmers-owner@lists.linux-india.org Sat Dec 9 09:55:06 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 34DEB4A033 for ; Sat, 9 Dec 2000 09:55:04 -0800 (PST) Received: (qmail 3000 invoked by uid 417); 9 Dec 2000 17:57:30 -0000 Received: from unknown (HELO d) (203.197.193.15) by smtpb.softhome.net with SMTP; 9 Dec 2000 17:57:30 -0000 Date: Sat, 9 Dec 2000 23:25:54 +0500 From: Ð ë ê þ ã K Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: java to elf X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20001209175504.34DEB4A033@www.aunet.org> X-Archive-Number: 200012/61 X-Sequence-Number: 981 hi r ther any tools to convert java class files to ELF format binaries , like we have on MS windows to convert to exe format one more question --> why linux have an array of task_struct , why can't only doubly linked list do which is also present to connect all of them. ______________________ __reply soon __bye _____|) (- (- |> /\ |< ______________________ From linux-india-programmers-owner@lists.linux-india.org Sun Dec 10 01:31:33 2000 Received: from mailweb15.rediffmail.com (unknown [203.199.83.23]) by www.aunet.org (Postfix) with SMTP id 294D34A00C for ; Sun, 10 Dec 2000 01:31:29 -0800 (PST) Received: (qmail 10538 invoked by uid 510); 10 Dec 2000 09:22:55 -0000 Date: 10 Dec 2000 09:22:55 -0000 Message-ID: <20001210092255.10537.qmail@mailweb15.rediffmail.com> MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: kindly suggest a project From: "unni krishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/62 X-Sequence-Number: 982 hello list, i am a newbie to linux, but interested in prgramming in it,especially in the networking part.can anyone suggest a project that can be completed within a reasonable amount of time. _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com Participate in crazy auctions at http://auctions.rediff.com/auctions/ From linux-india-programmers-owner@lists.linux-india.org Sun Dec 10 04:50:09 2000 Received: from web1302.mail.yahoo.com (web1302.mail.yahoo.com [128.11.23.152]) by www.aunet.org (Postfix) with SMTP id DA6104A09B for ; Sun, 10 Dec 2000 04:50:00 -0800 (PST) Received: (qmail 11262 invoked by uid 60001); 10 Dec 2000 12:49:44 -0000 Message-ID: <20001210124944.11261.qmail@web1302.mail.yahoo.com> Received: from [202.142.67.209] by web1302.mail.yahoo.com; Sun, 10 Dec 2000 04:49:44 PST Date: Sun, 10 Dec 2000 04:49:44 -0800 (PST) From: Rakesh Ambati Subject: Re: Pointers to Documentation on Networking Aspects of Linux To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/63 X-Sequence-Number: 983 Hi, The best way to learn networking capabilties of Linux is start with "Networking Overview HOWTO" by Daniel Lopez Ridrego this document will give you pointers for further information on Linux Networking. Also check out the Linux Network Administrator Guide at LDP http:/MetaLab.unc.edu/mdw/linux.html You can find some more links at http://www.linuxlinux.com/Networking/ http://www.freshmeat.net regards Rakesh Ambati --- Raja Subramanian wrote: > Pradeep Hodigere wrote (p_hodigere@yahoo.com): > > I'm a web application developer using Perl > and am > > fairly strong with development in C/C++ on > Linux.I'm > > looking towards getting a break in the Networking > > area. > > Would appreciate if i could get directions on > > where to look for documentation for a beginner to > > Networking. > > Can you be more specific... are you interested in > network programming on linux > using c/c++ (whatever)? Or are you just interested > in learning how linux > networking works? > > Since you have posted to a programming list, I'll > assume the former. > > Unix/linux is written largely in C. IMHO by writing > C programs you could > understand the envorinment better than using most > other languages, say perl. > C exposes many low level details that higher level > languages neatly conceal. > > An excellent C reference to linux/unix network > programming is "Unix Network > Programming" by Richard Stevens. The 2nd edition is > huge, three volumes in > total. > > Since you are a web developer you may find voulme 1 > especially interesting as > it contains implementations of several network > server architectures - > select/poll, forked, threaded, etc; all > webservers/proxy servers fall under > one of these categories. > > Well enough said, good luck and happy reading! > > - Raja > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sun Dec 10 06:07:43 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 40EA849F63 for ; Sun, 10 Dec 2000 06:07:36 -0800 (PST) Received: (qmail 11692 invoked by uid 417); 10 Dec 2000 14:10:05 -0000 Received: from unknown (HELO d) (203.197.210.141) by smtpb.softhome.net with SMTP; 10 Dec 2000 14:10:05 -0000 Date: Sun, 10 Dec 2000 19:38:24 +0500 From: Ð ë ê þ ã K Reply-To: deepakyadav@india.com To: linux-india-programmers@lists.linux-india.org Subject: Re: kindly suggest a project X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20001210140736.40EA849F63@www.aunet.org> X-Archive-Number: 200012/64 X-Sequence-Number: 984 smtp or pop client would be fine _______ deepak At 12/10/00 9:22:00 AM, you wrote: >hello list, > i am a newbie to linux, but interested in prgramming in it,especially in the networking part.can anyone suggest a project that can be completed within a reasonable amount of time. > > >_____________________________________________________ >Chat with your friends as soon as they come online. Get Rediff Bol at >http://bol.rediff.com > >Participate in crazy auctions at http://auctions.rediff.com/auctions/ > > > > >--------------------------------------------- >An alpha version of a web based tool to manage >your subscription with this mailing list is at >http://lists.linux-india.org/cgi-bin/mj_wwwusr > > ______________________ __reply soon __bye _____|) (- (- |> /\ |< ______________________ From linux-india-programmers-owner@lists.linux-india.org Sun Dec 10 06:46:51 2000 Received: from hotmail.com (oe68.law10.hotmail.com [64.4.14.203]) by www.aunet.org (Postfix) with ESMTP id A430E4A10A for ; Sun, 10 Dec 2000 06:46:46 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 10 Dec 2000 06:46:29 -0800 X-Originating-IP: [61.0.18.78] From: "Vikas P" To: Cc: References: <20001210140736.40EA849F63@www.aunet.org> Subject: Re: kindly suggest a project Date: Sun, 10 Dec 2000 20:20:33 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: X-OriginalArrivalTime: 10 Dec 2000 14:46:29.0760 (UTC) FILETIME=[FB188800:01C062B7] X-Archive-Number: 200012/65 X-Sequence-Number: 985 Hi! I'm making SMTP client I've VSNL Account. I use smtp.vsnl.com as SMTP Server. The VSNL Server doesn't recognize my hotmail account panchal80@hotmail.com or even any other account (except my VSNL email account). I program it in C (Linux). Is the problem with VSNL or my network settings...??? ----- Original Message ----- From: "Ð ë ê þ ã K" To: Sent: Sunday, December 10, 2000 8:08 PM Subject: Re: [LIP] kindly suggest a project > smtp or pop client would be fine > > _______ > deepak > > > At 12/10/00 9:22:00 AM, you wrote: > >hello list, > > i am a newbie to linux, but interested in prgramming in it,especially in the > networking part.can anyone suggest a project that can be completed within a > reasonable amount of time. > > > > > >_____________________________________________________ > >Chat with your friends as soon as they come online. Get Rediff Bol at > >http://bol.rediff.com > > > >Participate in crazy auctions at http://auctions.rediff.com/auctions/ > > > > > > > > > >--------------------------------------------- > >An alpha version of a web based tool to manage > >your subscription with this mailing list is at > >http://lists.linux-india.org/cgi-bin/mj_wwwusr > > > > > ______________________ > __reply soon > __bye > _____|) (- (- |> /\ |< > ______________________ > > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP > From linux-india-programmers-owner@lists.linux-india.org Sun Dec 10 20:24:43 2000 Received: from venus.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id 029C249EFB for ; Sun, 10 Dec 2000 20:24:36 -0800 (PST) Received: from ramakrishna.roc.com (rkp.roc.com [172.16.5.88]) by venus.roc.com (8.9.3/8.9.3) with SMTP id WAA04190; Sun, 10 Dec 2000 22:00:31 +0530 From: "Ch.Rama Krishna Prasad" Reply-To: rkp@intotoinc.com Organization: IntotoInc To: linux-india-programmers@lists.linux-india.org, "Vikas P" , Subject: Re: kindly suggest a project Date: Mon, 11 Dec 2000 09:46:44 +0530 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: References: <20001210140736.40EA849F63@www.aunet.org> In-Reply-To: MIME-Version: 1.0 Message-Id: <00121109484000.00652@ramakrishna.roc.com> Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200012/66 X-Sequence-Number: 986 Hi vikas, I think hotmail as no pop server. Try with yahoo . If it works with yah= oo your programming is good otherwise check your code.=20 OK From Ch.R.k.Prasad On Sun, 10 Dec 2000, Vikas P wrote: > Hi! > I'm making SMTP client I've VSNL Account. I use smtp.vsnl.com as SMTP > Server. The VSNL Server doesn't recognize my hotmail account > panchal80@hotmail.com or even any other account (except my VSNL email > account). I program it in C (Linux). Is the problem with VSNL or my netwo= rk > settings...??? >=20 >=20 > ----- Original Message ----- > From: "=D0 =EB =EA =FE =E3 K" > To: > Sent: Sunday, December 10, 2000 8:08 PM > Subject: Re: [LIP] kindly suggest a project >=20 >=20 > > smtp or pop client would be fine > > > > _______ > > deepak > > > > > > At 12/10/00 9:22:00 AM, you wrote: > > >hello list, > > > i am a newbie to linux, but interested in prgramming in > it,especially in the > > networking part.can anyone suggest a project that can be completed with= in > a > > reasonable amount of time. > > > > > > > > >_____________________________________________________ > > >Chat with your friends as soon as they come online. Get Rediff Bol at > > >http://bol.rediff.com > > > > > >Participate in crazy auctions at http://auctions.rediff.com/auctions/ > > > > > > > > > > > > > > >--------------------------------------------- > > >An alpha version of a web based tool to manage > > >your subscription with this mailing list is at > > >http://lists.linux-india.org/cgi-bin/mj_wwwusr > > > > > > > > ______________________ > > __reply soon > > __bye > > _____|) (- (- |> /\ |< > > ______________________ > > > > > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > >=20 > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Sun Dec 10 23:29: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 B7A244A08E for ; Sun, 10 Dec 2000 23:29:17 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id XAA32097 for linux-india-programmers@lists.linux-india.org; Sun, 10 Dec 2000 23:27:22 -0800 Date: Sun, 10 Dec 2000 23:27:22 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Some memory reallocation in kernel mode Message-ID: <20001210232722.A32067@sharmas.dhs.org> References: <1196B5CB33DED311A73700508B6FEB1E03153BD9@ban03xbindge.geind.ge.com> <3A309E8A.C251E337@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A309E8A.C251E337@wipro.com>; from ketan.mehta@wipro.com on Fri, Dec 08, 2000 at 02:10:42PM +0530 X-Archive-Number: 200012/67 X-Sequence-Number: 987 > kmalloc is allocation. what i want to know is - what realloc does in > user space, is there something like that in kernel space. or i have to > do manually. It's probably something you don't want to attempt. Here is a comment from glibc sources. Having a device driver copy "unknown" amounts of data doesn't sound very familiar to me. Perhaps there is a way to configure your hardware to copy data in fixed size chunks ? -Arun /* Realloc algorithm: Chunks that were obtained via mmap cannot be extended or shrunk unless HAVE_MREMAP is defined, in which case mremap is used. Otherwise, if their reallocation is for additional space, they are copied. If for less, they are just left alone. Otherwise, if the reallocation is for additional space, and the chunk can be extended, it is, else a malloc-copy-free sequence is taken. There are several different ways that a chunk could be extended. All are tried: * Extending forward into following adjacent free chunk. * Shifting backwards, joining preceding adjacent space * Both shifting backwards and extending forward. * Extending into newly sbrked space Unless the #define REALLOC_ZERO_BYTES_FREES is set, realloc with a size argument of zero (re)allocates a minimum-sized chunk. If the reallocation is for less space, and the new request is for a `small' (<512 bytes) size, then the newly unused space is lopped off and freed. The old unix realloc convention of allowing the last-free'd chunk to be used as an argument to realloc is no longer supported. I don't know of any programs still relying on this feature, and allowing it would also allow too many other incorrect usages of realloc to be sensible. */ From linux-india-programmers-owner@lists.linux-india.org Sun Dec 10 23:35:19 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 0BFD44A101 for ; Sun, 10 Dec 2000 23:35:15 -0800 (PST) Received: from Larry.bk (unknown [203.199.228.183]) by md2.vsnl.net.in (Postfix) with ESMTP id 68C36BD8 for ; Mon, 11 Dec 2000 13:14:03 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id NAA13298 for ; Mon, 11 Dec 2000 13:00:56 +0530 Date: Mon, 11 Dec 2000 13:00:55 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: RE: Files In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/68 X-Sequence-Number: 988 On Thu, 7 Dec 2000, Harpreet Singh (RBIN/DCA-NMP) wrote: > Ok, so two processes can access the same file at the same time. > If both open it for reading there is no problem. But If one opens it for > reading > and one for writing, won't there be a problem. > > Also is it possible to lock a file. In the sense that if it has been opened > it cannot be used by another > program or process. Yes, it's possible to lock the file. You can have agreement between processess (provided, all of them are your custom processess), u can have mutual agreement btween the processes on writing to the file. Let's say you have 2 procs. A & B which wants to access the file X * Whenever A or B wants to access the file, they would lock the file & then perform the operation (reading/writing). * After the operation, the lock would be removed. Now there are diferent ways of locking. 1. Create a symlink b4 locking. After the operation, delete the symlink. B4 creating the symlink, see whether the symlink already exist, in which case it means the file is already locked & you need to wait to get it unlocked (wait for deletion of symlink). 2. Use semaphores to lock/unlock. A semaphore is like a counter, which can be incremented or decremented. Whenever a proc. wants to use a resource, it first decrements the resource counter (ie. sem count) & then uses the file. After performing the operation, the resource counter is incremented. The operation of inc./dec. is performed by the kernel in one atomic operation. See 'man semctl/semop/semget' for details. 3. Use flock to lock & unlock. flock locks the inode of the file. See man flock for details. Sreeji From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 00:10:45 2000 Received: from unknown-230-101.pilot.net (unknown-230-101.pilot.net [206.98.230.101]) by www.aunet.org (Postfix) with ESMTP id 687C44A1CA; Mon, 11 Dec 2000 00:10:34 -0800 (PST) Received: from unknown-239-165.pilot.net (unknown-239-165.pilot.net [206.189.239.165]) by unknown-230-101.pilot.net with ESMTP id DAA03036; Mon, 11 Dec 2000 03:10:14 -0500 (EST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-165.pilot.net with ESMTP id DAA01505; Mon, 11 Dec 2000 03:10:12 -0500 (EST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Mon, 11 Dec 2000 13:43:59 +0530 Message-ID: <4DE51758E7CDD411A78700508B6FEB1E15253B@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: LIP , LIG Subject: if joe is your fave editor.. Date: Mon, 11 Dec 2000 13:44:08 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/69 X-Sequence-Number: 989 joe happens to be my fave texteditor on Linux. You can flame me, will be streamed to bit-bucket :-) -------------- I am extremely sorry for the previous post. [above] This was the "meat".. looks like it got $crewed [lost] along the way. ------------------------------------------------------------ *** {00.50.014} Linux - Update {00.48.005}: Joe DEADJOE file creation follows symlinks Debian has re-released updated joe packages that fix the vulnerability discussed in {00.48.005} ("Joe DEADJOE file creation follows symlinks"). The original packages contained a bug in the corrected code. Updated Debian DEBs are listed at: http://archives.neohapsis.com/archives/vendor/2000-q4/0100.html Source: Debian http://archives.neohapsis.com/archives/vendor/2000-q4/0100.html ------------------------------------------------------------ _______________________________________________ Shourya Sarcar || Global Software Platforms gemedicalsystems.com || ge.com || elfun.org 5263121 xt 362 || shourya@shourya.com From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 00:16:07 2000 Received: from unknown-230-101.pilot.net (unknown-230-101.pilot.net [206.98.230.101]) by www.aunet.org (Postfix) with ESMTP id 3F88E4A08E; Mon, 11 Dec 2000 00:15:57 -0800 (PST) Received: from unknown-239-165.pilot.net (unknown-239-165.pilot.net [206.189.239.165]) by unknown-230-101.pilot.net with ESMTP id DAA05464; Mon, 11 Dec 2000 03:15:37 -0500 (EST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-165.pilot.net with ESMTP id DAA04060; Mon, 11 Dec 2000 03:15:35 -0500 (EST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Mon, 11 Dec 2000 13:49:22 +0530 Message-ID: <4DE51758E7CDD411A78700508B6FEB1E152557@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: rkp@intotoinc.com Cc: LIP , LIG Subject: [OT]RE: kindly suggest a project Date: Mon, 11 Dec 2000 13:49:30 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200012/70 X-Sequence-Number: 990 Does yahoo! have a pop server ? Yahoo!India ? Could you please pass the IP and other relevant info ? Regards, Shourya ~-----Original Message----- ~From: Ch.Rama Krishna Prasad [mailto:rkp@intotoinc.com] ~Sent: Monday, December 11, 2000 9:47 AM ~To: linux-india-programmers@lists.linux-india.org; Vikas P; ~deepakyadav@india.com ~Cc: linux-india-programmers@lists.linux-india.org ~Subject: Re: [LIP] kindly suggest a project ~ ~ ~Hi vikas, ~ I think hotmail as no pop server. Try with yahoo . If it=20 ~works with yahoo ~your programming is good otherwise check your code.=20 ~OK ~From ~Ch.R.k.Prasad ~ ~ ~On Sun, 10 Dec 2000, Vikas P wrote: ~> Hi! ~> I'm making SMTP client I've VSNL Account. I use smtp.vsnl.com as SMTP ~> Server. The VSNL Server doesn't recognize my hotmail account ~> panchal80@hotmail.com or even any other account (except my VSNL email ~> account). I program it in C (Linux). Is the problem with=20 ~VSNL or my network ~> settings...??? ~>=20 ~>=20 ~> ----- Original Message ----- ~> From: "=D0 =EB =EA =FE =E3 K" ~> To: ~> Sent: Sunday, December 10, 2000 8:08 PM ~> Subject: Re: [LIP] kindly suggest a project ~>=20 ~>=20 ~> > smtp or pop client would be fine ~> > ~> > _______ ~> > deepak ~> > ~> > ~> > At 12/10/00 9:22:00 AM, you wrote: ~> > >hello list, ~> > > i am a newbie to linux, but interested in=20 ~prgramming in ~> it,especially in the ~> > networking part.can anyone suggest a project that can be=20 ~completed within ~> a ~> > reasonable amount of time. ~> > > ~> > > ~> > >_____________________________________________________ ~> > >Chat with your friends as soon as they come online. Get=20 ~Rediff Bol at ~> > >http://bol.rediff.com ~> > > ~> > >Participate in crazy auctions at=20 http://auctions.rediff.com/auctions/ > > > > > > > > > > > > > > >--------------------------------------------- > > >An alpha version of a web based tool to manage > > >your subscription with this mailing list is at > > >http://lists.linux-india.org/cgi-bin/mj_wwwusr > > > > > > > > ______________________ > > __reply soon > > __bye > > _____|) (- (- |> /\ |< > > ______________________ > > > > > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > >=20 > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ --------------------------------------------- LIP is all for free speech. But it was created for a purpose. Violations of the rules of this list will result in stern action. From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 00:54:25 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id C013B4A1E4 for ; Mon, 11 Dec 2000 00:54:14 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBB916900408 for ; Mon, 11 Dec 2000 14:31:06 +0530 Message-ID: <3A349722.4230588C@pspl.co.in> Date: Mon, 11 Dec 2000 14:28:10 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: [OT]RE: kindly suggest a project References: <4DE51758E7CDD411A78700508B6FEB1E152557@ban03xbindge.geind.ge.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/71 X-Sequence-Number: 991 Hi pop.mail.yahoo.com/smtp.mail.yahoo.com Don't know about yahoo india but these works over dial up. Better than vsnl accounts.... Bye Shridhar P.S. Just installed opera for windows. It rocks!!!! "Sarcar, Shourya (MED)" wrote: > Does yahoo! have a pop server ? Yahoo!India ? > Could you please pass the IP and other relevant info ? From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 01:23:38 2000 Received: from mjollnir.rocklines.oyeindia.com (unknown [202.169.133.50]) by www.aunet.org (Postfix) with ESMTP id 346BA4A13F; Mon, 11 Dec 2000 01:23:23 -0800 (PST) Received: (from suresh@localhost) by mjollnir.rocklines.oyeindia.com (8.11.1/8.11.1/mjollnir-1.2) id eBB9J6H06316; Mon, 11 Dec 2000 14:49:06 +0530 Date: Mon, 11 Dec 2000 14:49:06 +0530 From: Suresh Ramasubramanian To: LIP , LIG Subject: Re: [LIG] [OT]RE: kindly suggest a project Message-ID: <20001211144906.A6312@oyeindia.com> Reply-To: Suresh Ramasubramanian Mail-Followup-To: LIP , LIG References: <4DE51758E7CDD411A78700508B6FEB1E152557@ban03xbindge.geind.ge.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4DE51758E7CDD411A78700508B6FEB1E152557@ban03xbindge.geind.ge.com>; from Shourya.Sarcar@geind.ge.com on Mon, Dec 11, 2000 at 01:49:30PM +0530 Organization: Hopelessly Disorganized X-Archive-Number: 200012/72 X-Sequence-Number: 992 Sarcar, Shourya (MED) rearranged electrons thusly: > Does yahoo! have a pop server ? Yahoo!India ? > Could you please pass the IP and other relevant info ? pop.mail.yahoo.com smtp.mail.yahoo.com (uses pop before smtp authentication) both are dead slow. --suresh -- Suresh Ramasubramanian + mallet<@>efn.org You spamma my mailbox, I nukea da ass From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 01:55:03 2000 Received: from nwcst315.netaddress.usa.net (nwcst315.netaddress.usa.net [204.68.23.60]) by www.aunet.org (Postfix) with SMTP id 243884A0E4 for ; Mon, 11 Dec 2000 01:54:59 -0800 (PST) Received: (qmail 28895 invoked by uid 60001); 11 Dec 2000 09:54:38 -0000 Message-ID: <20001211095438.28894.qmail@nwcst315.netaddress.usa.net> Received: from 204.68.23.60 by nwcst315 for [203.197.186.113] via web-mailer(34FM.0700.4B.01) on Mon Dec 11 09:54:38 GMT 2000 Date: 11 Dec 00 02:54:38 MST From: Sree prakash To: linux-india-programmers@lists.linux-india.org Subject: [Re: [OT]RE: kindly suggest a project] X-Mailer: USANET web-mailer (34FM.0700.4B.01) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200012/73 X-Sequence-Number: 993 Hello.... Does Hotmail,netaddress,rediffmail...etc! have a pop server ?=20 pop.mail.yahoo.com & smtp.mail.yahoo.com are working.But for=20=20=20=20= =09=20=20=20 hotmail,netaddress etc. it is giving problem Could anybody please pass the IP and other relevant info ? Is there any protocol(or some standard) to be followed while pulling mails from a server. regards Sreeprakash ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D1 From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 02:10:25 2000 Received: from mailscan.pune.gsslco.co.in (unknown [203.129.226.242]) by www.aunet.org (Postfix) with SMTP id BB2984A143 for ; Mon, 11 Dec 2000 02:10:18 -0800 (PST) Received: FROM phoenix.pune.gsslco.co.in BY mailscan.pune.gsslco.co.in ; Mon Dec 11 15:49:02 2000 +0500 Date: Mon, 11 Dec 2000 15:30:50 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re:[OT]RE: kindly suggest a project] In-Reply-To: <20001211095438.28894.qmail@nwcst315.netaddress.usa.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/74 X-Sequence-Number: 994 On 11 Dec 2000, Sree prakash wrote: > Hello.... > > Does Hotmail,netaddress,rediffmail...etc! have a pop server ? > > pop.mail.yahoo.com & smtp.mail.yahoo.com are working.But for > hotmail,netaddress etc. it is giving problem both hotmail and netaddress requires one to pay up to get a pop service. You can try out 123india though, i thinkit has a free pop. And could this be moved to LIG sreangsu From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 02:14:08 2000 Received: from hvwww2.hotvoice.com (hvwww2.hotvoice.com [64.14.10.144]) by www.aunet.org (Postfix) with SMTP id 806E54A101 for ; Mon, 11 Dec 2000 02:14:04 -0800 (PST) Message-ID: <6854497.976529625160.JavaMail.Administrator@hvwww2> Date: Mon, 11 Dec 2000 02:13:45 -0800 (PST) From: Arvind Devarajan To: linux-india-programmers@lists.linux-india.org Subject: Source code Statistics... Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Archive-Number: 200012/75 X-Sequence-Number: 995 hi friends, i had sent this mail before: for some reason whatsoever, it did never reach the list (for more than a week!!). hence this re-sending: does anyone here know about a tool in linux which gives me statistics about a development project: 1. No. of lines in a file (sorry, no cat file.c | wc -l and the like please) 2. No. of un-commented lines in the file 3. No. of c files in the project 4. No. of header files in the project 5. No. of global variables in the project 6. And host of other useful information... expecting a a whole lot of answers... rgds, arvind. -------------------------------------------------------------------------- Global Internet phone calls, voicemail, fax, e-mail and instant messaging. Sign-up today for FREE account at http://www.hotvoice.com From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 08:41:20 2000 Received: from hotmail.com (f134.law10.hotmail.com [64.4.15.134]) by www.aunet.org (Postfix) with ESMTP id C9C9849FDE; Mon, 11 Dec 2000 08:41:16 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 11 Dec 2000 08:40:50 -0800 Received: from 61.0.18.124 by lw10fd.law10.hotmail.msn.com with HTTP; Mon, 11 Dec 2000 16:40:50 GMT X-Originating-IP: [61.0.18.124] From: "vikki sharma" To: linux-india-programmers@lists.linux-india.org Cc: linux-india-help@lists.linux-india.org Subject: Re: kindly suggest a project Date: Mon, 11 Dec 2000 22:10:50 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Dec 2000 16:40:50.0909 (UTC) FILETIME=[1F1288D0:01C06391] X-Archive-Number: 200012/76 X-Sequence-Number: 996 Well, An Email Address is an Email address whether is on VSNL POP3 server or any other FREE like Hotmail, yahoo, usa.net EmailID. What can be its effact? I connect to VSNL SMTP Server and give shorter email ID (of VSNL) as recipient it even doesn't recognize it, full ID worked only ... Then is there any other SMTP SERVER through which I can send mails... to addresses like usa.net, hotmail, yahoo etc.??? >From: "Ch.Rama Krishna Prasad" >Reply-To: rkp@intotoinc.com >To: linux-india-programmers@lists.linux-india.org, "Vikas P" >, >CC: >Subject: Re: [LIP] kindly suggest a project >Date: Mon, 11 Dec 2000 09:46:44 +0530 > >Hi vikas, > I think hotmail as no pop server. Try with yahoo . If it works with >yahoo >your programming is good otherwise check your code. >OK >From >Ch.R.k.Prasad > > >On Sun, 10 Dec 2000, Vikas P wrote: > > Hi! > > I'm making SMTP client I've VSNL Account. I use smtp.vsnl.com as SMTP > > Server. The VSNL Server doesn't recognize my hotmail account > > panchal80@hotmail.com or even any other account (except my VSNL email > > account). I program it in C (Linux). Is the problem with VSNL or my >network > > settings...??? > > > > > > ----- Original Message ----- > > From: "Ð ë ê þ ã K" > > To: > > Sent: Sunday, December 10, 2000 8:08 PM > > Subject: Re: [LIP] kindly suggest a project > > > > > > > smtp or pop client would be fine > > > > > > _______ > > > deepak > > > > > > > > > At 12/10/00 9:22:00 AM, you wrote: > > > >hello list, > > > > i am a newbie to linux, but interested in prgramming in > > it,especially in the > > > networking part.can anyone suggest a project that can be completed >within > > a > > > reasonable amount of time. > > > > > > > > > > > >_____________________________________________________ > > > >Chat with your friends as soon as they come online. Get Rediff Bol at > > > >http://bol.rediff.com > > > > > > > >Participate in crazy auctions at http://auctions.rediff.com/auctions/ > > > > > > > > > > > > > > > > > > > >--------------------------------------------- > > > >An alpha version of a web based tool to manage > > > >your subscription with this mailing list is at > > > >http://lists.linux-india.org/cgi-bin/mj_wwwusr > > > > > > > > > > > ______________________ > > > __reply soon > > > __bye > > > _____|) (- (- |> /\ |< > > > ______________________ > > > > > > > > > > > > --------------------------------------------- > > > The mailing list archives are available at > > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > > > > > > --------------------------------------------- > > Find out more about this and other Linux India > > mailing lists at http://lists.linux-india.org/ > >--------------------------------------------- >LIP is all for free speech. But it was created >for a purpose. Violations of the rules of >this list will result in stern action. _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 09:13:19 2000 Received: from hotmail.com (f153.law10.hotmail.com [64.4.15.153]) by www.aunet.org (Postfix) with ESMTP id BFBA849F02; Mon, 11 Dec 2000 09:13:11 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 11 Dec 2000 09:12:49 -0800 Received: from 61.0.18.92 by lw10fd.law10.hotmail.msn.com with HTTP; Mon, 11 Dec 2000 17:12:49 GMT X-Originating-IP: [61.0.18.92] From: "vikki sharma" To: linux-india-programmers@lists.linux-india.org Cc: linux-india-help@lists.linux-india.org Subject: Re: kindly suggest a project Date: Mon, 11 Dec 2000 22:42:49 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Dec 2000 17:12:49.0355 (UTC) FILETIME=[968E29B0:01C06395] X-Archive-Number: 200012/77 X-Sequence-Number: 997 Hi, I think an Email address has nothing to do with POP3 as it can be a VSNL POP3 account or any FREE like hotmail, yahoo, usa.net, rediffmail Email account. I connected to VSNL SMTP server and try to send mail, it even don't work for (as recipient) it only recognize full domain ??? Here is the peice of code FOR GURUs that I use to send mails through SMTP, GURUs please check out for any mistake... ========================================================= S = socket(AF_INET, SOCK_STREAM,0); A.sin_family=AF_INET; A.sin_port = htons(25); h = gethostbyname("giasdl01.vsnl.net.in"); A.sin_addr.s_addr = *((unsigned long *)h->h_addr); i=connect(S,(struct sockaddr *) &A,sizeof(A)); i=recv(S,R,10000,0); strcpy(R,"HELO vikas.com\r\n"); i=send(S,R,strlen(R),0); i=recv(S,R,10000,0); strcpy(R,"MAIL FROM:\r\n"); i=send(S,R,strlen(R),0); i=recv(S,R,10000,0); sprintf(R,"RCPT TO:\r\n"); i=send(S,R,strlen(R),0); i=recv(S,R,10000,0); strcpy(R,"DATA\r\n"); i=send(S,R,strlen(R),0); i=recv(S,R,10000,0); sprintf(R,"To: panchal80@hotmail.com\r\n"); i=send(S,R,strlen(R),0); sprintf(R,"FROM: skynetin@vsnl.com\r\n"); i=send(S,R,strlen(R),0); strcpy(R,"DATE: 10 Dec 2000 18:30 IST\r\n"); i=send(S,R,strlen(R),0); sprintf(R,"SUBJECT: My Mail through SMTP\r\n"); i=send(S,R,strlen(R),0); strcpy(R,"\r\n\r\n"); i=send(S,R,strlen(R),0); sprintf(R,"Hi, How are you?\r\n"); i=send(S,R,strlen(R),0); strcpy(R,".\r\n"); i=send(S,R,strlen(R),0); i=recv(S,R,10000,0); strcpy(R,"QUIT\r\n"); i=send(S,R,strlen(R),0); i=recv(S,R,10000,0); ========================================================= >From: "Ch.Rama Krishna Prasad" >Reply-To: rkp@intotoinc.com >To: linux-india-programmers@lists.linux-india.org, "Vikas P" >, >CC: >Subject: Re: [LIP] kindly suggest a project >Date: Mon, 11 Dec 2000 09:46:44 +0530 > >Hi vikas, > I think hotmail as no pop server. Try with yahoo . If it works with >yahoo >your programming is good otherwise check your code. >OK >From >Ch.R.k.Prasad > > >On Sun, 10 Dec 2000, Vikas P wrote: > > Hi! > > I'm making SMTP client I've VSNL Account. I use smtp.vsnl.com as SMTP > > Server. The VSNL Server doesn't recognize my hotmail account > > panchal80@hotmail.com or even any other account (except my VSNL email > > account). I program it in C (Linux). Is the problem with VSNL or my >network > > settings...??? > > > > > > ----- Original Message ----- > > From: "Ð ë ê þ ã K" > > To: > > Sent: Sunday, December 10, 2000 8:08 PM > > Subject: Re: [LIP] kindly suggest a project > > > > > > > smtp or pop client would be fine > > > > > > _______ > > > deepak > > > > > > > > > At 12/10/00 9:22:00 AM, you wrote: > > > >hello list, > > > > i am a newbie to linux, but interested in prgramming in > > it,especially in the > > > networking part.can anyone suggest a project that can be completed >within > > a > > > reasonable amount of time. > > > > > > > > > > > >_____________________________________________________ > > > >Chat with your friends as soon as they come online. Get Rediff Bol at > > > >http://bol.rediff.com > > > > > > > >Participate in crazy auctions at http://auctions.rediff.com/auctions/ > > > > > > > > > > > > > > > > > > > >--------------------------------------------- > > > >An alpha version of a web based tool to manage > > > >your subscription with this mailing list is at > > > >http://lists.linux-india.org/cgi-bin/mj_wwwusr > > > > > > > > > > > ______________________ > > > __reply soon > > > __bye > > > _____|) (- (- |> /\ |< > > > ______________________ > > > > > > > > > > > > --------------------------------------------- > > > The mailing list archives are available at > > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > > > > > > --------------------------------------------- > > Find out more about this and other Linux India > > mailing lists at http://lists.linux-india.org/ _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 18:14:01 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 28F104A0FA for ; Mon, 11 Dec 2000 18:13:56 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id SAA01922 for linux-india-programmers@lists.linux-india.org; Mon, 11 Dec 2000 18:11:58 -0800 Date: Mon, 11 Dec 2000 18:11:58 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Source code Statistics... Message-ID: <20001211181158.A1904@sharmas.dhs.org> References: <6854497.976529625160.JavaMail.Administrator@hvwww2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <6854497.976529625160.JavaMail.Administrator@hvwww2>; from arvindd@hotvoice.com on Mon, Dec 11, 2000 at 02:13:45AM -0800 X-Archive-Number: 200012/78 X-Sequence-Number: 998 On Mon, Dec 11, 2000 at 02:13:45AM -0800, Arvind Devarajan wrote: > > 1. No. of lines in a file (sorry, no cat file.c | wc -l and > the like please) > 2. No. of un-commented lines in the file > 3. No. of c files in the project > 4. No. of header files in the project > 5. No. of global variables in the project > 6. And host of other useful information... cscope might be able to do this. -Arun From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 19:38:02 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id A86E74A0FA for ; Mon, 11 Dec 2000 19:37:53 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id JAA27326 for ; Tue, 12 Dec 2000 09:14:32 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA6EA5 for ; Tue, 12 Dec 2000 09:05:22 +0530 Message-ID: <3A35A139.97728261@wipro.com> Date: Tue, 12 Dec 2000 09:23:29 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Source code Statistics... References: <6854497.976529625160.JavaMail.Administrator@hvwww2> <20001211181158.A1904@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/79 X-Sequence-Number: 999 hi, cscope can do : search for some word/string in whole project. find files having mentioned headers included. show any file... it is basically to browse the code, but i doubt how much help it would be in statistics of the code. bye ketan Arun Sharma wrote: > > On Mon, Dec 11, 2000 at 02:13:45AM -0800, Arvind Devarajan wrote: > > > > 1. No. of lines in a file (sorry, no cat file.c | wc -l and > > the like please) > > 2. No. of un-commented lines in the file > > 3. No. of c files in the project > > 4. No. of header files in the project > > 5. No. of global variables in the project > > 6. And host of other useful information... > > cscope might be able to do this. > > -Arun > -- |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 20:04:07 2000 Received: from hindon.hss.co.in (unknown [202.54.26.202]) by www.aunet.org (Postfix) with ESMTP id 9488549F5F for ; Mon, 11 Dec 2000 20:03:58 -0800 (PST) Received: from sandesh.hss.hns.com (localhost [127.0.0.1]) by hindon.hss.co.in (8.10.0/8.10.0) with SMTP id eBC44st29836 for ; Tue, 12 Dec 2000 09:34:54 +0530 (IST) Received: by sandesh.hss.hns.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 652569B3.00152CD0 ; Tue, 12 Dec 2000 09:21:17 +0530 X-Lotus-FromDomain: HSS From: aaranya@hss.hns.com To: linux-india-programmers@lists.linux-india.org Message-ID: <652569B3.00152B4C.00@sandesh.hss.hns.com> Date: Tue, 12 Dec 2000 09:32:54 +0530 Subject: Re: Source code Statistics... Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200012/80 X-Sequence-Number: 1000 Arun Sharma on 12/12/2000 07:41:58 AM On Mon, Dec 11, 2000 at 02:13:45AM -0800, Arvind Devarajan wrote: > > 1. No. of lines in a file (sorry, no cat file.c | wc -l and > the like please) > 2. No. of un-commented lines in the file > 3. No. of c files in the project > 4. No. of header files in the project > 5. No. of global variables in the project > 6. And host of other useful information... Try USC-SLOC. Haven't used it personally, but it can do some of the things that you want. http://www-scf.usc.edu/~csci665/CodeCounters/ Akshat Aranya From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 21:31:33 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 645B149F37 for ; Mon, 11 Dec 2000 21:31:27 -0800 (PST) Received: from Larry.bk (unknown [203.199.228.19]) by md2.vsnl.net.in (Postfix) with ESMTP id C1B189E8 for ; Tue, 12 Dec 2000 11:10:04 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id KAA07012 for ; Tue, 12 Dec 2000 10:06:28 +0530 Date: Tue, 12 Dec 2000 10:06:27 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: [Re: [OT]RE: kindly suggest a project] In-Reply-To: <20001211095438.28894.qmail@nwcst315.netaddress.usa.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/81 X-Sequence-Number: 1001 Hi Hotmail does not have a pop mail server. Sreeji On 11 Dec 2000, Sree prakash wrote: > Hello.... > > Does Hotmail,netaddress,rediffmail...etc! have a pop server ? > > pop.mail.yahoo.com & smtp.mail.yahoo.com are working.But for > hotmail,netaddress etc. it is giving problem > > Could anybody please pass the IP and other relevant info ? > Is there any protocol(or some standard) to be followed while pulling mails > from a server. > > regards > Sreeprakash > > > > ____________________________________________________________________ > Get free email and a permanent address at http://www.netaddress.com/?N=1 > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. > From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 23:07:36 2000 Received: from gondwana.ecr.mu.oz.au (gondwana.ecr.mu.oz.au [128.250.70.62]) by www.aunet.org (Postfix) with ESMTP id 69F1049F4D for ; Mon, 11 Dec 2000 23:07:32 -0800 (PST) Received: from gromit.ecr.mu.oz.au (gromit.ecr.mu.oz.au [128.250.61.61]) by gondwana.ecr.mu.oz.au (8.11.0/8.9.3) with ESMTP id eBC774214611 for ; Tue, 12 Dec 2000 18:07:04 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id eBC775n2469323 for linux-india-programmers@lists.linux-india.org; Tue, 12 Dec 2000 18:07:05 +1100 (EDT) Date: Tue, 12 Dec 2000 18:07:04 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Source code Statistics... Message-ID: <20001212180704.D2483843@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <6854497.976529625160.JavaMail.Administrator@hvwww2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <6854497.976529625160.JavaMail.Administrator@hvwww2>; from arvindd@hotvoice.com on Mon, Dec 11, 2000 at 02:13:45AM -0800 X-Archive-Number: 200012/82 X-Sequence-Number: 1002 Well, this does not seem very difficult to implement. Most of these requirements can be individually handled by standard unix utilities scripts or small programs (divide & conquer). Here is my toss at the problem - Arvind Devarajan wrote (arvindd@hotvoice.com): > does anyone here know about a tool in linux which gives me statistics > about a development project: > > 1. No. of lines in a file (sorry, no cat file.c | wc -l and > the like please) I think that you mean is the num of non-blank lines here (I don't know what else you could mean by the above statement, it's self-contradictory!) try - awk 'NF>0 {count++} END {print count}' foo.c bar.c > 3. No. of c files in the project > 4. No. of header files in the project Surely find(1L) with some decent query flags can fix this need. How about - find . -name \*.c | wc -l or the likes. Of course you could also poke around the Makefile (or whatever you use to build your source). > 2. No. of un-commented lines in the file Have a look at "Lex and Yacc" 2nd Ed by John R Levine et al, Oriley. There is a 20 line lex example in the book (end of chapter 1) which counts the number of lines of code (however you define it). You can probably find the example code somehwere on oriley's website. A side note, counting the number of lines-of-code (LOC) is messy. There are many ways to do it and you really have to know what you want. > 5. No. of global variables in the project You could use lex again and do it along with the previous item. But if you have object files around, the easiest thing is just to use nm(1) and peek at the symbols listed in the object files. "The Awk Programming Language" - Kernighan Aho Weinberger, has a neat 3 line awk script that extracts such info from nm output (and some pretty good reasons for doing so). > 6. And host of other useful information... Wishfull thinking! :) - Raja PS: If you want more info or want me to dig up those examples I keep mentioning, email me off-line. From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 23:24:14 2000 Received: from prodserver1.goatelecom.com (unknown [210.212.161.28]) by www.aunet.org (Postfix) with ESMTP id A2EA849EFE for ; Mon, 11 Dec 2000 23:24:09 -0800 (PST) Received: from gaurav by prodserver1.goatelecom.com (8.9.3/1.1.20.3/07Jul00-0916AM) id MAA0000002328; Tue, 12 Dec 2000 12:57:11 +0530 (IST) Message-ID: <000401c0640d$38e29620$14a0d4d2@gaurav> From: "Gaurav Priyolkar" To: References: <20001209004332.9004.qmail@web4105.mail.yahoo.com> <20001210023907.A2417911@ecr.mu.oz.au> Subject: Re: Pointers to Documentation on Networking Aspects of Linux Date: Mon, 11 Dec 2000 00:12:59 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200012/83 X-Sequence-Number: 1003 > An excellent C reference to linux/unix network programming is "Unix Network > Programming" by Richard Stevens. The 2nd edition is huge, three volumes in > total. > Is Volume 3 : Applications, out? I've got the first two volumes and thought the third was not yet released. > Since you are a web developer you may find voulme 1 especially interesting as > it contains implementations of several network server architectures - > select/poll, forked, threaded, etc; all webservers/proxy servers fall under > one of these categories. > > Well enough said, good luck and happy reading! > (Totally agree. Stevens is the best! ) -Gaurav From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 23:48:36 2000 Received: from gondwana.ecr.mu.oz.au (gondwana.ecr.mu.oz.au [128.250.70.62]) by www.aunet.org (Postfix) with ESMTP id D1BCC49EFC for ; Mon, 11 Dec 2000 23:48:32 -0800 (PST) Received: from gromit.ecr.mu.oz.au (gromit.ecr.mu.oz.au [128.250.61.61]) by gondwana.ecr.mu.oz.au (8.11.0/8.9.3) with ESMTP id eBC7m5215083 for ; Tue, 12 Dec 2000 18:48:05 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id eBC7m6L2387864 for linux-india-programmers@lists.linux-india.org; Tue, 12 Dec 2000 18:48:06 +1100 (EDT) Date: Tue, 12 Dec 2000 18:48:06 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: Pointers to Documentation on Networking Aspects of Linux Message-ID: <20001212184805.A2399894@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001209004332.9004.qmail@web4105.mail.yahoo.com> <20001210023907.A2417911@ecr.mu.oz.au> <000401c0640d$38e29620$14a0d4d2@gaurav> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <000401c0640d$38e29620$14a0d4d2@gaurav>; from pgaurav@goatelecom.com on Mon, Dec 11, 2000 at 12:12:59AM +0530 X-Archive-Number: 200012/84 X-Sequence-Number: 1004 Gaurav Priyolkar wrote (pgaurav@goatelecom.com): >> An excellent C reference to linux/unix network programming is "Unix >> Network Programming" by Richard Stevens. The 2nd edition is huge, three >> volumes in total. > > Is Volume 3 : Applications, out? I've got the first two volumes and thought > the third was not yet released. Yikes! I think I've shot myself in the foot! Probably was thinking about the TCP/IP Illustrated series. Thanks for spotting that anyway. You are correct, UNP vol 3 has not been published. Have a look at Stevens' website - http://www.kohala.com/start/unpv12e.what.when.html Worse still, since Rich Stevens passed away last year, I don't think there will be a UNP vol 3 :(( - Raja From linux-india-programmers-owner@lists.linux-india.org Mon Dec 11 23:51:37 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id 29AB149EFC for ; Mon, 11 Dec 2000 23:51:28 -0800 (PST) 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 NAA24925 for ; Tue, 12 Dec 2000 13:25:39 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id NAA00710 for linux-india-programmers@lists.linux-india.org; Tue, 12 Dec 2000 13:16:13 +0530 Date: Tue, 12 Dec 2000 13:16:12 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: Pointers to Documentation on Networking Aspects of Linux Message-ID: <20001212131612.A633@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001209004332.9004.qmail@web4105.mail.yahoo.com> <20001210023907.A2417911@ecr.mu.oz.au> <000401c0640d$38e29620$14a0d4d2@gaurav> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <000401c0640d$38e29620$14a0d4d2@gaurav>; from pgaurav@goatelecom.com on Mon, Dec 11, 2000 at 12:12:59AM +0530 X-Operating-System: Linux 2.2.16-1 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/85 X-Sequence-Number: 1005 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gaurav Priyolkar forced the electrons to say: > Is Volume 3 : Applications, out? I've got the first two volumes and thought > the third was not yet released. IIRC, Stevens' unfortunate demise has delayed volume III indefinitely. Binand -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6NdfDGXtiwttetWoRAkHtAKCqfiwvi7LRiGjGFAu/gTBPcLkzmgCfUQ5J BEw3qLKmtWc1HbTIDkBSqaI= =+wQ4 -----END PGP SIGNATURE----- From linux-india-programmers-owner@lists.linux-india.org Tue Dec 12 00:09:41 2000 Received: from hvwww3.hotvoice.com (hvwww3.hotvoice.com [64.14.10.146]) by www.aunet.org (Postfix) with SMTP id 822E749EFE for ; Tue, 12 Dec 2000 00:09:39 -0800 (PST) Message-ID: <6525963.976608554136.JavaMail.Administrator@hvwww3> Date: Tue, 12 Dec 2000 00:09:14 -0800 (PST) From: Arvind Devarajan To: linux-india-programmers@lists.linux-india.org Subject: [Re:] Re: Source code Statistics... Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Archive-Number: 200012/86 X-Sequence-Number: 1006 hi, thanks for all your replies... i particularly found that the link given by Akshat Aranya : http://www-scf.usc.edu/~csci665/CodeCounters/ could give me most of all i wanted. and, i've used cscope, and know it is a powerful tool for naviagating the source code - probably to find where a particular variable is residing, whis functions reference a particular variable, etc. it cannot give me the number of global variables, which, i admit, is not a very useful statistic information for me :-) and, regarding implementing one such tool, i did not want to re-invent the wheel - i knew somewhere, someone would have already taken some efforts to do this! and perl could have been the best bet for implementing such a tool! thanks again, arvind. On Tue, 12 Dec 2000 18:07:04 +1100 Raja Subramanian wrote: >Well, this does not seem very difficult to implement. Most of these >requirements can be individually handled by standard unix utilities scripts or >small programs (divide & conquer). Here is my toss at the problem - > >Arvind Devarajan wrote (arvindd@hotvoice.com): >> does anyone here know about a tool in linux which gives me statistics >> about a development project: >> >> 1. No. of lines in a file (sorry, no cat file.c | wc -l and >> the like please) >I think that you mean is the num of non-blank lines here (I don't know what >else you could mean by the above statement, it's self-contradictory!) try - > awk 'NF>0 {count++} END {print count}' foo.c bar.c > >> 3. No. of c files in the project >> 4. No. of header files in the project >Surely find(1L) with some decent query flags can fix this need. How about - > find . -name \*.c | wc -l >or the likes. >Of course you could also poke around the Makefile (or whatever you use to >build your source). > >> 2. No. of un-commented lines in the file >Have a look at "Lex and Yacc" 2nd Ed by John R Levine et al, Oriley. There is >a 20 line lex example in the book (end of chapter 1) which counts the number >of lines of code (however you define it). You can probably find the example >code somehwere on oriley's website. > >A side note, counting the number of lines-of-code (LOC) is messy. There are >many ways to do it and you really have to know what you want. > >> 5. No. of global variables in the project >You could use lex again and do it along with the previous item. But if you >have object files around, the easiest thing is just to use nm(1) and peek at >the symbols listed in the object files. "The Awk Programming Language" - >Kernighan Aho Weinberger, has a neat 3 line awk script that extracts such info >from nm output (and some pretty good reasons for doing so). > >> 6. And host of other useful information... >Wishfull thinking! :) > >- Raja > >PS: If you want more info or want me to dig up those examples I keep >mentioning, email me off-line. > >--------------------------------------------- >An alpha version of a web based tool to manage >your subscription with this mailing list is at >http://lists.linux-india.org/cgi-bin/mj_wwwusr > > -------------------------------------------------------------------------- Global Internet phone calls, voicemail, fax, e-mail and instant messaging. Sign-up today for FREE account at http://www.hotvoice.com From linux-india-programmers-owner@lists.linux-india.org Tue Dec 12 00:56:37 2000 Received: from mailscan.teil.soft.net (unknown [164.164.10.219]) by www.aunet.org (Postfix) with SMTP id E0B084A0EB for ; Tue, 12 Dec 2000 00:54:34 -0800 (PST) Received: FROM teil.soft.net BY mailscan.teil.soft.net ; Tue Dec 12 14:26:58 2000 +0500 Received: from teil.soft.net ([10.12.1.82]) by teil.soft.net (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA68073 for ; Tue, 12 Dec 2000 14:18:53 +0530 (IST) Message-ID: <3A35E786.CFB333CD@teil.soft.net> Date: Tue, 12 Dec 2000 14:23:27 +0530 From: Sutirtha Mitra X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: How to identify a Unix machine.... References: <6525963.976608554136.JavaMail.Administrator@hvwww3> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/87 X-Sequence-Number: 1007 Hi all, Though it is not totally linux related question still i exepct a lot of answares... my probm is how to identify unix machines in a LAN connection ? actually i want to know the functions or the classes that will be of help regarding this. the platform is VC++ in WIN NT regards sutirtha From linux-india-programmers-owner@lists.linux-india.org Tue Dec 12 01:29:00 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id D950C49F45 for ; Tue, 12 Dec 2000 01:28:48 -0800 (PST) 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 PAA30002 for ; Tue, 12 Dec 2000 15:04:10 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id OAA00905 for linux-india-programmers@lists.linux-india.org; Tue, 12 Dec 2000 14:54:45 +0530 Date: Tue, 12 Dec 2000 14:54:44 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: How to identify a Unix machine.... Message-ID: <20001212145444.C633@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <6525963.976608554136.JavaMail.Administrator@hvwww3> <3A35E786.CFB333CD@teil.soft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <3A35E786.CFB333CD@teil.soft.net>; from sutirtha@teil.soft.net on Tue, Dec 12, 2000 at 02:23:27PM +0530 X-Operating-System: Linux 2.2.16-1 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/88 X-Sequence-Number: 1008 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sutirtha Mitra forced the electrons to say: > my probm is > how to identify unix machines in a LAN connection ? In a program running on the same host, you can try the uname(2) call. On a LAN, you can use the same algorithm as nmap. What it calls TCP fingerprinting. > the platform is VC++ in WIN NT Take you VC++/Win NT questions somewhere else, please. Binand -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6Ne7bGXtiwttetWoRAj6eAKCP1WkrIs9fOne829gt8tJkCNTdogCcDOda TXGpdSMAWL/Y+S6S8miW0bk= =nC4w -----END PGP SIGNATURE----- From linux-india-programmers-owner@lists.linux-india.org Tue Dec 12 03:55:17 2000 Received: from hanuman.aukbc.org (unknown [203.197.142.200]) by www.aunet.org (Postfix) with ESMTP id CC04D4A2E4 for ; Tue, 12 Dec 2000 03:54:56 -0800 (PST) Received: from localhost (IDENT:mksarav@localhost [127.0.0.1]) by hanuman.aukbc.org (8.9.3/8.9.3) with ESMTP id RAA03511 for ; Tue, 12 Dec 2000 17:34:23 +0530 Date: Tue, 12 Dec 2000 17:34:23 +0530 (IST) From: M K Saravanan To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: Pointers to Documentation on Networking Aspects of Linux In-Reply-To: <000401c0640d$38e29620$14a0d4d2@gaurav> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/89 X-Sequence-Number: 1009 On Mon, 11 Dec 2000, Gaurav Priyolkar wrote: > Is Volume 3 : Applications, out? I've got the first two volumes and thought > the third was not yet released. No. Vol.3 is still under writing stage. Unfortunately R.Stevens, passed away on sept. last year (1999). Vol.3 will be completed by his co-author. to get the current status visit: http://www.kohala.com -- mks -- From linux-india-programmers-owner@lists.linux-india.org Tue Dec 12 21:05:30 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id A383F4A10B for ; Tue, 12 Dec 2000 21:04:46 -0800 (PST) Received: from redsea.india.hp.com (redsea.india.hp.com [15.76.97.3]) by atlrel1.hp.com (Postfix) with ESMTP id 39A4FF8C for ; Wed, 13 Dec 2000 00:04:08 -0500 (EST) Received: from eb96249 (eb96249.india.hp.com [15.76.96.249]) by redsea.india.hp.com with SMTP (8.7.1/8.7.3 SMKit7.02) id KAA19009 for ; Wed, 13 Dec 2000 10:36:06 +0530 (IST) From: "Vikram K" To: Subject: File handling in kernel mode... Date: Wed, 13 Dec 2000 10:34:03 +0530 Message-ID: <000a01c064c2$1df1c1f0$f9604c0f@india.hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 In-Reply-To: <20001212145444.C633@bombay.retortsoft.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200012/90 X-Sequence-Number: 1010 Hello, Can anybody tell me how to file handling is done in the kernel mode? TIA, Vikram From linux-india-programmers-owner@lists.linux-india.org Tue Dec 12 21:47:34 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id D50A94A0EB for ; Tue, 12 Dec 2000 21:47:28 -0800 (PST) Received: from localhost (anil@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id LAA20492 for ; Wed, 13 Dec 2000 11:21:59 +0530 Date: Wed, 13 Dec 2000 11:21:59 +0530 (IST) From: Anil Pillai To: linux-india-programmers@lists.linux-india.org Subject: Help in HDD partitioning... In-Reply-To: <20001202103851.A654@bombay.retortsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/91 X-Sequence-Number: 1011 Hello PROGRAMMERS, I am in the process of writing a program to partition a HDD. I am stuck in comprehending the significance of the following structure found in used to write the partition table: struct partition { unsigned char boot_ind; /* 0x80 - active */ unsigned char head; /* starting head */ unsigned char sector; /* starting sector */ unsigned char cyl; /* starting cylinder */ unsigned char sys_ind; /* What partition type */ unsigned char end_head; /* end head */ unsigned char end_sector; /* end sector */ unsigned char end_cyl; /* end cylinder */ unsigned int start_sect; /* starting sector counting from 0*/ unsigned int nr_sects; /* nr of sectors in partition */ } especially the following members: unsigned char cyl; /* starting cylinder */ unsigned char end_cyl; /* end cylinder */ From the data type it is char with a max of 255. How does this fit into the big picture. Is it offset, or what ??? Looking forward to your help in any way and thanking you in anticipation, Anil. <-- Whenever I climb up, there is a dog called 'Ego' following me --> From linux-india-programmers-owner@lists.linux-india.org Tue Dec 12 22:50:14 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id DCAB84A3F1 for ; Tue, 12 Dec 2000 22:50:12 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id WAA07551 for linux-india-programmers@lists.linux-india.org; Tue, 12 Dec 2000 22:48:10 -0800 Date: Tue, 12 Dec 2000 22:48:10 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Help in HDD partitioning... Message-ID: <20001212224810.A7509@sharmas.dhs.org> References: <20001202103851.A654@bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from anil@bombay.retortsoft.com on Wed, Dec 13, 2000 at 11:21:59AM +0530 X-Archive-Number: 200012/92 X-Sequence-Number: 1012 On Wed, Dec 13, 2000 at 11:21:59AM +0530, Anil Pillai wrote: > >From the data type it is char with a max of 255. How does this fit into > the big picture. Is it offset, or what ??? > Looking forward to your help in any way > and thanking you in anticipation, The cylinder, head, sector together (commonly referred to as CHS) uniquely identify the location of the begining of the partition. Therefore you can have 255 * 255 * 255 ~ 2^24 sectors on any disk. -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Dec 12 23:48:18 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id C46E74A26F for ; Tue, 12 Dec 2000 23:48:03 -0800 (PST) Received: from localhost (anil@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id NAA26540 for ; Wed, 13 Dec 2000 13:20:31 +0530 Date: Wed, 13 Dec 2000 13:20:30 +0530 (IST) From: Anil Pillai To: linux-india-programmers@lists.linux-india.org Subject: Re: Help in HDD partitioning... In-Reply-To: <20001212224810.A7509@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/93 X-Sequence-Number: 1013 On Tue, 12 Dec 2000, Arun Sharma wrote: > On Wed, Dec 13, 2000 at 11:21:59AM +0530, Anil Pillai wrote: > > >From the data type it is char with a max of 255. How does this fit into > > the big picture. Is it offset, or what ??? > > Looking forward to your help in any way > > and thanking you in anticipation, > > The cylinder, head, sector together (commonly referred to as CHS) > uniquely identify the location of the begining of the partition. -------> I DOUBT <------------------- > > Therefore you can have 255 * 255 * 255 ~ 2^24 sectors on any disk. -----???????????????????????----- Thanks for this but it seems quite evident that 255*255*255=2^24 and nothing more than this. Correct me if I am wrong. Number of sectors as far as I know = heads * sectors per track * cylinders or you can get the number of sectors from /proc/ide/hda/capacity What I am looking for is the significance of the structure members that I had pointed out to in my original query. Thanks anyway, Anil From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 02:00:04 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id E48EA4A0DC for ; Wed, 13 Dec 2000 01:59:37 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id PAA08406 for ; Wed, 13 Dec 2000 15:35:56 GMT Received: from yaksha.wipro.com ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA3517; Wed, 13 Dec 2000 15:26:43 +0530 Date: Wed, 13 Dec 2000 15:34:42 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipro.com Reply-To: Sharad Joshi To: Vikram K Cc: linux-india-programmers@lists.linux-india.org Subject: Re: File handling in kernel mode... In-Reply-To: <000a01c064c2$1df1c1f0$f9604c0f@india.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/94 X-Sequence-Number: 1014 Could you be more explicit? If you mean to open some file in the kernel, and then do operations on that, it is possible only in theory. Or you mean something else by 'file handling'? Sharad. On Wed, 13 Dec 2000, Vikram K wrote: + + Can anybody tell me how to file handling is done in the kernel mode? + From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 07:01:19 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 736374A207 for ; Wed, 13 Dec 2000 07:01:00 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id UAA15798 for ; Wed, 13 Dec 2000 20:37:30 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA4201 for ; Wed, 13 Dec 2000 20:28:18 +0530 Message-ID: <3A3792D4.B098CC81@wipro.com> Date: Wed, 13 Dec 2000 20:46:36 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Some prob in 2.4.0-test11 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/95 X-Sequence-Number: 1015 hi all, we have d/led 2.4.0-test11 kernel src and compiled it. All worked fine and then when we rebooted it booted fine , but the eth0 is not detected and initialised, so no network support is there. I fail to understand where can problem. any pointers in this will of great help. bye ketan -- |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 07:24:29 2000 Received: from satyaki.pacific.net.in (satyaki.pacific.net.in [203.123.128.85]) by www.aunet.org (Postfix) with ESMTP id 42DF54A200 for ; Wed, 13 Dec 2000 07:19:18 -0800 (PST) Received: from ganga.sankya.com (ppp171.bangalore-188.pacific.net.in [203.123.188.171]) by satyaki.pacific.net.in with ESMTP id UAA24694 for ; Wed, 13 Dec 2000 20:48:39 +0530 (IST) Date: Wed, 13 Dec 2000 20:48:38 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: Help in HDD partitioning... Message-ID: <20001213204838.A2866@sankya.com> Mail-Followup-To: Babu Kalakrishnan , linux-india-programmers@lists.linux-india.org References: <20001212224810.A7509@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from anil@bombay.retortsoft.com on Wed, Dec 13, 2000 at 01:20:30PM +0530 X-Operating-System: Red hat Linux 6.2 with Kernel 2.2.16-3 X-Kernel: Kernel 2.2.16-3 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200012/96 X-Sequence-Number: 1016 On Wed, Dec 13, 2000 at 01:20:30PM +0530, Anil Pillai typed: > > > On Tue, 12 Dec 2000, Arun Sharma wrote: > > > On Wed, Dec 13, 2000 at 11:21:59AM +0530, Anil Pillai wrote: > > > >From the data type it is char with a max of 255. How does this fit into > > > the big picture. Is it offset, or what ??? > > > Looking forward to your help in any way > > > and thanking you in anticipation, > > > > The cylinder, head, sector together (commonly referred to as CHS) > > uniquely identify the location of the begining of the partition. > -------> I DOUBT <------------------- > > > > Therefore you can have 255 * 255 * 255 ~ 2^24 sectors on any disk. > -----???????????????????????----- > > Thanks for this but it seems quite evident that 255*255*255=2^24 and > nothing more than this. Correct me if I am wrong. Slightly off - 256*256*256 is 2^24 :):):) > Number of sectors as far as I know = heads * sectors per track * cylinders > or you can get the number of sectors from /proc/ide/hda/capacity You're right about that. > What I am looking for is the significance of the structure members that I > had pointed out to in my original query. Well as Arun said, the 3 members head,cylinder,sector indicate the start (and the end if you take the 3 end fields) of the partition on the hard disk. (Logical - need not be physical) They are defined as "char" because each of these fields occupy only 1 byte each on the partition table on disk. So if you read the sector containing the partition table into memory, and want to cast the appropriate memory area into a structure, their definition in the structure needs to be sized accordingly. Slight inaccuracy in Arun's reply regarding the actual interpretations of these though : The Cylinder field is actually 10 bit : The LSB 8 bits taken from the cyl field in the structure and bits 8 & 9 have to be brought in from bits 6 & 7 (the most significant 2 bits) of the Sectors field. So the range of the cylinders can be from 0 to 1023. The sector number is the least significant 6 bits in the "sector" field of the structure. Valid values for these are 1 to 63. (A sector number of 0 is considered illegal for some vague reason. The heads are 1 byte long and can actually use values from 0 to 255 (both inclusive) - which means there can be upto 256 heads on a disk. However disk manufacturers seem to use a max of 255 heads again for reasons that I am not clear about. So theoretically the number of sectors that can be present on a disk that uses the CHS system of numbering is 1024 * 63 * 256 - slightly off from 255*255*255. One caveat though. On a lot of partitions you may find all these CHS numbers to be 0. If the starting sector number & Ending sector number fields in that structure are non-zero, you're supposed to use those fields. Each of these are 32 bits long and can therefore cater to disks with upto 2^31 sectors. Kala From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 07:28:56 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 04BBC4A0F0 for ; Wed, 13 Dec 2000 07:28:52 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id VAA18922 for ; Wed, 13 Dec 2000 21:05:21 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA56BE for ; Wed, 13 Dec 2000 20:56:09 +0530 Message-ID: <3A37995B.C1B3B00A@wipro.com> Date: Wed, 13 Dec 2000 21:14:27 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Some prob in 2.4.0-test11 References: <3A3792D4.B098CC81@wipro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/97 X-Sequence-Number: 1017 hi all, also one thing which i have noticed is that , two vfat partitions are not mounted and error given is bad majar and minor mumbers. bye ketan Ketan Mehta wrote: > > hi all, > we have d/led 2.4.0-test11 kernel src and compiled it. All worked fine > and then when we rebooted it booted fine , but the eth0 is not detected > and initialised, so no network support is there. I fail to understand > where can problem. > any pointers in this will of great help. > bye > ketan > -- |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 08:00:19 2000 Received: from tcs.com (unknown [202.9.158.48]) by www.aunet.org (Postfix) with ESMTP id 647C34A121; Wed, 13 Dec 2000 07:59:56 -0800 (PST) Received: from TCISPL-NTWS6 ([192.168.1.18]) by tcs.com (8.9.3/8.9.3) with SMTP id UAA15302; Wed, 13 Dec 2000 20:43:44 +0530 Message-Id: <200012131513.UAA15302@tcs.com> X-Sender: sk@192.168.1.1 X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Wed, 13 Dec 2000 20:41:23 +0000 To: linux-india-help@lists.linux-india.org From: Sanjay Arora Subject: Linux system resources reporting to Java.... Cc: linux-india-programmers@lists.linux-india.org, advanced-java@xcf.berkeley.edu, , JSERV-INTEREST@JAVA.SUN.COM In-Reply-To: <200011240945.eAO9jKc10678@goa1.dot.net.in> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200012/98 X-Sequence-Number: 1018 Hi All, I am using RH Linux 6.2 with Apache, Jserv, JSSI, JSP, Qmail on my webserver. I have a processing job thats fairly disk, CPU & memory intensive. I want to wrive a Java Handler that somehow gets server resourse usage parameters from Linux (number of processes active for mail, apache etc., in addition to memory free, swap file usage, cpu load and so on) and decides on the number of concurrent threads to activate for processing. This handler will just assign a fixed number of jobs to the processing threads and should be able to direct them to stop work & die, in order to free system resources or to double or triple the number of processing threads, should the server be free....can't really let the server idle around.....you know ;-))...idle mind being the instrument of the devil & so on ;-)) The question is...how do I get this info from Linux? Is there a Java class that can do this? preferably open source but even shareware or commercial will have to do....can't really set out to reinvent the wheel. One otion was to setup a cron job & get linux utilities to reprt on the resources to a disk file or a socket and get a java program to fetch/listen for them....but my mind balks at implementing such an inelegant solution. Any suggestions? Will be undyingly grateful!!! can't really die of gratitude...y'know. Best regards. Sanjay. From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 19:08:37 2000 Received: from hwembmn2601.honeywell.com (hwembmn2601.honeywell.com [129.30.244.21]) by www.aunet.org (Postfix) with ESMTP id 43B9B4A0F2 for ; Wed, 13 Dec 2000 19:08:33 -0800 (PST) Received: by HWEMNMN2601 with Internet Mail Service (5.5.2650.21) id ; Wed, 13 Dec 2000 21:08:39 -0600 Message-ID: From: "Kondaiah (IE10)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Some prob in 2.4.0-test11 Date: Wed, 13 Dec 2000 21:07:12 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200012/99 X-Sequence-Number: 1019 I suspect there sholud proper eth0 driver for disk(which you are using).Try to include all eht0 drivers available in linux and add them as a module to the kernel and do the following things 1.Check it as module for kernel. 2.run make menuconfig 3.run make dep 4.run make bzImage By using modprobe you can check it out whether the correspomding module included or not(It will explorer the modules). By using "dmessage" command you can check it whether ur eth0 detected or not.Here IRQ(Interrupt Request Number) should be 10 or 11. Thanks, > -----Original Message----- > From: Ketan Mehta [SMTP:ketan.mehta@wipro.com] > Sent: Wednesday, December 13, 2000 9:14 PM > To: linux-india-programmers@lists.linux-india.org > Subject: Re: [LIP] Some prob in 2.4.0-test11 > > hi all, > also one thing which i have noticed is that , two vfat partitions > are > not mounted and error given is bad majar and minor mumbers. > bye > ketan > > Ketan Mehta wrote: > > > > hi all, > > we have d/led 2.4.0-test11 kernel src and compiled it. All > worked fine > > and then when we rebooted it booted fine , but the eth0 is not detected > > and initialised, so no network support is there. I fail to understand > > where can problem. > > any pointers in this will of great help. > > bye > > ketan > > > > -- > |------------------------------------------------------------| > |It is better to keep your mouth shut and be thought a fool, | > | than to open it and remove all doubt. | > |------------------------------------------------------------| > |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | > |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| > |------------------------------------------------------------| > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 20:01:18 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 254744A041 for ; Wed, 13 Dec 2000 20:01:08 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id JAA00142 for ; Thu, 14 Dec 2000 09:37:38 GMT Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA642B for ; Thu, 14 Dec 2000 09:28:25 +0530 Message-ID: <3A3849AD.B54B572A@wipro.com> Date: Thu, 14 Dec 2000 09:46:45 +0530 From: Ketan Mehta Organization: Wipro Technologies Global R&D X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Some prob in 2.4.0-test11 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/100 X-Sequence-Number: 1020 hi, i have included the all modules as modules and included it in. i doubt this is problem. will verify again. since both my fat partiton are not mounted , with error wrong major and minor mumber, also eth0 is not initialized. I suspect some other problem. bye ketan "Kondaiah (IE10)" wrote: > > I suspect there sholud proper eth0 driver for disk(which you are using).Try > to include all eht0 drivers available in linux and add them as > a module to the kernel and do the following things > > 1.Check it as module for kernel. > 2.run make menuconfig > 3.run make dep > 4.run make bzImage > > By using modprobe you can check it out whether the correspomding module > included or not(It will explorer the modules). > > By using "dmessage" command you can check it whether ur eth0 detected or > not.Here IRQ(Interrupt Request Number) should be 10 or 11. > Thanks, > -- |------------------------------------------------------------| |It is better to keep your mouth shut and be thought a fool, | | than to open it and remove all doubt. | |------------------------------------------------------------| |Ketan Mehta | Wipro | Bangalore | Ph 91-80-5722296/93-5240 | |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com (personal)| |------------------------------------------------------------| From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 21:22:33 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 434B04A109 for ; Wed, 13 Dec 2000 21:22:28 -0800 (PST) Received: from Larry.bk (unknown [203.197.136.202]) by md2.vsnl.net.in (Postfix) with ESMTP id 17396157 for ; Thu, 14 Dec 2000 11:00:52 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id KAA04281 for ; Thu, 14 Dec 2000 10:46:14 +0530 Date: Thu, 14 Dec 2000 10:46:05 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Some prob in 2.4.0-test11 [The loooong answer] In-Reply-To: <3A3792D4.B098CC81@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/101 X-Sequence-Number: 1021 On Wed, 13 Dec 2000, Ketan Mehta wrote: > hi all, > we have d/led 2.4.0-test11 kernel src and compiled it. All worked fine > and then when we rebooted it booted fine , but the eth0 is not detected > and initialised, so no network support is there. I fail to understand > where can problem. > any pointers in this will of great help. > bye > ketan I'm sure such questions would have been answered many times & may be you could check the archives. Anyway, here is what you can do: When you want your network card to be used under Linux, this is what you have to do: * Find out the details of the network card. * Read Ethernet-HOWTO & find out whether support is available for your network card. Ethernet-HOWTO is available at: http://metalab.unc.edu/mdw/HOWTO/Ethernet-HOWTO.html * If the card is supported, then identify the module to be loaded for your card. This is listed in Ethernet-HOWTO.html. * Download the module, if it's not already available. To see whether the module is already available, try modprbe Eg. modprobe ne2k-pci. (Some of the modules require that you pass the IO address & IRQ of the Card. Eg. modproble ne io=0x6700 irq=5) * If modprobe fails, you need to download & compile the Kernel. Either you can compile the module separately (Normally the instructions to compile the module are given at the end of the module file.), or you can enable the module support in Kernel & compile as: cd /usr/src/linux (or whatever is your source tree) make menuconfig Enable the module that you require. Save & Exit make dep && make bzImage make modules && make modules_install * Now restart the system, & try modprobe [Optional Params] & u should get the card working. Once you get it working, you can put the appropriate entries in your startup script (rc.modules in Slackware). Following are some pointers on how to identify your network card. * Network card may be one on board, or it could be an ISA/PCI/PCMCIA card. Do a cat /proc/pci & check for a line starting with something like: "Ethernet controller". You can get the I/O & IRQ from here. This is the way to get details for a PCI card. * If it's an ISA card, I don't think any listing (as /proc/pci) is available. You'd have to see the Ethernet card manual & set the jumpers accordingly to set the I/O & IRQ. Alternatively you can use any DOZE or WINDOZE (!) tools supplied to get the I/O & IRQ details. OOPS ! I guess that went quite lengthy ! Hope it's useful. Sreeji From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 21:31:29 2000 Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61]) by www.aunet.org (Postfix) with ESMTP id 49CFE4A03F for ; Wed, 13 Dec 2000 21:31:27 -0800 (PST) Received: from dlep6.itg.ti.com ([157.170.188.9]) by gatekeep.ti.com (8.11.1/8.11.1) with ESMTP id eBE5UsH05291 for ; Wed, 13 Dec 2000 23:30:54 -0600 (CST) Received: from dlep6.itg.ti.com (localhost [127.0.0.1]) by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id XAA22311 for ; Wed, 13 Dec 2000 23:30:53 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.92.42]) by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id XAA22277 for ; Wed, 13 Dec 2000 23:30:52 -0600 (CST) Received: from apdsparc3.india.ti.com (apdsparc3 [157.87.88.53]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id LAA12176 for ; Thu, 14 Dec 2000 11:00:46 +0530 (IST) Received: from india.ti.com (localhost [127.0.0.1]) by apdsparc3.india.ti.com (8.9.3/8.9.3) with ESMTP id LAA13942 for ; Thu, 14 Dec 2000 11:00:00 +0530 (IST) Message-ID: <3A385AD8.6FD0D797@india.ti.com> Date: Thu, 14 Dec 2000 11:00:00 +0530 From: Sumit Rangawala Organization: Texas Instruments X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Thread ID References: <652569AC.0059CB2D.00@sandesh.hss.hns.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/102 X-Sequence-Number: 1022 This may help http://docs.sun.com/ab2/coll.40.6/REFMAN3D/@Ab2TocView?Ab2Lang=C&Ab2Enc=iso-8859-1 Bye Sumit vnair@hss.hns.com wrote: > Hello list, > > I couldn't find a sys call to find the thread id of the thread from itself ... > something like.. > > TIA > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 21:33:34 2000 Received: from web9203.mail.yahoo.com (web9203.mail.yahoo.com [216.136.129.26]) by www.aunet.org (Postfix) with SMTP id B4C684A124 for ; Wed, 13 Dec 2000 21:33:32 -0800 (PST) Message-ID: <20001214053300.84020.qmail@web9203.mail.yahoo.com> Received: from [203.197.178.69] by web9203.mail.yahoo.com; Wed, 13 Dec 2000 21:33:00 PST Date: Wed, 13 Dec 2000 21:33:00 -0800 (PST) From: john slater Subject: Re: Some prob in 2.4.0-test11 To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/103 X-Sequence-Number: 1023 hello let me add a point to this mail.... one more step is required 1) make menuconfig 2) make dep 3) make bzImage 4) make modules 5) copy the new kernel image and replcae with the new image in lilo.conf thakx bye John --- Ketan Mehta wrote: > hi, > i have included the all modules as modules and > included it in. > i doubt this is problem. will verify again. > since both my fat partiton are not mounted , with > error wrong major and > minor mumber, also eth0 is not initialized. I > suspect some other > problem. > bye > ketan > > "Kondaiah (IE10)" wrote: > > > > I suspect there sholud proper eth0 driver for > disk(which you are using).Try > > to include all eht0 drivers available in linux and > add them as > > a module to the kernel and do the following things > > > > 1.Check it as module for kernel. > > 2.run make menuconfig > > 3.run make dep > > 4.run make bzImage > > > > By using modprobe you can check it out whether the > correspomding module > > included or not(It will explorer the modules). > > > > By using "dmessage" command you can check it > whether ur eth0 detected or > > not.Here IRQ(Interrupt Request Number) should be > 10 or 11. > > Thanks, > > > > -- > |------------------------------------------------------------| > |It is better to keep your mouth shut and be thought > a fool, | > | than to open it and remove all doubt. > | > |------------------------------------------------------------| > |Ketan Mehta | Wipro | Bangalore | Ph > 91-80-5722296/93-5240 | > |ketan.mehta@wipro.com | ketan_kmehta@mailcity.com > (personal)| > |------------------------------------------------------------| > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. ===== John Slater #123, Hooly Wood LA, CA 34523 __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Wed Dec 13 23:03:35 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 4BD454A03F for ; Wed, 13 Dec 2000 23:03:01 -0800 (PST) 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 ESMTP id MAA03938 for ; Thu, 14 Dec 2000 12:05:05 -0500 (GMT) Subject: Re: Thread ID To: linux-india-programmers@lists.linux-india.org From: PGera@delhi.tcs.co.in Date: Thu, 14 Dec 2000 12:33:51 +0530 Message-ID: X-MIMETrack: Serialize by Router on MAILGG2/TCSDELHI/TCS(Release 5.0.2c (Intl)|2 February 2000) at 12/14/2000 12:33:52 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Archive-Number: 200012/104 X-Sequence-Number: 1024 If you are using POSIX threads , see pthread_self () which returns the thread id of the calling function. prateek prateekg@mantraonline.com " NEVER PLAY LEAPFROG WITH A UNICORN" This may help http://docs.sun.com/ab2/coll.40.6/REFMAN3D/@Ab2TocView?Ab2Lang=C&Ab2Enc=iso-8859-1 Bye Sumit vnair@hss.hns.com wrote: > Hello list, > > I couldn't find a sys call to find the thread id of the thread from itself ... > something like.. > > TIA > From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 02:28:02 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id DE9A04A0DC for ; Thu, 14 Dec 2000 02:27:46 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id QAA20082 for ; Thu, 14 Dec 2000 16:04:12 GMT Received: from yaksha.wipro.com ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAAD52; Thu, 14 Dec 2000 15:54:57 +0530 Date: Thu, 14 Dec 2000 16:02:56 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipro.com Reply-To: Sharad Joshi To: Vikram K Cc: linux-india-programmers@lists.linux-india.org Subject: RE: File handling in kernel mode... In-Reply-To: <002001c064f0$7818be30$f9604c0f@india.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/105 X-Sequence-Number: 1025 Well, implementors of *nix chose to associate operations on each file handle (open) to some application process. By this, i mean file operations (within the kernel) are possible only in context of a process. The kernel can not, by itself, open some file and start fidlling with it, since it will be a mockery of file permissions and all that associated with the file. In theory, theres no such limitation. You may chose to design an OS which has no such limitation. Sharad. On Wed, 13 Dec 2000, Vikram K wrote: + yes thats what i meant. anyway, how is is possible in theory? + + -----Original Message----- + Could you be more explicit? If you mean to open some file in the kernel, + and then do operations on that, it is possible only in theory. Or you mean + something else by 'file handling'? + + On Wed, 13 Dec 2000, Vikram K wrote: + + + + + Can anybody tell me how to file handling is done in the kernel mode? + + From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 08:54:00 2000 Received: from hotmail.com (oe41.law10.hotmail.com [64.4.14.98]) by www.aunet.org (Postfix) with ESMTP id 825314A053; Thu, 14 Dec 2000 08:53:08 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 14 Dec 2000 08:52:29 -0800 X-Originating-IP: [61.0.18.93] From: "Vikas P" To: Cc: Subject: Help CD Lock Date: Thu, 14 Dec 2000 22:26:32 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: X-OriginalArrivalTime: 14 Dec 2000 16:52:29.0112 (UTC) FILETIME=[3E791B80:01C065EE] X-Archive-Number: 200012/106 X-Sequence-Number: 1026 Hi All! I need some help, How can I lock my CDROM Drive as Linux does when we mount CDROM, it can't be open even if we press Exit button on CDROM Drive Face. How Linux achieves this... Can we do same in C??? Thanks for now! From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 12:14:04 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id 20A8D4A0AB; Thu, 14 Dec 2000 12:13:55 -0800 (PST) Received: (from binand@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id BAA12505; Fri, 15 Dec 2000 01:48:31 +0530 Date: Fri, 15 Dec 2000 01:48:31 +0530 From: Binand Raj S To: linux-india-programmers@lists.linux-india.org, linux-india-help@lists.linux-india.org Subject: Re: Help CD Lock Message-ID: <20001215014831.A12454@bombay.retortsoft.com> Mail-Followup-To: Binand Raj S , linux-india-programmers@lists.linux-india.org, linux-india-help@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from villy303@hotmail.com on Thu, Dec 14, 2000 at 10:26:32PM +0530 X-Operating-System: Linux 2.2.17-11alice X-Editor: VIM - Vi IMproved 5.7 X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/107 X-Sequence-Number: 1027 Vikas P forced the electrons to say: > I need some help, How can I lock my CDROM Drive as Linux does when we mount > CDROM, it can't be open even if we press Exit button on CDROM Drive Face. > How Linux achieves this... Can we do same in C??? The ioctl to do this is CDROM_LOCKDOOR. Here is sample code: #include #include #include #include int main(void) { int fd = open ("/dev/cdrom", O_RDONLY); ioctl (fd, CDROM_LOCKDOOR, 1); return 0; } Change the third argument to ioctl() to 0 to unlock. How linux implements this is a different matter. Look in drivers/cdrom/cdrom.c for implementation details. Binand From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 18:11:53 2000 Received: from prodserver1.goatelecom.com (unknown [210.212.161.28]) by www.aunet.org (Postfix) with ESMTP id 55FE749EFC for ; Thu, 14 Dec 2000 18:11:46 -0800 (PST) Received: from gaurav by prodserver1.goatelecom.com (8.9.3/1.1.20.3/07Jul00-0916AM) id HAA0000029791; Fri, 15 Dec 2000 07:44:43 +0530 (IST) Message-ID: <002401c0663d$12da2ba0$16a0d4d2@gaurav> From: "Gaurav Priyolkar" To: References: Subject: Re: Re: Pointers to Documentation on Networking Aspects of Linux Date: Fri, 15 Dec 2000 00:50:13 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200012/108 X-Sequence-Number: 1028 Raja, Binand, Mks, all, > No. Vol.3 is still under writing stage. Unfortunately R.Stevens, passed away > on sept. last year (1999). Terrible news. From the time I discovered UNP I have regarded it as a bible. Without hesitation, any question about sockets, ipc, threads, pipes, semaphores, mutexes, etc, etc, has just one answer - UNP. The perfect 3 letter answer to the subject line of this message. APUE is another invaluable text. I guess there will never be an APUE second edition in multiple volumes then. :( > Vol.3 will be completed by his co-author. > to get the current status visit: http://www.kohala.com > Something to look forward to ... I hope. -Gaurav. From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 21:15:05 2000 Received: from web5304.mail.yahoo.com (web5304.mail.yahoo.com [216.115.106.113]) by www.aunet.org (Postfix) with SMTP id 7BA0A4A468 for ; Thu, 14 Dec 2000 21:14:59 -0800 (PST) Message-ID: <20001215051420.19719.qmail@web5304.mail.yahoo.com> Received: from [202.54.79.120] by web5304.mail.yahoo.com; Thu, 14 Dec 2000 21:14:20 PST Date: Thu, 14 Dec 2000 21:14:20 -0800 (PST) From: Santosh Singh Subject: Re: Some memory reallocation in kernel mode To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/109 X-Sequence-Number: 1029 --- Arun Sharma wrote: > kmalloc is allocation. what i want to know is - > what realloc does in user space, is there something > like that in kernel space. or i have to do manually. I have developed a generic device driver based for parallel port. As far as I do know that memory allocation in kernel mode is done only in fix size of chunks i.e, GFP(get free page) size and it depends on the architecture of the machine. In order to avoid memory faults it is always safe to allocate memory use it via kmalloc and once your job is done simply free it with kfree instead of reallocation. It wd be better if you consult LINUX DEVICE DRIVER by Alessandro Rubini (O'Reilly). Chapter 13. Mmap and DMA >> Memory Management in Linux Though source code belongs there to be of age old kernel version but from conceptual point of view its great and also you will get a good idea on how to handle version dependencies. Cherish n Njoy Santosh __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 21:38:22 2000 Received: from svrsdfbldg.tcscal.co.in (unknown [206.103.11.137]) by www.aunet.org (Postfix) with SMTP id 1546C4A1A4 for ; Thu, 14 Dec 2000 21:38:08 -0800 (PST) Received: by svrsdfbldg.tcscal.co.in(Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) id 652569B6.001F1525 ; Fri, 15 Dec 2000 11:09:30 +0530 X-Lotus-FromDomain: TCSCALCUTTA From: "robin s chatterjee" <"robins_chatterjee"@tcscal.co.in> To: linux-india-programmers@lists.linux-india.org Message-ID: <652569B6.001F128D.00@svrsdfbldg.tcscal.co.in> Date: Fri, 15 Dec 2000 11:05:01 +0530 Subject: Re: How to identify a Unix machine.... Mime-Version: 1.0 Content-type: multipart/mixed; Boundary="0__=JDbskocAALiuNPce7Hn2yX6zLwp5uQITmX3Z8kWBXWjh3ewnOYGxjhAu" Content-Disposition: inline X-Archive-Number: 200012/110 X-Sequence-Number: 1030 --0__=JDbskocAALiuNPce7Hn2yX6zLwp5uQITmX3Z8kWBXWjh3ewnOYGxjhAu Content-type: text/plain; charset=us-ascii Content-Disposition: inline Search for queso on freshmeat. however it needs libpcap... a packet driver for nt/win98 I couldn't get it running under cygwin Thanks Robin Sutirtha Mitra on 12/12/2000 02:23:27 PM Please respond to linux-india-programmers@lists.linux-india.org To: linux-india-programmers@lists.linux-india.org cc: (bcc: robin s chatterjee/PLs/TCSCALCUTTA/TCS) Subject: [LIP] How to identify a Unix machine.... Hi all, Though it is not totally linux related question still i exepct a lot of answares... my probm is how to identify unix machines in a LAN connection ? actually i want to know the functions or the classes that will be of help regarding this. the platform is VC++ in WIN NT regards sutirtha --------------------------------------------- Find out more about this and other Linux India mailing lists at http://lists.linux-india.org/ --0__=JDbskocAALiuNPce7Hn2yX6zLwp5uQITmX3Z8kWBXWjh3ewnOYGxjhAu Content-type: application/octet-stream; name="att1.eml" Content-Disposition: attachment; filename="att1.eml" Content-transfer-encoding: base64 UmVjZWl2ZWQ6IGZyb20gd3d3LmF1bmV0Lm9yZyAoWzIxNi4xMDMuMTEzLjIw Ml0pIGJ5IHN2cnNhbHRsYWtlLnRjc2NhbC5jby5pbiAoTG90dXMgU01UUCBN VEEgdjQuNi42ICAoODkwLjEgNy0xNi0xOTk5KSkgd2l0aCBTTVRQIGlkIDY1 MjU2OUIzLjAwMzE3NzFBOyBUdWUsIDEyIERlYyAyMDAwIDE0OjMwOjIxICsw NTMwDQpSZWNlaXZlZDogZnJvbSB3d3cuYXVuZXQub3JnIChsb2NhbGhvc3Qg WzEyNy4wLjAuMV0pDQoJYnkgd3d3LmF1bmV0Lm9yZyAoUG9zdGZpeCkgd2l0 aCBTTVRQDQoJaWQgNDE3NzI0QTE5NjsgVHVlLCAxMiBEZWMgMjAwMCAwMDo1 Njo0MSAtMDgwMCAoUFNUKQ0KUmVjZWl2ZWQ6IGZyb20gbWFpbHNjYW4udGVp bC5zb2Z0Lm5ldCAodW5rbm93biBbMTY0LjE2NC4xMC4yMTldKQ0KCWJ5IHd3 dy5hdW5ldC5vcmcgKFBvc3RmaXgpIHdpdGggU01UUCBpZCBFMEIwODRBMEVC DQoJZm9yIDxsaW51eC1pbmRpYS1wcm9ncmFtbWVyc0BsaXN0cy5saW51eC1p bmRpYS5vcmc+OyBUdWUsIDEyIERlYyAyMDAwIDAwOjU0OjM0IC0wODAwIChQ U1QpDQpSZWNlaXZlZDogRlJPTSB0ZWlsLnNvZnQubmV0IEJZIG1haWxzY2Fu LnRlaWwuc29mdC5uZXQgOyBUdWUgRGVjIDEyIDE0OjI2OjU4IDIwMDAgKzA1 MDANClJlY2VpdmVkOiBmcm9tIHRlaWwuc29mdC5uZXQgKFsxMC4xMi4xLjgy XSkgYnkgdGVpbC5zb2Z0Lm5ldCAoOTgwNDI3LlNHSS44LjguOC85NzA5MDMu U0dJLkFVVE9DRikgdmlhIEVTTVRQIGlkIE9BQTY4MDczIGZvciA8bGludXgt aW5kaWEtcHJvZ3JhbW1lcnNAbGlzdHMubGludXgtaW5kaWEub3JnPjsgVHVl LCAxMiBEZWMgMjAwMCAxNDoxODo1MyArMDUzMCAoSVNUKQ0KTWVzc2FnZS1J RDogPDNBMzVFNzg2LkNGQjMzM0NEQHRlaWwuc29mdC5uZXQ+DQpEYXRlOiBU dWUsIDEyIERlYyAyMDAwIDE0OjIzOjI3ICswNTMwDQpGcm9tOiBTdXRpcnRo YSBNaXRyYSA8c3V0aXJ0aGFAdGVpbC5zb2Z0Lm5ldD4NClgtTWFpbGVyOiBN b3ppbGxhIDQuNiBbZW5dIChXaW5OVDsgSSkNClgtQWNjZXB0LUxhbmd1YWdl OiBlbg0KTUlNRS1WZXJzaW9uOiAxLjANClRvOiBsaW51eC1pbmRpYS1wcm9n cmFtbWVyc0BsaXN0cy5saW51eC1pbmRpYS5vcmcNClN1YmplY3Q6IFtMSVBd IEhvdyB0byBpZGVudGlmeSBhIFVuaXggbWFjaGluZS4uLi4NClJlZmVyZW5j ZXM6IDw2NTI1OTYzLjk3NjYwODU1NDEzNi5KYXZhTWFpbC5BZG1pbmlzdHJh dG9yQGh2d3d3Mz4NCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNl dD11cy1hc2NpaQ0KQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogN2JpdA0K TGlzdC1VbnN1YnNjcmliZTogbWFpbHRvOmxpbnV4LWluZGlhLXByb2dyYW1t ZXJzLXJlcXVlc3RAbGlzdHMubGludXgtaW5kaWEub3JnP3N1YmplY3Q9dW5z dWJzY3JpYmUNCkxpc3QtT3duZXI6IG1haWx0bzogbGludXgtaW5kaWEtcHJv Z3JhbW1lcnMtb3duZXJAbGlzdHMubGludXgtaW5kaWEub3JnDQpMaXN0LUFy Y2hpdmU6IGh0dHA6Ly9saXN0cy5saW51eC1pbmRpYS5vcmcvY2dpLWJpbi93 aWxtYS9saW51eC1pbmRpYS1wcm9ncmFtbWVycw0KUHJlY2VkZW5jZTogYnVs aw0KU2VuZGVyOiBsaW51eC1pbmRpYS1wcm9ncmFtbWVycy1vd25lckBsaXN0 cy5saW51eC1pbmRpYS5vcmcNClJlcGx5LVRvOiBsaW51eC1pbmRpYS1wcm9n cmFtbWVyc0BsaXN0cy5saW51eC1pbmRpYS5vcmcNCg0KSGkgYWxsLA0KDQpU aG91Z2ggaXQgaXMgbm90IHRvdGFsbHkgbGludXggcmVsYXRlZCBxdWVzdGlv biBzdGlsbCBpIGV4ZXBjdCBhIGxvdCBvZiBhbnN3YXJlcy4uLg0KDQpteSBw cm9ibSBpcw0KaG93IHRvIGlkZW50aWZ5IHVuaXggbWFjaGluZXMgaW4gYSBM QU4gY29ubmVjdGlvbiA/DQphY3R1YWxseSBpIHdhbnQgdG8ga25vdyB0aGUg ZnVuY3Rpb25zIG9yIHRoZSBjbGFzc2VzIHRoYXQgd2lsbCBiZSBvZiBoZWxw IHJlZ2FyZGluZyB0aGlzLg0KdGhlICBwbGF0Zm9ybSBpcyBWQysrIGluIFdJ TiBOVA0KcmVnYXJkcw0Kc3V0aXJ0aGENCg0KDQoNCi0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KRmluZCBvdXQgbW9y ZSBhYm91dCB0aGlzIGFuZCBvdGhlciBMaW51eCBJbmRpYQ0KbWFpbGluZyBs aXN0cyBhdCBodHRwOi8vbGlzdHMubGludXgtaW5kaWEub3JnLw0K --0__=JDbskocAALiuNPce7Hn2yX6zLwp5uQITmX3Z8kWBXWjh3ewnOYGxjhAu-- From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 21:59:55 2000 Received: from web5301.mail.yahoo.com (web5301.mail.yahoo.com [216.115.106.110]) by www.aunet.org (Postfix) with SMTP id B7EB84A00C for ; Thu, 14 Dec 2000 21:59:53 -0800 (PST) Message-ID: <20001215055917.7175.qmail@web5301.mail.yahoo.com> Received: from [202.54.79.120] by web5301.mail.yahoo.com; Thu, 14 Dec 2000 21:59:17 PST Date: Thu, 14 Dec 2000 21:59:17 -0800 (PST) From: Santosh Singh Subject: Re: How to identify a Unix machine.... To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/111 X-Sequence-Number: 1031 Hi As in telnet you can use socket programming in Win32. connect to the remote machine and then read out the message. it will pop out the version of Unix(variant). There might be many other ways also. N'joy Santosh --- "Binand Raj S." wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Sutirtha Mitra forced the electrons to say: > > my probm is > > how to identify unix machines in a LAN connection > ? __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 22:20:36 2000 Received: from fsnt.future.futsoft.com (unknown [203.197.140.35]) by www.aunet.org (Postfix) with ESMTP id 6379F4A36C for ; Thu, 14 Dec 2000 22:20:31 -0800 (PST) Received: from kailash.future.futsoft.com (unverified) by fsnt.future.futsoft.com (Content Technologies SMTPRS 2.0.15) with ESMTP id for ; Fri, 15 Dec 2000 11:54:04 +0530 Received: from senthildr (senthildr.future.futsoft.com [192.168.7.12]) by kailash.future.futsoft.com (8.11.0/8.11.0) with SMTP id eBFBpT213685 for ; Fri, 15 Dec 2000 17:21:29 +0530 Reply-To: From: "senthil devan" To: "'linux-india'" Subject: BIG ENDIAN and LITTLE ENDIAN Date: Sun, 15 Dec 2002 11:52:45 +0530 Message-Id: <000b01c2a402$63920900$0c07a8c0@future.futsoft.com> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/112 X-Sequence-Number: 1032 Hi I need some details reg BIG ENDIAN and LITTLE ENDIAN and its importance in commands htonl htons ntohl ntohs thanks in advance Devan From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 22:23:05 2000 Received: from hindon.hss.co.in (unknown [202.54.26.202]) by www.aunet.org (Postfix) with ESMTP id 88C1A4A0E8 for ; Thu, 14 Dec 2000 22:23:01 -0800 (PST) Received: from sandesh.hss.hns.com (localhost [127.0.0.1]) by hindon.hss.co.in (8.10.0/8.10.0) with SMTP id eBF6Nmi11208 for ; Fri, 15 Dec 2000 11:53:48 +0530 (IST) Received: by sandesh.hss.hns.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 652569B6.0021EE0B ; Fri, 15 Dec 2000 11:40:36 +0530 X-Lotus-FromDomain: HSS From: aaranya@hss.hns.com To: linux-india-programmers@lists.linux-india.org Message-ID: <652569B6.0021ECC8.00@sandesh.hss.hns.com> Date: Fri, 15 Dec 2000 11:52:19 +0530 Subject: Re: How to identify a Unix machine.... Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200012/113 X-Sequence-Number: 1033 Hi, Not a foolproof method. Telnet might be blocked and even if it is open, there may be a variety of issue messages which may or may not describe the OS correctly. I think the best way to do it is use what nmap uses, though even that is not too certain. Regards, Akshat Santosh Singh on 12/15/2000 11:29:17 AM Please respond to linux-india-programmers@lists.linux-india.org To: linux-india-programmers@lists.linux-india.org cc: (bcc: Akshat Aranya/HSS) Subject: Re: [LIP] How to identify a Unix machine.... Hi As in telnet you can use socket programming in Win32. connect to the remote machine and then read out the message. it will pop out the version of Unix(variant). There might be many other ways also. N'joy Santosh --- "Binand Raj S." wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Sutirtha Mitra forced the electrons to say: > > my probm is > > how to identify unix machines in a LAN connection > ? __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ --------------------------------------------- The mailing list archives are available at http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 22:53:28 2000 Received: from fsnt.future.futsoft.com (unknown [203.197.140.35]) by www.aunet.org (Postfix) with ESMTP id C60EA4A0F8 for ; Thu, 14 Dec 2000 22:53:25 -0800 (PST) Received: from kailash.future.futsoft.com (unverified) by fsnt.future.futsoft.com (Content Technologies SMTPRS 2.0.15) with ESMTP id ; Fri, 15 Dec 2000 12:27:10 +0530 Received: from senthildr (senthildr.future.futsoft.com [192.168.7.12]) by kailash.future.futsoft.com (8.11.0/8.11.0) with SMTP id eBFCOa217782; Fri, 15 Dec 2000 17:54:36 +0530 Reply-To: From: "senthil devan" To: "'linux-india'" Subject: RE: BIG ENDIAN and LITTLE ENDIAN Date: Sun, 15 Dec 2002 12:25:51 +0530 Message-Id: <000c01c2a407$036a0000$0c07a8c0@future.futsoft.com> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 In-Reply-To: Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/114 X-Sequence-Number: 1034 Hi Tanks for your info. I am at present doing some socket programs. Tough I have been using these commands I have never been perfectly clear about these things. I will explain my doubt in detail We have htonl & ntohl for 4 bytes htons & ntohs for 2 bytes but for a single byte data we normally read it directly from buffer. If any compatibility problems then it must be there even while operating in single bytes. Thanks in advance Devan -----Original Message----- From: Kondaiah (IE10) [mailto:Kondaiah@honeywell.com] Sent: Friday, December 15, 2000 12:10 PM To: senthildr@future.futsoft.com Subject: RE: [LIP] BIG ENDIAN and LITTLE ENDIAN Hi, Each processor will have its own format of data storage, For example Motorola processor will store the data in BIGIndian(first bytes will be Higher order) format and Intel processor stores in little Indian format. Inorder to nullify the processor effect on tcp/IP It is better to follow network byte order, That's why all these htonl(host to network long) and all came into picture. This effect u can see when ur doing socket programming. Thanks, > -----Original Message----- > From: senthil devan [SMTP:senthildr@future.futsoft.com] > Sent: Sunday, December 15, 2002 11:53 AM > To: 'linux-india' > Subject: [LIP] BIG ENDIAN and LITTLE ENDIAN > > Hi > > I need some details reg BIG ENDIAN and LITTLE ENDIAN and its importance in > commands > > htonl > htons > ntohl > ntohs > > thanks in advance > > Devan > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Thu Dec 14 23:06:58 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 157754A01D for ; Thu, 14 Dec 2000 23:06:55 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBF7DL929008 for ; Fri, 15 Dec 2000 12:43:21 +0530 Message-ID: <3A39C3F5.21C142CE@pspl.co.in> Date: Fri, 15 Dec 2000 12:40:45 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: How to identify a Unix machine.... References: <652569B6.0021ECC8.00@sandesh.hss.hns.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/115 X-Sequence-Number: 1035 Hi This is a short cut. Use a portscanner like nmap. It can *guess* the OS. Or look at it's source code if you want to do it on your own. But TCP/IP finger printing is never full proof. You can ask kernel to report as anything you want.(Don't ask me how to do it. I have just read it somewhere...) Bye Shridhar aaranya@hss.hns.com wrote: > Hi, > > Not a foolproof method. Telnet might be blocked and even if it is open, there > may be a variety of issue messages which may or may not describe the OS > correctly. I think the best way to do it is use what nmap uses, though even that > is not too certain. > > Regards, > Akshat From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 00:15:25 2000 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by www.aunet.org (Postfix) with ESMTP id C2EF34A0F8 for ; Fri, 15 Dec 2000 00:14:35 -0800 (PST) Received: from blrmail.in.tatainfotech.com (blrmail [163.122.1.1]) by brelay.tatainfotech.com (8.9.3/8.9.3) with ESMTP id NAA27905 for ; Fri, 15 Dec 2000 13:50:48 +0530 Received: from localhost (narain.cr@localhost) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with ESMTP id NAA21388 for ; Fri, 15 Dec 2000 13:57:40 +0530 Date: Fri, 15 Dec 2000 13:57:40 +0530 (IST) From: Narain CR X-Sender: narain.cr@blrmail.in.tatainfotech.com To: "'linux-india'" Subject: RE: BIG ENDIAN and LITTLE ENDIAN In-Reply-To: <000c01c2a407$036a0000$0c07a8c0@future.futsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/116 X-Sequence-Number: 1036 Hi Senthil, I think not b'cos these problems AFAIK are only for int's where the sequence in which the bytes are stored is processor-dependant. For a single byte, the storage system is the same (stream of 8 bits). Someone please correct me if I'm wrong... HTH, Narain. On Sun, 15 Dec 2002, senthil devan wrote: Hi but for a single byte data we normally read it directly from buffer. If any compatibility problems then it must be there even while operating in single bytes. From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 00:30:47 2000 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by www.aunet.org (Postfix) with ESMTP id B25CF4A0F8 for ; Fri, 15 Dec 2000 00:30:30 -0800 (PST) Received: from blrmail.in.tatainfotech.com (blrmail [163.122.1.1]) by brelay.tatainfotech.com (8.9.3/8.9.3) with ESMTP id OAA28321 for ; Fri, 15 Dec 2000 14:06:55 +0530 Received: from localhost (narain.cr@localhost) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with ESMTP id OAA24270 for ; Fri, 15 Dec 2000 14:13:45 +0530 Date: Fri, 15 Dec 2000 14:13:45 +0530 (IST) From: Narain CR X-Sender: narain.cr@blrmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Re: How to identify a Unix machine.... In-Reply-To: <20001215055917.7175.qmail@web5301.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/117 X-Sequence-Number: 1037 Hi there, The standard FTP service (if enabled) is also a good way to know the system type... [narain@dracula narain]$ ftp matrix Connected to matrix. 220 matrix.in.tatainfotech.com FTP server (Version wu-2.4.2-academ [BETA-18](1) Mon Aug 3 19:17:20 EDT 1998) ready. Name (matrix:narain): 331 Password required for narain. Password: 530 Login incorrect. Login failed. Remote system type is UNIX. Using binary mode to transfer files. ftp> syst 215 UNIX Type: L8 ftp> ^^ As can be seen from the above transcript, we even don't need to have a login on the machine to access this info. Winduz returns something different for the same sequence of commands... I think the L8 above signifies something special (like the OS type or something)... On a SUN machine, I got the following... ftp> syst 215 UNIX Type: L8 Version: SUNOS On a SVR4 system, ftp> syst 215 UNIX Type: L8 System V/PENTIUM Release 4.0, Version 2. On a Unixware (SVR5) system, ftp> syst 215 UNIX Type: L8 SCO UnixWare System V/i386 Release 5, Version 7.1.1. But overall, a good indication of the OS... HTH, Narain. On Thu, 14 Dec 2000, Santosh Singh wrote: Hi As in telnet you can use socket programming in Win32. connect to the remote machine and then read out the message. it will pop out the version of Unix(variant). There might be many other ways also. From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 01:04:45 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id EC62A4A042; Fri, 15 Dec 2000 01:04:04 -0800 (PST) Received: (from amarg@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id OAA04990; Fri, 15 Dec 2000 14:36:26 +0530 Date: Fri, 15 Dec 2000 14:36:26 +0530 From: Amarendra GODBOLE To: linux-india-programmers@lists.linux-india.org Cc: linux-india-general@lists.linux-india.org Subject: Re: How to identify a Unix machine.... Message-ID: <20001215143626.A4761@alice.bombay.retortsoft.com> References: <20001215055917.7175.qmail@web5301.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from narain.cr@tatainfotech.com on Fri, Dec 15, 2000 at 02:13:45PM +0530 X-Quote: "If you don't try to succeed, nobody will try to stop you." X-Friends: Shailesh, Shantanu, Sameer, Prachi, Dinesh, Sujeet. X-Home: www.crosswinds.net/~amargod X-Organisation: Retort Software Pvt. Ltd., Powai, Mumbai. INDIA. X-Archive-Number: 200012/118 X-Sequence-Number: 1038 On Fri, Dec 15, 2000, the greycells of Narain CR expressed: > Hi there, > > The standard FTP service (if enabled) is also a good way to know the > system type... > > [narain@dracula narain]$ ftp matrix > Connected to matrix. > 220 matrix.in.tatainfotech.com FTP server (Version wu-2.4.2-academ > [BETA-18](1) Mon Aug 3 19:17:20 EDT 1998) ready. > Name (matrix:narain): > 331 Password required for narain. > Password: > 530 Login incorrect. > Login failed. > Remote system type is UNIX. > Using binary mode to transfer files. ########################################################################### Hi Narain, Well, this has nothing to do with what this thread is. I wish to make a point here. Please do not use REAL names, or rather REAL transcripts of your FTP sessions. Might prove a major security hazard for your organisation. Also, check if your company's security policies allow you to represent real server names, user ids. etc.. What I mean to say that, please do not make your organisation vulnerable to any of the CRACKING attacks. I apologize for being OT on this LIP list. Folloups to be posted to LIG, (that list seems feasible to me). I am crossposting it to LIG also. Cheers, -amar- -- Amarendra GODBOLE (http://ag.dnsq.org) Public Key: http://pubkey.dnsq.org 18.97 deg. N / 72.83 deg. E +0530 GMT From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 01:37:06 2000 Received: from mjollnir.rocklines.oyeindia.com (unknown [202.169.133.50]) by www.aunet.org (Postfix) with ESMTP id 5D24C4A011; Fri, 15 Dec 2000 01:35:54 -0800 (PST) Received: (from suresh@localhost) by mjollnir.rocklines.oyeindia.com (8.11.1/8.11.1/mjollnir-1.2) id eBF9VPn21509; Fri, 15 Dec 2000 15:01:25 +0530 Date: Fri, 15 Dec 2000 15:01:25 +0530 From: Suresh Ramasubramanian To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org Subject: Re: [LIG] Re: How to identify a Unix machine.... Message-ID: <20001215150125.B21500@oyeindia.com> Reply-To: Suresh Ramasubramanian Mail-Followup-To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org References: <20001215055917.7175.qmail@web5301.mail.yahoo.com> <20001215143626.A4761@alice.bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001215143626.A4761@alice.bombay.retortsoft.com>; from amarg@bombay.retortsoft.com on Fri, Dec 15, 2000 at 02:36:26PM +0530 Organization: Hopelessly Disorganized X-Archive-Number: 200012/119 X-Sequence-Number: 1039 Amarendra GODBOLE rearranged electrons thusly: > Please do not use REAL names, or rather REAL transcripts of your FTP sessions. > Might prove a major security hazard for your organisation. Also, check if > your company's security policies allow you to represent real server names, > user ids. etc.. security by obscurity in short ;) it's trivial to find out that tatainfotech.co.in has a host called matrix ... and that matrix is running an ftp server (try running nmap there) Oh btw, _dont_ run an ftp server (least of all, wu-ftpd from the redhat rpm) on a public IP, accessible to everybody. There are several nasty holes in there. Switch to proftpd (or better, remove ftp, telnet and switch to rsync and ssh) -- Suresh Ramasubramanian + mallet<@>efn.org You spamma my mailbox, I nukea da ass From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 02:33:10 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id 3E3144A0FF; Fri, 15 Dec 2000 02:32:55 -0800 (PST) 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 QAA08002; Fri, 15 Dec 2000 16:03:30 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id PAA01556; Fri, 15 Dec 2000 15:53:44 +0530 Date: Fri, 15 Dec 2000 15:53:43 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org Subject: Re: [LIG] Re: How to identify a Unix machine.... Message-ID: <20001215155343.A638@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org References: <20001215055917.7175.qmail@web5301.mail.yahoo.com> <20001215143626.A4761@alice.bombay.retortsoft.com> <20001215150125.B21500@oyeindia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <20001215150125.B21500@oyeindia.com>; from mallet@efn.org on Fri, Dec 15, 2000 at 03:01:25PM +0530 X-Operating-System: Linux 2.2.16-1 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/120 X-Sequence-Number: 1040 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Suresh Ramasubramanian forced the electrons to say: > Oh btw, _dont_ run an ftp server (least of all, wu-ftpd from the redhat rpm) > on a public IP, accessible to everybody. There are several nasty holes in > there. Switch to proftpd (or better, remove ftp, telnet and switch to rsync > and ssh) I have been experimenting with the Linux port of OpenBSD's FTP server. Seems to me is quite robust and stable - and secure, given their extensive code audits. Find the port on freshmeat. Binand -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6OfEpGXtiwttetWoRAhKkAJ9WzVGLDAbLG21qBx07AMMf8xr2ogCeN1zC BphKX4KyjUq4UOBK7BsTfX4= =l+n3 -----END PGP SIGNATURE----- From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 07:18:11 2000 Received: from delhi1.mtnl.net.in (delhi1.mtnl.net.in [203.94.243.51]) by www.aunet.org (Postfix) with ESMTP id 2A6D249F5F; Fri, 15 Dec 2000 07:17:42 -0800 (PST) Received: from mail.linux-delhi.org by delhi1.mtnl.net.in (8.9.1/1.1.20.3/07Jul00-0916AM) id UAA0000004634; Fri, 15 Dec 2000 20:44:03 +0530 (IST) Received: (from raju@localhost) by mail.linux-delhi.org (8.9.3/8.9.3) id UAA02070; Fri, 15 Dec 2000 20:45:28 +0530 From: Raju Mathur MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14906.13712.819615.67594@localhost.localdomain> Date: Fri, 15 Dec 2000 20:45:28 +0530 (IST) To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org Subject: Re: [LIG] Re: How to identify a Unix machine.... In-Reply-To: <20001215150125.B21500@oyeindia.com> References: <20001215055917.7175.qmail@web5301.mail.yahoo.com> <20001215143626.A4761@alice.bombay.retortsoft.com> <20001215150125.B21500@oyeindia.com> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid Reply-To: raju@linux-delhi.org X-Archive-Number: 200012/121 X-Sequence-Number: 1041 Nah, don't bother with running nmap, you may get caught. Just use nslookup to list out all the domains using one of TIL's DNS servers. Yes, they permit zone transfers from unauthorised hosts. No, they're not the only ones -- 80% of the ISP's I tried zone transfers and other stuff on happily gave me their IP's, their dial-up IP's, public SNMP responses from their routers, fingers on their RAS's, the works. I guess it won't take more than an hour or so to get r00t on any of their servers either. Security? What's that? /me's clue-o-meter reads below zero. Regards, -- Raju >>>>> "Suresh" == Suresh Ramasubramanian writes: Suresh> Amarendra GODBOLE rearranged electrons thusly: >> Please do not use REAL names, or rather REAL transcripts of >> your FTP sessions. Might prove a major security hazard for >> your organisation. Also, check if your company's security >> policies allow you to represent real server names, user >> ids. etc.. Suresh> security by obscurity in short ;) it's trivial to find Suresh> out that tatainfotech.co.in has a host called matrix Suresh> ... and that matrix is running an ftp server (try running Suresh> nmap there) Suresh> Oh btw, _dont_ run an ftp server (least of all, wu-ftpd Suresh> from the redhat rpm) on a public IP, accessible to Suresh> everybody. There are several nasty holes in there. Suresh> Switch to proftpd (or better, remove ftp, telnet and Suresh> switch to rsync and ssh) -- Raju Mathur raju@kandalaya.org http://kandalaya.org/ From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 07:25:11 2000 Received: from mjollnir.rocklines.oyeindia.com (unknown [202.169.133.50]) by www.aunet.org (Postfix) with ESMTP id DC2A34A0E8; Fri, 15 Dec 2000 07:25:07 -0800 (PST) Received: (from suresh@localhost) by mjollnir.rocklines.oyeindia.com (8.11.1/8.11.1/mjollnir-1.2) id eBFFKik23464; Fri, 15 Dec 2000 20:50:44 +0530 Date: Fri, 15 Dec 2000 20:50:43 +0530 From: Suresh Ramasubramanian To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org Subject: Re: [LIG] Re: How to identify a Unix machine.... Message-ID: <20001215205043.B23454@oyeindia.com> Reply-To: Suresh Ramasubramanian Mail-Followup-To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org References: <20001215055917.7175.qmail@web5301.mail.yahoo.com> <20001215143626.A4761@alice.bombay.retortsoft.com> <20001215150125.B21500@oyeindia.com> <14906.13712.819615.67594@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <14906.13712.819615.67594@localhost.localdomain>; from raju@linux-delhi.org on Fri, Dec 15, 2000 at 08:45:28PM +0530 Organization: Hopelessly Disorganized X-Archive-Number: 200012/122 X-Sequence-Number: 1042 Raju Mathur rearranged electrons thusly: > Nah, don't bother with running nmap, you may get caught. Just use > nslookup to list out all the domains using one of TIL's DNS servers. > Yes, they permit zone transfers from unauthorised hosts. No, they're not all do. and nmap also lists open ports. > I guess it won't take more than an hour or so to get r00t on any of > their servers either. ... using readymade rootkits, far less, I expect. Especially as the hacks to get into default deadrat^W redhat setups are quite well documented. _Especially_ if they have configured sendmail etc with linuxconf (and left linuxconf open to all). > Security? What's that? > /me's clue-o-meter reads below zero. If they are running such misconfigured boxes, I have rather strong suspicions that their server logs are read by one Mr.Dave Null (aka /dev/null), most of the time. -- Suresh Ramasubramanian + mallet<@>efn.org You spamma my mailbox, I nukea da ass From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 08:49:41 2000 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by www.aunet.org (Postfix) with ESMTP id 286414A01D; Fri, 15 Dec 2000 08:49:15 -0800 (PST) Received: from blrmail.in.tatainfotech.com (blrmail [163.122.1.1]) by brelay.tatainfotech.com (8.9.3/8.9.3) with ESMTP id WAA03666; Fri, 15 Dec 2000 22:25:27 +0530 Received: from localhost (narain.cr@localhost) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with ESMTP id WAA19642; Fri, 15 Dec 2000 22:32:21 +0530 Date: Fri, 15 Dec 2000 22:32:21 +0530 (IST) From: Narain CR X-Sender: narain.cr@blrmail.in.tatainfotech.com Cc: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org Subject: Re: [LIG] Re: How to identify a Unix machine.... In-Reply-To: <20001215150125.B21500@oyeindia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/123 X-Sequence-Number: 1043 Thanx very much Suresh / Amarendra, I really appreciate the concern and I guess we should all be more aware of these issues. The machine I have mentioned (matrix) is NOT a server and is NOT accessible from outside of the company network and that is the only reason why I pasted the whole transcript without making any modifications to the list. For the servers (SunOS etc, I had cut out the appropriate parts...). Thanks once again for pointing it out to me / us. Regards, Narain. On Fri, 15 Dec 2000, Suresh Ramasubramanian wrote: Amarendra GODBOLE rearranged electrons thusly: > Please do not use REAL names, or rather REAL transcripts of your FTP sessions. > Might prove a major security hazard for your organisation. Also, check if > your company's security policies allow you to represent real server names, > user ids. etc.. security by obscurity in short ;) it's trivial to find out that tatainfotech.co.in has a host called matrix ... and that matrix is running an ftp server (try running nmap there) Oh btw, _dont_ run an ftp server (least of all, wu-ftpd from the redhat rpm) on a public IP, accessible to everybody. There are several nasty holes in there. Switch to proftpd (or better, remove ftp, telnet and switch to rsync and ssh) From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 11:06:42 2000 Received: from hotmail.com (f253.law4.hotmail.com [216.33.148.131]) by www.aunet.org (Postfix) with ESMTP id 4EC6049F5F for ; Fri, 15 Dec 2000 11:06:38 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 15 Dec 2000 11:05:59 -0800 Received: from 203.200.0.137 by lw4fd.law4.hotmail.msn.com with HTTP; Fri, 15 Dec 2000 19:05:59 GMT X-Originating-IP: [203.200.0.137] From: "Rajeev Rao" To: linux-india-programmers@lists.linux-india.org Subject: ncurses and menu Date: Fri, 15 Dec 2000 19:05:59 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 15 Dec 2000 19:05:59.0532 (UTC) FILETIME=[0F77F2C0:01C066CA] X-Archive-Number: 200012/124 X-Sequence-Number: 1044 Hello, I've been designing an editor. I've used the ncurses' menu library to do the interface. I've used rhide for an IDE. Heres the problem : The editor works fine without being run with any arguements. I am able to open most files including NFS-HOWTO..and most other large txt files. However, if I specify, a text file as an arguement, and this file happens to exceed a page, the editor crashes with a segmentation fault. On tracing the code, I tracked the problem down to a menu definition as shown below. This object, is totally unrelated to the file opened or the size or anything. The names variable has been assigned properly(global strings in a namespace). The size of sz has also been verified? Is this a bug with menu? Rajeev menuobj::menuobj(char **names, int sz, int begx,int begy,int n) : menuno(n) { ITEM **p = new ITEM *[sz]; for(int i = 0; i < sz; i++) p[i] = new_item(names[i],0); => menu = new_menu(p); //line where error occurs int r,c; scale_menu(menu, &r,&c); menuwin = newwin(r+1,c+1,begx,begy); keypad(menuwin,1); set_menu_win(menu, menuwin); menu_opts_off(menu,O_NONCYCLIC); menu_opts_off(menu,O_SHOWDESC); } > >--------------------------------------------- >Find out more about this and other Linux India >mailing lists at http://lists.linux-india.org/ _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 17:22:20 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 1F6204A104 for ; Fri, 15 Dec 2000 17:22:15 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id RAA14837; Fri, 15 Dec 2000 17:18:52 -0800 Date: Fri, 15 Dec 2000 17:18:52 -0800 From: Arun Sharma To: Sharad Joshi Cc: Vikram K , linux-india-programmers@lists.linux-india.org Subject: Re: File handling in kernel mode... Message-ID: <20001215171852.A14825@sharmas.dhs.org> References: <002001c064f0$7818be30$f9604c0f@india.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from sharad.joshi@wipro.com on Thu, Dec 14, 2000 at 04:02:56PM +0530 X-Archive-Number: 200012/125 X-Sequence-Number: 1045 On Thu, Dec 14, 2000 at 04:02:56PM +0530, Sharad Joshi wrote: > Well, implementors of *nix chose to associate operations on each file > handle (open) to some application process. In a well structured OS, you can have both - access controlled access from userland using fds and unrestricted access from kernel land using 'struct file'. -Arun From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 21:37:32 2000 Received: from mjollnir.rocklines.oyeindia.com (unknown [202.169.133.50]) by www.aunet.org (Postfix) with ESMTP id D7A9C4A0E7; Fri, 15 Dec 2000 21:35:27 -0800 (PST) Received: (from suresh@localhost) by mjollnir.rocklines.oyeindia.com (8.11.1/8.11.1/mjollnir-1.2) id eBG5ULb00798; Sat, 16 Dec 2000 11:00:21 +0530 Date: Sat, 16 Dec 2000 11:00:21 +0530 From: Suresh Ramasubramanian To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org Subject: Re: [LIG] Re: How to identify a Unix machine.... Message-ID: <20001216110021.A792@oyeindia.com> Reply-To: Suresh Ramasubramanian Mail-Followup-To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org References: <20001215150125.B21500@oyeindia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from narain.cr@tatainfotech.com on Fri, Dec 15, 2000 at 10:32:21PM +0530 Organization: Hopelessly Disorganized X-Archive-Number: 200012/126 X-Sequence-Number: 1046 Narain CR rearranged electrons thusly: > why I pasted the whole transcript without making any modifications to the > list. For the servers (SunOS etc, I had cut out the appropriate parts...). cutting out the appropriate parts is a waste of time when anyone can AXFR the whole list from your dns servers (or run nmap and portscan your network) securing your machines on public IPs is a better option (_especially solaris, which needs several dozen patch kits from the original) ;) --suresh -- Suresh Ramasubramanian + mallet<@>efn.org You spamma my mailbox, I nukea da ass From linux-india-programmers-owner@lists.linux-india.org Fri Dec 15 22:27:46 2000 Received: from gondwana.ecr.mu.oz.au (gondwana.ecr.mu.oz.au [128.250.70.62]) by www.aunet.org (Postfix) with ESMTP id 7B84F49F5F for ; Fri, 15 Dec 2000 22:27:39 -0800 (PST) Received: from gromit.ecr.mu.oz.au (gromit.ecr.mu.oz.au [128.250.61.61]) by gondwana.ecr.mu.oz.au (8.11.0/8.9.3) with ESMTP id eBG6Qu410681 for ; Sat, 16 Dec 2000 17:26:56 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id eBG6QuI2541530 for linux-india-programmers@lists.linux-india.org; Sat, 16 Dec 2000 17:26:56 +1100 (EDT) Date: Sat, 16 Dec 2000 17:26:55 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: How to identify a Unix machine....] Message-ID: <20001216172655.B2491440@ecr.mu.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Archive-Number: 200012/127 X-Sequence-Number: 1047 Suresh Ramasubramanian wrote (mallet@efn.org): > Raju Mathur rearranged electrons thusly: > > > Nah, don't bother with running nmap, you may get caught. Just use > > not all do. and nmap also lists open ports. > There seems to be a wave of posts recommending/suggesting port scanning someone else's machine to figure what it is running. None of the posters seemed to have indicated the dangers involved in port scans. Port scanning is unethical! Any concerned sysadmin will regard a port scan as a hacker/cracker trying to identify weakness' in the system (nomatter how innocent your intentions may be). Most machines may even add you to the hosts.deny list automagically if it detects a port scan. Worse still, if you are doing this on your employers machines, be ready to lose your job. In general there are several things that a computer system cannot prevent you from doing - eg. port scanning, packet sniffing, etc - and you might be able to do these things. This does not mean that you are allowed to do them. And the more you learn, the more things you can do... and more reasons to remember this simple rule. I still have my doubts when someone wants to find out what OS an alien computer is running. Why would you want to know that?? - Raja PS: Well, I think I've made this sound too grave, but this is not too bad. From linux-india-programmers-owner@lists.linux-india.org Sat Dec 16 10:17:07 2000 Received: from www.aunet.org (localhost [127.0.0.1]) by www.aunet.org (Postfix) with SMTP id 066C94A0AB for ; Sat, 16 Dec 2000 10:17:06 -0800 (PST) Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 404F74A15C for ; Fri, 15 Dec 2000 06:47:33 -0800 (PST) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2892764 for ; Fri, 15 Dec 2000 20:22:26 +0530 From: "Linux List " Subject: subscribe me To: X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Fri, 15 Dec 2000 20:22:26 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200012/128 X-Sequence-Number: 1048 hi could some one please tell me how to subscribe to the list.I am not recieving any messages for some days.my college server was down for some days and i think i got unsubscribed because of that. i tried the linux-india site but couldn't figure out how to subscribe. thanx vinu From linux-india-programmers-owner@lists.linux-india.org Sun Dec 17 22:35:05 2000 Received: from hotmail.com (f255.law8.hotmail.com [216.33.240.130]) by www.aunet.org (Postfix) with ESMTP id B1E8149FF0 for ; Sun, 17 Dec 2000 22:34:58 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 17 Dec 2000 22:34:09 -0800 Received: from 203.197.135.147 by lw8fd.law8.hotmail.msn.com with HTTP; Mon, 18 Dec 2000 06:34:09 GMT X-Originating-IP: [203.197.135.147] From: "Adityan Murthy" To: linux-india-programmers@lists.linux-india.org Subject: Perl Doubt Date: Mon, 18 Dec 2000 12:04:09 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 18 Dec 2000 06:34:09.0480 (UTC) FILETIME=[87058480:01C068BC] X-Archive-Number: 200012/129 X-Sequence-Number: 1049 Hi All! I've just started learning perl. I have a file called read_art.pl which takes a parameter for the name of the file and reads the article. i want to have a rate this article link which rates it. for that, i plan to write a file, say rateit.pl now, when i click on rate it, it will call the perl file, say as, rateit.pl?val=2 (2 is the name of the article file). this file (rateit.pl) will contain the form required to rate it. now i want the same file to create the form and do the rating. that means that when i rate, it will call rateit.pl?val=2&rating=5. so, how do i make the same pl file distinguish the two diff calls? Also, what is "use CGI"? Seems similar to creating an object of a class in C++. Where do i get info on the various functions in CGI? Thanx 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 Dec 17 23:58:37 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id D531E49FDE for ; Sun, 17 Dec 2000 23:58:31 -0800 (PST) Received: from Larry.bk (unknown [203.197.136.220]) by md2.vsnl.net.in (Postfix) with ESMTP id 42DAD316 for ; Mon, 18 Dec 2000 13:36:56 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id NAA01488 for ; Mon, 18 Dec 2000 13:23:09 +0530 Date: Mon, 18 Dec 2000 13:23:09 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Perl Doubt In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/130 X-Sequence-Number: 1050 Hi It's better that you read some documentaion on CGI & perl in general. perl man pages are excellent & is exhaustive. man perl - to get the details of further man pages. man perlfunc - for doc. on perl functions. perldoc - to read documentation of any particular package. Eg. 'perldoc CGI' will show you the documentation for the module CGI Happy perl journey ! Sreeji On Mon, 18 Dec 2000, Adityan Murthy wrote: > Hi All! > > I've just started learning perl. > > I have a file called read_art.pl which takes a parameter for the name of the > file and reads the article. i want to have a rate this article link which > rates it. for that, i plan to write a file, say rateit.pl now, when i click > on rate it, it will call the perl file, say as, rateit.pl?val=2 (2 is the > name of the article file). this file (rateit.pl) will contain the form > required to rate it. now i want the same file to create the form and do the > rating. that means that when i rate, it will call rateit.pl?val=2&rating=5. > so, how do i make the same pl file distinguish the two diff calls? > > Also, what is "use CGI"? Seems similar to creating an object of a class in > C++. Where do i get info on the various functions in CGI? > > Thanx in advance. > > Adityan > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. > From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 02:12:34 2000 Received: from unknown-147.101.pilot.net (unknown-147-101.pilot.net [198.232.147.101]) by www.aunet.org (Postfix) with ESMTP id 22F1349F62; Mon, 18 Dec 2000 02:12:25 -0800 (PST) Received: from unknown-24-15.pilot.net (unknown-24-15.pilot.net [206.189.24.15]) by unknown-147.101.pilot.net with ESMTP id CAA22963; Mon, 18 Dec 2000 02:11:35 -0800 (PST) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-15.pilot.net with ESMTP id CAA25934; Mon, 18 Dec 2000 02:11:33 -0800 (PST) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2652.35) id ; Mon, 18 Dec 2000 15:46:12 +0530 Message-ID: <4DE51758E7CDD411A78700508B6FEB1E47B71E@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: LIG , LIP Subject: linux and P4 Date: Mon, 18 Dec 2000 15:46:22 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200012/131 X-Sequence-Number: 1051 for the caught-unawares, like me ! http://www.theregister.co.uk/content/3/15441.html _______________________________________________ Shourya Sarcar || Global Software Platforms gemedicalsystems.com || ge.com || elfun.org livejournal.com/users/sarcar || shourya.com Ring : +91 80 5263121 xt 362 From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 17:05:15 2000 Received: from netscape.com (h-205-217-237-46.netscape.com [205.217.237.46]) by www.aunet.org (Postfix) with ESMTP id 68BC44A0F9 for ; Mon, 18 Dec 2000 16:37:56 -0800 (PST) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id eBJ0Nds01146 for ; Mon, 18 Dec 2000 16:23:39 -0800 (PST) Received: from netscape.com ([208.12.45.34]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id G5SHPR01.TJZ for ; Mon, 18 Dec 2000 16:37:03 -0800 Message-ID: <3A3EADAF.FD119E54@netscape.com> Date: Mon, 18 Dec 2000 16:37:03 -0800 From: Sudhakar Chandra Organization: A Doubleplusgood Mega Corporation X-Mailer: Mozilla 4.75b1 [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: Perl Doubt References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/132 X-Sequence-Number: 1052 Adityan Murthy proclaimed: > I have a file called read_art.pl which takes a parameter for the name of the > file and reads the article. i want to have a rate this article link which > rates it. for that, i plan to write a file, say rateit.pl now, when i click > on rate it, it will call the perl file, say as, rateit.pl?val=2 (2 is the > name of the article file). this file (rateit.pl) will contain the form > required to rate it. now i want the same file to create the form and do the > rating. that means that when i rate, it will call rateit.pl?val=2&rating=5. > so, how do i make the same pl file distinguish the two diff calls? By passing it a third name=value pair which tells the perl script which way it is being called. > Also, what is "use CGI"? Seems similar to creating an object of a class in > C++. Where do i get info on the various functions in CGI? man CGI CGI.pm is an excellent perl module that you can use to parse HTML forms and so many more things. Thaths -- "This is a very, very proud day for us! Especially me, your father, me, beat City Hall! It's just like David and Goliath, only this time, David won!" -- Homer J. Simpson Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 20:59:44 2000 Received: from fsnt.future.futsoft.com (unknown [203.197.140.35]) by www.aunet.org (Postfix) with ESMTP id 4FB9F4A140 for ; Mon, 18 Dec 2000 20:59:22 -0800 (PST) Received: from kailash.future.futsoft.com (unverified) by fsnt.future.futsoft.com (Content Technologies SMTPRS 2.0.15) with ESMTP id for ; Tue, 19 Dec 2000 10:33:02 +0530 Received: from senthildr (senthildr.future.futsoft.com [192.168.7.12]) by kailash.future.futsoft.com (8.11.0/8.11.0) with SMTP id eBJAUJ211953 for ; Tue, 19 Dec 2000 16:00:19 +0530 Reply-To: From: "senthil devan" To: "'linux-india'" Subject: creating socket Date: Tue, 19 Dec 2000 10:31:06 +0530 Message-Id: <000001c06978$b4cd0160$0c07a8c0@future.futsoft.com> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/133 X-Sequence-Number: 1053 Hi In this #define TO16(x) ((((x) >> 8) & 0x00FF) | (((x) << 8) & 0xFF00)) sockid = socket(AF_INET, SOCK_PACKET, TO16(ETH_P_ALL)) what does SOCK_PACKET mean. In went through W.R Stevens, but I am unable to find SOCK_PACKET type. Similarly I am not able to understand what is ETH_P_ALL and the necessity of the bit operations on it. Any help will be appreciated. Thanks in advance Devan From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 21:22:31 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id AB74A4A0BD for ; Mon, 18 Dec 2000 21:22:29 -0800 (PST) Received: from Larry.bk (unknown [203.199.228.66]) by md2.vsnl.net.in (Postfix) with ESMTP id C31FC888; Tue, 19 Dec 2000 11:00:49 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id KAA28549; Tue, 19 Dec 2000 10:47:31 +0530 Date: Tue, 19 Dec 2000 10:47:30 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: senthil devan Cc: "'linux-india'" Subject: Re: creating socket In-Reply-To: <000001c06978$b4cd0160$0c07a8c0@future.futsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/134 X-Sequence-Number: 1054 Hello man socket says: SOCK_PACKET Obsolete and should not be used in new programs; see packet(7). & man 7 packet says: Packet sockets are used to receive or send raw packets at the device driver (OSI Layer 2) level. They allow the user to implement protocol modules in user space on top of the physical layer. for the socket() system call, the 3rd arg. is the protocol (udp/tcp/spx & so on.) ETH_P_ALL is a catch all protocol type, indicating accept any protocol type. Basically your program would first get the packets, b4 the packets are transmitted to the next higher level (the appropriate handler for that protocol). Sreeji On Tue, 19 Dec 2000, senthil devan wrote: > Hi > > In this > > #define TO16(x) ((((x) >> 8) & 0x00FF) | (((x) << 8) & 0xFF00)) > > sockid = socket(AF_INET, SOCK_PACKET, TO16(ETH_P_ALL)) > > > what does SOCK_PACKET mean. In went through W.R Stevens, but I am unable to > find SOCK_PACKET type. Similarly I am not able to understand what is > ETH_P_ALL and the necessity of the bit operations on it. Any help will be > appreciated. > > > Thanks in advance > > Devan > > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ > From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 21:28:33 2000 Received: from web11207.mail.yahoo.com (unknown [216.136.131.189]) by www.aunet.org (Postfix) with SMTP id 741A14A0DA for ; Mon, 18 Dec 2000 21:28:29 -0800 (PST) Message-ID: <20001219052736.31437.qmail@web11207.mail.yahoo.com> Received: from [203.197.172.119] by web11207.mail.yahoo.com; Mon, 18 Dec 2000 21:27:36 PST Date: Mon, 18 Dec 2000 21:27:36 -0800 (PST) From: =?iso-8859-1?q?sindhoor=20pangal?= Subject: problem with ncurses in caldera To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200012/135 X-Sequence-Number: 1055 the ncurses in caldera seems to have a problem. it has macros like MOVE that clash with functions in the stl. my friend told me that the new version of encurses was better. so i downloaded a tar file and tried to use it. but on compiling the program it gives me the following error Error: /usr/lib/libncurses.so: file not recognized: File truncated any suggestions??? __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 21:54:48 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id C942C4A185 for ; Mon, 18 Dec 2000 21:54:31 -0800 (PST) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by atlrel1.hp.com (Postfix) with ESMTP id 4AFFEFB9; Tue, 19 Dec 2000 00:53:32 -0500 (EST) 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 LAA13755; Tue, 19 Dec 2000 11:21:55 +0530 (IST) Message-ID: <3A3EF7D2.D0D59F1B@india.hp.com> Date: Tue, 19 Dec 2000 11:23:22 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: senthildr@future.futsoft.com Cc: "'linux-india'" Subject: Re: creating socket References: <000001c06978$b4cd0160$0c07a8c0@future.futsoft.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/136 X-Sequence-Number: 1056 I believe SOCK_PACKET is used to over-ride TCP/IP or ETH protocols, and give data sent through the socket to a Network Interface Driver that the socket is bound to using 'bind' call. senthil devan wrote: > Hi > > In this > > #define TO16(x) ((((x) >> 8) & 0x00FF) | (((x) << 8) & 0xFF00)) > > sockid = socket(AF_INET, SOCK_PACKET, TO16(ETH_P_ALL)) > > what does SOCK_PACKET mean. In went through W.R Stevens, but I am unable to > find SOCK_PACKET type. Similarly I am not able to understand what is > ETH_P_ALL and the necessity of the bit operations on it. Any help will be > appreciated. > > Thanks in advance > > Devan > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 22:25:11 2000 Received: from hindon.hss.co.in (unknown [202.54.26.202]) by www.aunet.org (Postfix) with ESMTP id 6F0324A2EB for ; Mon, 18 Dec 2000 22:25:00 -0800 (PST) Received: from sandesh.hss.hns.com (localhost [127.0.0.1]) by hindon.hss.co.in (8.10.0/8.10.0) with SMTP id eBJ6PRX09818 for ; Tue, 19 Dec 2000 11:55:28 +0530 (IST) Received: by sandesh.hss.hns.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 652569BA.0022124E ; Tue, 19 Dec 2000 11:42:08 +0530 X-Lotus-FromDomain: HSS From: aaranya@hss.hns.com To: linux-india-programmers@lists.linux-india.org Message-ID: <652569BA.00221064.00@sandesh.hss.hns.com> Date: Tue, 19 Dec 2000 11:53:52 +0530 Subject: HTTP CONNECT Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200012/137 X-Sequence-Number: 1057 Hi, Can anyone point me to a resource which can tell me how to use the HTTP CONNECT procedure via an HTTPS proxy which requires proxy authentication? TIA, Akshat From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 22:48:22 2000 Received: from c0mailgw03.prontomail.com (mailgw.prontomail.com [216.163.180.10]) by www.aunet.org (Postfix) with ESMTP id 723304A262 for ; Mon, 18 Dec 2000 22:48:11 -0800 (PST) Received: from c5web101 (216.163.180.10) by c0mailgw03.prontomail.com (NPlex 5.1.050) id 3A3EB3B10000C9D1 for linux-india-programmers@lists.linux-india.org; Mon, 18 Dec 2000 22:47:10 -0800 X-Version: indiatimes 6.3.3.2335.0 From: "Sanjay Khirwadkar" Message-Id: <9C01ACFF665D4D115A750005B8AC3289@khirwadkar.indiatimes.com> Date: Tue, 19 Dec 2000 12:15:24 +0530 X-Priority: Normal Content-Type: text/plain; charset=iso-8859-1 To: linux-india-programmers@lists.linux-india.org Subject: Wine Problem X-Mailer: Web Based Pronto Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/138 X-Sequence-Number: 1058 Hi, I have loaded 'wine' on my computer. However, while running it, gives the error message- /usr/bin/wine.bin: /lib/libc.so.6: version 'GLIBC-2.2' not found (required by /usr/lib/wine/libwine.so) Where do I get this version ? Is there any version of wine that works without such things on RHL 6.2? Sanjay Khirwadkar Happy mailing! The Indiatimes mail Team http://mail.indiatimes.com/indiatimes/users/khirwadkar Welcome to the Indiatimes mail From linux-india-programmers-owner@lists.linux-india.org Mon Dec 18 23:46:56 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id DABBD4A0E1 for ; Mon, 18 Dec 2000 23:46:50 -0800 (PST) Received: from localhost (anil@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id NAA08418 for ; Tue, 19 Dec 2000 13:22:04 +0530 Date: Tue, 19 Dec 2000 13:22:04 +0530 (IST) From: Anil Pillai To: "'linux-india'" Subject: Logical Partitions ... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/139 X-Sequence-Number: 1059 Hi I am writing a program in C to partition a hard disk However now I am stuck in that I am not able to comprehend the details of the structure 'partition' as regards logical partitions. To be more precise, I create an extended partition say of 600 MB (/dev/hda4) and if I want to create 2 logical partitions (/dev/hda5 and /dev/hda6) of say 300 MB each. To do this, I feel that this partition should be written on /dev/hda4. Please correct me if I am wrong and also do let me know from which byte in the first 512 bytes of /dev/hda4 should I start writing this partition. Anil. From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 03:20:18 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 1CCD44A160 for ; Tue, 19 Dec 2000 03:20:16 -0800 (PST) Received: from Larry.bk (unknown [203.197.136.195]) by md2.vsnl.net.in (Postfix) with ESMTP id 3DD918C5 for ; Tue, 19 Dec 2000 16:58:36 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id QAA03011 for ; Tue, 19 Dec 2000 16:42:58 +0530 Date: Tue, 19 Dec 2000 16:42:57 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: problem with ncurses in caldera In-Reply-To: <20001219052736.31437.qmail@web11207.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/140 X-Sequence-Number: 1060 Hi That's a possible file corruption. Just see what's /usr/lib/libncurses.so. Most of the time it's a link to a latest libncurses.so (In my machine it points to /lib/libncurses.so.5.0). Use the command 'file /usr/lib/libncurses.so' & see what's reported. Sreeji On Mon, 18 Dec 2000, [iso-8859-1] sindhoor pangal wrote: > the ncurses in caldera seems to have a problem. it has > macros like MOVE that clash with functions in the stl. > my friend told me that the new version of encurses was > better. so i downloaded a tar file and tried to use > it. but on compiling the program it gives me the > following error > Error: /usr/lib/libncurses.so: file not recognized: > File truncated > > any suggestions??? > > __________________________________________________ > Do You Yahoo!? > Yahoo! Shopping - Thousands of Stores. Millions of Products. > http://shopping.yahoo.com/ > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. > From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 03:37:09 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 431934A106 for ; Tue, 19 Dec 2000 03:36:59 -0800 (PST) Received: from accord-products.com (chanakya [192.168.1.39]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id RAA19564 for ; Tue, 19 Dec 2000 17:05:21 +0530 Message-ID: <3A3F4884.68975B06@accord-products.com> Date: Tue, 19 Dec 2000 17:07:40 +0530 From: "Vani R." 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: sysinfo library problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/141 X-Sequence-Number: 1061 Hello all , sysinfo(2) returns the RAM size as 64MB even though my system has 128MB RAM. Why is this ? The utility 'free' also reports the same. Can anybody please help me out in this regard ? Thanks in advance, --vani-- From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 03:47:22 2000 Received: from ns09.egujarat.net (unknown [63.125.98.34]) by www.aunet.org (Postfix) with ESMTP id 474924A1B6 for ; Tue, 19 Dec 2000 03:47:15 -0800 (PST) Received: from localhost (abhishek@localhost) by ns09.egujarat.net (8.9.3/8.9.3) with ESMTP id RAA16619 for ; Tue, 19 Dec 2000 17:20:20 +0530 Date: Tue, 19 Dec 2000 17:20:20 +0530 (IST) From: abhishek To: LIP Subject: Re: sysinfo library problem In-Reply-To: <3A3F4884.68975B06@accord-products.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/142 X-Sequence-Number: 1062 pass kernel parameter at boot time try mem = 128MB when you get Lilo prompt On Tue, 19 Dec 2000, Vani R. wrote: > Hello all , > > sysinfo(2) returns the RAM size as 64MB even though my system has 128MB > RAM. Why is this ? The utility 'free' also reports the same. > Can anybody please help me out in this regard ? > > Thanks in advance, > --vani-- > > > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr > From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 04:10:27 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id B2E1949F62 for ; Tue, 19 Dec 2000 04:10:06 -0800 (PST) Received: from accord-products.com (chanakya [192.168.1.39]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id RAA20510 for ; Tue, 19 Dec 2000 17:38:11 +0530 Message-ID: <3A3F5036.AF6F9FA7@accord-products.com> Date: Tue, 19 Dec 2000 17:40:30 +0530 From: "Vani R." 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: sysinfo library problem References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/143 X-Sequence-Number: 1063 Hi , Thanks for the reply. It worked !! But , why should i pass this parameter ? Is it not possible to detect by itself ? Regards, --vani-- abhishek wrote: > pass kernel parameter at boot time > try mem = 128MB when you get Lilo prompt > > > On Tue, 19 Dec 2000, Vani R. wrote: > > > Hello all , > > > > sysinfo(2) returns the RAM size as 64MB even though my system has 128MB > > RAM. Why is this ? The utility 'free' also reports the same. > > Can anybody please help me out in this regard ? > > > > Thanks in advance, > > --vani-- > > > > > > > > > > --------------------------------------------- > > An alpha version of a web based tool to manage > > your subscription with this mailing list is at > > http://lists.linux-india.org/cgi-bin/mj_wwwusr > > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr -- Creativity is inventing, experimenting, growing, taking risks, breaking rules, making mistakes, and having fun. - Mary Lou Cook From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 04:22:37 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 6E02D4A1BF for ; Tue, 19 Dec 2000 04:22:33 -0800 (PST) Received: from Larry.bk (unknown [203.197.136.195]) by md2.vsnl.net.in (Postfix) with ESMTP id C5FC2958 for ; Tue, 19 Dec 2000 18:00:53 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id RAA06905 for ; Tue, 19 Dec 2000 17:47:03 +0530 Date: Tue, 19 Dec 2000 17:47:02 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: LIP Subject: Re: sysinfo library problem In-Reply-To: <3A3F4884.68975B06@accord-products.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/144 X-Sequence-Number: 1064 Hi may be your memory is not properly detected by the kernel. During bootup, press shift when you see the LILO prompt & type your image name (Press TAB to know the list of available images) followed by the keyword 'mem=127M' (w/o qutes). Now after the system has booted up, see whether the memory has been detected correcly. Once the above is successfull, add the line append="mem=127M" to your /etc/lilo.conf & run lilo. Sreeji On Tue, 19 Dec 2000, Vani R. wrote: > Hello all , > > sysinfo(2) returns the RAM size as 64MB even though my system has 128MB > RAM. Why is this ? The utility 'free' also reports the same. > Can anybody please help me out in this regard ? > > Thanks in advance, > --vani-- > > > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr > From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 04:46:15 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 752824A13F for ; Tue, 19 Dec 2000 04:46:06 -0800 (PST) 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 SAA08577 for ; Tue, 19 Dec 2000 18:24:33 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA2F86 for ; Tue, 19 Dec 2000 18:15:34 +0530 Message-ID: <3A3F5937.F3CD559F@wipro.com> Date: Tue, 19 Dec 2000 18:18:55 +0530 From: Vibhu Rishi Organization: Wipro X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: "linux-india-programmers@lists.linux-india.org" Subject: GTK problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/145 X-Sequence-Number: 1065 HI I am facing a certain problem in GTK. It seems that I do not have the GtkAcceleratorWidget. I have a line GtkAcceleratorTable *accelerator_table; which the compiler gives the error : createmenu.c:49: parse error before `*' could you please tell me what the problem may be ? I think that some GTK lib is missing. So if you could tell me where to get it from , it would be a great help . regards vibhu.. From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 05:49:53 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id AF7D24A0E4 for ; Tue, 19 Dec 2000 05:49:51 -0800 (PST) Received: from Larry.bk (unknown [203.197.137.251]) by md2.vsnl.net.in (Postfix) with ESMTP id 07F729FB for ; Tue, 19 Dec 2000 19:28:11 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id TAA12003 for ; Tue, 19 Dec 2000 19:13:11 +0530 Date: Tue, 19 Dec 2000 19:13:06 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: "linux-india-programmers@lists.linux-india.org" Subject: Re: GTK problem In-Reply-To: <3A3F5937.F3CD559F@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/146 X-Sequence-Number: 1066 Hi I don't think it's any missing libs. It's more likely to be a syntax error, or missing definition (did you include the reqd. header files & are they in the path ?) Can you post the complete error message (U seemed to have posted only 1 line). I'm sure there are more lines. Sreeji On Tue, 19 Dec 2000, Vibhu Rishi wrote: > HI > > I am facing a certain problem in GTK. It seems that I do not have the > GtkAcceleratorWidget. > > I have a line > > GtkAcceleratorTable *accelerator_table; > > which the compiler gives the error : > createmenu.c:49: parse error before `*' > > > could you please tell me what the problem may be ? I think that some GTK > lib is missing. So if you could tell me where to get it from , it would > be a great help . > > regards > vibhu.. > > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP > From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 07:41:14 2000 Received: from satyaki.pacific.net.in (satyaki.pacific.net.in [203.123.128.85]) by www.aunet.org (Postfix) with ESMTP id B5FA949F62 for ; Tue, 19 Dec 2000 07:38:59 -0800 (PST) Received: from ganga.sankya.com (ppp190.bangalore-188.pacific.net.in [203.123.188.190]) by satyaki.pacific.net.in with ESMTP id VAA04514 for ; Tue, 19 Dec 2000 21:07:56 +0530 (IST) Date: Tue, 19 Dec 2000 17:50:27 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: Logical Partitions ... Message-ID: <20001219175027.A4876@sankya.com> Mail-Followup-To: Babu Kalakrishnan , linux-india-programmers@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from anil@bombay.retortsoft.com on Tue, Dec 19, 2000 at 01:22:04PM +0530 X-Operating-System: Red hat Linux 6.2 with Kernel 2.2.16-3 X-Kernel: Kernel 2.2.16-3 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200012/147 X-Sequence-Number: 1067 On Tue, Dec 19, 2000 at 01:22:04PM +0530, Anil Pillai typed: > > To be more precise, I create an extended partition say of 600 MB > (/dev/hda4) and if I want to create 2 logical partitions (/dev/hda5 and > /dev/hda6) of say 300 MB each. > To do this, I feel that this partition should be written on /dev/hda4. > Please correct me if I am wrong and also do let me know from which byte in > the first 512 bytes of /dev/hda4 should I start writing this partition. The first sector of /dev/hda4 will hold the partition table that defines "logical drives" (MSDOS terminology) in the partition. Even though this sector looks identical to your primary partition table (i.e only 4 partition table entries with the rest of the stuff wasted), only 2 of these entries are generally filled up. The first entry (Starting at offset 0x1BE in the sector) defines the first logical drive (hda5 in your case). The second entry (at offset 0x1CE) is a pointer to another extended partition. The first sector of this will then have the place for another 4 entries - the first entry of which (at its offset 0x1BE) will be hda6, and the second entry will point to yet another extended partition (or will be left blank in the case of the last "logical drive"). Logically I don't see any point why 3 of the 4 partition table entries couldn't be used to point to 3 drives with the 4th one pointing to an extension if needed. But unfortunately, that seems to be the way it is done by most FDISK implementations - and normally you wouldn't want to take a chance with fooling around with these sort of conventions - else some errant program that depends on these conventions might trash your disk :):):) Also note that each of these partition sectors should have a 0x55, 0xAA signature in the last 2 bytes (offsets 0x1FE & 1FF respectively). Kala From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 11:37:48 2000 Received: from hotmail.com (f294.law8.hotmail.com [216.33.240.169]) by www.aunet.org (Postfix) with ESMTP id 2D6254A09E for ; Tue, 19 Dec 2000 11:37:47 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 19 Dec 2000 11:36:47 -0800 Received: from 203.199.229.176 by lw8fd.law8.hotmail.msn.com with HTTP; Tue, 19 Dec 2000 19:36:47 GMT X-Originating-IP: [203.199.229.176] From: "Adityan Murthy" To: linux-india-programmers@lists.linux-india.org Date: Wed, 20 Dec 2000 01:06:47 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 19 Dec 2000 19:36:47.0667 (UTC) FILETIME=[06B1F830:01C069F3] X-Archive-Number: 200012/148 X-Sequence-Number: 1068 Hi all, How do i round a number to 2 decimal places in perl? Thanks Adityan _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 15:55:14 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 072614A01A for ; Tue, 19 Dec 2000 15:55:12 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id PAA22809 for linux-india-programmers@lists.linux-india.org; Tue, 19 Dec 2000 15:52:44 -0800 Date: Tue, 19 Dec 2000 15:52:44 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: sysinfo library problem Message-ID: <20001219155244.A22793@sharmas.dhs.org> References: <3A3F5036.AF6F9FA7@accord-products.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A3F5036.AF6F9FA7@accord-products.com>; from vani@accord-soft.com on Tue, Dec 19, 2000 at 05:40:30PM +0530 X-Archive-Number: 200012/149 X-Sequence-Number: 1069 On Tue, Dec 19, 2000 at 05:40:30PM +0530, Vani R. wrote: > Hi , > > Thanks for the reply. It worked !! > But , why should i pass this parameter ? Is it not possible to detect by > itself ? It's probably fixed in more recent versions of the kernel than the one you're using. Consider it a bug. -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 21:13:22 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 21BFD4A1B8 for ; Tue, 19 Dec 2000 21:13:19 -0800 (PST) Received: from Larry.bk (unknown [203.197.136.237]) by md2.vsnl.net.in (Postfix) with ESMTP id 7195B9C7 for ; Wed, 20 Dec 2000 10:51:35 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id KAA04121 for ; Wed, 20 Dec 2000 10:37:16 +0530 Date: Wed, 20 Dec 2000 10:37:16 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.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: 200012/150 X-Sequence-Number: 1070 $Num = '10.29999'; $Rounded = sprintf("%.2f", $Num); print "$Rounded\n"; Adityan, isn't that u want ? Sreeji On Wed, 20 Dec 2000, Adityan Murthy wrote: > Hi all, > > How do i round a number to 2 decimal places in perl? > > Thanks > > Adityan > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP > From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 21:28:55 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 606254A41C for ; Tue, 19 Dec 2000 21:28:37 -0800 (PST) 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 LAA12122 for ; Wed, 20 Dec 2000 11:06:57 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA14F9 for ; Wed, 20 Dec 2000 10:57:57 +0530 Message-ID: <3A404427.414D4872@wipro.com> Date: Wed, 20 Dec 2000 11:01:19 +0530 From: Vibhu Rishi Organization: Wipro X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: GTK problem References: <3A3F5937.F3CD559F@wipro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/151 X-Sequence-Number: 1071 Problem solved ! The problem was that the sequence that I was putting the files in was not correct. Now I have another query, when I m comiling the files , I get the following. Can you tell me why this is so ? [vibhu@vibhu molecule]$ gcc -c -o misc.o misc.c `gtk-config --cflags` `gtk-config --libs` gcc: -lgtk: linker input file unused since linking not done gcc: -lgdk: linker input file unused since linking not done gcc: -lgmodule: linker input file unused since linking not done gcc: -lglib: linker input file unused since linking not done gcc: -ldl: linker input file unused since linking not done gcc: -lXi: linker input file unused since linking not done gcc: -lXext: linker input file unused since linking not done gcc: -lX11: linker input file unused since linking not done gcc: -lm: linker input file unused since linking not done If I do not give the options with the `` then I get the following : [vibhu@vibhu molecule]$ gcc -c -o matrix3d.o matrix3d.c In file included from /usr/include/gdk/gdktypes.h:33, from /usr/include/gdk/gdk.h:31, from /usr/include/gtk/gtk.h:31, from atom.h:2, from matrix3d.c:8: /usr/include/glib.h:66: glibconfig.h: No such file or directory So , what is it that is required for just compiling the files ? regards Vibhu.. Vibhu Rishi wrote: > HI > > I am facing a certain problem in GTK. It seems that I do not have the > GtkAcceleratorWidget. > > I have a line > > GtkAcceleratorTable *accelerator_table; > > which the compiler gives the error : > createmenu.c:49: parse error before `*' > > could you please tell me what the problem may be ? I think that some GTK > lib is missing. So if you could tell me where to get it from , it would > be a great help . > > regards > vibhu.. > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 21:57:33 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 5A5594A15E for ; Tue, 19 Dec 2000 21:57:30 -0800 (PST) Received: from Larry.bk (unknown [203.197.136.237]) by md2.vsnl.net.in (Postfix) with ESMTP id 108C6BDB; Wed, 20 Dec 2000 11:35:32 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id LAA06578; Wed, 20 Dec 2000 11:21:43 +0530 Date: Wed, 20 Dec 2000 11:21:43 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: Vibhu Rishi Cc: linux-india-programmers@lists.linux-india.org Subject: Re: GTK problem In-Reply-To: <3A4041DF.5656E1D3@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/152 X-Sequence-Number: 1072 Hi GtkAcceleratorTables has been replaced in gtk 1.1.0. So use GtkAccelGroup instead. So change your code (line 49) as follows: /* GtkAcceleratorTable *accelerator_table;*/ GtkAccelGroup *accelerator_table; That should solve the problem. However, the file you're trying to compile is only part of an example, & is not the main file. It doesn't even have a main() function, & many of the functions are missing. So find out the other files, compile all of them & link to get the final executable. It's likely that you have a Makefile (it'll be in whichever location u got this file from.). So simply doing a 'make' in that dir. should do. Sreeji On Wed, 20 Dec 2000, Vibhu Rishi wrote: > Hi, > the complete error is : > > [vibhu@vibhu molecule]$ gcc createmenu.c `gtk-config --cflags` `gtk-config > --libs` > createmenu.c:49: parse error before `*' > createmenu.c:49: warning: data definition has no type or storage class > createmenu.c: In function `CreateMainWindow': > createmenu.c:276: warning: assignment makes pointer from integer without a > cast > > > > I am attaching the file, but I am not very sure whether attachments are > allowed in this list. > > vibhu.. > > > > > Sreeji K Das wrote: > > > Hi > > > > I don't think it's any missing libs. It's more likely to be a syntax > > error, or missing definition (did you include the reqd. header files & are > > they in the path ?) Can you post the complete error message (U seemed to > > have posted only 1 line). I'm sure there are more lines. > > > > Sreeji > > > > On Tue, 19 Dec 2000, Vibhu Rishi wrote: > > > > > HI > > > > > > I am facing a certain problem in GTK. It seems that I do not have the > > > GtkAcceleratorWidget. > > > > > > I have a line > > > > > > GtkAcceleratorTable *accelerator_table; > > > > > > which the compiler gives the error : > > > createmenu.c:49: parse error before `*' > > > > > > > > > could you please tell me what the problem may be ? I think that some GTK > > > lib is missing. So if you could tell me where to get it from , it would > > > be a great help . > > > > > > regards > > > vibhu.. > > > > > > From linux-india-programmers-owner@lists.linux-india.org Tue Dec 19 22:34:49 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.153]) by www.aunet.org (Postfix) with ESMTP id 72D284A5E3 for ; Tue, 19 Dec 2000 22:34:44 -0800 (PST) Received: from jediland.home.retortsoft.com (jediland.home.retortsoft.com [192.168.111.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id MAA05303 for ; Wed, 20 Dec 2000 12:03:35 +0530 Received: (from binand@localhost) by jediland.home.retortsoft.com (8.9.3/8.9.3) id LAA11210 for linux-india-programmers@lists.linux-india.org; Wed, 20 Dec 2000 11:53:07 +0530 Date: Wed, 20 Dec 2000 11:53:06 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: GTK problem Message-ID: <20001220115306.B8332@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <3A3F5937.F3CD559F@wipro.com> <3A404427.414D4872@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <3A404427.414D4872@wipro.com>; from vibhu.rishi@wipro.com on Wed, Dec 20, 2000 at 11:01:19AM +0530 X-Operating-System: Linux 2.2.16-1 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/153 X-Sequence-Number: 1073 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Vibhu Rishi forced the electrons to say: > [vibhu@vibhu molecule]$ gcc -c -o misc.o misc.c `gtk-config --cflags` > `gtk-config --libs` > So , what is it that is required for just compiling the files ? Either remove the -c or the `gtk-config --libs`. Or better, write a Makefile. Binand -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6QFBJGXtiwttetWoRAnVyAKCTDS1kheSHvxY4Ud8l1TK+555W5QCbB3/X O3r3bdIf5/t06B0ewl2MJN4= =+St2 -----END PGP SIGNATURE----- From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 01:41:10 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 7B8A949FF1 for ; Wed, 20 Dec 2000 01:41:04 -0800 (PST) Received: from Larry.bk (unknown [203.197.136.193]) by md2.vsnl.net.in (Postfix) with ESMTP id 118099E4 for ; Wed, 20 Dec 2000 15:19:19 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id PAA24211 for ; Wed, 20 Dec 2000 15:05:20 +0530 Date: Wed, 20 Dec 2000 15:05:20 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: GTK problem In-Reply-To: <3A404427.414D4872@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/154 X-Sequence-Number: 1074 Hello, You're only trying to compile the program (-c option to gcc) & therefore linking will not be done. Remove the -c & -o options & you won't see the error. Sreeji On Wed, 20 Dec 2000, Vibhu Rishi wrote: > Problem solved ! > > The problem was that the sequence that I was putting the files in was not > correct. > > Now I have another query, when I m comiling the files , I get the > following. Can you tell me why this is so ? > > > [vibhu@vibhu molecule]$ gcc -c -o misc.o misc.c `gtk-config --cflags` > `gtk-config --libs` > gcc: -lgtk: linker input file unused since linking not done > gcc: -lgdk: linker input file unused since linking not done > gcc: -lgmodule: linker input file unused since linking not done > gcc: -lglib: linker input file unused since linking not done > gcc: -ldl: linker input file unused since linking not done > gcc: -lXi: linker input file unused since linking not done > gcc: -lXext: linker input file unused since linking not done > gcc: -lX11: linker input file unused since linking not done > gcc: -lm: linker input file unused since linking not done > > If I do not give the options with the `` then I get the following : > > [vibhu@vibhu molecule]$ gcc -c -o matrix3d.o matrix3d.c > In file included from /usr/include/gdk/gdktypes.h:33, > from /usr/include/gdk/gdk.h:31, > from /usr/include/gtk/gtk.h:31, > from atom.h:2, > from matrix3d.c:8: > /usr/include/glib.h:66: glibconfig.h: No such file or directory > > > So , what is it that is required for just compiling the files ? > > regards > Vibhu.. > > > > Vibhu Rishi wrote: > > > HI > > > > I am facing a certain problem in GTK. It seems that I do not have the > > GtkAcceleratorWidget. > > > > I have a line > > > > GtkAcceleratorTable *accelerator_table; > > > > which the compiler gives the error : > > createmenu.c:49: parse error before `*' > > > > could you please tell me what the problem may be ? I think that some GTK > > lib is missing. So if you could tell me where to get it from , it would > > be a great help . > > > > regards > > vibhu.. > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr > From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 02:28:42 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 3DEC34A319; Wed, 20 Dec 2000 02:28:33 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id QAA14072; Wed, 20 Dec 2000 16:04:40 GMT Received: from wipro.com ([192.107.143.16]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA4126; Wed, 20 Dec 2000 15:55:16 +0530 Message-ID: <3A408887.BE7E49A6@wipro.com> Date: Wed, 20 Dec 2000 15:53:04 +0530 From: Pratap Chakravarthy X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 To: "linux-india-programmers@lists.linux-india.org" , "linux-india-help@lists.linux-india.org" Subject: to develope a linux device driver Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/155 X-Sequence-Number: 1075 hi group, I intend to develope a device driver for linux. So can any one give info. related to some driver requirement for any device, which is currently not available for linux. I am interested to contribute something to the linux world. pratap From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 02:34:28 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id E692E4A0E6 for ; Wed, 20 Dec 2000 02:34:20 -0800 (PST) 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 QAA22351 for ; Wed, 20 Dec 2000 16:12:42 GMT Received: from vibhu ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with SMTP id AAA3640 for ; Wed, 20 Dec 2000 15:36:01 +0530 Message-ID: <028301c06a6c$ec111a90$3147a8c0@wipro.com> From: "Vibhu Rishi" To: References: <3A3F5937.F3CD559F@wipro.com> <3A404427.414D4872@wipro.com> Subject: Re: GTK problem Date: Wed, 20 Dec 2000 15:38:19 +0530 Organization: Wipro MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200012/156 X-Sequence-Number: 1076 I celebrated too early it seems. Somehow, I missed one of the files and so when I compiled giving all the files, it again gave the error. I think that what Sreeji says may solve the problem, so next I will try that. vibhu.. ----- Original Message ----- From: "Vibhu Rishi" To: Sent: Wednesday, December 20, 2000 11:01 AM Subject: Re: [LIP] GTK problem > Problem solved ! > > The problem was that the sequence that I was putting the files in was not > correct. > > Now I have another query, when I m comiling the files , I get the > following. Can you tell me why this is so ? > > > [vibhu@vibhu molecule]$ gcc -c -o misc.o misc.c `gtk-config --cflags` > `gtk-config --libs` > gcc: -lgtk: linker input file unused since linking not done > gcc: -lgdk: linker input file unused since linking not done > gcc: -lgmodule: linker input file unused since linking not done > gcc: -lglib: linker input file unused since linking not done > gcc: -ldl: linker input file unused since linking not done > gcc: -lXi: linker input file unused since linking not done > gcc: -lXext: linker input file unused since linking not done > gcc: -lX11: linker input file unused since linking not done > gcc: -lm: linker input file unused since linking not done > > If I do not give the options with the `` then I get the following : > > [vibhu@vibhu molecule]$ gcc -c -o matrix3d.o matrix3d.c > In file included from /usr/include/gdk/gdktypes.h:33, > from /usr/include/gdk/gdk.h:31, > from /usr/include/gtk/gtk.h:31, > from atom.h:2, > from matrix3d.c:8: > /usr/include/glib.h:66: glibconfig.h: No such file or directory > > > So , what is it that is required for just compiling the files ? > > regards > Vibhu.. > > > > Vibhu Rishi wrote: > > > HI > > > > I am facing a certain problem in GTK. It seems that I do not have the > > GtkAcceleratorWidget. > > > > I have a line > > > > GtkAcceleratorTable *accelerator_table; > > > > which the compiler gives the error : > > createmenu.c:49: parse error before `*' > > > > could you please tell me what the problem may be ? I think that some GTK > > lib is missing. So if you could tell me where to get it from , it would > > be a great help . > > > > regards > > vibhu.. > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/LIP > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr > From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 05:12:29 2000 Received: from fsnt.future.futsoft.com (unknown [203.197.140.35]) by www.aunet.org (Postfix) with ESMTP id 8C8F34A107 for ; Wed, 20 Dec 2000 05:12:20 -0800 (PST) Received: from kailash.future.futsoft.com (unverified) by fsnt.future.futsoft.com (Content Technologies SMTPRS 2.0.15) with ESMTP id for ; Wed, 20 Dec 2000 18:45:15 +0530 Received: from senthildr (senthildr.future.futsoft.com [192.168.7.12]) by kailash.future.futsoft.com (8.11.0/8.11.0) with SMTP id eBKIh7226495 for ; Thu, 21 Dec 2000 00:13:07 +0530 Reply-To: From: "senthil devan" To: "'linux-india'" Subject: programming with interfaces Date: Wed, 20 Dec 2000 18:43:51 +0530 Message-Id: <000301c06a86$b428ab60$0c07a8c0@future.futsoft.com> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/157 X-Sequence-Number: 1077 Hi My comp has two ethernet cards (eth0,eth1). I have configured GRE interface also(gre0). Now I want to send datagram packets over the interface of my choice. I want to do it in a program. Any help will be appreciated Regards, Devan From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 05:29:17 2000 Received: from fsnt.future.futsoft.com (unknown [203.197.140.35]) by www.aunet.org (Postfix) with ESMTP id 2C4C74A142 for ; Wed, 20 Dec 2000 05:29:06 -0800 (PST) Received: from kailash.future.futsoft.com (unverified) by fsnt.future.futsoft.com (Content Technologies SMTPRS 2.0.15) with ESMTP id for ; Wed, 20 Dec 2000 19:02:00 +0530 Received: from senthildr (senthildr.future.futsoft.com [192.168.7.12]) by kailash.future.futsoft.com (8.11.0/8.11.0) with SMTP id eBKIxq227333 for ; Thu, 21 Dec 2000 00:29:52 +0530 Reply-To: From: "senthil devan" To: "'linux-india'" Subject: to send message via gre interface Date: Wed, 20 Dec 2000 19:00:33 +0530 Message-Id: <000401c06a89$0bc1fbe0$0c07a8c0@future.futsoft.com> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/158 X-Sequence-Number: 1078 Hi Can any one tell as to how we can send packets through gre interface. I have installed it in my mac and have to send some packets through it. any suggestion will be immensely helpful to me Regards, Devan From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 06:11:53 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id A321B4A00D; Wed, 20 Dec 2000 06:11:37 -0800 (PST) Received: from Larry.bk (unknown [203.199.228.70]) by md2.vsnl.net.in (Postfix) with ESMTP id B5C5C852; Wed, 20 Dec 2000 19:31:41 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id TAA06314; Wed, 20 Dec 2000 19:18:23 +0530 Date: Wed, 20 Dec 2000 19:18:23 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: "linux-india-programmers@lists.linux-india.org" Cc: "linux-india-help@lists.linux-india.org" Subject: Re: to develope a linux device driver In-Reply-To: <3A408887.BE7E49A6@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/159 X-Sequence-Number: 1079 Hi If you really want to be on the cutting edge, you can take up driver development of USB or FirePort. I guess these are just getting introduced to 2.4. But warning, it'd be no cake walk, but u can learn a lot ! Hey, but anyway, I'd suggest that first you take some simple driver & learn about writing a driver & may be implement a simple driver for a device (such a serial port driver with minimum functionalities). Good luck ! Sreeji On Wed, 20 Dec 2000, Pratap Chakravarthy wrote: > hi group, > I intend to develope a device driver for linux. So can any one give info. related to some driver requirement for any device, which is currently not available for linux. > > I am interested to contribute something to the linux world. > > pratap > > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. > From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 06:13:28 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 5A1594A124 for ; Wed, 20 Dec 2000 06:12:23 -0800 (PST) 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 TAA14972; Wed, 20 Dec 2000 19:34:28 +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 TAA02487; Wed, 20 Dec 2000 19:38:09 +0500 (GMT) Received: from arkavathi (arkavathi.wipro.tcpn.com [172.31.41.16]) by wipro.tcpn.com (8.9.3/8.9.3) with SMTP id TAA26568; Wed, 20 Dec 2000 19:39:47 +0530 (IST) Date: Wed, 20 Dec 2000 19:38:21 +0530 (GMT+0530) From: Syed Khaleelulla X-Sender: syedk@arkavathi To: senthil devan Cc: "'linux-india'" Subject: Re: programming with interfaces In-Reply-To: <000301c06a86$b428ab60$0c07a8c0@future.futsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/160 X-Sequence-Number: 1080 Hello Devan, For every Ethernet card you will have assigned a IP address which will be uniqe. Hence you can issue a BIND call before start sendind datagram packets. I dont know about gre0. -Thanks, Syed Khaleelulla. --------------- On Wed, 20 Dec 2000, senthil devan wrote: +Hi + +My comp has two ethernet cards (eth0,eth1). I have configured GRE interface +also(gre0). Now I want to send datagram packets over the interface of my +choice. I want to do it in a program. Any help will be appreciated + +Regards, + +Devan + + + From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 06:19:33 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 49EB049F45 for ; Wed, 20 Dec 2000 06:17:22 -0800 (PST) Received: from Larry.bk (unknown [203.199.228.70]) by md2.vsnl.net.in (Postfix) with ESMTP id 08EB41DD; Wed, 20 Dec 2000 19:47:47 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id TAA07115; Wed, 20 Dec 2000 19:34:28 +0530 Date: Wed, 20 Dec 2000 19:34:28 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: senthil devan Cc: "'linux-india'" Subject: Re: programming with interfaces In-Reply-To: <000301c06a86$b428ab60$0c07a8c0@future.futsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/161 X-Sequence-Number: 1081 Hi While binding the socket, specify the address of the required interface ie. if you want to use eth0, then: create socket (Use socket() system call) bind (Use the IP address of eth0) connect to the server (using connect()) If you're new to sockets, try 'man 7 socket' & man 2 socket, man connect, man listen ....etc. Sreeji On Wed, 20 Dec 2000, senthil devan wrote: > Hi > > My comp has two ethernet cards (eth0,eth1). I have configured GRE interface > also(gre0). Now I want to send datagram packets over the interface of my > choice. I want to do it in a program. Any help will be appreciated > > Regards, > > Devan > > > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ > From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 18:44:31 2000 Received: from www.aunet.org (localhost [127.0.0.1]) by www.aunet.org (Postfix) with SMTP id A005F4A08E for ; Wed, 20 Dec 2000 18:44:29 -0800 (PST) Received: from web4107.mail.yahoo.com (web4107.mail.yahoo.com [216.115.104.127]) by www.aunet.org (Postfix) with SMTP id 061FA4A090 for ; Tue, 19 Dec 2000 15:36:18 -0800 (PST) Message-ID: <20001219233522.9855.qmail@web4107.mail.yahoo.com> Received: from [63.174.210.2] by web4107.mail.yahoo.com; Tue, 19 Dec 2000 15:35:22 PST Date: Tue, 19 Dec 2000 15:35:22 -0800 (PST) From: Pradeep Hodigere Subject: Re: To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/162 X-Sequence-Number: 1082 Hi, Get CPAN's Math-Round* or try this... ex: my $number = 5.43566; my $places = 2; my $factor = 10**POSIX::floor($places); $number *= $factor; my $fraction = $number - POSIX::floor($number); $number++ if $fraction >= 0.5; print POSIX::floor($number)/$factor; Pradeep. --- Adityan Murthy wrote: > Hi all, > > How do i round a number to 2 decimal places in perl? > > Thanks > > Adityan > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.com. > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 20:55:22 2000 Received: from nwcst313.netaddress.usa.net (nwcst313.netaddress.usa.net [204.68.23.58]) by www.aunet.org (Postfix) with SMTP id DEDE24A104 for ; Wed, 20 Dec 2000 20:55:19 -0800 (PST) Received: (qmail 8752 invoked by uid 60001); 21 Dec 2000 04:54:17 -0000 Message-ID: <20001221045417.8751.qmail@nwcst313.netaddress.usa.net> Received: from 204.68.23.58 by nwcst313 for [63.109.250.116] via web-mailer(34FM.0700.4B.01) on Thu Dec 21 04:54:17 GMT 2000 Date: 21 Dec 00 10:24:17 IST From: rayesh raikar To: linux-india-programmers@lists.linux-india.org Subject: Re: [to develope a linux device driver] X-Mailer: USANET web-mailer (34FM.0700.4B.01) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200012/163 X-Sequence-Number: 1083 hai.. I suggest u to write for UART-16550 first. U can learn. rayesh Pratap Chakravarthy wrote: > hi group, > I intend to develope a device driver for linux. So can any one gi= ve info. related to some driver requirement for any device, which is currently not available for linux. >=20 > I am interested to contribute something to the linux world. >=20 > pratap >=20 >=20 > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D1 From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 21:20:36 2000 Received: from hvwww3.hotvoice.com (hvwww3.hotvoice.com [64.14.10.146]) by www.aunet.org (Postfix) with SMTP id 46CBB4A16B for ; Wed, 20 Dec 2000 21:20:35 -0800 (PST) Message-ID: <6523006.977375970906.JavaMail.Administrator@hvwww3> Date: Wed, 20 Dec 2000 21:19:30 -0800 (PST) From: Arvind Devarajan To: linux-india-programmers@lists.linux-india.org Subject: [Re:] Re: programming with interfaces Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Archive-Number: 200012/164 X-Sequence-Number: 1084 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi, i am just wondering whether this is a more generic way of doing this. please comment on this - am i thinking in the right direction ???? For doing this, i am assuming these: 1. You have both the client and the server 2. You have programmed atleast one of them, and any changes you are doing, you are (obviously) doing in this. Assuming you are programming client: Execute the server in a system which can be reached only through the interface you want the packets to go through. In the client: 1. Create a socket 2. Bind it (optionally) with INADDR_ANY 3. When you issue a connect to the server, the IP sub-system will automatically select the interface you want to reach the server. this will _not_ happen only if your routing tables are not yet fully configured, and, hence, IP is forced to use a default gateway, which happens to be in a different interface. If you are programming the server: The only thing that you have to do is to run your client in a system that can be reached only through the interface that you want. obviously the above restrictions apply. These are very easy to do, if you are in a seperate subnet (which most probably is not in your case :o) regards, arvind. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Get my public key from http://arvind.freipsec.org iEYEARECAAYFAjpCJaoACgkQSvnpqo1W8FiJxwCfa126X4wJZtCTvG1NSqZAadwZ oJkAniWhIgAt6Tnwwer/4xb73rNFfHaz =vMoi -----END PGP SIGNATURE----- On Wed, 20 Dec 2000 19:34:28 +0530 (IST) Sreeji K Das wrote: >Hi > >While binding the socket, specify the address of the required interface >ie. if you want to use eth0, then: > >create socket (Use socket() system call) >bind (Use the IP address of eth0) >connect to the server (using connect()) > >If you're new to sockets, try 'man 7 socket' & man 2 socket, man connect, >man listen ....etc. > >Sreeji > >On Wed, 20 Dec 2000, senthil devan wrote: > >> Hi >> >> My comp has two ethernet cards (eth0,eth1). I have configured GRE interface >> also(gre0). Now I want to send datagram packets over the interface of my >> choice. I want to do it in a program. Any help will be appreciated >> >> Regards, >> >> Devan >> >> >> >> --------------------------------------------- >> Find out more about this and other Linux India >> mailing lists at http://lists.linux-india.org/ >> > > >--------------------------------------------- >LIP is all for free speech. But it was created >for a purpose. Violations of the rules of >this list will result in stern action. > > -------------------------------------------------------------------------- Global Internet phone calls, voicemail, fax, e-mail and instant messaging. Sign-up today for FREE account at http://www.hotvoice.com From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 21:30:53 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id BB17C4A302; Wed, 20 Dec 2000 21:30:16 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id LAA13392; Thu, 21 Dec 2000 11:06:14 GMT Received: from wipro.com ([192.107.143.16]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA3DE4; Thu, 21 Dec 2000 10:56:51 +0530 Message-ID: <3A41943B.C9653D8F@wipro.com> Date: Thu, 21 Dec 2000 10:55:15 +0530 From: Pratap Chakravarthy X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 To: "linux-india-help@lists.linux-india.org" , "linux-india-programmers@lists.linux-india.org" Subject: Intel 64 bit architechture Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/165 X-Sequence-Number: 1085 hi gurus, It seems that IA64 will become very popular. I dont know whether it is really a revolutionary architechture like i386, but it do seems that it has some innovative concepts. If so is linux has to be "rewritten" for that architechture. Please suggest some pointers on them. pratap From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 21:54:39 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 461DE4A0E8 for ; Wed, 20 Dec 2000 21:54:38 -0800 (PST) Received: from Larry.bk (unknown [203.197.137.247]) by md2.vsnl.net.in (Postfix) with ESMTP id A5CC61D4; Thu, 21 Dec 2000 11:32:51 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id LAA19886; Thu, 21 Dec 2000 11:19:31 +0530 Date: Thu, 21 Dec 2000 11:19:30 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: Pratap Chakravarthy Cc: linux-india-programmers@lists.linux-india.org Subject: Re: to develope a linux device driver In-Reply-To: <3A4192FB.C2FAD8B7@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/166 X-Sequence-Number: 1086 > Thanks sreeji for the suggestion. Also if not on the device driver side can you suggestion something that can be done on other areas. Like in one mail some one was mentioning that NFS has so many flaws and some rework on that can be done. > > pratap Hi Pratap, Well, go purely based on your interests. It looks like you've sufficient time (mmm... that has become a premium these days :-( ), lucky you. I'd suggest you join a news group of ur interest. Say, if it's networking, there are so many opensource projects going on (FreeS/WAN is one that comes immediately to mind - www.freeswan.org) & you can join one of them & then download the source, get it compiled & start using it. Then u'd know that there are problems & you can try & solve & upload those patches. Thus you can contribute to opensource. One thing I'd prefer to see in Linux is SPX support in the Kernel. I don't think any active work is done on that front. Similarly, there are many porting that are taking place. U can identify a program/device driver .... etc. which is available in another OS & try to port to Linux. For example, a VB like drag & drop tool for Rapid App. Devel. (See glade - www.gtk.org). Or implementation of standards like CORBA (see ORBit - a lightweight ORB - http://mail.gnome.org/mailman/listinfo/orbit-list). I guess my mail's becoming a ramayana ..;-) So I'll stop here. Sreeji From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 21:58:09 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id D69F04A19A for ; Wed, 20 Dec 2000 21:58:07 -0800 (PST) Received: from Larry.bk (unknown [203.197.137.247]) by md2.vsnl.net.in (Postfix) with ESMTP id 335B81D4; Thu, 21 Dec 2000 11:36:22 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id LAA19976; Thu, 21 Dec 2000 11:23:02 +0530 Date: Thu, 21 Dec 2000 11:23:02 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: =?iso-8859-1?q?sindhoor=20pangal?= Cc: linux-india-programmers@lists.linux-india.org Subject: Re: problem with ncurses in caldera In-Reply-To: <20001220183818.66835.qmail@web11207.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/167 X-Sequence-Number: 1087 On Wed, 20 Dec 2000, [iso-8859-1] sindhoor pangal wrote: > hi > ok! here's what happened. i did try to see if i can > run ncurses programs and it worked perfectly. i spoke > to my friend about this. he suggested that i try and > uninstall my old ncurses library, that came with > caldera. i did so and my entire caldera crashed. could ??? That's strange. U tried to uninstall just ncurses, & entire system crashed ? Did you use the proper tools available to uninstall ? I use Slackware, so I dunno the details of Caldera. > not even boot. so i did a reinstall of caldera 2.4. > this has the old version of ncurses. any suggestions > what i should do next. should i download the tar file > again or should i look for an rpm. can i pick it off a > red hat 6.2 cd. is that possible. I'd suggest you get an rpm & install, as that's the simplest possible. It's always suggested that you do a proper uninstall of the previous version, before you install a new version. Sreeji From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 22:12:59 2000 Received: from mulga.cs.mu.OZ.AU (mulga.cs.mu.OZ.AU [128.250.1.22]) by www.aunet.org (Postfix) with ESMTP id DE3A949F45 for ; Wed, 20 Dec 2000 22:12:54 -0800 (PST) Received: from queeg.cs.mu.OZ.AU (queeg.cs.mu.OZ.AU [128.250.22.136]) by mulga.cs.mu.OZ.AU with ESMTP id RAA22369 for ; Thu, 21 Dec 2000 17:11:46 +1100 (EST) Received: (from rsubr@localhost) by queeg.cs.mu.OZ.AU (8.9.3+Sun/8.9.3) id RAA21905 for linux-india-programmers@lists.linux-india.org; Thu, 21 Dec 2000 17:11:46 +1100 (EST) Date: Thu, 21 Dec 2000 17:11:46 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Intel 64 bit architechture Message-ID: <20001221171146.A21876@ecr.mu.oz.au> References: <3A41943B.C9653D8F@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3A41943B.C9653D8F@wipro.com>; from pratap.chakravarthy@wipro.com on Thu, Dec 21, 2000 at 10:55:15AM +0530 X-Archive-Number: 200012/168 X-Sequence-Number: 1088 Pratap Chakravarthy wrote (pratap.chakravarthy@wipro.com): > It seems that IA64 will become very popular. I dont know whether it is > really a revolutionary architechture like i386, but it do seems that it has > some innovative concepts. > Hmmm... don't anything know about the "revolutionary" and "innovative" bits in your statement :) > If so is linux has to be "rewritten" for that architechture. Please suggest > some pointers on them. > The starting point for any linux port begins with a gcc port. * Gygnus has done considerable work in porting gcc, binutils and other development tools to the ia64. * The Trillian project http://www.linuxia64.org/ is aimed at developing linux for the ia64. Many industry heavy weights are beind this one. And incidentally, today redhat announced the beta version of RH linux for ia64. It has been on most ftp servers for a while though. Friendly folks at sourceforge.net have several linux ia64 machines you can develop/test your software on (all for free). - Raja From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 22:42:10 2000 Received: from cantor.morelinux.net (cantor.morelinux.net [203.197.87.98]) by www.aunet.org (Postfix) with ESMTP id 767284A0EE for ; Wed, 20 Dec 2000 22:42:01 -0800 (PST) Received: from morelinux.com ([192.168.1.66]) by cantor.morelinux.net (8.9.3/8.9.3) with ESMTP id MAA06534 for ; Thu, 21 Dec 2000 12:31:16 +0530 Message-ID: <3A41A4B5.AB8C39BB@morelinux.com> Date: Thu, 21 Dec 2000 12:05:33 +0530 From: ambarish pathak X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.13-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Intel 64 bit architechture References: <3A41943B.C9653D8F@wipro.com> <20001221171146.A21876@ecr.mu.oz.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/169 X-Sequence-Number: 1089 Pratap Chakravarthy wrote (pratap.chakravarthy@wipro.com): > If so is linux has to be "rewritten" for that architechture. yes. just another directory entry in /usr/src/linux/arch, probably ia64. Raja Subramanian wrote: > * Gygnus has done considerable work in porting gcc, binutils and other > development tools to the ia64. i gues its Cygnus. ;) btw, Raja thanx for the gret links. From linux-india-programmers-owner@lists.linux-india.org Wed Dec 20 22:45:26 2000 Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by www.aunet.org (Postfix) with ESMTP id B47494A194 for ; Wed, 20 Dec 2000 22:45:24 -0800 (PST) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by palrel1.hp.com (Postfix) with ESMTP id 18EC2D43; Wed, 20 Dec 2000 22:44:16 -0800 (PST) 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 MAA26687; Thu, 21 Dec 2000 12:10:58 +0530 (IST) Message-ID: <3A41A5FA.9A87FF93@india.hp.com> Date: Thu, 21 Dec 2000 12:10:58 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: sreeji_k@yahoo.com Cc: Pratap Chakravarthy , linux-india-programmers@lists.linux-india.org Subject: Re: to develope a linux device driver References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/170 X-Sequence-Number: 1090 Modem configuration, particularly for Internal modems, is a difficult thing in Linux. This is despite the HOWTO guide on the same. Any contributions in this area should be welcome. Some of the things that strike me here is, auto detection of a modem/serial device and autoconfiguration, which by no means will be a trivial task. Sreeji K Das wrote: > > Thanks sreeji for the suggestion. Also if not on the device driver side can you suggestion something that can be done on other areas. Like in one mail some one was mentioning that NFS has so many flaws and some rework on that can be done. > > > > pratap > > Hi Pratap, > > Well, go purely based on your interests. It looks like you've sufficient > time (mmm... that has become a premium these days :-( ), lucky you. I'd > suggest you join a news group of ur interest. Say, if it's networking, > there are so many opensource projects going on (FreeS/WAN is one that > comes immediately to mind - www.freeswan.org) & you can join one of them & > then download the source, get it compiled & start using it. Then u'd know > that there are problems & you can try & solve & upload those patches. Thus > you can contribute to opensource. One thing I'd prefer to see in Linux is > SPX support in the Kernel. I don't think any active work is done on that > front. > > Similarly, there are many porting that are taking place. U can identify a > program/device driver .... etc. which is available in another OS & try to > port to Linux. For example, a VB like drag & drop tool for Rapid > App. Devel. (See glade - www.gtk.org). Or implementation of standards like > CORBA (see ORBit - a lightweight ORB - > http://mail.gnome.org/mailman/listinfo/orbit-list). > > I guess my mail's becoming a ramayana ..;-) So I'll stop here. > > Sreeji > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 00:04:13 2000 Received: from bgl.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id B1A5149F4C; Thu, 21 Dec 2000 00:04:07 -0800 (PST) Received: from puma.yahoo.com (PPP-174-86.bng.vsnl.net.in [203.197.174.86]) by bgl.vsnl.net.in (Postfix) with ESMTP id 9E63B61F8; Thu, 21 Dec 2000 13:25:03 +0530 (IST) Message-Id: <4.3.2.7.0.20001221132821.00ae0a50@hawk> X-Sender: biju_chacko#pop.mail.yahoo.com@hawk X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Thu, 21 Dec 2000 13:37:50 +0530 To: linux-india-help@lists.linux-india.org, "linux-india-help@lists.linux-india.org" , "linux-india-programmers@lists.linux-india.org" From: Biju Chacko Subject: Re: [LIH] Intel 64 bit architechture In-Reply-To: <3A41943B.C9653D8F@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200012/171 X-Sequence-Number: 1091 Hi, You have definitely chosen the right place to ask this question. Linux was ported to the IA64 quite a while back. One of the members of the team at Intel that did the job is also one of the founders of Linux India -- Arun Sharma. If you ask him, he will give you more information than you can possibly use. He will also explain to you why *BSD is better than linux and why the GPL is the work of the devil. *grinning, ducking and running* Biju At 10:55 AM 21/12/00 +0530, Pratap Chakravarthy wrote: >hi gurus, > It seems that IA64 will become very popular. I dont know whether it > is really a revolutionary >architechture like i386, but it do seems that it has some innovative concepts. > >If so is linux has to be "rewritten" for that architechture. Please >suggest some pointers on them. > >pratap ------------------------------------------------------------------------- Biju "Botsie" Chacko b i j u _ c h a c k o @ y a h o o . c o m ------------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 01:36:15 2000 Received: from archanp.naturesoft.com (unknown [202.9.161.6]) by www.aunet.org (Postfix) with ESMTP id 94A654A19C for ; Thu, 21 Dec 2000 01:35:51 -0800 (PST) Received: from onepost.net (IDENT:pagladashu@localhost [127.0.0.1]) by archanp.naturesoft.com (8.11.0/8.11.0) with ESMTP id eBLKXmw01254 for ; Fri, 22 Dec 2000 02:03:48 +0530 Message-ID: <3A42692B.198C4A3F@onepost.net> Date: Fri, 22 Dec 2000 02:03:47 +0530 From: devrootp@onepost.net X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: to develope a linux device driver References: <3A41A5FA.9A87FF93@india.hp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/172 X-Sequence-Number: 1092 How about writting some interface for IDS, which will pickup the tcp-packets from mbuf ds and also will have some driver level optimisation so that there won't be any performance decrease? Archan devrootp@onepost.net www.bigfoot.com/~archanp "Satheesh Kumar. N.K" wrote: > > Modem configuration, particularly for Internal modems, is a difficult thing > in Linux. This is despite the HOWTO guide on the same. > > Any contributions in this area should be welcome. Some of the things that > strike me here is, auto detection of a modem/serial device and autoconfiguration, > which by no means will be a trivial task. > > Sreeji K Das wrote: > > > > Thanks sreeji for the suggestion. Also if not on the device driver side can you suggestion something that can be done on other areas. Like in one mail some one was mentioning that NFS has so many flaws and some rework on that can be done. > > > > > > pratap > > > > Hi Pratap, > > > > Well, go purely based on your interests. It looks like you've sufficient > > time (mmm... that has become a premium these days :-( ), lucky you. I'd > > suggest you join a news group of ur interest. Say, if it's networking, > > there are so many opensource projects going on (FreeS/WAN is one that > > comes immediately to mind - www.freeswan.org) & you can join one of them & > > then download the source, get it compiled & start using it. Then u'd know > > that there are problems & you can try & solve & upload those patches. Thus > > you can contribute to opensource. One thing I'd prefer to see in Linux is > > SPX support in the Kernel. I don't think any active work is done on that > > front. > > > > Similarly, there are many porting that are taking place. U can identify a > > program/device driver .... etc. which is available in another OS & try to > > port to Linux. For example, a VB like drag & drop tool for Rapid > > App. Devel. (See glade - www.gtk.org). Or implementation of standards like > > CORBA (see ORBit - a lightweight ORB - > > http://mail.gnome.org/mailman/listinfo/orbit-list). > > > > I guess my mail's becoming a ramayana ..;-) So I'll stop here. > > > > Sreeji > > > > --------------------------------------------- > > Find out more about this and other Linux India > > mailing lists at http://lists.linux-india.org/ > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 01:43:11 2000 Received: from archanp.naturesoft.com (unknown [202.9.161.6]) by www.aunet.org (Postfix) with ESMTP id 302654A333 for ; Thu, 21 Dec 2000 01:43:06 -0800 (PST) Received: from onepost.net (IDENT:pagladashu@localhost [127.0.0.1]) by archanp.naturesoft.com (8.11.0/8.11.0) with ESMTP id eBLKf4w01261 for ; Fri, 22 Dec 2000 02:11:04 +0530 Message-ID: <3A426AE0.6A011EEE@onepost.net> Date: Fri, 22 Dec 2000 02:11:04 +0530 From: devrootp@onepost.net X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: [LIH] Intel 64 bit architechture References: <4.3.2.7.0.20001221132821.00ae0a50@hawk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/173 X-Sequence-Number: 1093 Days ago, I had a chance to work on IA64 based m/c running Linux (Turbo). I used it for floating point intensive calculation for complex simulation with heavy context switching. I have not found tremendous performance increase. This may be due to the use of same scheduling code used in kernel for ia64. MAY BE I AM LAME TO UNDERSTAND IT. Please correct me. Arun, please enlighten us. Archan devrootp@onepost.net www.bigfoot.com/~archanp Biju Chacko wrote: > > Hi, > > You have definitely chosen the right place to ask this question. Linux was > ported to the IA64 quite a while back. One of the members of the team at > Intel that did the job is also one of the founders of Linux India -- Arun > Sharma. If you ask him, he will give you more information than you can > possibly use. He will also explain to you why *BSD is better than linux and > why the GPL is the work of the devil. *grinning, ducking and running* > > Biju > > At 10:55 AM 21/12/00 +0530, Pratap Chakravarthy wrote: > >hi gurus, > > It seems that IA64 will become very popular. I dont know whether it > > is really a revolutionary > >architechture like i386, but it do seems that it has some innovative concepts. > > > >If so is linux has to be "rewritten" for that architechture. Please > >suggest some pointers on them. > > > >pratap > > ------------------------------------------------------------------------- > Biju "Botsie" Chacko b i j u _ c h a c k o @ y a h o o . c o m > ------------------------------------------------------------------------- > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 04:34:29 2000 Received: from web5303.mail.yahoo.com (web5303.mail.yahoo.com [216.115.106.112]) by www.aunet.org (Postfix) with SMTP id 7B9834A1B4 for ; Thu, 21 Dec 2000 04:34:25 -0800 (PST) Message-ID: <20001221123322.18048.qmail@web5303.mail.yahoo.com> Received: from [202.54.79.125] by web5303.mail.yahoo.com; Thu, 21 Dec 2000 04:33:22 PST Date: Thu, 21 Dec 2000 04:33:22 -0800 (PST) From: Santosh Singh Subject: Re: How to identify a Unix machine....] To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/174 X-Sequence-Number: 1094 --- Raja Subramanian wrote: => TO DEVELOP AND LEARN SOMETHING VERY NEAR TO SYSTEM AND TO TRACK INTRUDERS YOU NEED TO PORT SCAN, SNIFF THE PACKET AND ALL. > Port scanning is unethical! Any concerned sysadmin > will regard a port scan as a hacker/cracker trying > to identify weakness' in the system (nomatter how > innocent your intentions may be). Most machines may > even add you to the hosts.deny list automagically if > it detects a port scan. > In general there are several things that a computer > system cannot prevent you from doing - eg. port > scanning, packet sniffing, etc and you might be able > to do these things. This does not mean that you are > allowed to do them. And the more you learn, the more > things you can do... and more reasons to remember > this simple rule. =>A BORN HACKER IS NEVER WORRIED FOR HIS/HER JOBS . > Worse still, if you are doing this on your employers > machines, be ready to lose your job. > I still have my doubts when someone wants to find > out what OS an alien computer is running. Why would > you want to know > that?? HAVE THE CURIOUSITY OF HUMAN BEING WD NOT EXISTED TILL DATE WE MIGHT BE USING PIGEONS FOR MAILING. ========================================== = and above all = = | | |\ | | | \/ = |__ | | \| |__| /\ IS THERE = = just for those people u have criticised. ========================================== This is a common declaration of a Hacker as described in THE ULTIMATE BEGINNER'S GUIDE TO HACKING AND PHREAKING K. Hacker's Manifesto "This is our world now...the world of the electron and the switch, the beauty of the baud. We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto. You may stop this individual, but you can't stop us all...after all, we're all alike." +++The Mentor+++ Finally dont mess up between WHITE HAT HACKER and a BLACK HAT HACKER. __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 05:51:05 2000 Received: from web9208.mail.yahoo.com (web9208.mail.yahoo.com [216.136.129.41]) by www.aunet.org (Postfix) with SMTP id 8B06D4A1DD for ; Thu, 21 Dec 2000 05:51:03 -0800 (PST) Message-ID: <20001221134959.56169.qmail@web9208.mail.yahoo.com> Received: from [203.197.178.232] by web9208.mail.yahoo.com; Thu, 21 Dec 2000 05:49:59 PST Date: Thu, 21 Dec 2000 05:49:59 -0800 (PST) From: john slater Subject: ipv6.... To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/175 X-Sequence-Number: 1095 hello friends were can i download th enew vesion 6 for linux(IPV6) thanks with regards John --- devrootp@onepost.net wrote: > Days ago, I had a chance to work on IA64 based m/c > running Linux > (Turbo). I used it for floating point intensive > calculation for complex > simulation with heavy context switching. I have not > found tremendous > performance increase. This may be due to the use of > same scheduling code > used in kernel for ia64. MAY BE I AM LAME TO > UNDERSTAND IT. Please > correct me. > > Arun, please enlighten us. > > Archan > devrootp@onepost.net > www.bigfoot.com/~archanp > > Biju Chacko wrote: > > > > Hi, > > > > You have definitely chosen the right place to ask > this question. Linux was > > ported to the IA64 quite a while back. One of the > members of the team at > > Intel that did the job is also one of the founders > of Linux India -- Arun > > Sharma. If you ask him, he will give you more > information than you can > > possibly use. He will also explain to you why *BSD > is better than linux and > > why the GPL is the work of the devil. *grinning, > ducking and running* > > > > Biju > > > > At 10:55 AM 21/12/00 +0530, Pratap Chakravarthy > wrote: > > >hi gurus, > > > It seems that IA64 will become very popular. > I dont know whether it > > > is really a revolutionary > > >architechture like i386, but it do seems that it > has some innovative concepts. > > > > > >If so is linux has to be "rewritten" for that > architechture. Please > > >suggest some pointers on them. > > > > > >pratap > > > > > ------------------------------------------------------------------------- > > Biju "Botsie" Chacko b i j u _ c h a c > k o @ y a h o o . c o m > > > ------------------------------------------------------------------------- > > > > --------------------------------------------- > > LIP is all for free speech. But it was created > > for a purpose. Violations of the rules of > > this list will result in stern action. > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr ===== John Slater #123, Hooly Wood LA, CA 34523 __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 06:45:51 2000 Received: from mail.collegehouse.com.au (col23854-1.gw.connect.com.au [203.63.75.11]) by www.aunet.org (Postfix) with SMTP id 088584A195 for ; Thu, 21 Dec 2000 06:45:44 -0800 (PST) Received: (qmail 5805 invoked from network); 21 Dec 2000 14:44:10 -0000 Received: from unknown (HELO pingu.int.collegehouse.com.au) (10.0.5.58) by 10.0.0.1 with SMTP; 21 Dec 2000 14:44:10 -0000 Received: by pingu.int.collegehouse.com.au (sSMTP sendmail emulation); Fri, 22 Dec 2000 01:51:29 +1100 Date: Fri, 22 Dec 2000 01:51:28 +1100 From: Raja To: linux-india-programmers@lists.linux-india.org Subject: Re: How to identify a Unix machine....] Message-ID: <20001222015128.A1400@pingu> References: <20001221123322.18048.qmail@web5303.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001221123322.18048.qmail@web5303.mail.yahoo.com>; from sanhackin@yahoo.com on Thu, Dec 21, 2000 at 04:33:22AM -0800 X-Archive-Number: 200012/176 X-Sequence-Number: 1096 Santosh Singh wrote (sanhackin@yahoo.com): > => TO DEVELOP AND LEARN SOMETHING VERY NEAR TO SYSTEM > AND TO TRACK INTRUDERS YOU NEED TO PORT SCAN, SNIFF > THE PACKET AND ALL. > > =>A BORN HACKER IS NEVER WORRIED FOR HIS/HER JOBS . > > HAVE THE CURIOUSITY OF HUMAN BEING WD NOT EXISTED TILL > DATE WE MIGHT BE USING PIGEONS FOR MAILING. > > Dear poster, please check your caps lock key. There is no reason to yell. I'll keep this story short, I promise... Some years ago, I had exactly the same ideas, "the pursuit of knowledge", "curiosity", "white hat hacker", etc. One boring holiday morning, I went to uni and started "experimenting". I did this in all innocence I assure you, but that was not what the authorities had in mind. I had a tough time convincing them of my innocence. In Australia there is a 2 year maximum jail sentence for hacking and is considered serious offence. Scary! Don't let what happened to me happen to you - a wise man learns from others mistakes. The idea of being a hacker is exciting (romantic even), but the reality is terrible. Give it up. Play by the rules and nobody gets hurt. > ========================================== > = and above all > = > = | | |\ | | | \/ > = |__ | | \| |__| /\ IS THERE > = > = just for those people u have criticised. > ========================================== > What are you talking about?? Linux is there for everyone, not just for hackers. Besides, I'm not critisising anyone. I said portscanning was unethical. > Finally dont mess up between WHITE HAT HACKER and a BLACK HAT HACKER. > Like I already said, try explaining that to the authorities and see how far you can get. This thread has gone too far off the original topic, I appologise for this diversion. - Raja From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 07:44:51 2000 Received: from inet-smtp3.oracle.com (inet-smtp3.oracle.com [205.227.43.23]) by www.aunet.org (Postfix) with ESMTP id 807B14A191 for ; Thu, 21 Dec 2000 07:44:47 -0800 (PST) Received: from gmgw02.oraclecorp.com (gmgw02.us.oracle.com [130.35.60.248]) by inet-smtp3.oracle.com (8.9.3/8.9.3) with ESMTP id HAA28743 for ; Thu, 21 Dec 2000 07:43:43 -0800 (PST) Received: from oracle.com ([152.69.193.218]) by gmgw02.oraclecorp.com (8.8.8+Sun/8.8.8) with ESMTP id HAA25576 for ; Thu, 21 Dec 2000 07:43:03 -0800 (PST) Message-ID: <3A422472.7E94CD06@oracle.com> Date: Thu, 21 Dec 2000 21:10:34 +0530 From: "Saju.R.Pillai" Organization: Oracle Software India Limited X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: How to identify a Unix machine....] References: <20001221123322.18048.qmail@web5303.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/177 X-Sequence-Number: 1097 Santosh Singh wrote: > > => TO DEVELOP AND LEARN SOMETHING VERY NEAR TO SYSTEM > AND TO TRACK INTRUDERS YOU NEED TO PORT SCAN, SNIFF > THE PACKET AND ALL. > > =>A BORN HACKER IS NEVER WORRIED FOR HIS/HER JOBS . > > HAVE THE CURIOUSITY OF HUMAN BEING WD NOT EXISTED TILL > DATE WE MIGHT BE USING PIGEONS FOR MAILING. > me thinks poor guy just had a kevin mitnik overdose : ) -- Saju ************** RIPSRP ************** From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 10:01:19 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id A2D684A11F for ; Thu, 21 Dec 2000 10:01:16 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA26854 for linux-india-programmers@lists.linux-india.org; Thu, 21 Dec 2000 09:58:42 -0800 Date: Thu, 21 Dec 2000 09:58:42 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: [LIH] Intel 64 bit architechture Message-ID: <20001221095842.A26825@sharmas.dhs.org> References: <3A41943B.C9653D8F@wipro.com> <4.3.2.7.0.20001221132821.00ae0a50@hawk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <4.3.2.7.0.20001221132821.00ae0a50@hawk>; from biju_chacko@yahoo.com on Thu, Dec 21, 2000 at 01:37:50PM +0530 X-Archive-Number: 200012/178 X-Sequence-Number: 1098 On Thu, Dec 21, 2000 at 01:37:50PM +0530, Biju Chacko wrote: > Hi, > > You have definitely chosen the right place to ask this question. Linux was > ported to the IA64 quite a while back. One of the members of the team at > Intel that did the job is also one of the founders of Linux India -- Arun > Sharma. Thanks for the plug Biju :) I haven't used an IA-64 box in more than a year, but I generally keep track of what's going on there. As far as Linux being useful on IA-64 is concerned, all the keys are with the compiler authors. IA-64 is one of those beasts where you can hand tune assembly code and get 10x performance (in the best case that is). But I doubt if gcc is up to the task. A year ago, it was generating correct, but suboptimal code. The machine independent optimizations worked great, but the machine dependent types, especially, the ones that take advantage of speculation and predication (read IA-64 intros on developer.intel.com) were simply not there. Performance problems due to a crappy scheduler ? Your problems are probably more mundane :) True, Linux scheduler sucks, but it won't affect your fortran program. BTW, Did you see that zdnet already proclaimed the "rise of BSD" to be one of the significant technical events of 2000 ? :) -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 10:05: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 5BFF14A11F for ; Thu, 21 Dec 2000 10:05:17 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id KAA26895 for linux-india-programmers@lists.linux-india.org; Thu, 21 Dec 2000 10:02:43 -0800 Date: Thu, 21 Dec 2000 10:02:43 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: [LIH] Intel 64 bit architechture Message-ID: <20001221100243.B26825@sharmas.dhs.org> References: <4.3.2.7.0.20001221132821.00ae0a50@hawk> <3A426AE0.6A011EEE@onepost.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A426AE0.6A011EEE@onepost.net>; from devrootp@onepost.net on Fri, Dec 22, 2000 at 02:11:04AM +0530 X-Archive-Number: 200012/179 X-Sequence-Number: 1099 On Fri, Dec 22, 2000 at 02:11:04AM +0530, devrootp@onepost.net wrote: > Days ago, I had a chance to work on IA64 based m/c running Linux > (Turbo). I used it for floating point intensive calculation for complex > simulation with heavy context switching. I have not found tremendous > performance increase. This may be due to the use of same scheduling code > used in kernel for ia64. MAY BE I AM LAME TO UNDERSTAND IT. Please > correct me. > > Arun, please enlighten us. Sorry, didn't read your mail carefully in the first pass - so your program did heavy context switching and it's probably not written in fortran. You can narrow it down to a scheduler problem using top/vmstat - see if the machine was spending a lot of time in the "system" column, instead of the usual "user" column. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 21:12:24 2000 Received: from gigi.excite.com (gigi.excite.com [199.172.152.110]) by www.aunet.org (Postfix) with ESMTP id 114384A14B; Thu, 21 Dec 2000 21:12:20 -0800 (PST) Received: from tiptoe ([199.172.153.108]) by gigi.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20001222051113.LZLB9407.gigi.excite.com@tiptoe>; Thu, 21 Dec 2000 21:11:13 -0800 Message-ID: <27781148.977461873890.JavaMail.imail@tiptoe> Date: Thu, 21 Dec 2000 21:11:13 -0800 (PST) From: Shine Vijayan To: linux-india-programmers@lists.linux-india.org Subject: X-Windows programming in C++ Cc: linux-india-help@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 210.214.241.80 X-Archive-Number: 200012/180 X-Sequence-Number: 1100 Hi, I am in the process of porting a Adobe Acrobat plug-in developed on Windows platform to Linux platform. Can anybody help me with information and resources for X-Windows programming and Linux Programming using C++. To be more specific information and resources for Acrobat plug-in development on Linux. Thanx in advance, Regards, Shine V. ICE Ltd, www.iceindia.com _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 21 22:28:07 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 6201F4A04A for ; Thu, 21 Dec 2000 22:28:04 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBM6XV927007 for ; Fri, 22 Dec 2000 12:03:31 +0530 Message-ID: <3A42F542.B1F5D650@pspl.co.in> Date: Fri, 22 Dec 2000 12:01:30 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: X-Windows programming in C++ References: <27781148.977461873890.JavaMail.imail@tiptoe> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/181 X-Sequence-Number: 1101 Hi X offers you literally hazaar choices like GTK, Qt, XForms, Motif etc. I use Qt. It's good and easy. You can look into /usr/doc/qt*(version depends upon your installation and distribution). That will give you enough clue about it.. Note it's nothing more than a personal preference and experience. You will get different advices... You choose... HTH Bye Shridhar Shine Vijayan wrote: > Hi, > > I am in the process of porting a Adobe Acrobat plug-in developed on Windows > platform to Linux platform. > > Can anybody help me with information and resources for X-Windows programming > and Linux Programming using C++. > To be more specific information and resources for Acrobat plug-in > development on Linux. From linux-india-programmers-owner@lists.linux-india.org Sun Dec 24 10:03:08 2000 Received: from web11204.mail.yahoo.com (web11204.mail.yahoo.com [216.136.131.186]) by www.aunet.org (Postfix) with SMTP id 57B9749F62 for ; Sun, 24 Dec 2000 10:03:06 -0800 (PST) Message-ID: <20001224180149.54866.qmail@web11204.mail.yahoo.com> Received: from [203.197.182.102] by web11204.mail.yahoo.com; Sun, 24 Dec 2000 10:01:49 PST Date: Sun, 24 Dec 2000 10:01:49 -0800 (PST) From: =?iso-8859-1?q?sindhoor=20pangal?= Subject: extended ascii To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200012/182 X-Sequence-Number: 1102 hi i have been looking for the extended ascii codes for linux. u know! the ascii value for the double lines that are usually drawn around dialog boxes in non graphical editors and the kind!!! the dos codes dont seem produce the right characters. any place i can look! sindhoor __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sun Dec 24 22:45:23 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 4D57C4A033 for ; Sun, 24 Dec 2000 22:45:20 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBP6oS918062 for ; Mon, 25 Dec 2000 12:20:28 +0530 Message-ID: <3A46EDCB.CF80BB11@pspl.co.in> Date: Mon, 25 Dec 2000 12:18:43 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: extended ascii References: <20001224180149.54866.qmail@web11204.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/183 X-Sequence-Number: 1103 Hi You may not need to do all that fancy stuff. Ncurses provides such an interface that's easy enough to use.... IIRC,the codes use on DOS are somewhat dependent on BIOS graphices. (Sorry I don't recall correctly. It's more than three years I have touched that stuff...) As a rule of thumb, CUI is ncurses in linux. You are welcome to write your own.... Bye Shridhar sindhoor pangal wrote: > hi > i have been looking for the extended ascii codes for > linux. u know! the ascii value for the double lines > that are usually drawn around dialog boxes in non > graphical editors and the kind!!! the dos codes dont > seem produce the right characters. any place i can > look! From linux-india-programmers-owner@lists.linux-india.org Sun Dec 24 23:54:16 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 982BE49F37 for ; Sun, 24 Dec 2000 23:54:14 -0800 (PST) Received: from Larry.bk (unknown [203.197.136.210]) by md2.vsnl.net.in (Postfix) with ESMTP id EDCD020B for ; Mon, 25 Dec 2000 13:32:13 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id NAA00857 for ; Mon, 25 Dec 2000 13:18:45 +0530 Date: Mon, 25 Dec 2000 13:18:45 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: extended ascii In-Reply-To: <20001224180149.54866.qmail@web11204.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/184 X-Sequence-Number: 1104 On Sun, 24 Dec 2000, [iso-8859-1] sindhoor pangal wrote: > hi > i have been looking for the extended ascii codes for > linux. u know! the ascii value for the double lines > that are usually drawn around dialog boxes in non > graphical editors and the kind!!! the dos codes dont > seem produce the right characters. any place i can > look! Hi For drawing a box, you can use the function box(WINDOW *win, chtype verch, chtype horch); For details, see 'man ncurses' and 'man curs_border' verch & horch specify Vertical & Horiz. characters. They can be ACS_VLINE & ACS_HLINE (macros defined in curses.h - Edit curses.h & search for ACS_ for more.) ACS_ULCORNER (Upper left corner), ACS_URCORNER (Upper right), ACS_BLCORNER (Bottom Left), ACS_BRCORNER (Bottom right) ..etc. are also defined in curses.h & can be used to draw a complete box. Sreeji From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 00:12:56 2000 Received: from MailAndNews.com (MailAndNews.com [199.29.68.161]) by www.aunet.org (Postfix) with ESMTP id 00B9949EFB for ; Mon, 25 Dec 2000 00:12:51 -0800 (PST) Received: from onepost.net [202.9.161.6] (devrootp@MailAndNews.com) by MailAndNews.com; Mon, 25 Dec 2000 03:11:12 -0500 X-WM-Posted-At: MailAndNews.com; Mon, 25 Dec 00 03:11:12 -0500 Message-ID: <3A470168.5AB5E966@onepost.net> Date: Mon, 25 Dec 2000 13:42:24 +0530 From: Archan Paul Organization: Open Source Software X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: extended ascii References: <20001224180149.54866.qmail@web11204.mail.yahoo.com> <3A46EDCB.CF80BB11@pspl.co.in> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/185 X-Sequence-Number: 1105 use getkeycodes and dumpkeys commands to see the kbd scan codes Archan devrootp@onepost.net Shridhar Daithankar wrote: > > Hi > > You may not need to do all that fancy stuff. Ncurses provides such an interface > that's easy enough to use.... > > IIRC,the codes use on DOS are somewhat dependent on BIOS graphices. (Sorry I > don't recall correctly. It's more than three years I have touched that stuff...) > > As a rule of thumb, CUI is ncurses in linux. You are welcome to write your > own.... > > Bye > Shridhar > > sindhoor pangal wrote: > > > hi > > i have been looking for the extended ascii codes for > > linux. u know! the ascii value for the double lines > > that are usually drawn around dialog boxes in non > > graphical editors and the kind!!! the dos codes dont > > seem produce the right characters. any place i can > > look! > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 00:33:39 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 8D2D94A00C for ; Mon, 25 Dec 2000 00:33:36 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBP8ci919952 for ; Mon, 25 Dec 2000 14:08:44 +0530 Message-ID: <3A47072C.202F4131@pspl.co.in> Date: Mon, 25 Dec 2000 14:07:00 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: extended ascii References: <20001224180149.54866.qmail@web11204.mail.yahoo.com> <3A46EDCB.CF80BB11@pspl.co.in> <3A470168.5AB5E966@onepost.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/186 X-Sequence-Number: 1106 Hi IIRC there is also something called as showkey which is a commandline utility. Check out... Bye Shridhar Archan Paul wrote: > use getkeycodes and dumpkeys commands to see the kbd scan codes > From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 00:42:08 2000 Received: from MailAndNews.com (MailAndNews.com [199.29.68.161]) by www.aunet.org (Postfix) with ESMTP id 3A44149F1E for ; Mon, 25 Dec 2000 00:42:07 -0800 (PST) X-WM-Posted-At: MailAndNews.com; Mon, 25 Dec 00 03:40:28 -0500 X-WebMail-UserID: kameshj Date: Mon, 25 Dec 2000 03:40:28 -0500 From: kamesh jayachandran To: linux-india-programmers@lists.linux-india.org X-EXP32-SerialNo: 00000000 Subject: regarding 0x7c00 Message-ID: <3A532E45@MailAndNews.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: InterChange (Hydra) SMTP v3.61.08 X-Archive-Number: 200012/187 X-Sequence-Number: 1107 Hai list, I have read the following lines in "Linux Device Drivers" By Alessandro Rubini. "Setting Up the X86 Processors Once the boot device has been selected ,its first sector is loaded in to memory at address 0x7c00 and given control" what is the significance of this memory address 0x7c00? what is realmode? Thanks in advance kamesh jayachandran SoftWare Engineer PlanetAsia.com Bangalore See my work at www.electricalmachine.com From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 01:25:34 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 00AC74A15F for ; Mon, 25 Dec 2000 01:25:31 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBP9Ud920849 for ; Mon, 25 Dec 2000 15:00:39 +0530 Message-ID: <3A471358.F11DAEB@pspl.co.in> Date: Mon, 25 Dec 2000 14:58:56 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: regarding 0x7c00 References: <3A532E45@MailAndNews.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/188 X-Sequence-Number: 1108 Hi x86 processors above 386 can operate in two modes, real and protected. Real mode is one in which processor behaves as traditional microprocessor where all hardware address are used as it is. It's the mode in which dos operates. It has limit of memory space available and it does not allow process isolation. Think it as 32/64 bit 8086 at whatever speed you are using.... In protected mode, the code execution can take place in 4 levels 0-3. Additional Memory management unit comes into picture which can translate memory addressess. This MMU provides following operations 1)Mapping memory addresses 2)Raises interrupt when particular memory page is not available. So it can be used for virtual memory implementation. 3)Implements hardware bound on memory. Any attempt to access memory outside range will raise interrupt. Typically OS is expected to core dump such program.This happens without affecting any other programs. 4)Provides variable lengh memory segments varying from 0 bytes to 4GB. The resolution is 1 byte till some bound(about 512MB, don't remember) and then it's 64 KB. It's a 48 bit word, which stores resolution, base address in terms of 64K pages and some offset. At large size pages, last field offset is turned into 64K pages rather than a single byte. Nice architecture.... Additionally four levels of code execution isolates processes. No program can jump to another level other than OS granted ones. Stack/code/data is separate for each level and is typically inaccessible for lower level i.e. 3. Level three can not access space for level 1 1but level 1 can access space for level 0 etc. OS operates at level 0 code and user program at level 3. Unix(Don't know if this applies to linux) does not take advantage of all 4 levels to maintain portability as many other architectures like Motorola 68K offers only two modes of program isolation. Anyway according to unix philosophy only two level isolation is required i.e. user level and kernel level. I wonder how they did with 286... :-)) In simple words, following will work for real mode but not for protected mode. /*C code*/ char *ptr=0xb8000000; while(1)*ptr++=0; /*C code */ Or real mode is what is not protected mode... :-)) The reason I hate windows is that they did not implement protected mode truely with 95 and 98. I hope they have done it for NT but even not sure of that... For more explanation read a book for 386 by Tally. Not even sure of that. It was my B.E. course book. Will come back on this by tommorow. HTH Correct me if I am wrong. BTW any idea if multiple GDT's can be maintained on x86 processors so that more number of processes can be run? I mean this should be possible if one GDT is always maintained in the memory while rest of them made swappable. A chain of GDT->GDTs->LDTs can made number of processes available truely high.... Sorry if that was stupid... Bye Shridhar kamesh jayachandran wrote: > what is realmode? From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 02:34:19 2000 Received: from satyaki.pacific.net.in (satyaki.pacific.net.in [203.123.128.85]) by www.aunet.org (Postfix) with ESMTP id 7599F49F63 for ; Mon, 25 Dec 2000 02:34:12 -0800 (PST) Received: from ganga.sankya.com (ppp71.bangalore-188.pacific.net.in [203.123.188.71]) by satyaki.pacific.net.in with ESMTP id QAA03611 for ; Mon, 25 Dec 2000 16:02:48 +0530 (IST) Date: Mon, 25 Dec 2000 16:02:47 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: regarding 0x7c00 Message-ID: <20001225160247.A12742@sankya.com> Mail-Followup-To: Babu Kalakrishnan , linux-india-programmers@lists.linux-india.org References: <3A532E45@MailAndNews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A532E45@MailAndNews.com>; from kameshj@MailAndNews.com on Mon, Dec 25, 2000 at 03:40:28AM -0500 X-Operating-System: Red hat Linux 6.2 with Kernel 2.2.16-3 X-Kernel: Kernel 2.2.16-3 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200012/189 X-Sequence-Number: 1109 On Mon, Dec 25, 2000 at 03:40:28AM -0500, kamesh jayachandran typed: > Once the boot device has been selected ,its first sector is loaded in to > memory at address 0x7c00 and given control" > what is the significance of this memory address 0x7c00? Nothing very significant as far as I know - It has been done that way from the early phases of the IBM PC design, and it continues to be done that way. 0x7C00 is 1024 bytes below 32K - Maybe the guys who wrote the BIOS at IBM wanted the load the boot code as high into memory as possible, and the smallest machine they could imagine in the IBM PC architecture was a 32KB RAM system - and so that was about the highest address at which they could load the boot code without risking the possibility that the user didn't have enough memory and they were loading the code into blank space ! :):):) (Of course since the boot sector is only 512 bytes, they coupld presumably have loaded it at 0x7E00 - so may be they thought someday they might need 1024 bytes for the boot code) > what is realmode? All machines in the x86 architecture start up in what is called the 'Real" mode. This was the only mode available in the original 8086/88 processors and you can access only 1MB of RAM (and that too only in "segments" of 64KB at a time - with manipulation a few segment registers necessary to access the entire area). Any fundamental text book on the x86 processor architecture should be able to give you details on the Real mode and Protected modes. Kala From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 09:31:54 2000 Received: from c008.sfo.cp.net (c008-h011.c008.sfo.cp.net [209.228.14.200]) by www.aunet.org (Postfix) with SMTP id 8B1164A1D1 for ; Mon, 25 Dec 2000 09:31:52 -0800 (PST) Received: (cpmta 13556 invoked from network); 25 Dec 2000 09:30:31 -0800 Date: 25 Dec 2000 09:30:31 -0800 Message-ID: <20001225173031.13555.cpmta@c008.sfo.cp.net> X-Sent: 25 Dec 2000 17:30:31 GMT Received: from [202.54.57.34] by mail.123india.com with HTTP; 25 Dec 2000 09:30:31 PST Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: linux-india-programmers@lists.linux-india.org From: shantanu_gwl@123india.com X-Mailer: Web Mail 3.8.1.2 Subject: Finding (dynamic/static/whatever) current IP address ? X-Archive-Number: 200012/190 X-Sequence-Number: 1110 Hi all, Can anyone please guide as how to find the current IP address of my machine programmatically, like WINIPCFG in Win98 ? Any straight-forward way to code this in Java ? Any pointer will be of immense help. Thanks in advance. Regards, Shantanu. ______________________________________________________ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 10:09:11 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 7464B4A04D for ; Mon, 25 Dec 2000 10:08:59 -0800 (PST) Received: from localhost.localdomain ([202.9.150.138]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Mon, 25 Dec 2000 23:31:11 +0530 Received: (from anand@localhost) by localhost.localdomain (8.9.3/8.8.7) id XAA01547 for linux-india-programmers@lists.linux-india.org; Mon, 25 Dec 2000 23:36:23 +0530 X-Authentication-Warning: localhost.localdomain: anand set sender to abiligiri@bigfoot.com using -f Date: Mon, 25 Dec 2000 23:36:23 +0530 From: Anand Biligiri S To: linux-india-programmers@lists.linux-india.org Subject: Re: Finding (dynamic/static/whatever) current IP address ? Message-ID: <20001225233623.A1540@BlackKnight> Mail-Followup-To: Anand Biligiri S , linux-india-programmers@lists.linux-india.org References: <20001225173031.13555.cpmta@c008.sfo.cp.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline User-Agent: Mutt/1.1.11i In-Reply-To: <20001225173031.13555.cpmta@c008.sfo.cp.net>; from shantanu_gwl@123india.com on Mon, Dec 25, 2000 at 09:30:31AM -0800 X-Archive-Number: 200012/191 X-Sequence-Number: 1111 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi The rpogram which is attached displays the IP of the host given on command line. Replace getByName() with getLocalHost() to get the IP of the localhost. HTH On Mon, Dec 25, 2000 at 09:30:31AM -0800, shantanu_gwl@123india.com wrote: >Hi all, >Can anyone please guide as how to find the current IP address of my machine programmatically, like WINIPCFG in Win98 ? Any straight-forward way to code this in Java ? >Any pointer will be of immense help. Thanks in advance. >Regards, >Shantanu. -- Anand Biligiri S ---------------- Absence makes the heart forget. --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="JPing.java" import java.net.*; class JPing { public static void main(String[] args) { InetAddress host; try { host = InetAddress.getByName(args[0]); System.out.println(host.getHostAddress()); } catch(UnknownHostException e) { System.out.println("Invalid Host/Host not reacheable:" + args[0]); } } } --azLHFNyN32YCQGCU-- From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 20:26:00 2000 Received: from md2.vsnl.net.in (md2.vsnl.net.in [202.54.6.20]) by www.aunet.org (Postfix) with ESMTP id 7F20A4A0E4 for ; Mon, 25 Dec 2000 20:25:56 -0800 (PST) Received: from Larry.bk (unknown [203.199.228.27]) by md2.vsnl.net.in (Postfix) with ESMTP id 03AC813C; Tue, 26 Dec 2000 10:03:52 +0530 (IST) Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id JAA26994; Tue, 26 Dec 2000 09:50:20 +0530 Date: Tue, 26 Dec 2000 09:50:20 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: =?iso-8859-1?q?sindhoor=20pangal?= Cc: LIP Subject: Re: extended ascii In-Reply-To: <20001225165850.3401.qmail@web11202.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/192 X-Sequence-Number: 1112 On Mon, 25 Dec 2000, [iso-8859-1] sindhoor pangal wrote: > > > Hi > > For drawing a box, you can use the function > > box(WINDOW *win, chtype verch, chtype horch); > > yup! i know that stuff. infact border() ; gets > morespecific. what i want in particular is those > double lines. ACS_VLINE and ACS_HLINE only give single > lines. i even looked at the curses header. but no > double lines and thick lines. any help? > cd /test ./ncurses Select the option 'f' & see whether you get anything useful. This directory contains many test programs & may be useful to you. Sreeji From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 22:12:45 2000 Received: from mailweb10.rediffmail.com (unknown [203.199.83.26]) by www.aunet.org (Postfix) with SMTP id D81D44A18D for ; Mon, 25 Dec 2000 22:12:42 -0800 (PST) Received: (qmail 4675 invoked by uid 510); 26 Dec 2000 06:09:42 -0000 Date: 26 Dec 2000 06:09:42 -0000 Message-ID: <20001226060942.4674.qmail@mailweb10.rediffmail.com> MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: problem in readdir From: "vishwanath vish stonedoormath" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/193 X-Sequence-Number: 1113 hi all, I am facing a problem in readdir in linux redhat 6.2 ver The same code is working fine in redhat 6.1. In readdir its dumping core, i tried to debug the library source code but could't make it. Please do reply soon with answers. Thanx in advance vishwanath _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 22:37:44 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 714374A108 for ; Mon, 25 Dec 2000 22:37:33 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id MAA08565 for ; Tue, 26 Dec 2000 12:13:18 GMT Received: from wipro.com ([192.107.143.16]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAAD57 for ; Tue, 26 Dec 2000 12:03:48 +0530 Message-ID: <3A483BAF.ED1A3059@wipro.com> Date: Tue, 26 Dec 2000 12:03:20 +0530 From: Pratap Chakravarthy X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: regarding 0x7c00 References: <3A532E45@MailAndNews.com> <3A471358.F11DAEB@pspl.co.in> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/194 X-Sequence-Number: 1114 Shridhar Daithankar wrote: > Hi > > x86 processors above 386 can operate in two modes, real and protected. > > Real mode is one in which processor behaves as traditional microprocessor where > all hardware address are used as it is. It's the mode in which dos operates. It > has limit of memory space available and it does not allow process isolation. > Think it as 32/64 bit 8086 at whatever speed you are using.... I think it is not a 32/64 bit 8086 in real mode. It still have 20 bit address space + 64k - 16 bytes becasue of the segmentation technique which i used in the 8086 processor. All the processors from 386 to pentium start in the real mode with 0xffff0 as the starting address. This address is hardwired to the boot ROM. [ I think Itanium directly starts in the protected mode . Some body clear me ?]. > > > In protected mode, the code execution can take place in 4 levels 0-3. Additional > Memory management unit comes into picture which can translate memory addressess. > This MMU provides following operations > > 1)Mapping memory addresses > 2)Raises interrupt when particular memory page is not available. So it can be > used for virtual memory implementation. > 3)Implements hardware bound on memory. Any attempt to access memory outside > range will raise interrupt. Typically OS is expected to core dump such > program.This happens without affecting any other programs. > 4)Provides variable lengh memory segments varying from 0 bytes to 4GB. The > resolution is 1 byte till some bound(about 512MB, don't remember) and then it's > 64 KB. It's a 48 bit word, which stores resolution, base address in terms of > 64K pages and some offset. At large size pages, last field offset is turned into > 64K pages rather than a single byte. Nice architecture.... > > Additionally four levels of code execution isolates processes. No program can > jump to another level other than OS granted ones. Stack/code/data is separate > for each level and is typically inaccessible for lower level i.e. 3. Level three > can not access space for level 1 1but level 1 can access space for level 0 etc. > > OS operates at level 0 code and user program at level 3. Unix(Don't know if this > applies to linux) does not take advantage of all 4 levels to maintain > portability as many other architectures like Motorola 68K offers only two modes > of program isolation. Anyway according to unix philosophy only two level > isolation is required i.e. user level and kernel level. I wonder how they did > with 286... :-)) > > In simple words, following will work for real mode but not for protected mode. > > /*C code*/ > char *ptr=0xb8000000; > > while(1)*ptr++=0; > /*C code */ > > Or real mode is what is not protected mode... :-)) > > The reason I hate windows is that they did not implement protected mode truely > with 95 and 98. I hope they have done it for NT but even not sure of that... > > For more explanation read a book for 386 by Tally. Not even sure of that. It was > my B.E. course book. Will come back on this by tommorow. hey i think it is turley - titile : advance programming in 80386. It is fantastic book on 80386. you can try a search in amazon.com. Worth reading. > > > HTH > > Correct me if I am wrong. > > BTW any idea if multiple GDT's can be maintained on x86 processors so that more > number of processes can be run? I mean this should be possible if one GDT is > always maintained in the memory while rest of them made swappable. A chain of > GDT->GDTs->LDTs can made number of processes available truely high.... I think it is tidious to have multiple GDTs. Because for every memory access the segment address is converted to the linear - physical address [dependent on whether paging is enabled or not] using the selector register [CS, DS etc..] and the offset register [IP, etc..]. So to swap the GDTR register the swapper code must be highly suffisticated. what it is GDT->GDTs->LDTs ? I dont think it is possible. But still with GDT-> LDTs we can run few thousands of process. > > > Sorry if that was stupid... > > Bye > Shridhar > > kamesh jayachandran wrote: > > > what is realmode? > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. From linux-india-programmers-owner@lists.linux-india.org Mon Dec 25 22:52:07 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id AE2704A131 for ; Mon, 25 Dec 2000 22:52:04 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBQ6v5318771 for ; Tue, 26 Dec 2000 12:27:05 +0530 Message-ID: <3A4840DE.ECA4C0DF@pspl.co.in> Date: Tue, 26 Dec 2000 12:25:26 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: regarding 0x7c00 References: <3A532E45@MailAndNews.com> <3A471358.F11DAEB@pspl.co.in> <3A483BAF.ED1A3059@wipro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/195 X-Sequence-Number: 1115 Hi Pratap Chakravarthy wrote: > > I think it is not a 32/64 bit 8086 in real mode. It still have 20 bit address space + 64k - 16 bytes becasue of the segmentation technique which i used in the 8086 processor. All the processors from 386 to pentium start in the real mode with 0xffff0 as the starting address. This address is hardwired to the boot ROM. [ I think Itanium directly starts in the protected mode . Some body clear me ?]. > Yaa.. I mean sorry for my rusty memory. It's been long time.... > > hey i think it is turley - titile : advance programming in 80386. It is fantastic book on 80386. you > can try a search in amazon.com. Worth > reading. > yup... That's what I was trying to recall... Kamesh, this is what you want. It seems that I have donated my copy to somebody... > > I think it is tidious to have multiple GDTs. Because for every memory access the segment address is converted to the linear - physical address [dependent on whether paging is enabled or not] using the selector register [CS, DS etc..] and the offset register [IP, etc..]. So to swap the GDTR register the swapper code must be highly suffisticated. > > what it is GDT->GDTs->LDTs ? I dont think it is possible. But still with GDT-> LDTs we can run few thousands of process. Well few thousand processes are not enough sometimes. Linux has limitations on 4096 processes on intel, which unfortunately hold for SMP too. This is very bad. IIRC this is been addressed in someway but don't remember how... Thanks for correcting me... Shridhar From linux-india-programmers-owner@lists.linux-india.org Tue Dec 26 00:15:38 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id EA1744A09E; Tue, 26 Dec 2000 00:15:31 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id AAA01912; Tue, 26 Dec 2000 00:12:40 -0800 Date: Tue, 26 Dec 2000 00:12:40 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Cc: linux-india-help@lists.linux-india.org Subject: Re: X-Windows programming in C++ Message-ID: <20001226001240.A1903@sharmas.dhs.org> References: <27781148.977461873890.JavaMail.imail@tiptoe> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <27781148.977461873890.JavaMail.imail@tiptoe>; from Shine_Vijayan@excite.com on Thu, Dec 21, 2000 at 09:11:13PM -0800 X-Archive-Number: 200012/196 X-Sequence-Number: 1116 On Thu, Dec 21, 2000 at 09:11:13PM -0800, Shine Vijayan wrote: > Hi, > > I am in the process of porting a Adobe Acrobat plug-in developed on Windows > platform to Linux platform. Are you talking about a browser plug-in ? In that case, you'll have to use the same "toolkit" as the browser. For Netscape 4.x - that's Motif. For Mozilla, it's Gtk, but there are Qt, Xt based ports floating around on the net. Once you've made the toolkit choice, Qt - Complete C++ Gtk++ - C++ bindings for Gtk Vtk - Motif in C++ -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Dec 26 00:17:56 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 36E8E4A133 for ; Tue, 26 Dec 2000 00:17:54 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id AAA01951 for linux-india-programmers@lists.linux-india.org; Tue, 26 Dec 2000 00:15:03 -0800 Date: Tue, 26 Dec 2000 00:15:03 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Finding (dynamic/static/whatever) current IP address ? Message-ID: <20001226001503.B1903@sharmas.dhs.org> References: <20001225173031.13555.cpmta@c008.sfo.cp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001225173031.13555.cpmta@c008.sfo.cp.net>; from shantanu_gwl@123india.com on Mon, Dec 25, 2000 at 09:30:31AM -0800 X-Archive-Number: 200012/197 X-Sequence-Number: 1117 On Mon, Dec 25, 2000 at 09:30:31AM -0800, shantanu_gwl@123india.com wrote: > Hi all, > > Can anyone please guide as how to find the current IP address of my > machine programmatically, like WINIPCFG in Win98 ? Any straight-forward > way to code this in Java ? # ifconfig -a # ifconfig eth0 Note that "programmatically" typically means using a library call. I'm not sure if you mean that. If you do, there is a socket ioctl which does that - refer to Stevens or your man pages. -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Dec 26 00:18: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 2C3D44A123 for ; Tue, 26 Dec 2000 00:18:56 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id AAA01958 for linux-india-programmers@lists.linux-india.org; Tue, 26 Dec 2000 00:16:05 -0800 Date: Tue, 26 Dec 2000 00:16:05 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: problem in readdir Message-ID: <20001226001605.C1903@sharmas.dhs.org> References: <20001226060942.4674.qmail@mailweb10.rediffmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001226060942.4674.qmail@mailweb10.rediffmail.com>; from vishooo@rediffmail.com on Tue, Dec 26, 2000 at 06:09:42AM -0000 X-Archive-Number: 200012/198 X-Sequence-Number: 1118 On Tue, Dec 26, 2000 at 06:09:42AM -0000, vishwanath vish stonedoormath wrote: > hi all, > > I am facing a problem in readdir in linux redhat 6.2 ver > The same code is working fine in redhat 6.1. > > In readdir its dumping core, i tried to debug the library source code but could't make it. > 1. Make sure that you're using the right header files and libraries. You can't mix and match 6.1 and 6.2 headers/libs. 2. Check redhat errata. This may be a genuine bug. -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Dec 26 04:15:00 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 91F1C49F1E for ; Tue, 26 Dec 2000 04:14:55 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBQCJp330749 for ; Tue, 26 Dec 2000 17:49:55 +0530 Message-ID: <3A488C86.D8CEA527@pspl.co.in> Date: Tue, 26 Dec 2000 17:48:14 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: X-Windows programming in C++ References: <27781148.977461873890.JavaMail.imail@tiptoe> <20001226001240.A1903@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/199 X-Sequence-Number: 1119 Hi I saw wxWindows today. Looks good enough to me. I mean a simpler way to program in motif and keep it cross platform too... Check out www.wxwindows.org Bye Shridhar Arun Sharma wrote: > On Thu, Dec 21, 2000 at 09:11:13PM -0800, Shine Vijayan wrote: > > Hi, > > > > I am in the process of porting a Adobe Acrobat plug-in developed on Windows > > platform to Linux platform. > > Are you talking about a browser plug-in ? In that case, you'll have to > use the same "toolkit" as the browser. > > For Netscape 4.x - that's Motif. For Mozilla, it's Gtk, but there are > Qt, Xt based ports floating around on the net. > > Once you've made the toolkit choice, > > Qt - Complete C++ > Gtk++ - C++ bindings for Gtk > Vtk - Motif in C++ From linux-india-programmers-owner@lists.linux-india.org Tue Dec 26 05:11:21 2000 Received: from nwcst319.netaddress.usa.net (nwcst319.netaddress.usa.net [204.68.23.64]) by www.aunet.org (Postfix) with SMTP id 6BECF4A03A for ; Tue, 26 Dec 2000 05:11:19 -0800 (PST) Received: (qmail 21329 invoked by uid 60001); 26 Dec 2000 13:10:12 -0000 Message-ID: <20001226131012.21328.qmail@nwcst319.netaddress.usa.net> Received: from 204.68.23.64 by nwcst319 for [63.109.250.116] via web-mailer(34FM.0700.4B.01) on Tue Dec 26 13:10:12 GMT 2000 Date: 26 Dec 00 18:40:12 IST From: rayesh raikar To: linux-india-programmers@lists.linux-india.org Subject: terminal emulator X-Mailer: USANET web-mailer (34FM.0700.4B.01) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200012/200 X-Sequence-Number: 1120 hai .. I wanted to know how the terminal emulator work. Any sites which give information on this. Thanks in advance.. Rayesh ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D1 From linux-india-programmers-owner@lists.linux-india.org Tue Dec 26 12:34:51 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 3776149F1E for ; Tue, 26 Dec 2000 12:34:47 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id MAA02931 for linux-india-programmers@lists.linux-india.org; Tue, 26 Dec 2000 12:31:54 -0800 Date: Tue, 26 Dec 2000 12:31:53 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: terminal emulator Message-ID: <20001226123153.A2913@sharmas.dhs.org> References: <20001226131012.21328.qmail@nwcst319.netaddress.usa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001226131012.21328.qmail@nwcst319.netaddress.usa.net>; from rayesh@usa.net on Tue, Dec 26, 2000 at 06:40:12PM +0200 X-Archive-Number: 200012/201 X-Sequence-Number: 1121 On Tue, Dec 26, 2000 at 06:40:12PM +0200, rayesh raikar wrote: > hai .. > > I wanted to know how the terminal emulator work. > Any sites which give information on this. http://vt100.net -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Dec 27 04:30:59 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 2D7954A33C for ; Wed, 27 Dec 2000 04:30:57 -0800 (PST) Received: (qmail 15687 invoked by uid 417); 27 Dec 2000 12:34:15 -0000 Received: from unknown (HELO d) (203.197.224.215) by smtpa.softhome.net with SMTP; 27 Dec 2000 12:34:15 -0000 Date: Wed, 27 Dec 2000 18:1:7 +0500 From: Ð ë ê þ ã K Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: starting address of code X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20001227123057.2D7954A33C@www.aunet.org> X-Archive-Number: 200012/202 X-Sequence-Number: 1122 hi why does each program has something like 0x08048??? as starting address. to be more clear ---- whenever i put a break on main function in gdb it says break at 0x08048??? where ? are some digits. ______________________ __reply soon __bye _____|) (- (- |> /\ |< ______________________ From linux-india-programmers-owner@lists.linux-india.org Wed Dec 27 10:04:47 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 926F54A1E0 for ; Wed, 27 Dec 2000 10:04:41 -0800 (PST) Received: (qmail 8609 invoked by uid 417); 27 Dec 2000 18:07:59 -0000 Received: from unknown (HELO d) (203.195.135.75) by smtpa.softhome.net with SMTP; 27 Dec 2000 18:07:59 -0000 Date: Wed, 27 Dec 2000 23:34:51 +0500 From: Ð ë ê þ ã K Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: kernel ver without SMP X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20001227180441.926F54A1E0@www.aunet.org> X-Archive-Number: 200012/203 X-Sequence-Number: 1123 hi i need some pointers to location from where i can download some older version of linux without SMP support. plz tell the version number also. one more question --> why linux have an array of task_struct , why can't only doubly linked list do which is also present to connect all of them. ______________________ __reply soon __bye _____d e e p a k ______________________ From linux-india-programmers-owner@lists.linux-india.org Wed Dec 27 19:33:12 2000 Received: from nagpur.dot.net.in (nagpur.vsnl.net.in [202.54.50.1]) by www.aunet.org (Postfix) with ESMTP id CE98B4A346 for ; Wed, 27 Dec 2000 19:33:09 -0800 (PST) Received: from nagpur.dot.net.in ([203.199.94.90]) by nagpur.dot.net.in (8.9.3/8.9.3) with ESMTP id JAA10833 for ; Thu, 28 Dec 2000 09:07:39 +0530 (IST) Message-ID: <3A4AB2FA.66D01A9C@yahoo.com> Date: Thu, 28 Dec 2000 08:56:51 +0530 From: "Paras G. Mukadam" 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: some help Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/204 X-Sequence-Number: 1124 Hi, Can you help me in going thru this site. I have some problem in a tool called flex and I wish to discuss it with experts out there. Thanks anyway & happy new year. Paras. From linux-india-programmers-owner@lists.linux-india.org Wed Dec 27 20:39:48 2000 Received: from web5304.mail.yahoo.com (web5304.mail.yahoo.com [216.115.106.113]) by www.aunet.org (Postfix) with SMTP id 6D46F4A3C8 for ; Wed, 27 Dec 2000 20:29:12 -0800 (PST) Message-ID: <20001228042741.2259.qmail@web5304.mail.yahoo.com> Received: from [202.54.79.121] by web5304.mail.yahoo.com; Wed, 27 Dec 2000 20:27:41 PST Date: Wed, 27 Dec 2000 20:27:41 -0800 (PST) From: Santosh Singh Subject: USB Specifications To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/205 X-Sequence-Number: 1125 Hello Can somebody suggest me for hardware specifications of USB coz I want to develop a device driver for it. As USB is used both for char type device and block type device interface so does one require to develop a legacy driver first and then a generic USB driver which will reside on the legacy driver. Plz help. Thanks in advance. Santosh __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Wed Dec 27 23:56:57 2000 Received: from mail2.pspl.co.in (unknown [202.54.11.81]) by www.aunet.org (Postfix) with ESMTP id 5EB264A759 for ; Wed, 27 Dec 2000 23:41:54 -0800 (PST) Received: from pspl.co.in (IDENT:prodigy@vrindavan.intranet.pspl.co.in [192.168.1.18]) by mail2.pspl.co.in (8.9.3/8.9.3) with ESMTP id NAA13651 for ; Thu, 28 Dec 2000 13:15:24 +0530 Message-ID: <3A4AEECC.E06BAAD9@pspl.co.in> Date: Thu, 28 Dec 2000 13:12:04 +0530 From: Santosh Dawara Organization: Persistent Systems X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Some Java and C memory problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/206 X-Sequence-Number: 1126 Hi all, I was rewriting some C code in Java, some portions of the C code extensively handles unsigned chars or octets using 'memcpy', how would you suggest I approach the same problem in Java ? I would appreciate it if anyone could provide me the right data types that I could use to do this. I am trying to use Byte Arrays to perform the same as of now, but I cannot seem to handle the bytes exactly the same way that memcpy does. Thanks a lot, Santosh. From linux-india-programmers-owner@lists.linux-india.org Thu Dec 28 00:33:46 2000 Received: from bom5.vsnl.net.in (bom5.vsnl.net.in [202.54.1.68]) by www.aunet.org (Postfix) with ESMTP id 7CCD44A570 for ; Thu, 28 Dec 2000 00:07:15 -0800 (PST) Received: from poboxes.com (unknown [203.197.58.92]) by bom5.vsnl.net.in (Postfix) with ESMTP id 6412CEF69 for ; Thu, 28 Dec 2000 13:36:42 +0530 (IST) Message-ID: <3A4AF4CB.F95267F8@poboxes.com> Date: Thu, 28 Dec 2000 13:37:40 +0530 From: Rahul Palkar Reply-To: palkar@bom5.vsnl.net.in X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: USB Specifications References: <20001228042741.2259.qmail@web5304.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/207 X-Sequence-Number: 1127 Hi, Linux Kernel 2.4 has the required support for USB. Moreover some back ports for the earlier versions of the kernel have been developed. You can look up links from the mini howtos for Handspring Visor. Regards Rahul Santosh Singh wrote: > Hello > Can somebody suggest me for hardware specifications of > USB coz I want to develop a device driver for it. As > USB is used both for char type device and block type > device interface so does one require to develop a > legacy driver first and then a generic USB driver > which will reside on the legacy driver. Plz help. > Thanks in advance. > Santosh > > __________________________________________________ > Do You Yahoo!? > Yahoo! Photos - Share your holiday photos online! > http://photos.yahoo.com/ > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Thu Dec 28 00:35:55 2000 Received: from web5304.mail.yahoo.com (web5304.mail.yahoo.com [216.115.106.113]) by www.aunet.org (Postfix) with SMTP id B23694A5D5 for ; Thu, 28 Dec 2000 00:23:15 -0800 (PST) Message-ID: <20001228082143.17166.qmail@web5304.mail.yahoo.com> Received: from [202.131.122.98] by web5304.mail.yahoo.com; Thu, 28 Dec 2000 00:21:43 PST Date: Thu, 28 Dec 2000 00:21:43 -0800 (PST) From: puneets chawla Subject: red hat linux certification??? To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/208 X-Sequence-Number: 1128 hi guys, i just heard that there is a red hat certification for linux. can u kindly guide me as to what is the course for the exam. and are there any prometric centres in north india for this cerification. hoping to get a answer soon. ===== Puneet Singh Chawla (sun certified java programmer) 3rd year punjab engg college __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 28 01:01:49 2000 Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61]) by www.aunet.org (Postfix) with ESMTP id 26A634A25F for ; Thu, 28 Dec 2000 01:01:13 -0800 (PST) Received: from dlep6.itg.ti.com ([157.170.188.9]) by gatekeep.ti.com (8.11.1/8.11.1) with ESMTP id eBS8xfH19729 for ; Thu, 28 Dec 2000 02:59:41 -0600 (CST) Received: from dlep6.itg.ti.com (localhost [127.0.0.1]) by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id CAA25148 for ; Thu, 28 Dec 2000 02:59:40 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id CAA25142 for ; Thu, 28 Dec 2000 02:59:39 -0600 (CST) Received: from india.ti.com (apdsparc089 [157.87.88.140]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id OAA00563 for ; Thu, 28 Dec 2000 14:29:31 +0530 (IST) Message-ID: <3A4B00F4.F7047FA8@india.ti.com> Date: Thu, 28 Dec 2000 14:29:32 +0530 From: Sumit Rangawala Organization: Texas Instruments X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers Subject: fork or printf problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/209 X-Sequence-Number: 1129 Hi , running the output executable of the following program as $a.out and $a.out > test give different results WHY?? **************************** #include #include #include main() { printf("Hello\n"); if(fork()==0) { printf("world\n"); } } ***************************** TIA Regards Sumit From linux-india-programmers-owner@lists.linux-india.org Thu Dec 28 01:54:17 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.129]) by www.aunet.org (Postfix) with ESMTP id 340DA4A0C2 for ; Thu, 28 Dec 2000 01:48:11 -0800 (PST) Received: (from binand@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id PAA19858 for linux-india-programmers@lists.linux-india.org; Thu, 28 Dec 2000 15:22:47 +0530 Date: Thu, 28 Dec 2000 15:22:47 +0530 From: Binand Raj S To: linux-india-programmers Subject: Re: fork or printf problem Message-ID: <20001228152247.A19627@bombay.retortsoft.com> Mail-Followup-To: Binand Raj S , linux-india-programmers References: <3A4B00F4.F7047FA8@india.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A4B00F4.F7047FA8@india.ti.com>; from sumitr@india.ti.com on Thu, Dec 28, 2000 at 02:29:32PM +0530 X-Editor: VIM - Vi IMproved 5.7 X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/210 X-Sequence-Number: 1130 Sumit Rangawala forced the electrons to say: > running the output executable of the following program as > $a.out > and > $a.out > test > give different results > WHY?? Buffering. Read man setbuf for the full story. In particular, stdout, when directed to a terminal, is line buffered, but when directed to a file is block buffered. Binand From linux-india-programmers-owner@lists.linux-india.org Thu Dec 28 01:57:14 2000 Received: from mail.cse.iitk.ac.in (unknown [210.212.54.4]) by www.aunet.org (Postfix) with ESMTP id 939694A122 for ; Thu, 28 Dec 2000 01:57:07 -0800 (PST) Received: from cseultra2.cse.iitk.ac.in (cseultra2 [172.31.16.2]) by mail.cse.iitk.ac.in (8.9.3/8.9.3) with ESMTP id PAA00819 for ; Thu, 28 Dec 2000 15:23:32 +0530 Received: from csemt72.cse.iitk.ac.in (IDENT:saugata@csemt72.cse.iitk.ac.in [172.31.17.72]) by cseultra2.cse.iitk.ac.in (8.10.1/8.10.1) with ESMTP id eBS9o5b16783 for ; Thu, 28 Dec 2000 15:20:05 +0530 (IST) Date: Sun, 31 Dec 2000 15:23:27 +0530 (IST) From: Saugata Das Purkayastha To: linux-india-programmers Subject: Re: fork or printf problem In-Reply-To: <3A4B00F4.F7047FA8@india.ti.com> Message-ID: Organization: Dept of Computer Science IIT Kanpur MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200012/211 X-Sequence-Number: 1131 Put, fflush(stdout), after the printf("Hello\n") statement. You will get same result. The first "hello" is buffered and not printed and when it forks, the child also gets a copy of that buffer. Thats why one extra hello is printed. bye, saugata :running the output executable of the following program as : :$a.out :and :$a.out > test : :give different results :WHY?? : :**************************** :#include :#include :#include : :main() :{ : : printf("Hello\n"); : if(fork()==0) : { : printf("world\n"); : } :} : From linux-india-programmers-owner@lists.linux-india.org Thu Dec 28 03:03:33 2000 Received: from web613.mail.yahoo.com (web613.mail.yahoo.com [216.115.104.82]) by www.aunet.org (Postfix) with SMTP id 871CA4A135 for ; Thu, 28 Dec 2000 03:03:31 -0800 (PST) Message-ID: <20001228110159.18971.qmail@web613.mail.yahoo.com> Received: from [202.9.158.93] by web613.mail.yahoo.com; Thu, 28 Dec 2000 03:01:59 PST Date: Thu, 28 Dec 2000 03:01:59 -0800 (PST) From: =?iso-8859-1?q?prince=20mavi?= Subject: Re: red hat linux certification??? To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200012/212 X-Sequence-Number: 1132 hi punnet, r u the same puneet who is working part-time in webcom(sec-8 chd)? nice to c u. bout rcp: it is conducted by IBM (i may be wrong) search at google n u will find all sorts of info regarding this. prince. princemavi@yahoo.com __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Dec 28 19:32:23 2000 Received: from web4801.mail.yahoo.com (web4801.mail.yahoo.com [216.115.105.199]) by www.aunet.org (Postfix) with SMTP id 3E9EF4A057 for ; Thu, 28 Dec 2000 19:32:21 -0800 (PST) Message-ID: <20001229033045.23731.qmail@web4801.mail.yahoo.com> Received: from [161.142.100.81] by web4801.mail.yahoo.com; Fri, 29 Dec 2000 03:30:45 GMT Date: Fri, 29 Dec 2000 03:30:45 +0000 (GMT) From: =?iso-8859-1?q?THOMSON=20FREDRICK?= Subject: Clarifying doubts in Java Project To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200012/213 X-Sequence-Number: 1133 Dear Sir, My Project Title is -Java Based Phone Dialer.-It is used to dial a phone from the computer using modem.It's already in the windows 98 at accessories menu.Simulation to that. I had devloped the java Program.But I am not able to connect my java program to the modem for that i need your help.please do the needful.which concept I have to use and how I have to connect?. please help me. I need this urgent help.Reply to me as early as possible. THOMSON ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From linux-india-programmers-owner@lists.linux-india.org Thu Dec 28 22:28:50 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 1EE204A101 for ; Thu, 28 Dec 2000 22:28:47 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBT6XO325260 for ; Fri, 29 Dec 2000 12:03:24 +0530 Message-ID: <3A4C2FE0.F873487@pspl.co.in> Date: Fri, 29 Dec 2000 12:02:01 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: some help References: <3A4AB2FA.66D01A9C@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/214 X-Sequence-Number: 1134 Hi Could you please post your doubts? I have used flex. It's useful and hell lot powerful tool. And I found man page sufficient. Only thing I did was to translate man page to html for better reading... HTH Bye Shridhar "Paras G. Mukadam" wrote: > Hi, > Can you help me in going thru this site. I have some problem in > a tool called flex and I wish to discuss it with experts out > there. Thanks anyway & happy new year. From linux-india-programmers-owner@lists.linux-india.org Fri Dec 29 00:50:46 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 1C0FD4A0D3 for ; Fri, 29 Dec 2000 00:50:29 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id OAA27558 for ; Fri, 29 Dec 2000 14:26:03 GMT Received: from wipro.com ([192.107.143.16]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA2570 for ; Fri, 29 Dec 2000 14:16:24 +0530 Message-ID: <3A4C4F62.E4569CC0@wipro.com> Date: Fri, 29 Dec 2000 14:16:26 +0530 From: Pratap Chakravarthy X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: some help References: <3A4AB2FA.66D01A9C@yahoo.com> <3A4C2FE0.F873487@pspl.co.in> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/215 X-Sequence-Number: 1135 Shridhar Daithankar wrote: > Hi > > Could you please post your doubts? I have used flex. It's useful and hell lot > powerful tool. And I found man page sufficient. Only thing I did was to > translate man page to html for better reading... > > HTH > > Bye > Shridhar > > "Paras G. Mukadam" wrote: > > > Hi, > > Can you help me in going thru this site. I have some problem in > > a tool called flex and I wish to discuss it with experts out > > there. Thanks anyway & happy new year. > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP hello shridhar, Can you tell me how to translate the man page into a html page. pratap From linux-india-programmers-owner@lists.linux-india.org Fri Dec 29 01:50:20 2000 Received: from web5304.mail.yahoo.com (web5304.mail.yahoo.com [216.115.106.113]) by www.aunet.org (Postfix) with SMTP id B2A274A131 for ; Fri, 29 Dec 2000 01:49:02 -0800 (PST) Message-ID: <20001229094725.4405.qmail@web5304.mail.yahoo.com> Received: from [202.131.122.98] by web5304.mail.yahoo.com; Fri, 29 Dec 2000 01:47:25 PST Date: Fri, 29 Dec 2000 01:47:25 -0800 (PST) From: puneets chawla Subject: Re: Clarifying doubts in Java Project To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/216 X-Sequence-Number: 1136 well dear i am not completely sure but u'll have to use the telephony api to dial or to use the modem. u can also try the java communication api to connect to any port. just download the documentation and examples and things would be more clear. ===== Puneet Singh Chawla (sun certified java programmer) 3rd year punjab engg college __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Fri Dec 29 02:16:33 2000 Received: from web5302.mail.yahoo.com (web5302.mail.yahoo.com [216.115.106.111]) by www.aunet.org (Postfix) with SMTP id E8AC54A1B8 for ; Fri, 29 Dec 2000 02:03:20 -0800 (PST) Message-ID: <20001229100144.21387.qmail@web5302.mail.yahoo.com> Received: from [202.131.122.98] by web5302.mail.yahoo.com; Fri, 29 Dec 2000 02:01:44 PST Date: Fri, 29 Dec 2000 02:01:44 -0800 (PST) From: puneets chawla Subject: Re: Some Java and C memory problems To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200012/217 X-Sequence-Number: 1137 well i am not very clear with your question. apart from using char array you can also try to use a object like vector or store it by using serialized classes . i can help u if you try to be more clear in your problem as to what you want to do??? ===== Puneet Singh Chawla (sun certified java programmer) 3rd year punjab engg college __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Fri Dec 29 05:18:53 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 5B23B4A37A for ; Fri, 29 Dec 2000 04:55:25 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id eBTCxt301255 for ; Fri, 29 Dec 2000 18:29:55 +0530 Message-ID: <3A4C8A7D.E1D24A5B@pspl.co.in> Date: Fri, 29 Dec 2000 18:28:37 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: some help References: <3A4AB2FA.66D01A9C@yahoo.com> <3A4C2FE0.F873487@pspl.co.in> <3A4C4F62.E4569CC0@wipro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/218 X-Sequence-Number: 1138 Hi Pratap Use man2html. It resides in /usr/bin IIRC. You got to uncompress the man page manually and feed it to man2html. man man2html for more details... Bye Shridhar Pratap Chakravarthy wrote: > hello shridhar, > Can you tell me how to translate the man page into a html page. From linux-india-programmers-owner@lists.linux-india.org Fri Dec 29 05:19:28 2000 Received: from c008.sfo.cp.net (c008-h014.c008.sfo.cp.net [209.228.14.203]) by www.aunet.org (Postfix) with SMTP id C91224A3A9 for ; Fri, 29 Dec 2000 04:15:10 -0800 (PST) Received: (cpmta 5034 invoked from network); 29 Dec 2000 04:13:33 -0800 Date: 29 Dec 2000 04:13:33 -0800 Message-ID: <20001229121333.5033.cpmta@c008.sfo.cp.net> X-Sent: 29 Dec 2000 12:13:33 GMT Received: from [61.1.28.225] by mail.123india.com with HTTP; 29 Dec 2000 04:13:33 PST Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: linux-india-programmers@lists.linux-india.org From: shantanu_gwl@123india.com X-Mailer: Web Mail 3.8.1.2 Subject: Re: Some Java and C memory problems X-Archive-Number: 200012/219 X-Sequence-Number: 1139 Hi Santosh, Integers in Java are four bytes long, and are unconditionally signed. Anyway, this may suit your purpose if the matter is limited to C-int to Java-int transportation. Not if it involves 'memcpy'; for this entails the sequence of the exact bytes to be present. Anyway, it is a better idea to encapsulate the conversion to automatically be done in a method (or the constructor itself). Essentially, accomodating relevant changes to transport mere functions like 'memcpy' defeats the purpose of Java, revise the design-philosophy of your program. You'll hopefully come out with a better solution. Cheers!! Shantanu. ______________________________________________________ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com From linux-india-programmers-owner@lists.linux-india.org Sat Dec 30 03:31:02 2000 Received: from hotmail.com (f21.law4.hotmail.com [216.33.149.21]) by www.aunet.org (Postfix) with ESMTP id 850614A133 for ; Sat, 30 Dec 2000 03:31:00 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 30 Dec 2000 03:29:19 -0800 Received: from 203.197.186.59 by lw4fd.law4.hotmail.msn.com with HTTP; Sat, 30 Dec 2000 11:29:19 GMT X-Originating-IP: [203.197.186.59] From: "Rajeev Rao" To: linux-india-programmers@lists.linux-india.org Subject: kdevelop setup Date: Sat, 30 Dec 2000 11:29:19 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 30 Dec 2000 11:29:19.0397 (UTC) FILETIME=[BFE96550:01C07253] X-Archive-Number: 200012/220 X-Sequence-Number: 1140 Hello, I'm trying to configure kdevelop. When I run the setup, at some point the wizard asks for the KDE-LIB sources directory. I'm using RH 6.2; I have searched throughout my hard-disk and have not been able to locate this directory. I have already tried, /usr/doc/kdelibs-devel-1.1.2 and its various subdirectories /usr/doc/kde Can anyone help me? Rajeev _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From linux-india-programmers-owner@lists.linux-india.org Sat Dec 30 04:37:17 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 19E854A123 for ; Sat, 30 Dec 2000 04:37:10 -0800 (PST) Received: from ashwin.gmx.net ([202.9.150.246]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Sat, 30 Dec 2000 17:58:54 +0530 Message-Id: <5.0.0.25.0.20001230151120.009dbd00@mail.newmail.net> X-Sender: 8588026@pop.gmx.net X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Sat, 30 Dec 2000 15:16:08 +0530 To: linux-india-programmers@lists.linux-india.org From: Ashwin Subject: Convert int to string Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200012/221 X-Sequence-Number: 1141 Hi, Is there any function in C/C++ to convert integer to char string? I found that stdlib.h has functions to convert strings to int or float, but not the other way around. Ashwin ashwin_n@gmx.net From linux-india-programmers-owner@lists.linux-india.org Sat Dec 30 05:12:10 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.129]) by www.aunet.org (Postfix) with ESMTP id 7A23D4A122 for ; Sat, 30 Dec 2000 05:11:49 -0800 (PST) Received: from jediland.home.retortsoft.com (jediland.home.retortsoft.com [192.168.111.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id SAA19271 for ; Sat, 30 Dec 2000 18:40:27 +0530 Received: (from binand@localhost) by jediland.home.retortsoft.com (8.9.3/8.9.3) id SAA03802 for linux-india-programmers@lists.linux-india.org; Sat, 30 Dec 2000 18:28:07 +0530 Date: Sat, 30 Dec 2000 18:28:06 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Convert int to string Message-ID: <20001230182806.C2632@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <5.0.0.25.0.20001230151120.009dbd00@mail.newmail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <5.0.0.25.0.20001230151120.009dbd00@mail.newmail.net>; from ashwin_n@gmx.net on Sat, Dec 30, 2000 at 03:16:08PM +0530 X-Operating-System: Linux 2.2.16-1 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200012/222 X-Sequence-Number: 1142 Ashwin forced the electrons to say: > Is there any function in C/C++ to convert integer to char string? man 3 sprintf Binand From linux-india-programmers-owner@lists.linux-india.org Sat Dec 30 09:11:00 2000 Received: from c008.sfo.cp.net (c008-h007.c008.sfo.cp.net [209.228.14.196]) by www.aunet.org (Postfix) with SMTP id 329F54A03A for ; Sat, 30 Dec 2000 09:10:59 -0800 (PST) Received: (cpmta 18902 invoked from network); 30 Dec 2000 09:09:16 -0800 Date: 30 Dec 2000 09:09:16 -0800 Message-ID: <20001230170916.18901.cpmta@c008.sfo.cp.net> X-Sent: 30 Dec 2000 17:09:16 GMT Received: from [61.1.28.24] by mail.123india.com with HTTP; 30 Dec 2000 09:09:16 PST Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: linux-india-programmers@lists.linux-india.org From: shantanu_gwl@123india.com X-Mailer: Web Mail 3.8.1.2 Subject: Re: Convert int to string X-Archive-Number: 200012/223 X-Sequence-Number: 1143 > Is there any function in C/C++ to convert integer to char string? Yes, there are, Ashwin. (Relax) > > I found that stdlib.h has functions to convert strings to int or float, but > not the other way around. > Hey, did you check the versions of printf ? Like vprintf and sprintf ? Use "%d" in the format-string and then use the integer value correspondingly in a later parameter, for an example. Shantanu. ______________________________________________________ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com From linux-india-programmers-owner@lists.linux-india.org Sat Dec 30 13:58:58 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 25EFD4A148 for ; Sat, 30 Dec 2000 13:58:56 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id NAA10185; Sat, 30 Dec 2000 13:55:46 -0800 Date: Sat, 30 Dec 2000 13:55:46 -0800 From: Arun Sharma To: deepakyadav@india.com Cc: linux-india-programmers Subject: Re: kernel ver without SMP Message-ID: <20001230135546.A10123@sharmas.dhs.org> References: <20001227180441.926F54A1E0@www.aunet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2i In-Reply-To: <20001227180441.926F54A1E0@www.aunet.org>; from deepak2000@softhome.net on Wed, Dec 27, 2000 at 11:34:51PM +0500 X-Archive-Number: 200012/224 X-Sequence-Number: 1144 On Wed, Dec 27, 2000 at 11:34:51PM +0500, Ð ë ê þ ã K wrote: > hi > i need some pointers to location from where i can download some older version of linux without SMP > support. plz tell the version number also. http://kernel.org/ Versions 1.x.y didn't have any SMP support. > one more question --> why linux have an array of task_struct , why can't only doubly linked list do which is > also present to connect all of them. Simplicity I guess. If you're not inserting/deleting/resizing arrays are just fine. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Dec 30 14:05:53 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 05CF14A0B4 for ; Sat, 30 Dec 2000 14:05:51 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id OAA10216 for linux-india-programmers@lists.linux-india.org; Sat, 30 Dec 2000 14:02:42 -0800 Date: Sat, 30 Dec 2000 14:02:42 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: kdevelop setup Message-ID: <20001230140242.B10123@sharmas.dhs.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from rbsrao@hotmail.com on Sat, Dec 30, 2000 at 11:29:19AM +0000 X-Archive-Number: 200012/225 X-Sequence-Number: 1145 On Sat, Dec 30, 2000 at 11:29:19AM +0000, Rajeev Rao wrote: > Hello, > I'm trying to configure kdevelop. When I run the setup, at some point the > wizard asks for the KDE-LIB sources directory. I'm using RH 6.2; I have > searched throughout my hard-disk and have not been able to locate this > directory. I have already tried, /usr/doc/kdelibs-devel-1.1.2 and its > various subdirectories > /usr/doc/kde Try /usr/lib. That's where libkde*.so's reside. Kdevelop should be interested only in /usr/include and /usr/lib on a RH 6.2 box. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Dec 30 23:34:19 2000 Received: from po.nextset.com (unknown [209.157.151.39]) by www.aunet.org (Postfix) with ESMTP id 2416549F63 for ; Sat, 30 Dec 2000 23:34:14 -0800 (PST) Received: from nextset.com (adsl-138-89-44-82.nnj.adsl.bellatlantic.net [138.89.44.82]) by po.nextset.com (8.10.0/8.10.0) with SMTP id eBV7MQ727263 for ; Sat, 30 Dec 2000 23:22:30 -0800 (PST) Message-ID: <3A4EE08D.53307FEC@nextset.com> Date: Sun, 31 Dec 2000 13:00:21 +0530 From: Anurag Shekhar X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Convert int to string References: <5.0.0.25.0.20001230151120.009dbd00@mail.newmail.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/226 X-Sequence-Number: 1146 try itoa or sprintf. anurag Ashwin wrote: > Hi, > > Is there any function in C/C++ to convert integer to char string? > > I found that stdlib.h has functions to convert strings to int or float, but > not the other way around. > > Ashwin > ashwin_n@gmx.net > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Sun Dec 31 21:59:58 2000 Received: from mnmail1.HONEYWELL.COM (mnmail1.honeywell.com [129.30.244.30]) by www.aunet.org (Postfix) with ESMTP id BA5FF49F02 for ; Sun, 31 Dec 2000 21:59:56 -0800 (PST) Received: from ie10-sahara.hiso.honeywell.com ([204.220.169.46]) by mnmail1.HONEYWELL.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id ZLJZ9AP7; Sun, 31 Dec 2000 23:58:00 -0600 Received: by ie10-sahara.hiso.honeywell.com with Internet Mail Service (5.5.2650.21) id ; Mon, 1 Jan 2001 11:26:10 +0530 Message-ID: From: "Kondaiah (IE10)" To: linux-india-programmers@lists.linux-india.org Subject: RE: regarding 0x7c00 Date: Mon, 1 Jan 2001 11:27:26 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200012/227 X-Sequence-Number: 1147 0x7c00 is the MBR(master boot record)standard. > -----Original Message----- > From: kamesh jayachandran [SMTP:kameshj@MailAndNews.com] > Sent: Monday, December 25, 2000 2:10 PM > To: linux-india-programmers@lists.linux-india.org > Subject: [LIP] regarding 0x7c00 > > Hai list, > I have read the following lines in "Linux Device Drivers" By Alessandro > Rubini. > "Setting Up the X86 Processors > Once the boot device has been selected ,its first sector is loaded in to > memory at address 0x7c00 and given control" > what is the significance of this memory address 0x7c00? > what is realmode? > Thanks in advance > > kamesh jayachandran > SoftWare Engineer > PlanetAsia.com > Bangalore > See my work at www.electricalmachine.com > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP From linux-india-programmers-owner@lists.linux-india.org Sun Dec 31 22:29:04 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 496F149EFE for ; Sun, 31 Dec 2000 22:28:58 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id f016YSY09975 for ; Mon, 1 Jan 2001 12:04:28 +0530 Message-ID: <3A502462.DC6311B8@pspl.co.in> Date: Mon, 01 Jan 2001 12:02:02 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. 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: kdevelop setup References: <20001230140242.B10123@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/228 X-Sequence-Number: 1148 Hi Perhaps you are trying to build the documentation. You need to download it separately as it does not ship with distro. Or you can leave that field blank but you won't have ready reference to KDE API's. I would advice you to compile KDK instead. It contains cervisia+kdbg etc. It's neat stuff and works in first shot on RHL 6.2. All you need to do is export QTDIR and KDEDIR before you do ./configure;make;make install. Anyway do checkout latest version of kdevelop i.e. 1.3. It allows you to create a project out of any source tarball that depends upon autoconf i.e. uses ./configure. This will help many of us to contribute because first hurdle (At least I) faced is no documentation for code developers. :-( Bye Shridhar Arun Sharma wrote: > On Sat, Dec 30, 2000 at 11:29:19AM +0000, Rajeev Rao wrote: > > Hello, > > I'm trying to configure kdevelop. When I run the setup, at some point the > > wizard asks for the KDE-LIB sources directory. I'm using RH 6.2; I have > > searched throughout my hard-disk and have not been able to locate this > > directory. I have already tried, /usr/doc/kdelibs-devel-1.1.2 and its > > various subdirectories > > /usr/doc/kde > > Try /usr/lib. That's where libkde*.so's reside. Kdevelop should be interested > only in /usr/include and /usr/lib on a RH 6.2 box. From linux-india-programmers-owner@lists.linux-india.org Sun Dec 31 22:44:06 2000 Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by www.aunet.org (Postfix) with ESMTP id 6EA504A012 for ; Sun, 31 Dec 2000 22:43:49 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.9.3+Sun/8.9.3) with SMTP id MAA18192 for ; Mon, 1 Jan 2001 12:19:13 GMT Received: from wipro.com ([192.107.143.16]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA5456 for ; Mon, 1 Jan 2001 12:09:33 +0530 Message-ID: <3A502659.5B68F0DF@wipro.com> Date: Mon, 01 Jan 2001 12:10:27 +0530 From: Pratap Chakravarthy X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: some help References: <3A4AB2FA.66D01A9C@yahoo.com> <3A4C2FE0.F873487@pspl.co.in> <3A4C4F62.E4569CC0@wipro.com> <3A4C8A7D.E1D24A5B@pspl.co.in> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/229 X-Sequence-Number: 1149 thanks to all who had replied for my query. pratap : - ) Shridhar Daithankar wrote: > Hi Pratap > > Use man2html. It resides in /usr/bin IIRC. You got to uncompress the man page > manually and feed it to man2html. > > man man2html for more details... > > Bye > Shridhar > > Pratap Chakravarthy wrote: > > > hello shridhar, > > Can you tell me how to translate the man page into a html page. > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr