From linux-india-programmers-owner@lists.linux-india.org Sun Oct 1 12:02:19 2000 Received: from hanuman.aukbc.org (unknown [203.197.142.200]) by www.aunet.org (Postfix) with ESMTP id 8AEBA4A042 for ; Sun, 1 Oct 2000 12:02:06 -0700 (PDT) Received: from localhost (IDENT:mksarav@localhost [127.0.0.1]) by hanuman.aukbc.org (8.9.3/8.9.3) with ESMTP id AAA09103; Mon, 2 Oct 2000 00:34:13 +0530 Date: Mon, 2 Oct 2000 00:34:13 +0530 (IST) From: M K Saravanan To: Indian Linux User Group - Chennai Cc: linux-india-programmers@lists.linux-india.org Subject: problem with RPM Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/1 hi all, i tried to install a binary (Common LISP prg. lang.) which is in .rpm format. I got the following error mess. ------------------------------------------- [root@hanuman mksarav]# rpm -i cmucl-18.3.0-6.i486.rpm only packages with major numbers <= 3 are supported by this version of RPM error: cmucl-18.3.0-6.i486.rpm cannot be installed ------------------------------------------- What this error means? ** mks ** -- ******************************************************************** M K Saravanan, Member Research Staff, The AU-KBC Centre for Internet & Telecom Technologies, Madras Institute of Technology, Anna University, Chromepet, Chennai 600 044. Tamilnadu, INDIA Tel (O): 91 44 2417885 Email: mksarav@mitindia.edu Telefax (O): 91 44 2402711 URL : http://mksarav.tripod.com ******************************************************************* From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 00:15:29 2000 Received: from mail.jindalonline.net (unknown [202.136.128.18]) by www.aunet.org (Postfix) with ESMTP id 04EAC4A032 for ; Mon, 2 Oct 2000 00:15:20 -0700 (PDT) Received: from linuxstart.com (IDENT:root@[202.136.129.183]) by mail.jindalonline.net (8.9.3/8.8.7) with ESMTP id MAA14245 for ; Mon, 2 Oct 2000 12:16:04 +0530 Message-ID: <39D83075.16335A3E@linuxstart.com> Date: Mon, 02 Oct 2000 12:21:33 +0530 From: Naheed Vora X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.15-4mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Xlib Connection refused - Urgent Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/2 void main() { const char *ps_argv[] = { "pgaccess", "imart_db", 0 }; const char *ps_envp[] = { "PATH=/bin:/usr/bin","USERNAME=imart", "DISPLAY=:0", 0 }; execve("/usr/bin/pgaccess", ps_argv, ps_envp); } ------------- Error Encountered ------------- Xlib: connection to ":0.0" refused by server Xlib: Client is not authorized to connect to Server Application initialization failed: couldn't connect to display ":0" Error in startup script: invalid command name "image" while executing "image create bitmap dnarw -data { #define down_arrow_width 15 #define down_arrow_height 15 static char down_arrow_bits[] = { 0x00,0x80,0x00,0x80,0x0..." (file "/usr/lib/pgsql/pgaccess/main.tcl" line 5) -------------- Can anybody help me out of this... Is there any procedure to authorize my program with X... TIA, nv From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 00:49:23 2000 Received: from mailhost.iitb.ac.in (mailhost.iitb.ac.in [203.197.74.142]) by www.aunet.org (Postfix) with SMTP id 54E554A03F for ; Mon, 2 Oct 2000 00:48:48 -0700 (PDT) Received: (qmail 5340 invoked from network); 2 Oct 2000 07:48:47 -0000 Received: from akash.it.iitb.ernet.in.116.16.144.in-addr.arpa (HELO akash.it.iitb.ernet.in) (144.16.116.2) by mailhost.iitb.ac.in with SMTP; 2 Oct 2000 07:48:47 -0000 Received: from akash.it.iitb.ernet.in (akash.it.iitb.ernet.in [144.16.116.2]) by akash.it.iitb.ernet.in (8.9.3/8.8.8) with ESMTP id NAA08762 for ; Mon, 2 Oct 2000 13:14:29 +0530 Date: Mon, 2 Oct 2000 13:14:29 +0530 (IST) From: Ravindra Jaju To: linux-india-programmers@lists.linux-india.org Subject: Re: Xlib Connection refused - Urgent In-Reply-To: <39D83075.16335A3E@linuxstart.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/3 > -------------- > > Can anybody help me out of this... Is there any procedure to authorize > my program with X... see "man xhost" hth -- jaju From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 03:30:12 2000 Received: from satyaki.pacific.net.in (satyaki.pacific.net.in [203.123.128.85]) by www.aunet.org (Postfix) with ESMTP id 74F834A057; Mon, 2 Oct 2000 03:30:06 -0700 (PDT) Received: from ganga.sankya.com (ppp10.bangalore-188.pacific.net.in [203.123.188.10]) by satyaki.pacific.net.in with ESMTP id QAA08542; Mon, 2 Oct 2000 16:15:00 +0530 (IST) Date: Mon, 2 Oct 2000 15:55:58 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Cc: linux-india-general@lists.linux-india.org Subject: [Commercial] Programmers / System Integrators required at various levels Message-ID: <20001002155558.A10190@sankya.com> Mail-Followup-To: Babu Kalakrishnan , linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i 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: 200010/4 A U.S. based company aspiring to be a world leader in delivery of Internet services via Satellite to Cable subscribers is setting up its development center in Bangalore and requires personnel at various levels with expertise in one or more of the following areas. - Cache Server design, WCCP - Web search engines - Internet Security - Device Drivers - Web Redirectors / Content switches - Traffic shapers Strong fundamentals of internet protocols such as TCP/IP, UDP, SNMP, HTTP, FTP etc is essential. Should be conversant in C, C++, HTML, and development in Linux/Unix environment. A minimum of 2 years of experience in the area is desired. All openings are likely to be for the Bangalore Facility. Salaries will be on par with the best in the industry. Please send detailed Resumes with salary expected to sankya@vsnl.com or kalakrishnan@vsnl.com Regards, Kala From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 03:43:17 2000 Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by www.aunet.org (Postfix) with ESMTP id 1AC2D4A029 for ; Mon, 2 Oct 2000 03:43:16 -0700 (PDT) Received: from redsea.india.hp.com (redsea.india.hp.com [15.76.97.3]) by palrel1.hp.com (Postfix) with ESMTP id 3D005D5F for ; Mon, 2 Oct 2000 03:39:11 -0700 (PDT) Received: from india.hp.com (ebnt161.india.hp.com [15.76.97.161]) by redsea.india.hp.com with ESMTP (8.7.1/8.7.3 SMKit7.02) id QAA05500 for ; Mon, 2 Oct 2000 16:11:09 +0530 (IST) Message-ID: <39D865CC.844B4497@india.hp.com> Date: Mon, 02 Oct 2000 16:09:08 +0530 From: Vivekananda Ponnaiyan Organization: Hewlett Packard X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: SPAM Mail on this list References: <20001002155558.A10190@sankya.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/5 Hi all, I thought that this was suppoused to be a mailing list for programmers not HR consultants .... To Mr Babu Kalakrishnan .. kindly desist from sending such mails on this list again. This list is for Linux Programmers who want to learn from each other ... a place to disscuss "programming" and related issues... Everyone else... if we get any more of these mails I vote that each one of us sends back a copy to the original address! Regards Vivek Babu Kalakrishnan wrote: > > A U.S. based company aspiring to be a world leader in delivery of > Internet services via Satellite to Cable subscribers is setting up its > development center in Bangalore and requires personnel at various levels > with expertise in one or more of the following areas. > > - Cache Server design, WCCP > - Web search engines > - Internet Security > - Device Drivers > - Web Redirectors / Content switches > - Traffic shapers > > Strong fundamentals of internet protocols such as TCP/IP, UDP, SNMP, > HTTP, FTP etc is essential. Should be conversant in C, C++, HTML, and > development in Linux/Unix environment. A minimum of 2 years of > experience in the area is desired. > > All openings are likely to be for the Bangalore Facility. Salaries will > be on par with the best in the industry. > > Please send detailed Resumes with salary expected to > sankya@vsnl.com or kalakrishnan@vsnl.com > > Regards, > > Kala > > --------------------------------------------- > 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 Oct 2 05:29:48 2000 Received: from satyaki.pacific.net.in (satyaki.pacific.net.in [203.123.128.85]) by www.aunet.org (Postfix) with ESMTP id 983224A03F for ; Mon, 2 Oct 2000 05:29:40 -0700 (PDT) Received: from ganga.sankya.com (ppp10.bangalore-188.pacific.net.in [203.123.188.10]) by satyaki.pacific.net.in with ESMTP id SAA09407 for ; Mon, 2 Oct 2000 18:14:32 +0530 (IST) Date: Mon, 2 Oct 2000 17:55:29 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT]SPAM Mail on this list Message-ID: <20001002175529.A11199@sankya.com> Mail-Followup-To: Babu Kalakrishnan , linux-india-programmers@lists.linux-india.org References: <20001002155558.A10190@sankya.com> <39D865CC.844B4497@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: <39D865CC.844B4497@india.hp.com>; from vivekp@india.hp.com on Mon, Oct 02, 2000 at 04:09:08PM +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: 200010/6 Dear Mr. Ponnaiyan, On Mon, Oct 02, 2000 at 04:09:08PM +0530, Vivekananda Ponnaiyan typed: > I thought that this was suppoused to be a mailing list for programmers > not HR consultants .... > To Mr Babu Kalakrishnan .. kindly desist from sending such mails on > this > list again. This list is for Linux Programmers who want to learn from > each other ... a place to disscuss "programming" and related issues... > With due respect to the programmer in you : Please read the posting guidelines on the various LI mailing lists before you outrightly condemn my mail as Spam. The mail was commercial in nature, I agree, but the subject clearly specifies that. The intention of clearly specifying this in the subject line is so that people who don't want to see such material need not open the mail at all if so desired. I posted this on the LIP list (and not the LIH) because I realize that the sort of expertise I require is available here. After all I guess you'd also agree that programmers also need jobs to earn a living - don't you ? Kala P.S. For your information, I'm not an HR Consultant by profession. (Not that I look down on HR consultants, they also do serve a purpose in society) From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 06:02:16 2000 Received: from kitkat.hotpop.com (kitkat.hotpop.com [204.57.55.30]) by www.aunet.org (Postfix) with ESMTP id 464084A0B9 for ; Mon, 2 Oct 2000 06:02:14 -0700 (PDT) Received: from hotpop.com (unknown [204.57.55.31]) by kitkat.hotpop.com (Postfix) with SMTP id 85D6D301B1 for ; Mon, 2 Oct 2000 12:58:10 +0000 (UTC) Received: from hotpop.com (unknown [202.141.70.246]) by zagnut.hotpop.com (Postfix) with ESMTP id C1DB050023 for ; Mon, 2 Oct 2000 12:58:08 +0000 (UTC) Message-ID: <39D8D3BA.A7A4FCD2@hotpop.com> Date: Mon, 02 Oct 2000 23:58:10 +0530 From: Harshal Pradhan X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.16-3 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Hiresolution time measurement on linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-Archive-Number: 200010/7 Hi, What is the best method of measuring time intervals in linux user space? I would prefer the method to be independant of settimeofday() calls. Is there is Linux parallel for the Solaris gethrtime() sys call? Thanks, Harshal Pradhan -- "I am getting pretty good at running diff and patch now" - Jeff Merkey From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 07:06:21 2000 Received: from mail.jindalonline.net (unknown [202.136.128.18]) by www.aunet.org (Postfix) with ESMTP id E63434A12B for ; Mon, 2 Oct 2000 07:06:09 -0700 (PDT) Received: from linuxstart.com (IDENT:root@[202.136.129.64]) by mail.jindalonline.net (8.9.3/8.8.7) with ESMTP id TAA13315; Mon, 2 Oct 2000 19:17:33 +0530 Message-ID: <39D890B8.134EE923@linuxstart.com> Date: Mon, 02 Oct 2000 19:12:16 +0530 From: Naheed Vora X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.15-4mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Casting GtkWidgets Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/8 void on_combo_entry1_activate (GtkEditable *editable, gpointer user_data) { GtkWidget *text_entry = user_data; char *string = gtk_entry_get_text(GTK_ENTRY (text_entry)); g_print(string); } Error encountered :- ---------------------------------------------------------- Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkEntry' Gtk-CRITICAL **: file gtkentry.c: line 496 (gtk_entry_get_text): assertion `entry != NULL' failed. GLib-CRITICAL **: file gmessages.c: line 645 (g_print): assertion `format != NULL' failed. ---------------------------------------------------------- Please guide me how can I cast the gpointer into char* which is recieved from signal caused by Gtk_entry widget. TIA nv From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 08:56:47 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 41DA74A041 for ; Mon, 2 Oct 2000 08:56:39 -0700 (PDT) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id VAA28932 for ; Mon, 2 Oct 2000 21:31:38 GMT Received: from wslexch.wipsys.soft.net ([192.219.223.59]) by kmglmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA31B5 for ; Mon, 2 Oct 2000 21:22:19 +0530 Received: from wipro.com (MATRIX [164.164.24.118]) by wslexch.wipsys.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id S5DRFMDJ; Mon, 2 Oct 2000 21:23:54 +0530 Message-ID: <39D8AAC7.350BED22@wipro.com> Date: Mon, 02 Oct 2000 21:33:27 +0600 From: Ramkumar Iyer Reply-To: ramkumar.iyer@wipro.com Organization: Wipro Technologies X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Hiresolution time measurement on linux References: <39D8D3BA.A7A4FCD2@hotpop.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200010/9 check out getitimer and setitimer calls ........ "from the man pages " ITIMER_REAL decrements in real time, and delivers SIGALRM upon expiration. ITIMER_VIRTUAL decrements only when the process is executing, and delivers SIGV­ TALRM upon expiration. ITIMER_PROF decrements both when the process executes and when the system is executing on behalf of the process. Coupled with ITIMER_VIRTUAL, this timer is usually used to profile the time spent by the application in user and kernel space. SIGPROF is delivered upon expiration. > Hi, > > What is the best method of measuring time intervals in linux > user space? I would prefer the method to be independant of > settimeofday() calls. > > Is there is Linux parallel for the Solaris gethrtime() sys call? > > Thanks, > > Harshal Pradhan > -- > "I am getting pretty good at running diff and patch now" > - Jeff Merkey > > --------------------------------------------- > 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 Oct 2 09:24:31 2000 Received: from netscape.com (h-205-217-237-47.netscape.com [205.217.237.47]) by www.aunet.org (Postfix) with ESMTP id 5EA9D4A09E for ; Mon, 2 Oct 2000 09:24:27 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e92GDhM15270 for ; Mon, 2 Oct 2000 09:13:43 -0700 (PDT) Received: from netscape.com ([208.12.45.34]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id G1T9DY02.UVA for ; Mon, 2 Oct 2000 09:20:22 -0700 Message-ID: <39D8B5C5.3B8A5B34@netscape.com> Date: Mon, 02 Oct 2000 09:20:21 -0700 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: SPAM Mail on this list References: <20001002155558.A10190@sankya.com> <39D865CC.844B4497@india.hp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/10 Vivekananda Ponnaiyan proclaimed: > I thought that this was suppoused to be a mailing list for programmers > not HR consultants .... It is a mailing list for programmers. Babu is not a HR consultant. Besides, programmers have to earn money to put roti on the dining table, don't they? > To Mr Babu Kalakrishnan .. kindly desist from sending such mails on > this list again. The Linux India mailing lists are not against commercial postings. The policy of the lists requires that posts of a commercial nature be clearly labelled with a 'COMMERCIAL' prefix on the subject line. Babu's post met this requirement admirably. List Admin -- Lisa: It's full, Dad, that means you have to take out the trash. Bart: Yup, that's the rule. "He who tops it off, drops it off." Homer: Nuh-uh. "It isn't filled until it's spilled." Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 10:02:16 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id 8FDA64A0FE for ; Mon, 2 Oct 2000 10:02:02 -0700 (PDT) Received: from nirvana (mail@PPP-176-180.bng.vsnl.net.in [203.197.176.180]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id WAA10305 for ; Mon, 2 Oct 2000 22:33:05 +0500 (GMT+0500) Received: from mrinal by nirvana with local (Exim 3.16 #1 (Debian)) id 13g8vr-0002Kc-00 for ; Mon, 02 Oct 2000 22:29:15 +0530 Date: Mon, 2 Oct 2000 22:29:15 +0530 From: Mrinal Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: SPAM Mail on this list Message-ID: <20001002222915.A8889@india.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001002155558.A10190@sankya.com> <39D865CC.844B4497@india.hp.com> <39D8B5C5.3B8A5B34@netscape.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <39D8B5C5.3B8A5B34@netscape.com>; from thaths@netscape.com on Mon, Oct 02, 2000 at 09:20:21AM -0700 X-Mailer: Mutt 1.2.5i (2000-07-28) X-Operating-System: Linux 2.2.17 X-Editor: VIM - Vi IMproved 5.7 X-URL: http://mrinal.dhs.org/ Organization: Exocore Consulting (P) Ltd. X-Archive-Number: 200010/11 Hi, Sudhakar Chandra typed: > > To Mr Babu Kalakrishnan .. kindly desist from sending such mails on > > this list again. > The Linux India mailing lists are not against commercial postings. The > policy of the lists requires that posts of a commercial nature be clearly > labelled with a 'COMMERCIAL' prefix on the subject line. Babu's post met > this requirement admirably. I was just wondering whether these rules were anywhere online, officially, and on record.. so I did a little browsing from http://lists.linux-india.org/, and I found it. So, for general information, in case anyone needs it, here it is: http://lists.linux-india.org/lists/linux-india-programmers/guidelines.txt The same is available for the other lists as well. -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.17 || PGP:B1E86F5B || Mutt 1.2.5i (2000-07-28) || VIM 5.7 -- From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 22:21:26 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 6AAB149F1E for ; Mon, 2 Oct 2000 22:21:24 -0700 (PDT) Received: from unknown-24-5.pilot.net (unknown-24-5.pilot.net [206.189.24.5]) by unknown-147.101.pilot.net with ESMTP id WAA03295 for ; Mon, 2 Oct 2000 22:17:17 -0700 (PDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-5.pilot.net with ESMTP id WAA01132 for ; Mon, 2 Oct 2000 22:17:11 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id <4CABC8C1>; Tue, 3 Oct 2000 10:54:57 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0222D8A7@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: SPAM Mail on this list Date: Tue, 3 Oct 2000 10:55:08 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/12 # #It is a mailing list for programmers. Babu is not a HR consultant. #Besides, programmers have to earn money to put roti on the #dining table, #don't they? #ifndef _GRUMPY_ Pizza, you mean ;) Pizza, Versace aur Chateau.. AUR ESOPs #endif From linux-india-programmers-owner@lists.linux-india.org Mon Oct 2 22:48:42 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id A9BFF4A03C for ; Mon, 2 Oct 2000 22:48:40 -0700 (PDT) Received: from redsea.india.hp.com (redsea.india.hp.com [15.76.97.3]) by atlrel1.hp.com (Postfix) with ESMTP id E912258C for ; Tue, 3 Oct 2000 01:44:31 -0400 (EDT) Received: from india.hp.com (ebnt161.india.hp.com [15.76.97.161]) by redsea.india.hp.com with ESMTP (8.7.1/8.7.3 SMKit7.02) id LAA24780 for ; Tue, 3 Oct 2000 11:16:29 +0530 (IST) Message-ID: <39D97238.38A17C00@india.hp.com> Date: Tue, 03 Oct 2000 11:14:24 +0530 From: Vivekananda Ponnaiyan Organization: Hewlett Packard X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: SPAM Mail on this list (LAST MAIL) References: <20001002155558.A10190@sankya.com> <39D865CC.844B4497@india.hp.com> <39D8B5C5.3B8A5B34@netscape.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/13 Hi all, Just to put an end to all this... bare with me for a minute. :-) See I am also on a another list where this didnt happen only once but nearly every other day... (I'm serious). That list too was a very useful list where real programmers doubts get cleared... just like LIP .... I just didnt want the same thing to happen out here ... (Umm I think that was less than a minute! :-) Regards Vivek > It is a mailing list for programmers. Babu is not a HR consultant. > Besides, programmers have to earn money to put roti on the dining table, > don't they? > > > To Mr Babu Kalakrishnan .. kindly desist from sending such mails on > > this list again. > > The Linux India mailing lists are not against commercial postings. The > policy of the lists requires that posts of a commercial nature be clearly > labelled with a 'COMMERCIAL' prefix on the subject line. Babu's post met > this requirement admirably. > > List Admin > -- > Lisa: It's full, Dad, that means you have to take out the trash. > Bart: Yup, that's the rule. "He who tops it off, drops it off." > Homer: Nuh-uh. "It isn't filled until it's spilled." > Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave > > --------------------------------------------- > 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 Oct 2 23:21:54 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 60D154A021 for ; Mon, 2 Oct 2000 23:21:51 -0700 (PDT) Received: from unknown-24-5.pilot.net (unknown-24-5.pilot.net [206.189.24.5]) by unknown-147.101.pilot.net with ESMTP id XAA22544 for ; Mon, 2 Oct 2000 23:17:44 -0700 (PDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-5.pilot.net with ESMTP id XAA23205 for ; Mon, 2 Oct 2000 23:17:42 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id <4CABC0N4>; Tue, 3 Oct 2000 11:55:28 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E022739B8@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: SPAM Mail on this list (LAST MAIL) Date: Tue, 3 Oct 2000 11:55:38 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/14 #Hi all, # # Just to put an end to all this... bare with me for a minute. :-) bare with you.. umm ?!@#$# # That list too was a very useful list where real programmers #doubts get #cleared... just like LIP .. could we have more info.. sounds meaty ;) to_mySelf: There are so many LAST MAILS shourya From linux-india-programmers-owner@lists.linux-india.org Tue Oct 3 02:46:18 2000 Received: from web9208.mail.yahoo.com (web9208.mail.yahoo.com [216.136.129.41]) by www.aunet.org (Postfix) with SMTP id E1EBC49F60 for ; Tue, 3 Oct 2000 02:45:33 -0700 (PDT) Message-ID: <20001003094126.71443.qmail@web9208.mail.yahoo.com> Received: from [202.9.170.34] by web9208.mail.yahoo.com; Tue, 03 Oct 2000 02:41:26 PDT Date: Tue, 3 Oct 2000 02:41:26 -0700 (PDT) From: john slater Subject: Re: SPAM Mail on this list To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/15 hello.. could some tell me how to start the services which are not started at the boot time thank you john --- Mrinal Kalakrishnan wrote: > Hi, > > Sudhakar Chandra typed: > > > To Mr Babu Kalakrishnan .. kindly desist from > sending such mails on > > > this list again. > > The Linux India mailing lists are not against > commercial postings. The > > policy of the lists requires that posts of a > commercial nature be clearly > > labelled with a 'COMMERCIAL' prefix on the subject > line. Babu's post met > > this requirement admirably. > > I was just wondering whether these rules were > anywhere online, > officially, and on record.. so I did a little > browsing from > http://lists.linux-india.org/, and I found it. So, > for general > information, in case anyone needs it, here it is: > > http://lists.linux-india.org/lists/linux-india-programmers/guidelines.txt > > The same is available for the other lists as well. > > -- > Mrinal Kalakrishnan > http://mrinal.dhs.org/ > Linux 2.2.17 || PGP:B1E86F5B || Mutt 1.2.5i > (2000-07-28) || VIM 5.7 > -- > > --------------------------------------------- > 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! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Tue Oct 3 03:03:01 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id B8C3949F63 for ; Tue, 3 Oct 2000 03:02:54 -0700 (PDT) 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 e93A5UY18737 for ; Tue, 3 Oct 2000 15:35:30 +0530 Message-ID: <39D9AE70.E3208201@pspl.co.in> Date: Tue, 03 Oct 2000 15:31:20 +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: How to start services? (Was Re: SPAM Mail on this list) References: <20001003094126.71443.qmail@web9208.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/16 Hi If you are on RedHat 1)As root, type '/etc/rc.d/init.d/ start', at command prompt. Or 2)Run Linuxconf, find 'Control Service Activity' and start whatever service you want. Few suggestions 1)Change subject appropriately 2)Post such type of queries on LIH. This has hardly anything to do with programming... 3)Add LIP/LIH address to your addressbook, so that you don't reply to another message, just to avoid typing to address. :-)) Bye Shridhar john slater wrote: > hello.. > could some tell me how to start the services which > are not started at the boot time > thank you > john From linux-india-programmers-owner@lists.linux-india.org Tue Oct 3 03:34:04 2000 Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by www.aunet.org (Postfix) with ESMTP id 979834A4CC for ; Tue, 3 Oct 2000 03:20:08 -0700 (PDT) Received: from redsea.india.hp.com (redsea.india.hp.com [15.76.97.3]) by palrel3.hp.com (Postfix) with ESMTP id BEB2C3BF for ; Tue, 3 Oct 2000 03:15:54 -0700 (PDT) Received: from india.hp.com (ebnt161.india.hp.com [15.76.97.161]) by redsea.india.hp.com with ESMTP (8.7.1/8.7.3 SMKit7.02) id PAA03683 for ; Tue, 3 Oct 2000 15:47:52 +0530 (IST) Message-ID: <39D9B1D8.3C3B702B@india.hp.com> Date: Tue, 03 Oct 2000 15:45:52 +0530 From: Vivekananda Ponnaiyan Organization: Hewlett Packard X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Boot time services. References: <20001003094126.71443.qmail@web9208.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/17 Most services can be configured with your runlevel editor using linuxconf... If you want to start other services just add them to the rc.local file in /etc/rc.d/ (this is for Redhat distro's ... it might vary in other distro's. Regards Vivek john slater wrote: > > hello.. > could some tell me how to start the services which > are not started at the boot time > thank you > john > --- Mrinal Kalakrishnan wrote: > > Hi, > > > > Sudhakar Chandra typed: > > > > To Mr Babu Kalakrishnan .. kindly desist from > > sending such mails on > > > > this list again. > > > The Linux India mailing lists are not against > > commercial postings. The > > > policy of the lists requires that posts of a > > commercial nature be clearly > > > labelled with a 'COMMERCIAL' prefix on the subject > > line. Babu's post met > > > this requirement admirably. > > > > I was just wondering whether these rules were > > anywhere online, > > officially, and on record.. so I did a little > > browsing from > > http://lists.linux-india.org/, and I found it. So, > > for general > > information, in case anyone needs it, here it is: > > > > > http://lists.linux-india.org/lists/linux-india-programmers/guidelines.txt > > > > The same is available for the other lists as well. > > > > -- > > Mrinal Kalakrishnan > > http://mrinal.dhs.org/ > > Linux 2.2.17 || PGP:B1E86F5B || Mutt 1.2.5i > > (2000-07-28) || VIM 5.7 > > -- > > > > --------------------------------------------- > > 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! Photos - 35mm Quality Prints, Now Get 15 Free! > http://photos.yahoo.com/ > > --------------------------------------------- > 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 Tue Oct 3 05:03:49 2000 Received: from deephome.sci.tech (unknown [202.9.150.109]) by www.aunet.org (Postfix) with ESMTP id A456E4A0E8 for ; Tue, 3 Oct 2000 05:03:37 -0700 (PDT) Received: from deephome.sci.tech (IDENT:dj@localhost.localdomain [127.0.0.1]) by deephome.sci.tech (8.9.3/8.8.7) with SMTP id PAA01180 for ; Tue, 3 Oct 2000 15:35:25 +0530 Message-Id: <200010031005.PAA01180@deephome.sci.tech> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 From: "Joglekar@eth.net" To: linux-india-programmers@lists.linux-india.org Reply-To: "Joglekar@eth.net" Subject: Re: start service not started at boot time X-Mailer: CSCMail v1.6.0 Date: 03 Oct 2000 15:35:22 IST X-Archive-Number: 200010/18 On Tue, 3 Oct 2000 02:41:26 -0700 (PDT), john slater said: Generally all the scripts to start various servise is located in /etc/rc.d/init.d directory for RedHAT install. For SuSe install there is symlink with this name. Run the required script as root. > hello.. > could some tell me how to start the services which > are not started at the boot time > thank you > john -- Deepak Joglekar deepak@indiamail.com From linux-india-programmers-owner@lists.linux-india.org Tue Oct 3 06:51:28 2000 Received: from del1.vsnl.net.in (giasdl01.vsnl.net.in [202.54.15.1]) by www.aunet.org (Postfix) with ESMTP id A590B4A02A for ; Tue, 3 Oct 2000 06:51:18 -0700 (PDT) Received: from d (d3426.pppdel.vsnl.net.in [203.197.200.51]) by del1.vsnl.net.in (8.11.0/8.11.0) with SMTP id e940KCp08761 for ; Tue, 3 Oct 2000 19:20:12 -0500 (GMT) Message-Id: <200010040020.e940KCp08761@del1.vsnl.net.in> Date: Tue, 3 Oct 2000 19:17:12 +0500 From: pipeline Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: func. returning struct X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/19 hi i have a function which returns a local structure. something like below struct type1 func1() { struct abc var1; ..... return var1; } if i call it like struct type1 var2; var2 = func1(); then how the values are copied from var1 to var2. i heard that for basic types it goes through registers, whereas for structs pointers are passed. ----------------------------- reply soon bye ==== deepak ---- have a great day ICQ 30662394 -- If it was easy, the hardware people would take care of it. From linux-india-programmers-owner@lists.linux-india.org Tue Oct 3 09:39:06 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 181664A03F for ; Tue, 3 Oct 2000 09:39:03 -0700 (PDT) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id e93GYo610949 for ; Tue, 3 Oct 2000 16:34:50 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8019.fe.bosch.de(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma010786; Tue, 3 Oct 00 16:34:02 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id <4GFG8MR0>; Tue, 3 Oct 2000 18:33:56 +0200 Message-ID: From: "Sachin Shurpali (RBIN/DCA-NMP)" To: LIP Subject: shared memory Date: Tue, 3 Oct 2000 18:33:56 +0200 Importance: high X-Priority: 1 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200010/20 Hi, The addresses after shmat for two processes are coming different (of course) for the same ID. The size of shared memory is around 225 KB. Can somebody give me a clue , why it is so? Surprisingly transfer thro' the shared memory is proper. The difference in addresses is precisely 1 MB. TIA Sachin From linux-india-programmers-owner@lists.linux-india.org Wed Oct 4 12:33:11 2000 Received: from nwd2dns5.analog.com (nwd2gtw1.analog.com [137.71.23.34]) by www.aunet.org (Postfix) with ESMTP id 5CB344A0A6 for ; Wed, 4 Oct 2000 12:33:06 -0700 (PDT) Received: from nwd2gtw2 (root@nwd2gtw1dmz1 [137.71.25.98]) by nwd2dns5.analog.com (8.9.3 (PHNE_18979)/8.9.3) with SMTP id PAA12102; Wed, 4 Oct 2000 15:28:44 -0400 (EDT) Received: from nwd2exm1.analog.com (nwd2exm1.analog.com [137.71.98.14]) by nwd2mhb2.analog.com with ESMTP (8.9.3 (PHNE_18979)/8.7.1) id PAA25715; Wed, 4 Oct 2000 15:28:39 -0400 (EDT) Received: by nwd2exm1b.analog.com with Internet Mail Service (5.5.2650.21) id <421ZGGCS>; Wed, 4 Oct 2000 15:29:11 -0400 Message-ID: From: "Dugas, Alan" To: linux-india-programmers@lists.linux-india.org, Naheed Vora Subject: RE: Casting GtkWidgets Date: Wed, 4 Oct 2000 15:29:11 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200010/21 Based on the information in your email, it sounds like "user_data" is something other than a gtkentry. Could you post the gtk_signal_connect() function that calls on_combo_entry1_activate() ? -- Stupid Genius > ---------- > From: Naheed Vora[SMTP:nv@linuxstart.com] > Sent: Monday, October 02, 2000 9:42 AM > To: linux-india-programmers@lists.linux-india.org > Subject: Casting GtkWidgets > > > void > on_combo_entry1_activate (GtkEditable *editable, > gpointer user_data) > { > > GtkWidget *text_entry = user_data; > char *string = gtk_entry_get_text(GTK_ENTRY (text_entry)); > g_print(string); > > } > > Error encountered :- > ---------------------------------------------------------- > > Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkEntry' > > Gtk-CRITICAL **: file gtkentry.c: line 496 (gtk_entry_get_text): > assertion `entry != NULL' failed. > > GLib-CRITICAL **: file gmessages.c: line 645 (g_print): assertion > `format != NULL' failed. > > ---------------------------------------------------------- > Please guide me how can I cast the gpointer into char* which is recieved > from signal caused by Gtk_entry widget. > > TIA > nv > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > From linux-india-programmers-owner@lists.linux-india.org Wed Oct 4 15:21:24 2000 Received: from CP43988-A.home.nl (cp43988-a.landg1.lb.nl.home.com [213.51.21.133]) by www.aunet.org (Postfix) with ESMTP id 131054A09F for ; Wed, 4 Oct 2000 15:21:18 -0700 (PDT) Received: (from jeroen@localhost) by CP43988-A.home.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id AAA03282; Thu, 5 Oct 2000 00:17:12 +0200 Date: Thu, 5 Oct 2000 00:17:11 +0200 From: Jeroen Benckhuijsen To: Naheed Vora Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Casting GtkWidgets Message-ID: <20001005001711.A3252@CP43988-A> References: <39D890B8.134EE923@linuxstart.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <39D890B8.134EE923@linuxstart.com>; from nv@linuxstart.com on Mon, Oct 02, 2000 at 15:42:16 +0200 X-Mailer: Balsa 1.0.pre1 X-Archive-Number: 200010/22 The value of user_data is assigned to text_entry, which you then cast to a GTK_ENTRY. This shows an error saing entyr != NULL failed. So text_entry was NULL , and so user_data was NULL. Review the gtk_signal_connect call where to conenct to signal, the last paramter is this call is the user_data passed to the function. This will probably null. Assign a value to this callback and you're problem will be solved. The other errors are a result of this error. Jeroen On Mon, 02 Oct 2000 15:42:16 Naheed Vora wrote: > > void > on_combo_entry1_activate (GtkEditable *editable, > gpointer user_data) > { > > GtkWidget *text_entry = user_data; > char *string = gtk_entry_get_text(GTK_ENTRY (text_entry)); > g_print(string); > > } > > Error encountered :- > ---------------------------------------------------------- > > Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkEntry' > > Gtk-CRITICAL **: file gtkentry.c: line 496 (gtk_entry_get_text): > assertion `entry != NULL' failed. > > GLib-CRITICAL **: file gmessages.c: line 645 (g_print): assertion > `format != NULL' failed. > > ---------------------------------------------------------- > Please guide me how can I cast the gpointer into char* which is recieved > from signal caused by Gtk_entry widget. > > TIA > nv > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > From linux-india-programmers-owner@lists.linux-india.org Wed Oct 4 20:54:57 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 74EBC49F45 for ; Wed, 4 Oct 2000 20:54:50 -0700 (PDT) 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 e953v8Y26198 for ; Thu, 5 Oct 2000 09:27:12 +0530 Message-ID: <39DBFB23.8C0BBCB@pspl.co.in> Date: Thu, 05 Oct 2000 09:23:07 +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: shared memory References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/23 Might be same physical memory area is mapped as two different virtual memory areas. It's possible to mask actual memory address or provide memory address translation. This is doen by hardware itself... Bye Shridhar "Sachin Shurpali (RBIN/DCA-NMP)" wrote: > Hi, > The addresses after shmat for two processes are coming different (of > course) for the same ID. The size of shared memory is around 225 KB. Can > somebody give me a clue , why it is so? Surprisingly transfer thro' the > shared memory is proper. The difference in addresses is precisely 1 MB. From linux-india-programmers-owner@lists.linux-india.org Wed Oct 4 21:06:41 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 3907E4A02B for ; Tue, 3 Oct 2000 09:33:52 -0700 (PDT) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id e93GTeQ08516 for ; Tue, 3 Oct 2000 16:29:41 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8020.fe.bosch.de(virus-out2.fe.internet.bosch.de 10.4.4.20) by gwa2.fe.bosch.de via smap (V2.1) id xma008284; Tue, 3 Oct 00 16:29:17 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id <4GFG8MLH>; Tue, 3 Oct 2000 18:29:11 +0200 Message-ID: From: "Sachin Shurpali (RBIN/DCA-NMP)" To: LIP Subject: Help: shared memory Date: Tue, 3 Oct 2000 18:29:11 +0200 Importance: high X-Priority: 1 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200010/24 Hi, The addresses after shmat for two processes are coming different (of course) for the same ID. The size of shared memory is around 225 KB. Can somebody give me a clue , why it is so? Surprisingly transfer thro' the shared memory is proper. TIA Sachin From linux-india-programmers-owner@lists.linux-india.org Wed Oct 4 23:29:33 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 2467E4A164 for ; Wed, 4 Oct 2000 23:24:23 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id XAA08829 for linux-india-programmers@lists.linux-india.org; Wed, 4 Oct 2000 23:18:00 -0700 Date: Wed, 4 Oct 2000 23:18:00 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: shared memory Message-ID: <20001004231800.A8763@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 Sachin.Shurpali@in.bosch.com on Tue, Oct 03, 2000 at 06:33:56PM +0200 X-Archive-Number: 200010/25 On Tue, Oct 03, 2000 at 06:33:56PM +0200, Sachin Shurpali (RBIN/DCA-NMP) wrote: > Hi, > The addresses after shmat for two processes are coming different (of > course) for the same ID. The size of shared memory is around 225 KB. Can > somebody give me a clue , why it is so? Surprisingly transfer thro' the > shared memory is proper. The difference in addresses is precisely 1 MB. From man shmat(2): If shmaddr is 0, the system tries to find an unmapped region in the range 1 - 1.5G starting from the upper value and coming down from there. If you specify the exact same virtual address in both of your processes and those addresses are free, shmat will present the segments at the same address. If shmaddr is 0, the system will pick one for you and it might pick differently in different processes. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Oct 5 23:35:10 2000 Received: from kuku.excite.com (kuku-rwcmta.excite.com [198.3.99.63]) by www.aunet.org (Postfix) with ESMTP id 7DA444A24B for ; Thu, 5 Oct 2000 23:23:11 -0700 (PDT) Received: from knuckles.excite.com ([199.172.148.179]) by kuku.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20001006061851.XXTB7843.kuku.excite.com@knuckles.excite.com> for ; Thu, 5 Oct 2000 23:18:51 -0700 Message-ID: <6427270.970813131016.JavaMail.imail@knuckles.excite.com> Date: Thu, 5 Oct 2000 23:18:51 -0700 (PDT) From: honne gowda gowda To: linux-india-programmers@lists.linux-india.org Subject: time taken by ISR? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.197.176.74 X-Archive-Number: 200010/26 hi, i am writting device driver for ad1674(adc) based card. here the card supports timer triggerred and interrupt driven data transfer and other modes of transfer.the conversion rate of adc chip is 10 micro secs, that means i can do sampling at the rate of 100K. after every conversion the adc raises an interrupt. my question is: what is the amount of time taken by the(in worst case) interrupt handler to get executed. thanx in advance honne _______________________________________________________ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html From linux-india-programmers-owner@lists.linux-india.org Fri Oct 6 08:24:53 2000 Received: from hotmail.com (f160.law4.hotmail.com [216.33.149.160]) by www.aunet.org (Postfix) with ESMTP id 631034A189 for ; Fri, 6 Oct 2000 08:24:50 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 6 Oct 2000 08:20:29 -0700 Received: from 164.164.87.130 by lw4fd.law4.hotmail.msn.com with HTTP; Fri, 06 Oct 2000 15:20:28 GMT X-Originating-IP: [164.164.87.130] From: "mathew chandy" To: linux-india-programmers@lists.linux-india.org Subject: Mysql-Postgress Date: Fri, 06 Oct 2000 15:20:28 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 Oct 2000 15:20:29.0003 (UTC) FILETIME=[F5BA91B0:01C02FA8] X-Archive-Number: 200010/27 Hi all, Can someone tell me how i can export my existing data on Mysql database to Postgresql database. Both databases are on Linux Thanks in advance chandy _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From linux-india-programmers-owner@lists.linux-india.org Fri Oct 6 10:20:17 2000 Received: from deephome.sci.tech (unknown [202.9.170.116]) by www.aunet.org (Postfix) with ESMTP id 930D34A11E for ; Fri, 6 Oct 2000 10:20:07 -0700 (PDT) Received: from deephome.sci.tech (IDENT:dj@localhost.localdomain [127.0.0.1]) by deephome.sci.tech (8.9.3/8.8.7) with SMTP id WAA01313 for ; Fri, 6 Oct 2000 22:36:46 +0530 Message-Id: <200010061706.WAA01313@deephome.sci.tech> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 From: "Joglekar@eth.net" To: linux-india-programmers@lists.linux-india.org Reply-To: "Joglekar@eth.net" Subject: Re: Mysql-Postgress X-Mailer: CSCMail v1.6.0 Date: 06 Oct 2000 22:36:44 IST X-Archive-Number: 200010/28 On Fri, 06 Oct 2000 15:20:28 GMT, mathew chandy said: > Hi all, > > Can someone tell me how i can export my existing data on Mysql > database to > Postgresql database. Both databases are on Linux > You can use mysqldump to create a data dump. This file will have all sql commands for db and tables creation. This file will work with psql. You can recreate data in postgres using this file. Read mans. -- Deepak Joglekar deepak@indiamail.com From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 00:01:12 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 8EFE94A112 for ; Sat, 7 Oct 2000 00:01:11 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id XAA12509 for linux-india-programmers@lists.linux-india.org; Fri, 6 Oct 2000 23:54:41 -0700 Date: Fri, 6 Oct 2000 23:54:41 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: time taken by ISR? Message-ID: <20001006235441.A12482@sharmas.dhs.org> References: <6427270.970813131016.JavaMail.imail@knuckles.excite.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <6427270.970813131016.JavaMail.imail@knuckles.excite.com>; from honnegowda@excite.com on Thu, Oct 05, 2000 at 11:18:51PM -0700 X-Archive-Number: 200010/29 On Thu, Oct 05, 2000 at 11:18:51PM -0700, honne gowda gowda wrote: > > hi, > > i am writting device driver for ad1674(adc) based card. here the card > supports timer triggerred and interrupt driven data transfer and other modes > of transfer.the conversion rate of adc chip is 10 micro secs, that means i > can do sampling at the rate of 100K. > after every conversion the adc raises an interrupt. > > my question is: what is the amount of time taken by the(in worst case) > interrupt handler to get executed. Short answer: Linux has no upper bound on the interrupt latency. Long answer: See some of the recent threads on the exchanges between Linus Torvalds and the people who wanted to make Linux a good OS for multimedia recording/editing. They wanted to introduce code into Linux kernel at "strategic" points where it would check for pending events that needed attention in "real time". I don't know what happened to the code - it probably didn't make it. Also, Linux has no concept of interrupt "levels". Either all interrupts are blocked or none. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 03:26:49 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 73C9449F37 for ; Sat, 7 Oct 2000 03:26:25 -0700 (PDT) Received: from gdr ([202.9.170.106]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Sat, 7 Oct 2000 15:46:54 +0530 Message-ID: <005501c0304b$9d2c9900$6aaa09ca@gdr> From: "Delip Rao" To: "LIP" Subject: fork-exec causes core-dump Date: Sat, 7 Oct 2000 16:14:37 +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.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200010/30 Hi, I used fork-exec to create a child process, it ran properly but caused a core dump. Since I wished to run it in the background I used, waitpid(pid,&status,WNOHANG|WUNTRACED); inside a loop The process itself when executed from the shell runs without core-dump; gdb tells the child is causing core dump. Anybody to get me out of this mess? Thanks, Delip Rao From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 03:32:18 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id 2D7A64A104; Sat, 7 Oct 2000 03:31:58 -0700 (PDT) Received: from localhost (madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) with ESMTP id PAA05876; Sat, 7 Oct 2000 15:52:03 +0530 Date: Sat, 7 Oct 2000 15:52:03 +0530 (IST) From: "Madhu M. Kurup" To: Linux India General Cc: linux-india-programmers@lists.linux-india.org Subject: Request for Help Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/31 Hi, I'm doing some of the co-ordination work for the "Development - Powered by Linux" section at IT.COM. I just got this suggestion from Biju Chacko and I'd like some help on this. Hey says > Make sure you have some standard business type development demoed. That > is, some kind of multi-tier app: back end Oracle (preferably), C++ > middle ware, and Perl/Python/whatever front end. > It may not be the most glamourous stuff around, but you'd be astonished > by the sheer size of the market there is for this stuff. Now the problem really being that for me atleast, for a long time middleware == vapourware. What I'd like to know from the community really is a) What are the kind of middleware products that are useful and available b) How many of them are Linux oriented / centric c) Which of them would be optimum to install / demo I'm really out of my depth here and I'd like all the help that I could get. TIA. Cheerio, Madhu Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 04:27:01 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id 5F1AC4A041 for ; Sat, 7 Oct 2000 04:26:50 -0700 (PDT) Received: (from madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) id QAA06296 for linux-india-programmers@lists.linux-india.org; Sat, 7 Oct 2000 16:52:17 +0530 Date: Sat, 7 Oct 2000 16:52:17 +0530 From: "Madhu M. Kurup" To: linux-india-programmers@lists.linux-india.org Subject: Optimization in gcc Message-ID: <20001007165216.A6282@exocore.com> Reply-To: "Madhu M. Kurup" References: <005501c0304b$9d2c9900$6aaa09ca@gdr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <005501c0304b$9d2c9900$6aaa09ca@gdr>; from deliprao@eth.net on Sat, Oct 07, 2000 at 04:14:37PM +0530 X-Archive-Number: 200010/32 Hi, I am stuck with an odd sort of problem and I was wondering if I could get some help. I need to be able to switch on optimizations without using either a makefile or using command line arguments. Is this possible, at all? the problem can be viewed as this. If I ship a file x1.cpp to a user and all he needs to type is make x1 make will automatically compile it. Now I want the compiled code to use as many optimizations as it can on the target machine. This is of course the equivalent of doing a g++ -O2 x1.cpp -o x1 or something similar. If this is possible, my guess is that somewhere in the preprocessor / pragma implementation should have this. All the searching that I've done is of no avail. Help! Cheerio, Madhu Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 05:03:38 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.139]) by www.aunet.org (Postfix) with ESMTP id BE1EC4A03F for ; Sat, 7 Oct 2000 05:03:31 -0700 (PDT) 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 RAA10998 for ; Sat, 7 Oct 2000 17:29:11 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id RAA02255 for linux-india-programmers@lists.linux-india.org; Sat, 7 Oct 2000 17:27:50 +0530 Date: Sat, 7 Oct 2000 17:27:50 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Optimization in gcc Message-ID: <20001007172750.A2228@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <005501c0304b$9d2c9900$6aaa09ca@gdr> <20001007165216.A6282@exocore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <20001007165216.A6282@exocore.com>; from madhu@exocore.com on Sat, Oct 07, 2000 at 04:52:17PM +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: 200010/33 Madhu M. Kurup forced the electrons to say: > Now I want the compiled code to use as many optimizations as it can on the > target machine. This is of course the equivalent of doing a > g++ -O2 x1.cpp -o x1 I am not sure what you want to do, since shipping a makefile along seems to me the simplest option, but - make CXXFLAGS+=-O2 x1 will achieve what you want to do. HTH, Binand -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 05:09:39 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id BBCA34A0B4 for ; Sat, 7 Oct 2000 05:09:30 -0700 (PDT) Received: (from madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) id RAA06471 for linux-india-programmers@lists.linux-india.org; Sat, 7 Oct 2000 17:35:01 +0530 Date: Sat, 7 Oct 2000 17:35:01 +0530 From: "Madhu M. Kurup" To: linux-india-programmers@lists.linux-india.org Subject: Re: Optimization in gcc Message-ID: <20001007173501.A6464@exocore.com> Reply-To: "Madhu M. Kurup" References: <005501c0304b$9d2c9900$6aaa09ca@gdr> <20001007165216.A6282@exocore.com> <20001007172750.A2228@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: <20001007172750.A2228@bombay.retortsoft.com>; from binand@bombay.retortsoft.com on Sat, Oct 07, 2000 at 05:27:50PM +0530 X-Archive-Number: 200010/34 Binand Raj S. encoded : >the simplest option, but - > >make CXXFLAGS+=-O2 x1 I don't even want to change from the make format! So, I'm looking at embedding optimization information into the code! Cheerio, M Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 05:13:33 2000 Received: from cello.cs.iitm.ernet.in (cello.cs.iitm.ernet.in [202.141.24.3]) by www.aunet.org (Postfix) with ESMTP id A11684A10E for ; Sat, 7 Oct 2000 05:13:29 -0700 (PDT) Received: from eagle.iitm.ernet.in (IDENT:root@eagle.iitm.ernet.in [144.16.241.142]) by cello.cs.iitm.ernet.in (8.9.3/8.8.7) with ESMTP id BAA16046; Mon, 28 Jul 1997 01:00:09 +0530 Received: from localhost (vinod@localhost) by eagle.iitm.ernet.in (8.9.3/8.9.3) with ESMTP id SAA01444; Sat, 7 Oct 2000 18:59:45 +0530 Date: Sat, 7 Oct 2000 18:59:45 +0530 (IST) From: Vinod Pathangay To: "Madhu M. Kurup" Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Optimization in gcc In-Reply-To: <20001007165216.A6282@exocore.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/35 SIMPLE: USE YOUE OWN RULE IN THE MAKEFILE LIKE THIS... ------------------------------- x1: g++ -O2 x1.cpp -o x1 ------------------------------- this should work..... IM NOT SURE ABT ALL THE OPTIMIZATION FLAGS THOU... HAVE FUN! On Sat, 7 Oct 2000, Madhu M. Kurup wrote: > Hi, > > I am stuck with an odd sort of problem and I was wondering if I could get some help. I need to be able to switch on optimizations without using either a makefile or using command line arguments. Is this possible, at all? the problem can be viewed as this. If I ship a file x1.cpp to a user and all he needs to type is > make x1 > make will automatically compile it. Now I want the compiled code to use as many optimizations as it can on the target machine. This is of course the equivalent of doing a > g++ -O2 x1.cpp -o x1 > or something similar. > > If this is possible, my guess is that somewhere in the preprocessor / pragma implementation should have this. > > All the searching that I've done is of no avail. Help! > > Cheerio, > Madhu > > Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.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 > -- Vinod Artificial Neural Networks Lab, CSE, IIT Madras From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 07:49:51 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 67FFF49EFB for ; Sat, 7 Oct 2000 07:49:19 -0700 (PDT) Received: from cranks ([202.9.170.22]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Sat, 7 Oct 2000 20:09:46 +0530 Message-ID: <004701c0306d$ef6f6f40$979609ca@cranks> From: "Chetan Gopal Kashinath" To: References: Subject: Re: Request for Help Date: Sat, 7 Oct 2000 20:17: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.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200010/36 ----- Original Message ----- From: Madhu M. Kurup Sent: Saturday, October 07, 2000 3:52 PM Subject: [LIP] Request for Help > Hi, > > I'm doing some of the co-ordination work for the "Development - > Powered by Linux" section at IT.COM. I just got this suggestion from Biju > Chacko and I'd like some help on this. Hey says > > > Now the problem really being that for me atleast, for a long time > middleware == vapourware. What I'd like to know from the community really > is > > a) What are the kind of middleware products that are useful and available > b) How many of them are Linux oriented / centric > c) Which of them would be optimum to install / demo > > I'm really out of my depth here and I'd like all the help that I > could get. TIA. > hi madhu, hope i will be able to help u after monday :-) the first job i have at hand (apart from what i am assigned on monday) is to collect stuff to help the it.com linux development stall. will get back to u regarding this. - chetu From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 13:42: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 BBF9E4A102; Sat, 7 Oct 2000 13:42:31 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id NAA13566; Sat, 7 Oct 2000 13:35:59 -0700 Date: Sat, 7 Oct 2000 13:35:59 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Cc: Linux India General Subject: Re: Request for Help Message-ID: <20001007133559.A13182@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 madhu@exocore.com on Sat, Oct 07, 2000 at 03:52:03PM +0530 X-Archive-Number: 200010/37 On Sat, Oct 07, 2000 at 03:52:03PM +0530, Madhu M. Kurup wrote: > Now the problem really being that for me atleast, for a long time > middleware == vapourware. What I'd like to know from the community really > is > > a) What are the kind of middleware products that are useful and available All of java and corba stuff. > b) How many of them are Linux oriented / centric None. All of them are cross platform. > c) Which of them would be optimum to install / demo Tomcat/Enhydra and Zope. -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 13:47:46 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id B1B0C4A110 for ; Sat, 7 Oct 2000 13:47:42 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id NAA13626 for linux-india-programmers@lists.linux-india.org; Sat, 7 Oct 2000 13:41:10 -0700 Date: Sat, 7 Oct 2000 13:41:10 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: fork-exec causes core-dump Message-ID: <20001007134110.B13182@sharmas.dhs.org> References: <005501c0304b$9d2c9900$6aaa09ca@gdr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <005501c0304b$9d2c9900$6aaa09ca@gdr>; from deliprao@eth.net on Sat, Oct 07, 2000 at 04:14:37PM +0530 X-Archive-Number: 200010/38 From gdb.info: Debugging programs with multiple processes ========================================== GDB has no special support for debugging programs which create additional processes using the `fork' function. When a program forks, GDB will continue to debug the parent process and the child process will run unimpeded. If you have set a breakpoint in any code which the child then executes, the child will get a `SIGTRAP' signal which (unless it catches the signal) will cause it to terminate. However, if you want to debug the child process there is a workaround which isn't too painful. Put a call to `sleep' in the code which the child process executes after the fork. It may be useful to sleep only if a certain environment variable is set, or a certain file exists, so that the delay need not occur when you don't want to run GDB on the child. While the child is sleeping, use the `ps' program to get its process ID. Then tell GDB (a new invocation of GDB if you are also debugging the parent process) to attach to the child process (see *Note Attach::). From that point on you can debug the child process just like any other process which you attached to. On Sat, Oct 07, 2000 at 04:14:37PM +0530, Delip Rao wrote: > Hi, > I used fork-exec to create a child process, > it ran properly but caused a core dump. > > Since I wished to run it in the background I used, > waitpid(pid,&status,WNOHANG|WUNTRACED); inside a loop > Why would you want to run it in a loop ? -Arun From linux-india-programmers-owner@lists.linux-india.org Sat Oct 7 13:54: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 313AA4A11E for ; Sat, 7 Oct 2000 13:54:31 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id NAA13666; Sat, 7 Oct 2000 13:47:47 -0700 Date: Sat, 7 Oct 2000 13:47:47 -0700 From: Arun Sharma To: "Madhu M. Kurup" Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Optimization in gcc Message-ID: <20001007134747.C13182@sharmas.dhs.org> References: <005501c0304b$9d2c9900$6aaa09ca@gdr> <20001007165216.A6282@exocore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001007165216.A6282@exocore.com>; from madhu@exocore.com on Sat, Oct 07, 2000 at 04:52:17PM +0530 X-Archive-Number: 200010/39 On Sat, Oct 07, 2000 at 04:52:17PM +0530, Madhu M. Kurup wrote: > Hi, > > I am stuck with an odd sort of problem and I was wondering if I could get some help. I need to be able to switch on optimizations without using either a makefile or using command line arguments. Is this possible, at all? the problem can be viewed as this. If I ship a file x1.cpp to a user and all he needs to type is > make x1 make -p and looking for CXX: CXX = g++ LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c %.o: %.cc # commands to execute (built-in): $(COMPILE.cc) $< $(OUTPUT_OPTION) > make will automatically compile it. Now I want the compiled code to > use as many optimizations as it can on the target machine. This is of > course the equivalent of doing a > g++ -O2 x1.cpp -o x1 > or something similar. CXXFLAGS = -O2 in your Makefile will do it. -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Oct 8 04:52:36 2000 Received: from eth.net (mailserver2.ddsl.net [202.9.145.19]) by www.aunet.org (Postfix) with ESMTP id 764864A01B for ; Sun, 8 Oct 2000 04:52:30 -0700 (PDT) Received: from gdr ([202.9.170.59]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Sun, 8 Oct 2000 17:15:13 +0530 Message-ID: <001c01c03120$caf14d60$3baa09ca@gdr> From: "Delip Rao" To: References: <005501c0304b$9d2c9900$6aaa09ca@gdr> <20001007134110.B13182@sharmas.dhs.org> Subject: Re: fork-exec causes core-dump Date: Sun, 8 Oct 2000 17:40:46 +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.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200010/40 Hi, I wish to run it in a loop so that I can do other things in the loop. ----- Original Message ----- From: Arun Sharma To: Sent: Sunday, October 08, 2000 2:11 AM Subject: Re: [LIP] fork-exec causes core-dump > From gdb.info: > > Debugging programs with multiple processes > ========================================== > > GDB has no special support for debugging programs which create > additional processes using the `fork' function. When a program forks, > GDB will continue to debug the parent process and the child process > will run unimpeded. If you have set a breakpoint in any code which the > child then executes, the child will get a `SIGTRAP' signal which > (unless it catches the signal) will cause it to terminate. > > However, if you want to debug the child process there is a workaround > which isn't too painful. Put a call to `sleep' in the code which the > child process executes after the fork. It may be useful to sleep only > if a certain environment variable is set, or a certain file exists, so > that the delay need not occur when you don't want to run GDB on the > child. While the child is sleeping, use the `ps' program to get its > process ID. Then tell GDB (a new invocation of GDB if you are also > debugging the parent process) to attach to the child process (see *Note > Attach::). From that point on you can debug the child process just > like any other process which you attached to. > > On Sat, Oct 07, 2000 at 04:14:37PM +0530, Delip Rao wrote: > > Hi, > > I used fork-exec to create a child process, > > it ran properly but caused a core dump. > > > > Since I wished to run it in the background I used, > > waitpid(pid,&status,WNOHANG|WUNTRACED); inside a loop > > > > Why would you want to run it in a loop ? > > -Arun > > --------------------------------------------- > 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 Sun Oct 8 06:47:12 2000 Received: from del1.vsnl.net.in (giasdl01.vsnl.net.in [202.54.15.1]) by www.aunet.org (Postfix) with ESMTP id 908FA4A0A6 for ; Sun, 8 Oct 2000 06:47:07 -0700 (PDT) Received: from d ([203.197.226.48]) by del1.vsnl.net.in (8.11.0/8.11.0) with SMTP id e990Fha27286 for ; Sun, 8 Oct 2000 19:15:43 -0500 (GMT) Message-Id: <200010090015.e990Fha27286@del1.vsnl.net.in> Date: Sun, 8 Oct 2000 19:12:42 +0500 From: nikkie21 Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: modules X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/41 hi i want to know that why we require special function put_user while copying data from kernel data segment to user data segment. also , in which other languages apart from C could kernel modules be written ----------------------------- reply soon bye ==== deepak ---- have a great day ICQ 30662394 -- You have a tendency to feel you are superior to most computers. From linux-india-programmers-owner@lists.linux-india.org Sun Oct 8 09:31: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 9BB0F4A00C for ; Sun, 8 Oct 2000 09:31:34 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA15337 for linux-india-programmers@lists.linux-india.org; Sun, 8 Oct 2000 09:24:59 -0700 Date: Sun, 8 Oct 2000 09:24:59 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: fork-exec causes core-dump Message-ID: <20001008092459.A15324@sharmas.dhs.org> References: <005501c0304b$9d2c9900$6aaa09ca@gdr> <20001007134110.B13182@sharmas.dhs.org> <001c01c03120$caf14d60$3baa09ca@gdr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <001c01c03120$caf14d60$3baa09ca@gdr>; from deliprao@eth.net on Sun, Oct 08, 2000 at 05:40:46PM +0530 X-Archive-Number: 200010/42 On Sun, Oct 08, 2000 at 05:40:46PM +0530, Delip Rao wrote: > Hi, > I wish to run it in a loop > so that I can do other things in the loop. You might want to consider catching SIGCHLD (which is emitted when the child exits) and do waitpid in the signal handler. -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Oct 8 09:45:17 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 1884D4A029 for ; Sun, 8 Oct 2000 09:45:12 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA15369; Sun, 8 Oct 2000 09:38:14 -0700 Date: Sun, 8 Oct 2000 09:38:14 -0700 From: Arun Sharma To: deepakyadav@india.com Cc: linux-india-programmers Subject: Re: modules Message-ID: <20001008093814.B15324@sharmas.dhs.org> References: <200010090015.e990Fha27286@del1.vsnl.net.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200010090015.e990Fha27286@del1.vsnl.net.in>; from deepak2000@softhome.net on Sun, Oct 08, 2000 at 07:12:42PM +0500 X-Archive-Number: 200010/43 On Sun, Oct 08, 2000 at 07:12:42PM +0500, nikkie21 wrote: > hi > i want to know that why we require special function put_user while > copying data from kernel data segment to user data segment. So that if the user passes a bad pointer, the kernel doesn't fall on its face. It used to do "verify_area" before dereferencing the pointer, but in recent kernels, the verification is done using the CPU's MMU. (Linux device drivers, Rubini, p 398). -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Oct 8 23:51:01 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id DC7174A03C for ; Sun, 8 Oct 2000 23:50:54 -0700 (PDT) Received: from localhost (madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) with ESMTP id MAA18330; Mon, 9 Oct 2000 12:15:03 +0530 Date: Mon, 9 Oct 2000 12:15:03 +0530 (IST) From: "Madhu M. Kurup" To: Arun Sharma Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Optimization in gcc In-Reply-To: <20001007134747.C13182@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/44 Hi, > > course the equivalent of doing a > > g++ -O2 x1.cpp -o x1 > > or something similar. > > CXXFLAGS = -O2 in your Makefile will do it. > Of course, I had previously explained that I did not want to supply a makefile.. just that the user would type make filename in a directory that had only the program x.cpp and nothing else (NO Makefile) On posting this to the gcc mailing list the official response was that it is not possible. Cheerio, Madhu Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Mon Oct 9 18:26:26 2000 Received: from prodserver1.goatelecom.com (unknown [210.212.161.28]) by www.aunet.org (Postfix) with ESMTP id 424CF4A0D3 for ; Mon, 9 Oct 2000 18:26:21 -0700 (PDT) Received: from gaurav by prodserver1.goatelecom.com (8.9.3/1.1.20.3/07Jul00-0916AM) id XAA0000020093; Mon, 9 Oct 2000 23:35:09 +0530 (IST) Message-ID: <000201c0321b$9845f040$13a0d4d2@gaurav> From: "Gaurav Priyolkar" To: Subject: Implementation of Data Link Layer protocols Date: Mon, 9 Oct 2000 20:46:38 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/45 Hi all, As a part of my Computer Networks course in college I have to implement some Data Link Layer protocols. AFAICT, for communication between two machines, sockets cannot be used in this case as use of TCP or UDP sockets would mean the use of a Transport or Network Layer service respectively which is not allowed as only services offered by lower layers may be used. So this brings me to my problem : how to read/write data directly from/to the Physical Layer in C ? If I have understood properly, this is what a Data Link Layer protocol is supposed to do. Any help and pointers would be gratefully accepted. From linux-india-programmers-owner@lists.linux-india.org Mon Oct 9 18:49:30 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 32DC44A012 for ; Mon, 9 Oct 2000 18:49:28 -0700 (PDT) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id e99BlZg12574 for ; Mon, 9 Oct 2000 11:47:35 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8020.fe.bosch.de(virus-out2.fe.internet.bosch.de 10.4.4.20) by gwa2.fe.bosch.de via smap (V2.1) id xma011434; Mon, 9 Oct 00 11:47:21 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id <4R0KSXWR>; Mon, 9 Oct 2000 13:47:12 +0200 Message-ID: From: "Sachin Shurpali (RBIN/DCA-NMP)" To: LIP Subject: Perl -system command Date: Mon, 9 Oct 2000 13:47:12 +0200 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: 200010/46 Dear ILUGs, At a certain stage in a Perl script , the system command is failing! . The parameter to the system command is diff shell cmd with long pathnames. Could somebody tell me why this is happening. However if the same cmd is executed in another script , it is getting executed. TIA Sachin From linux-india-programmers-owner@lists.linux-india.org Mon Oct 9 18:56:09 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 0236E4A031 for ; Mon, 9 Oct 2000 18:55:58 -0700 (PDT) Received: from gdr ([202.9.170.129]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Tue, 10 Oct 2000 00:50:48 +0530 Message-ID: <00a901c03229$f5535120$81aa09ca@gdr> From: "Delip Rao" To: "LIP" Subject: Memory problems Date: Tue, 10 Oct 2000 01:10: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.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200010/47 Hello Everybody, 1) How do I increase the program stack space using cc/c++? 2) I once got out of memory exception on Linux.Since Linux uses virtual memory, I think this should not have happened. Is there any separate set of syscalls for virtual memory? Thanks. Bye From linux-india-programmers-owner@lists.linux-india.org Mon Oct 9 20:05:56 2000 Received: from deephome.sci.tech (PPP-176-234.bng.vsnl.net.in [203.197.176.234]) by www.aunet.org (Postfix) with ESMTP id D84ED4A020 for ; Mon, 9 Oct 2000 20:05:41 -0700 (PDT) Received: from deephome.sci.tech (IDENT:dj@localhost.localdomain [127.0.0.1]) by deephome.sci.tech (8.9.3/8.8.7) with SMTP id IAA02423; Tue, 10 Oct 2000 08:29:44 +0530 Message-Id: <200010100259.IAA02423@deephome.sci.tech> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 From: "Joglekar@eth.net" To: linux-india-programmers@lists.linux-india.org, LIP , "Sachin Shurpali (RBIN/DCA-NMP)" Reply-To: "Joglekar@eth.net" Subject: Re: Perl -system command X-Mailer: CSCMail v1.6.0 Date: 10 Oct 2000 08:29:42 IST X-Archive-Number: 200010/48 On Mon, 9 Oct 2000 13:47:12 +0200 , Sachin Shurpali (RBIN/DCA-NMP) said: > Dear ILUGs, > At a certain stage in a Perl script , the system command is > failing! . > The parameter to the system command is diff shell cmd with long > pathnames. > Could somebody tell me why this is happening. However if the same cmd > is > executed in another script , it is getting executed. > TIA > Sachin > Can you send your code snipet ( lines of code where it is failing ). If code is working outside from command line and not working as CGI then check for the included perl module is in @INC perl appache path. -- Deepak Joglekar deepak@indiamail.com From linux-india-programmers-owner@lists.linux-india.org Mon Oct 9 20:32:45 2000 Received: from natsemi-bh.nsc.com (natsemi-bh.nsc.com [204.163.202.66]) by www.aunet.org (Postfix) with ESMTP id D8CB44A00A for ; Mon, 9 Oct 2000 20:32:43 -0700 (PDT) Received: (from uucp@localhost) by natsemi-bh.nsc.com (8.8.8/8.6.11) id UAA27029 for ; Mon, 9 Oct 2000 20:28:07 -0700 (PDT) From: sojan@malkauns.nsc.com Received: from nsc.nsc.com(139.187.81.1) by natsemi-bh.nsc.com via smap (4.1) id xma026994; Mon, 9 Oct 00 20:27:11 -0700 Received: from malkauns.malkauns.nsc.com (malkauns.nsc.com [139.187.83.131]) by nsc.nsc.com (8.9.3+Sun/8.9.3) with SMTP id UAA27739 for ; Mon, 9 Oct 2000 20:27:03 -0700 (PDT) Received: from [139.187.83.218] by malkauns.malkauns.nsc.com (SMI-8.6/SMI-SVR4) id JAA28839; Tue, 10 Oct 2000 09:05:49 GMT Date: Tue, 10 Oct 2000 09:06:23 +0500 (GMT-5) X-Sender: sojan@idc-sw1.nsc.com To: LIP Subject: Re: Memory problems In-Reply-To: <00a901c03229$f5535120$81aa09ca@gdr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/49 Hi, The stack segment is set to the maximum address ( 3GB) (or is it 4G?) and it grows downwards. The bss sits above the text and it grows upwards. ( brk() system call). Yours must be a really really huge program to require more than this!...or most probably, something else is wrong. The brk() call takes care that you don't cross into the stack region. Could u send the code which gave u the problem. On Tue, 10 Oct 2000, Delip Rao wrote: > Hello Everybody, > 1) How do I increase the program stack space using cc/c++? > 2) I once got out of memory exception on Linux.Since Linux uses > virtual memory, I think this should not have happened. > Is there any separate set of syscalls for virtual memory? > Thanks. > Bye From linux-india-programmers-owner@lists.linux-india.org Mon Oct 9 21:03:21 2000 Received: from mailhost.iitb.ac.in (mailhost.iitb.ac.in [203.197.74.142]) by www.aunet.org (Postfix) with SMTP id 6119C49F47 for ; Mon, 9 Oct 2000 21:03:16 -0700 (PDT) Received: (qmail 14221 invoked from network); 10 Oct 2000 04:03:01 -0000 Received: from akash.it.iitb.ernet.in.116.16.144.in-addr.arpa (HELO akash.it.iitb.ernet.in) (144.16.116.2) by mailhost.iitb.ac.in with SMTP; 10 Oct 2000 04:03:01 -0000 Received: from akash.it.iitb.ernet.in (akash.it.iitb.ernet.in [144.16.116.2]) by akash.it.iitb.ernet.in (8.9.3/8.8.8) with ESMTP id JAA11165 for ; Tue, 10 Oct 2000 09:27:59 +0530 Date: Tue, 10 Oct 2000 09:27:59 +0530 (IST) From: Ravindra Jaju To: LIP Subject: Re: Perl -system command In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/50 On Mon, 9 Oct 2000, Sachin Shurpali (RBIN/DCA-NMP) wrote: > Dear ILUGs, > At a certain stage in a Perl script , the system command is failing! . > The parameter to the system command is diff shell cmd with long pathnames. > Could somebody tell me why this is happening. However if the same cmd is > executed in another script , it is getting executed. Can you show the relevant part of the script and the error shown? -- jaju From linux-india-programmers-owner@lists.linux-india.org Mon Oct 9 22:52:34 2000 Received: from MailAndNews.com (MailAndNews.com [199.29.68.161]) by www.aunet.org (Postfix) with ESMTP id A9C814A01A for ; Mon, 9 Oct 2000 22:52:32 -0700 (PDT) X-WM-Posted-At: MailAndNews.com; Tue, 10 Oct 00 01:47:39 -0400 X-WebMail-UserID: kameshj Date: Tue, 10 Oct 2000 01:47:39 -0400 From: kamesh jayachandran To: linux-india-programmers@lists.linux-india.org X-EXP32-SerialNo: 00000000 Subject: basic memory division question Message-ID: <39EDA20D@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: 200010/51 Hello, It is the question in my mind for long.Even though it may be trivial ,i think of asking it to the group. The question is How the Physical Memory is divided in among USER and KERNEL space.I mean the amount of memory allocated for both.And starting address of both the Kernel space and User Space. Longtime before i have seen in the list that Kernel is getting loaded at 0xc0010000+X where X is getting translated to physical address. Please enlighten me in this regard Thanks in advance 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 Mon Oct 9 22:53:03 2000 Received: from hotmail.com (f167.law4.hotmail.com [216.33.149.167]) by www.aunet.org (Postfix) with ESMTP id 4C80F4A10B for ; Mon, 9 Oct 2000 22:53:02 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 9 Oct 2000 22:48:25 -0700 Received: from 164.164.87.130 by lw4fd.law4.hotmail.msn.com with HTTP; Tue, 10 Oct 2000 05:48:25 GMT X-Originating-IP: [164.164.87.130] From: "mathew chandy" To: linux-india-programmers@lists.linux-india.org Subject: Postgresql instalation on Linux Date: Tue, 10 Oct 2000 05:48:25 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 10 Oct 2000 05:48:25.0723 (UTC) FILETIME=[B51CACB0:01C0327D] X-Archive-Number: 200010/52 hi, whenever i run psql i get the following message "psql: Missing or erroneous pg_hba.conf file, see postmaster log for details" even after re-instaling postgresql i am not able to run postgresql thanks in advance mathew _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From linux-india-programmers-owner@lists.linux-india.org Mon Oct 9 23:36:25 2000 Received: from netacrossb65e.netacross.stpn.soft.net (unknown [12.10.198.124]) by www.aunet.org (Postfix) with ESMTP id 10B334A00E for ; Mon, 9 Oct 2000 23:36:11 -0700 (PDT) Received: from AGOEL ([172.16.0.48]) by netacrossb65e.netacross.stpn.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id 4S6CBVPA; Tue, 10 Oct 2000 12:01:28 +0530 Message-ID: <01dc01c03284$9452cc60$300010ac@agoel> From: "Amit Goel" To: References: <000201c0321b$9845f040$13a0d4d2@gaurav> Subject: Re: Implementation of Data Link Layer protocols Date: Tue, 10 Oct 2000 12:07:29 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/53 > Data Link Layer protocols. > AFAICT, for communication between two machines, sockets cannot be used in > this case as use of TCP or UDP sockets would mean the use of a Transport or > Network Layer service respectively which is not allowed as only services Of course using sockets means u r using transport layer services and programming application layer. if u implement sockets that means u r using ip layer and programming transport layer. If u want to write at data link layer .. consider implementing ppp.c or slip.c amit From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 01:41:54 2000 Received: from id.eth.net (unknown [202.9.152.12]) by www.aunet.org (Postfix) with ESMTP id 4DF1B4A0A6 for ; Tue, 10 Oct 2000 01:41:47 -0700 (PDT) Received: from wnt04 ([202.9.156.214]) by id.eth.net with Microsoft SMTPSVC(5.5.1877.197.19); Tue, 10 Oct 2000 14:07:12 +0530 Message-ID: <00d101c03293$335cb970$6801010a@incontrolint.in> From: "Anuj Kumar" To: References: Subject: Re: Postgresql instalation on Linux Date: Tue, 10 Oct 2000 13:52:14 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/54 Send your RH ver. and other information. try to start your postmaster / postgres services. Regards, Anuj ----- Original Message ----- From: mathew chandy To: Sent: Tuesday, October 10, 2000 11:18 AM Subject: [LIP] Postgresql instalation on Linux > hi, > > whenever i run psql i get the following message > > "psql: Missing or erroneous pg_hba.conf file, see postmaster log for > details" > > even after re-instaling postgresql i am not able to run postgresql > > > thanks in advance > > mathew > > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.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 Oct 10 02:09:18 2000 Received: from hotmail.com (f15.law4.hotmail.com [216.33.149.15]) by www.aunet.org (Postfix) with ESMTP id 3C0F24A0DF for ; Tue, 10 Oct 2000 02:09:14 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 10 Oct 2000 02:04:36 -0700 Received: from 164.164.87.130 by lw4fd.law4.hotmail.msn.com with HTTP; Tue, 10 Oct 2000 09:04:36 GMT X-Originating-IP: [164.164.87.130] From: "mathew chandy" To: linux-india-programmers@lists.linux-india.org Subject: Re: Postgresql instalation on Linux Date: Tue, 10 Oct 2000 09:04:36 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 10 Oct 2000 09:04:36.0692 (UTC) FILETIME=[1D280140:01C03299] X-Archive-Number: 200010/55 hi, The version of postgresql is 7.0.2. I start postgresql by issuing this /etc/rc.d/init.d/postgresql start mathew >From: "Anuj Kumar" >Reply-To: linux-india-programmers@lists.linux-india.org >To: >Subject: Re: [LIP] Postgresql instalation on Linux >Date: Tue, 10 Oct 2000 13:52:14 +0530 > >Send your RH ver. and other information. >try to start your postmaster / postgres services. >Regards, >Anuj > >----- Original Message ----- >From: mathew chandy >To: >Sent: Tuesday, October 10, 2000 11:18 AM >Subject: [LIP] Postgresql instalation on Linux > > > > hi, > > > > whenever i run psql i get the following message > > > > "psql: Missing or erroneous pg_hba.conf file, see postmaster log for > > details" > > > > even after re-instaling postgresql i am not able to run postgresql > > > > > > thanks in advance > > > > mathew > > > > > > > > >_________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. > > > > Share information about yourself, create your own public profile at > > http://profiles.msn.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. > > > > >--------------------------------------------- >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 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 02:30:11 2000 Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by www.aunet.org (Postfix) with ESMTP id 2A04E4A10B for ; Tue, 10 Oct 2000 02:30:07 -0700 (PDT) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by palrel1.hp.com (Postfix) with ESMTP id 127EBD55 for ; Tue, 10 Oct 2000 02:25:28 -0700 (PDT) Received: from india.hp.com (nt4175.india.hp.com [15.10.41.75]) by hpuxsrv.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id OAA26086 for ; Tue, 10 Oct 2000 14:54:15 +0530 (IST) Message-ID: <39E2E07D.D520CEE9@india.hp.com> Date: Tue, 10 Oct 2000 14:55:17 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Implementation of Data Link Layer protocols References: <000201c0321b$9845f040$13a0d4d2@gaurav> <01dc01c03284$9452cc60$300010ac@agoel> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/56 I don't know if ppp.c or slip.c really constitute the Data Link Layer in a protocol stack. My idea is they do not. Well, by definition Data Link Layer's job is provide an error-free link layer. By implication this means, DLL should take care of out of sequence delivery of frames by the physical layer, or erroneous delivery of the frames by the physical layer. More often than not, DLL is implemented in the hardware. Network cards generally have their own processor and memory as well as framing logic including error detection, correction. Yeah, DLL can be written using C and compiled for a particular processor architecture- depends on which one is used. My cents worth :-) Satheesh Amit Goel wrote: > > Data Link Layer protocols. > > AFAICT, for communication between two machines, sockets cannot be used in > > this case as use of TCP or UDP sockets would mean the use of a Transport > or > > Network Layer service respectively which is not allowed as only services > > Of course using sockets means u r using transport layer services and > programming application layer. > if u implement sockets that means u r using ip layer and programming > transport layer. > > If u want to write at data link layer .. consider implementing ppp.c or > slip.c > > amit > > --------------------------------------------- > 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 Oct 10 04:14:12 2000 Received: from ccsun50.iitd.ac.in (unknown [202.141.70.30]) by www.aunet.org (Postfix) with ESMTP id A84A84A00B for ; Tue, 10 Oct 2000 04:14:06 -0700 (PDT) Received: (from mau96415@localhost) by ccsun50.iitd.ac.in (8.8.8+Sun/8.8.8) id QAA19634; Tue, 10 Oct 2000 16:48:22 GMT Date: Tue, 10 Oct 2000 16:48:22 GMT Message-Id: <200010101648.QAA19634@ccsun50.iitd.ac.in> From: Harshal Pradhan To: linux-india-programmers@lists.linux-india.org Subject: Implementation of Data Link Layer protocols In-Reply-To: <000201c0321b$9845f040$13a0d4d2@gaurav> References: <000201c0321b$9845f040$13a0d4d2@gaurav> X-Archive-Number: 200010/57 Gaurav Priyolkar writes: > Hi all, > > As a part of my Computer Networks course in college I have to implement some > Data Link Layer protocols. Hi, May I suggest another approach ..... We did most of our assignments about such things using a network simulator. NS is a nice simulator written by a team at UCB that I used.You can do your coding in C++ or TCL. You can easily play around with any layer of the network stack, implement your algorithms and test things out.... It isnt quite as satisfying as hacking kernel code of course :-) But I think it will serve your purpose better NS home page is http://www-mash.cs.berkeley.edu/ns/ Harshal From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 04:16:43 2000 Received: from svrsdfbldg.tcscal.co.in (unknown [206.103.11.137]) by www.aunet.org (Postfix) with SMTP id A23B44A103 for ; Tue, 10 Oct 2000 04:16:32 -0700 (PDT) Received: from a5-766.tcscal.co.in ([172.18.10.97]) by svrsdfbldg.tcscal.co.in (Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) with SMTP id 65256974.003DB1C1; Tue, 10 Oct 2000 16:43:52 +0530 From: robin s chatterjee/PLs/TCSCALCUTTA/TCS Date: Thu, 5 Oct 2000 19:00:27 +0530 To: LIP Subject: Help: shared memory Message-ID: <04DD5EE75D29D3CB65256974003D5253.003D529065256974@tcscal.co.in> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/58 I guess this must be something to do with virtual memory. the addresses do not have to be mapped the same ... Cheerio Robin Hi, The addresses after shmat for two processes are coming different (of course) for the same ID. The size of shared memory is around 225 KB. Can somebody give me a clue , why it is so? Surprisingly transfer thro' the shared memory is proper. TIA Sachin --------------------------------------------- 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 Oct 10 05:17:42 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 9D2CA4A17E for ; Tue, 10 Oct 2000 05:09:37 -0700 (PDT) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id e9AC4vI02649 for ; Tue, 10 Oct 2000 12:04:57 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8019.fe.bosch.de(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma001561; Tue, 10 Oct 00 12:04:35 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id <44BH0BHK>; Tue, 10 Oct 2000 14:04:30 +0200 Message-ID: From: "Sachin Shurpali (RBIN/DCA-NMP)" To: LIP Subject: RE: Perl -system command Date: Tue, 10 Oct 2000 14:04:25 +0200 Importance: high X-Priority: 1 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200010/59 Dear ilugs, I am including the snippet of the script here . Also I found that system call generates following error message foreach $file (@file_list) { chop($file); @scenario=split(/[.]/,$file); $filedot=$scenario[0]; $verif=$filedot.".v"; $current=$filedot.".out"; . . . .# create .v and .out files . #check if there is any difference ; store difference in .err file $dif=$filedot.".err"; print "\n",$dif,"\n"; $EXEC="diff $current $verif > $dif"; if(system($EXEC) != 0 ) - ---------------------------------------------------------error here { print $!; } It generated Interrupted System Call error message Kindly help. TIA Sachin -----Original Message----- From: Joglekar@eth.net [SMTP:joglekar@eth.net] Sent: Tuesday, October 10, 2000 2:00 PM To: linux-india-programmers@lists.linux-india.org; LIP; Sachin Shurpali (RBIN/DCA-NMP) Subject: Re: [LIP] Perl -system command On Mon, 9 Oct 2000 13:47:12 +0200 , Sachin Shurpali (RBIN/DCA-NMP) said: > Dear ILUGs, > At a certain stage in a Perl script , the system command is > failing! . > The parameter to the system command is diff shell cmd with long > pathnames. > Could somebody tell me why this is happening. However if the same cmd > is > executed in another script , it is getting executed. > TIA > Sachin > Can you send your code snipet ( lines of code where it is failing ). If code is working outside from command line and not working as CGI then check for the included perl module is in @INC perl appache path. -- Deepak Joglekar deepak@indiamail.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 Oct 10 09:17:39 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 107AD4A1AD for ; Tue, 10 Oct 2000 09:11:02 -0700 (PDT) Received: from unknown-24-4.pilot.net (unknown-24-4.pilot.net [206.189.24.4]) by unknown-230-101.pilot.net with ESMTP id JAA18229 for ; Tue, 10 Oct 2000 09:58:58 -0400 (EDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-4.pilot.net with ESMTP id GAA13792 for ; Tue, 10 Oct 2000 06:54:08 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id <44HNNLHH>; Tue, 10 Oct 2000 19:31:34 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0242EAD3@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Implementation of Data Link Layer protocols Date: Tue, 10 Oct 2000 19:31:48 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200010/60 it is not always true that dll stuff is written in C even in real OSes. usually dll is firmware, ie embedded software on the network interface cards. you can use simulators as suggested. or you can write your own simulator for the HL and provide C/C++ bindings to the HL and then build your DLL on that Regards Shourya Shourya.Sarcar@geind.ge.com ______________________________________________________________ Global Software Platforms GE Medical Systems A1 Golden Enclave, Airport Road, Bangalore, India 560 017=20 Tel : +91-80-526 3121|3496 Ext 362=A0 Surf : www.gemedicalsystems.com | www.shourya.com #-----Original Message----- #From: Gaurav Priyolkar [mailto:pgaurav@goatelecom.com] #Sent: Monday, October 09, 2000 8:47 PM #To: linux-india-programmers@lists.linux-india.org #Subject: [LIP] Implementation of Data Link Layer protocols # # #Hi all, # #As a part of my Computer Networks course in college I have to=20 #implement some #Data Link Layer protocols. #AFAICT, for communication between two machines, sockets cannot=20 #be used in #this case as use of TCP or UDP sockets would mean the use of a=20 #Transport or #Network Layer service respectively which is not allowed as=20 #only services #offered by lower layers may be used. So this brings me to my=20 #problem : how #to read/write data directly from/to the Physical Layer in C ? If I have #understood properly, this is what a Data Link Layer protocol=20 #is supposed to #do. #Any help and pointers would be gratefully accepted. # # #--------------------------------------------- #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 Oct 10 10:22:46 2000 Received: from exchange1.sset.com (exchange1.sset.com [206.216.5.6]) by www.aunet.org (Postfix) with ESMTP id DDA7A4A0AF for ; Tue, 10 Oct 2000 10:22:42 -0700 (PDT) Received: by exchange1.sset.com with Internet Mail Service (5.5.2650.21) id <429BP4Y3>; Tue, 10 Oct 2000 10:20:08 -0700 Message-ID: <51E0CBE218C9D21188F400805F650E1F89C2F7@exchange1.sset.com> From: Nitin Kakkar To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: Implementation of Data Link Layer protocols Date: Tue, 10 Oct 2000 10:20:07 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/61 I think RAW sockets should provide data Link layer level interface. Look into the man for socket or search for RAW sockets on web. there is a good tutorial out there. HTH Nitin -----Original Message----- From: Amit Goel [mailto:nonu@linux-delhi.org] Sent: Monday, October 09, 2000 11:37 PM To: linux-india-programmers@lists.linux-india.org Subject: Re: [LIP] Implementation of Data Link Layer protocols > Data Link Layer protocols. > AFAICT, for communication between two machines, sockets cannot be used in > this case as use of TCP or UDP sockets would mean the use of a Transport or > Network Layer service respectively which is not allowed as only services Of course using sockets means u r using transport layer services and programming application layer. if u implement sockets that means u r using ip layer and programming transport layer. If u want to write at data link layer .. consider implementing ppp.c or slip.c amit --------------------------------------------- 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 Oct 10 10:34:49 2000 Received: from prodserver1.goatelecom.com (unknown [210.212.161.28]) by www.aunet.org (Postfix) with ESMTP id 0AA6D4A10B for ; Tue, 10 Oct 2000 10:34:27 -0700 (PDT) Received: from gaurav by prodserver1.goatelecom.com (8.9.3/1.1.20.3/07Jul00-0916AM) id XAA0000010760; Tue, 10 Oct 2000 23:02:14 +0530 (IST) Message-ID: <003d01c032e0$2ab2d500$3ba0d4d2@gaurav> From: "Gaurav Priyolkar" To: References: <000201c0321b$9845f040$13a0d4d2@gaurav> <01dc01c03284$9452cc60$300010ac@agoel> Subject: Re: Implementation of Data Link Layer protocols Date: Tue, 10 Oct 2000 23:03:03 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/62 > If u want to write at data link layer .. consider implementing ppp.c or > slip.c Choice of protocol is not the problem. Problem is how exactly to code for writing data to and reading data from Physical Layer. Are there functions in the standard C libraries for doing this? -Gaurav From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 11:03:08 2000 Received: from prodserver1.goatelecom.com (unknown [210.212.161.28]) by www.aunet.org (Postfix) with ESMTP id 03B064A162 for ; Tue, 10 Oct 2000 11:02:42 -0700 (PDT) Received: from gaurav by prodserver1.goatelecom.com (8.9.3/1.1.20.3/07Jul00-0916AM) id XAA0000015495; Tue, 10 Oct 2000 23:30:18 +0530 (IST) Message-ID: <005001c032e4$1ce55de0$3ba0d4d2@gaurav> From: "Gaurav Priyolkar" To: References: <000201c0321b$9845f040$13a0d4d2@gaurav> <200010101648.QAA19634@ccsun50.iitd.ac.in> Subject: Re: Implementation of Data Link Layer protocols Date: Tue, 10 Oct 2000 23:31:04 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/63 > NS home page is > http://www-mash.cs.berkeley.edu/ns/ > Thanks for the tip. I just checked out the site and it does seem very interesting. Can you tell me more about the simulators capabilities? Just the ns source alone is a massive 23.66 megs ... so can you confirm if ns-src-2.1b6.tar.gz was all that you downloaded. -Gaurav. From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 11:09:34 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 4963E49F61 for ; Tue, 10 Oct 2000 11:09:32 -0700 (PDT) Received: from unknown-24-4.pilot.net (unknown-24-4.pilot.net [206.189.24.4]) by unknown-230-101.pilot.net with ESMTP id JAA20559 for ; Tue, 10 Oct 2000 09:58:24 -0400 (EDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-4.pilot.net with ESMTP id GAA14640 for ; Tue, 10 Oct 2000 06:55:20 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id <44HNNL2M>; Tue, 10 Oct 2000 19:33:05 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0242EADD@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: dev Date: Tue, 10 Oct 2000 19:33:19 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200010/64 why is it that we have /dev/fd0 and /dev/hda ? [ i mean not /dev/fda or /dev/hd0 ] Does this have any historical reasons ? Tia, Shourya Shourya.Sarcar@geind.ge.com ______________________________________________________________ Global Software Platforms GE Medical Systems A1 Golden Enclave, Airport Road, Bangalore, India 560 017=20 Tel : +91-80-526 3121|3496 Ext 362=A0 Surf : www.gemedicalsystems.com | www.shourya.com From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 11:17:41 2000 Received: from netscape.com (h-205-217-237-46.netscape.com [205.217.237.46]) by www.aunet.org (Postfix) with ESMTP id 3DAFF4A00A for ; Tue, 10 Oct 2000 11:17:37 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e9AI1eJ12840 for ; Tue, 10 Oct 2000 11:01:41 -0700 (PDT) Received: from netscape.com ([208.12.45.34]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id G287WY01.4HM for ; Tue, 10 Oct 2000 11:12:34 -0700 Message-ID: <39E35C12.D53E2FA7@netscape.com> Date: Tue, 10 Oct 2000 11:12:34 -0700 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 -system command References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/65 "Sachin Shurpali (RBIN/DCA-NMP)" proclaimed: > $dif=$filedot.".err"; > print "\n",$dif,"\n"; > $EXEC="diff $current $verif > $dif"; > > > if(system($EXEC) != 0 ) - > ---------------------------------------------------------error here > { > print $!; Why are you using the system() call? Why not just use backticks (`)? Thaths -- "[muttering] Ow, ow, stupid trash, rotten, stinky, hate world, revenge soon, take out on everyone..." -- Homer J. Simpson Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 11:32:50 2000 Received: from ccsun50.iitd.ac.in (unknown [202.141.71.45]) by www.aunet.org (Postfix) with ESMTP id 2CF334A00C for ; Tue, 10 Oct 2000 11:32:46 -0700 (PDT) Received: (from mau96415@localhost) by ccsun50.iitd.ac.in (8.8.8+Sun/8.8.8) id AAA13949; Wed, 11 Oct 2000 00:07:14 GMT Date: Wed, 11 Oct 2000 00:07:14 GMT Message-Id: <200010110007.AAA13949@ccsun50.iitd.ac.in> From: Harshal Pradhan To: linux-india-programmers@lists.linux-india.org Subject: RE: Implementation of Data Link Layer protocols X-Archive-Number: 200010/66 Hi again Gaurav, Have a look at the so called "packet sockets" man 4 packet You will net to have packet socket enabled in your kernel network options for this to work. Harshal Pradhan From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 20:13:21 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 1208C4A00A for ; Tue, 10 Oct 2000 20:13:14 -0700 (PDT) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id IAA03595 for ; Wed, 11 Oct 2000 08:47:39 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA153F for ; Wed, 11 Oct 2000 08:30:03 +0530 Message-ID: <39E3DAB0.ED6A251F@wipro.com> Date: Wed, 11 Oct 2000 08:42:48 +0530 From: "Vibhu Rishi" X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Memory problems References: <00a901c03229$f5535120$81aa09ca@gdr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/67 Hi, if you are getting out of memory then there are definately some memory leaks in your program. check that out. vibhu.. Delip Rao wrote: > Hello Everybody, > 1) How do I increase the program stack space using cc/c++? > 2) I once got out of memory exception on Linux.Since Linux uses > virtual memory, I think this should not have happened. > Is there any separate set of syscalls for virtual memory? > Thanks. > Bye > > --------------------------------------------- > 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. -- .......................................................................... To know the road ahead, ask those coming back. -Chinese Proverb -------------------------------------------------------------------------- Vibhu Rishi e@ vibhu.rishi@wipro.com Sr. Systems Engineer ring@ 8520408/416/419/420/424/425 WIPRO ext.: 2109 Electronic City - Bangalore -------------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 21:50:33 2000 Received: from nwd2dns5.analog.com (nwd2gtw1.analog.com [137.71.23.34]) by www.aunet.org (Postfix) with ESMTP id 8480249EFB for ; Tue, 10 Oct 2000 21:50:13 -0700 (PDT) Received: from nwd2gtw1 (root@nwd2gtw1dmz1 [137.71.25.98]) by nwd2dns5.analog.com (8.9.3 (PHNE_18979)/8.9.3) with SMTP id AAA02462 for ; Wed, 11 Oct 2000 00:45:31 -0400 (EDT) Received: from ipdc_tokyo.spd.analog.com (root@ipdc_tokyo.spd.analog.com [137.71.79.135]) by zeus.spd.analog.com (8.8.6/8.8.6) with ESMTP id AAA18409 for ; Wed, 11 Oct 2000 00:45:16 -0400 (EDT) Received: from analog.com (IDENT:kouzik@ipdc_tokyo.spd.analog.com [137.71.79.135]) by ipdc_tokyo.spd.analog.com (8.9.3/8.8.7) with ESMTP id KAA14516 for ; Wed, 11 Oct 2000 10:15:51 +0530 Message-ID: <39E3F07F.D61889B2@analog.com> Date: Wed, 11 Oct 2000 10:15:51 +0530 From: Kousik Nandy Organization: Analog Devices Inc. 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: dev References: <1196B5CB33DED311A73700508B6FEB1E0242EADD@ban03xbindge.geind.ge.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/68 "Sarcar, Shourya (MED)" arranged electrons thus: > why is it that we have /dev/fd0 and /dev/hda ? > [ i mean not /dev/fda or /dev/hd0 ] > > Does this have any historical reasons ? Would you buy the idea that `fd' is floppy disk and `hd' refers to hard disk ? ;-) Kousik From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 22:24:25 2000 Received: from vikram.svrec.ernet.in (unknown [202.141.85.15]) by www.aunet.org (Postfix) with ESMTP id B26D349F46 for ; Tue, 10 Oct 2000 22:21:50 -0700 (PDT) Received: from localhost (97co266@localhost) by vikram.svrec.ernet.in (8.8.7/8.8.7) with ESMTP id KAA19413 for ; Wed, 11 Oct 2000 10:42:18 +0530 Date: Wed, 11 Oct 2000 10:42:18 +0530 (IST) From: Shubhendu <97co266@vikram.svrec.ernet.in> To: linux-india-programmers@lists.linux-india.org Subject: perl script not writting to file Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/69 hi all i have recently started perl/cgi, i m traying to write some data ,got from cgi program in a file thorugh perl script , if file permitions are set 766 (i.e. write permition for all ) then the program works fine otherwise it writes nothig in file what should i do ? is it possible to do it with SSI if yes WHO ? shubh From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 23:05:44 2000 Received: from id.eth.net (unknown [202.9.152.12]) by www.aunet.org (Postfix) with ESMTP id 65EEC4A17A for ; Tue, 10 Oct 2000 23:05:35 -0700 (PDT) Received: from wnt04 ([202.9.153.97]) by id.eth.net with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 11 Oct 2000 11:31:32 +0530 Message-ID: <001901c03346$9ed37780$6801010a@incontrolint.in> From: "Anuj Kumar" To: References: Subject: Re: Postgresql instalation on Linux Date: Wed, 11 Oct 2000 11:12:56 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/70 Hi, OK, /etc/rc.d/init.d/postgresql start. You are going in a right way. Now, try to search file name like 'template1'. Is your Linux have file like '/var/lib/pgsql/data/base/template1'? If yes then use "$createdb tempdb" and send me the output. else you can use "$/etc/rc.d/init.d/postgresql restart" and send me the output. regards, Anuj >From: mathew chandy > hi, > > The version of postgresql is 7.0.2. I start postgresql by issuing this > /etc/rc.d/init.d/postgresql start > > mathew > >From: "Anuj Kumar" > >Send your RH ver. and other information. > >try to start your postmaster / postgres services. > >Regards, > >Anuj > >----- Original Message ----- > > > hi, > > > > > > whenever i run psql i get the following message > > > > > > "psql: Missing or erroneous pg_hba.conf file, see postmaster log for > > > details" > > > > > > even after re-instaling postgresql i am not able to run postgresql > > > > > > > > > thanks in advance > > > > > > mathew From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 23:47:07 2000 Received: from linux1 (unknown [203.199.194.1]) by www.aunet.org (Postfix) with SMTP id 8DE4E49F47 for ; Tue, 10 Oct 2000 23:40:39 -0700 (PDT) Received: from sun104 (sun104 [192.9.200.15]) by linux1 (8.6.12/8.6.9) with ESMTP id MAA05430 for ; Wed, 11 Oct 2000 12:08:54 +0530 Date: Wed, 11 Oct 2000 12:08:44 +0530 (IST) From: Nitin Kumar Gupta X-Sender: nitin@sun104 To: linux-india-programmers@lists.linux-india.org Subject: Re: dev In-Reply-To: <39E3F07F.D61889B2@analog.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/71 Hi, he is actually referring to the suffix "a" and "0" The hard disks are hda, hdb, hdc, ... but floppies are fd0, fd1, .... why are numbers used for floppies and alphabets for hds. Regards Nitin On Wed, 11 Oct 2000, Kousik Nandy wrote: > "Sarcar, Shourya (MED)" arranged electrons thus: > > > why is it that we have /dev/fd0 and /dev/hda ? > > [ i mean not /dev/fda or /dev/hd0 ] > > > > Does this have any historical reasons ? > > > Would you buy the idea that `fd' is floppy disk and `hd' refers to > hard disk ? > > ;-) > > Kousik > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ > _____/~-=##=-~\_____ -=+0+=-< Nitin Kumar Gupta >-=+0+=- ~~~~~\_-=##=-_/~~~~~ From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 23:51:24 2000 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id 9DA1F4A1D6 for ; Tue, 10 Oct 2000 23:48:08 -0700 (PDT) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id CAA12183 for ; Wed, 11 Oct 2000 02:43:42 -0400 (EDT) Message-ID: <00a301c0334d$bab5f840$8200000a@aclindia.com> From: "Ambar Roy" To: References: <1196B5CB33DED311A73700508B6FEB1E0242EADD@ban03xbindge.geind.ge.com> Subject: Re: dev Date: Wed, 11 Oct 2000 12:07:19 +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.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200010/72 > why is it that we have /dev/fd0 and /dev/hda ? [ i mean not /dev/fda or > /dev/hd0 ] I guess that this can be explained quite simply! Hard disks are named hda, hda0... because you can divide a hard disk into partitions, so there are two levels of devices, but floppy disks have a single partition, so fda does not make any sense!!! insted you have fd0,fd1,etc... I might not be very clear over here, but i guess that u get the message!!! Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Tue Oct 10 23:55:44 2000 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id C90C64A033 for ; Tue, 10 Oct 2000 23:53:37 -0700 (PDT) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id CAA12937 for ; Wed, 11 Oct 2000 02:49:10 -0400 (EDT) Message-ID: <00a701c0334e$808c7c10$8200000a@aclindia.com> From: "Ambar Roy" To: References: Subject: Re: perl script not writting to file Date: Wed, 11 Oct 2000 12:12:38 +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.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200010/73 > i have recently started perl/cgi, i m traying to write > some data ,got from cgi program in a file thorugh perl script , > if file permitions are set 766 (i.e. write permition for all ) > then the program works fine otherwise it writes nothig in file basically the cgi runs as user nobody, so user nobody shud hav write permissions to the file, if u wan't to write to it!!! also the script has to be executable by all too, for this reason!!! > what should i do ? the best method is to have a subdirectory owned by nobody! that way your script can read/write and create any number of files!! Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Wed Oct 11 00:06:52 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id C12D44A00D for ; Wed, 11 Oct 2000 00:03:59 -0700 (PDT) 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 e9B75YA02602 for ; Wed, 11 Oct 2000 12:35:34 +0530 Message-ID: <39E4106D.F3F84EBA@pspl.co.in> Date: Wed, 11 Oct 2000 12:32:05 +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: dev References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/74 Hi In HDD naming convention a=primary master b=primary slave c=secondary master d=secondary slave. So it's directly mapped from IDE interface. Where as floppy drives can not share same bay or controller. So they are refered as numbers. My opinions. Don't take them for granted. Bye Shridhar Nitin Kumar Gupta wrote: > > why are numbers used for floppies and alphabets for hds. From linux-india-programmers-owner@lists.linux-india.org Wed Oct 11 00:07:00 2000 Received: from inet-smtp3.oracle.com (inet-smtp3.oracle.com [205.227.43.23]) by www.aunet.org (Postfix) with ESMTP id D4C334A162 for ; Wed, 11 Oct 2000 00:05:47 -0700 (PDT) Received: from gmgw01.oraclecorp.com (gmgw01.us.oracle.com [130.35.61.190]) by inet-smtp3.oracle.com (8.9.3/8.9.3) with ESMTP id AAA20386 for ; Wed, 11 Oct 2000 00:01:53 -0700 (PDT) Received: from oracle.com (incq249a.idc.oracle.com [152.69.168.249]) by gmgw01.oraclecorp.com (8.8.8+Sun/8.8.8) with ESMTP id AAA25232 for ; Wed, 11 Oct 2000 00:00:55 -0700 (PDT) Message-ID: <39E40F05.7F5A8A14@oracle.com> Date: Wed, 11 Oct 2000 12:26:05 +0530 From: Arvind Devarajan Organization: Oracle Corporation X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: perl script not writting to file References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/75 hi, this is most probably because the web server in your system is run as the user "nobody" - well, apache on default runs that way. And, the file that you've created might not be belonging to "nobody" - or any user that your web server is running as. Two solutions, could be: 1. Re-start web server with your user id (this might require admin priveliges" 2. Create the file in your CGI script itself. I have not tried any of these though :-) arvind. Shubhendu wrote: > hi all > > i have recently started perl/cgi, i m traying to write > some data ,got from cgi program in a file thorugh perl script , > > if file permitions are set 766 (i.e. write permition for all ) > then the program works fine otherwise it writes nothig in file > > what should i do ? > > is it possible to do it with SSI if yes WHO ? > > shubh > > --------------------------------------------- > 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 Oct 11 02:17:53 2000 Received: from ccsun50.iitd.ac.in (unknown [202.141.70.216]) by www.aunet.org (Postfix) with ESMTP id EE09C4A029 for ; Wed, 11 Oct 2000 02:06:23 -0700 (PDT) Received: (from mau96415@localhost) by ccsun50.iitd.ac.in (8.8.8+Sun/8.8.8) id OAA16738; Wed, 11 Oct 2000 14:40:36 GMT Date: Wed, 11 Oct 2000 14:40:36 GMT Message-Id: <200010111440.OAA16738@ccsun50.iitd.ac.in> From: Harshal Pradhan To: linux-india-programmers@lists.linux-india.org Subject: Re: Implementation of Data Link Layer protocols In-Reply-To: <005001c032e4$1ce55de0$3ba0d4d2@gaurav> References: <000201c0321b$9845f040$13a0d4d2@gaurav> <200010101648.QAA19634@ccsun50.iitd.ac.in> <005001c032e4$1ce55de0$3ba0d4d2@gaurav> X-Archive-Number: 200010/76 Hi, The location of the home page seems to have changed since I was last there and there seems to be a new version out. As far as I remember I got the ns-allinone package. If you are going to download 24 MB, I guess another 7 MB wont hurt anyway :-) IIRC, compiling the thing on Linux used to be a bit of a pain, required hacking around in the Makefile a bit. It doesnt use autoconf/automake. But things might have improved since that time. About the simulator itself; it is a discrete time/discrete event simulator that allows you to model custom protocols, topologies etc etc And since you have the code, you could theoretically model almost anything, given sufficient effort ..... If you have specific questions, mail me directly. I think this is getting a bit offtopic .... HTH, Harshal Gaurav Priyolkar writes: > > NS home page is > > http://www-mash.cs.berkeley.edu/ns/ > > > > Thanks for the tip. > I just checked out the site and it does seem very interesting. Can you tell > me more about the simulators capabilities? Just the ns source alone is a > massive 23.66 megs ... so can you confirm if ns-src-2.1b6.tar.gz was all > that you downloaded. > > -Gaurav. > > > --------------------------------------------- > 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 Oct 11 05:26:42 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 1C9384A1E1 for ; Wed, 11 Oct 2000 05:22:17 -0700 (PDT) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id e9BCHXc26384 for ; Wed, 11 Oct 2000 12:17:33 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8019.fe.bosch.de(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma025331; Wed, 11 Oct 00 12:17:15 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id <4WDFK5KA>; Wed, 11 Oct 2000 14:07:08 +0200 Message-ID: From: "Sachin Shurpali (RBIN/DCA-NMP)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Perl -system command Date: Wed, 11 Oct 2000 14:07:08 +0200 Importance: high X-Priority: 1 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200010/77 The following warning is displayed Warning: missing newline at end of file I am briefing on how file XYZ is created The script calls an executable which will create file XYZ This is compared for difference with an already existing reference file and the difference is logged to a .err file. The problem is coming at this step. Even with (` `) same was the case However system() always gives "Interrupted System Call" error Please help. -----Original Message----- From: Sudhakar Chandra [SMTP:thaths@netscape.com] Sent: Tuesday, October 10, 2000 11:43 PM To: linux-india-programmers@lists.linux-india.org Subject: Re: [LIP] Perl -system command "Sachin Shurpali (RBIN/DCA-NMP)" proclaimed: > $dif=$filedot.".err"; > print "\n",$dif,"\n"; > $EXEC="diff $current $verif > $dif"; > > > if(system($EXEC) != 0 ) - > ---------------------------------------------------------error here > { > print $!; Why are you using the system() call? Why not just use backticks (`)? Thaths -- "[muttering] Ow, ow, stupid trash, rotten, stinky, hate world, revenge soon, take out on everyone..." -- Homer J. Simpson Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave --------------------------------------------- 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 Oct 11 09:28: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 524D74A024 for ; Wed, 11 Oct 2000 09:28:54 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA21277 for linux-india-programmers@lists.linux-india.org; Wed, 11 Oct 2000 09:22:04 -0700 Date: Wed, 11 Oct 2000 09:22:04 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: basic memory division question Message-ID: <20001011092204.A21268@sharmas.dhs.org> References: <39EDA20D@MailAndNews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <39EDA20D@MailAndNews.com>; from kameshj@MailAndNews.com on Tue, Oct 10, 2000 at 01:47:39AM -0400 X-Archive-Number: 200010/78 On Tue, Oct 10, 2000 at 01:47:39AM -0400, kamesh jayachandran wrote: > Hello, > It is the question in my mind for long.Even though it may be trivial ,i think > of asking it to the group. > The question is > How the Physical Memory is divided in among USER and KERNEL space. It's not divided strictly. Both of them allocate memory from the same pool of pages created at startup. What is divided is the virtual memory 0->0xc0000000 for user and the rest for the kernel. > I mean the > amount of memory allocated for both.And starting address of both the Kernel > space and User Space. > Longtime before i have seen in the list that Kernel is getting loaded at > 0xc0010000+X where X is getting translated to physical address. That is a virtual address. Since linux uses 1:1 virtual->physical mapping 0xc0000000 virtual = 0 physical, scheme and the kernel gets loaded at 0x100000 physical, it appears at 0xc0100000 virtual once the processor is switched to virtual mode. More details on this beyond the scope of a mail - you might want to read some linux kernel book. -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Oct 11 09:31: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 705A54A0E5 for ; Wed, 11 Oct 2000 09:31:37 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA21304 for linux-india-programmers@lists.linux-india.org; Wed, 11 Oct 2000 09:24:51 -0700 Date: Wed, 11 Oct 2000 09:24:51 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Perl -system command Message-ID: <20001011092451.B21268@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 Sachin.Shurpali@in.bosch.com on Tue, Oct 10, 2000 at 02:04:25PM +0200 X-Archive-Number: 200010/79 On Tue, Oct 10, 2000 at 02:04:25PM +0200, Sachin Shurpali (RBIN/DCA-NMP) wrote: > > It generated Interrupted System Call error message > This typically happens when a process is sleeping in the kernel and a signal gets delivered to it. In this case, I'm guessing the signal is SIGCHLD. You might want to strace the process to confirm this. -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Oct 11 11:28:47 2000 Received: from smtp1.mail.yahoo.com (smtp1.mail.yahoo.com [128.11.69.60]) by www.aunet.org (Postfix) with SMTP id B357F4A014 for ; Wed, 11 Oct 2000 11:23:45 -0700 (PDT) Received: from unknown (HELO shastri) (202.9.170.178) by smtp.mail.vip.suc.yahoo.com with SMTP; 11 Oct 2000 17:58:47 -0000 X-Apparently-From: Message-ID: <000f01c03312$e46ab440$b2aa09ca@shastri> From: "Sitaram Shastri" To: "Linux India Programmers" Subject: Re: Implementation of Data Link Layer protocols Date: Wed, 11 Oct 2000 05:03:06 +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: 200010/80 hi gaurav try SOCK_PACKET.it gives you sys calls to read write from the nic directly. search the net for this, or consult unix n/w programming by stevens.i think it's the 3rd edition. regards, sitaram shastri _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Wed Oct 11 20:20:21 2000 Received: from deephome.sci.tech (unknown [202.9.170.33]) by www.aunet.org (Postfix) with ESMTP id 9E3E74A026 for ; Wed, 11 Oct 2000 20:20:15 -0700 (PDT) Received: from deephome.sci.tech (IDENT:dj@localhost.localdomain [127.0.0.1]) by deephome.sci.tech (8.9.3/8.8.7) with SMTP id IAA01264; Thu, 12 Oct 2000 08:44:38 +0530 Message-Id: <200010120314.IAA01264@deephome.sci.tech> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 From: "Joglekar@eth.net" To: linux-india-programmers@lists.linux-india.org, linux-india-programmers@lists.linux-india.org, Arvind Devarajan Reply-To: "Joglekar@eth.net" Subject: Re: perl script not writting to file X-Mailer: CSCMail v1.6.0 Date: 12 Oct 2000 08:44:33 IST X-Archive-Number: 200010/81 On Wed, 11 Oct 2000 12:26:05 +0530, Arvind Devarajan said: > hi, > this is most probably because the web server in your system is run > as the user "nobody" - well, apache on default runs that way. And, the > file that you've created might not be belonging to "nobody" - or any > user that your web server is running as. > Two solutions, could be: > > 1. Re-start web server with your user id (this might require admin > priveliges" > 2. Create the file in your CGI script itself. > It is always better to run apache (httpd) as user nobody from security reasons. If you want the file to store data read/write to it with CGI script then create subdir with owner.group as nobody.nobody. Script can access it. If you want any other user permissions then you can use following as first line of script instead of usual '#!/usr/bin/perl' Read perl docs for 'suidperl' > Shubhendu wrote: > > > hi all > > > > i have recently started perl/cgi, i m traying to write > > some data ,got from cgi program in a file thorugh perl script , > > > > if file permitions are set 766 (i.e. write permition for all ) > > then the program works fine otherwise it writes nothig in file > > > > what should i do ? > > > > is it possible to do it with SSI if yes WHO ? > > > > shubh > > > > --------------------------------------------- > > 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 > -- Deepak Joglekar deepak@indiamail.com From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 08:47:03 2000 Received: from cdacb.ernet.in (cdacb.ernet.in [202.141.63.1]) by www.aunet.org (Postfix) with ESMTP id B90D44A1A5 for ; Thu, 12 Oct 2000 08:46:57 -0700 (PDT) Received: from localhost (chaitu@localhost) by cdacb.ernet.in (8.9.2/8.9.2) with ESMTP id KAA17384 for ; Thu, 12 Oct 2000 10:12:45 -0500 (GMT) Date: Thu, 12 Oct 2000 10:12:45 -0500 (GMT) From: Y V Chaitanya Kumar To: linux-india-programmers@lists.linux-india.org Subject: query about profile info Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/82 If we compile a c-program with cc -p option and run the application, it generates profile info for each task in PROFDIR. But gcc is not supporting the PROFDIR environment variable to create profiles.Is there any alternative to generate profiles using gcc. From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 08:47:11 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id ED76F4A28A for ; Thu, 12 Oct 2000 08:47:05 -0700 (PDT) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id RAA21272 for ; Thu, 12 Oct 2000 17:47:13 GMT Received: from wipro.com ([192.168.174.72]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA2C2A for ; Thu, 12 Oct 2000 17:29:05 +0530 Message-ID: <39E5A85A.D2C47468@wipro.com> Date: Thu, 12 Oct 2000 17:32:34 +0530 From: "Rajani K" Reply-To: rajani.jay@wipro.com Organization: Enterprise Solutions X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux Subject: C Program Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/83 Hi All!! heres a piece of C code, #include int add(int a, int b) { printf ( "\n I am there \n" ); } main() { printf("\n%x",add); printf("\n%x",*add); printf("\n%x",*(*(*(*add)))); } The Compiler does not crib. The program gets built and the result prints the same value for all the above three printfs. What can be the probable reason ? TIA!! Cheers Rajani From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 08:49:51 2000 Received: from web509.mail.yahoo.com (web509.mail.yahoo.com [216.115.104.224]) by www.aunet.org (Postfix) with SMTP id 273B74A172 for ; Thu, 12 Oct 2000 08:49:18 -0700 (PDT) Message-ID: <20001012135739.28622.qmail@web509.mail.yahoo.com> Received: from [202.141.63.193] by web509.mail.yahoo.com; Thu, 12 Oct 2000 06:57:39 PDT Date: Thu, 12 Oct 2000 06:57:39 -0700 (PDT) From: Chaitanya Yenuga Reply-To: yenuga2@yahoo.com Subject: How to generate profiles using gcc? To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/84 With cc (c compiler) if i compile a c-program using the -pg option, and i run the executable, it creates profiles with names pid.exename for each process that is spawned in PROFDIR (provided PROFDIR environment varible is set). How to generate the same kind of output using gcc ? Does it support PROFDIR environment variable ? If not is there any alternative to get the profiles as like with cc. __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 09:21:27 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 1FBBB49F60 for ; Thu, 12 Oct 2000 09:21:26 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA23484 for linux-india-programmers@lists.linux-india.org; Thu, 12 Oct 2000 09:14:35 -0700 Date: Thu, 12 Oct 2000 09:14:35 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: query about profile info Message-ID: <20001012091435.A23397@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 chaitu@cdacb.ernet.in on Thu, Oct 12, 2000 at 10:12:45AM -0500 X-Archive-Number: 200010/85 On Thu, Oct 12, 2000 at 10:12:45AM -0500, Y V Chaitanya Kumar wrote: > If we compile a c-program with cc -p option and run the application, it > generates profile info for each task in PROFDIR. But gcc is not supporting > the PROFDIR environment variable to create profiles.Is there any > alternative to generate profiles using gcc. man gprof. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 09:28: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 9EF9A49F48 for ; Thu, 12 Oct 2000 09:28:18 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA23513 for linux-india-programmers@lists.linux-india.org; Thu, 12 Oct 2000 09:21:28 -0700 Date: Thu, 12 Oct 2000 09:21:28 -0700 From: Arun Sharma To: linux Subject: Re: C Program Message-ID: <20001012092128.B23397@sharmas.dhs.org> References: <39E5A85A.D2C47468@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <39E5A85A.D2C47468@wipro.com>; from rajani.jay@wipro.com on Thu, Oct 12, 2000 at 05:32:34PM +0530 X-Archive-Number: 200010/86 On Thu, Oct 12, 2000 at 05:32:34PM +0530, Rajani K wrote: > Hi All!! > > heres a piece of C code, > From the C faq: 10.10: I've seen different methods used for calling through pointers to functions. What's the story? A: Originally, a pointer to a function had to be "turned into" a "real" function, with the * operator (and an extra pair of parentheses, to keep the precedence straight), before calling: int r, func(), (*fp)() = func; r = (*fp)(); It can also be argued that functions are always called through pointers, but that "real" functions decay implicitly into pointers (in expressions, as they do in initializations) and so cause no trouble. This reasoning, made widespread through pcc and adopted in the ANSI standard, means that r = fp(); is legal and works correctly, whether fp is a function or a pointer to one. (The usage has always been unambiguous; there is nothing you ever could have done with a function pointer followed by an argument list except call through it.) An explicit * is harmless, and still allowed (and recommended, if portability to older compilers is important). References: ANSI Sec. 3.3.2.2 p. 41, Rationale p. 41. From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 09:56:50 2000 Received: from ccsun50.iitd.ac.in (unknown [202.141.69.222]) by www.aunet.org (Postfix) with ESMTP id D3B2E49F45 for ; Thu, 12 Oct 2000 09:56:43 -0700 (PDT) Received: (from mau96415@localhost) by ccsun50.iitd.ac.in (8.8.8+Sun/8.8.8) id WAA22778; Thu, 12 Oct 2000 22:31:04 GMT Date: Thu, 12 Oct 2000 22:31:04 GMT Message-Id: <200010122231.WAA22778@ccsun50.iitd.ac.in> From: Harshal Pradhan To: linux-india-programmers@lists.linux-india.org Subject: query about profile info In-Reply-To: References: X-Archive-Number: 200010/87 Hi, Compile the program you want to profile with the -pg option. On running the program a file calles gmon.out will be created in the current working directory which contains the profiling information. You can then run gprof on it. I dont know if the PROFDIR variable is supported or not. Harshal Y. V. Chaitanya Kumar writes: > If we compile a c-program with cc -p option and run the application, it > generates profile info for each task in PROFDIR. But gcc is not supporting > the PROFDIR environment variable to create profiles.Is there any > alternative to generate profiles using gcc. From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 10:20:41 2000 Received: from natsemi-bh.nsc.com (natsemi-bh.nsc.com [204.163.202.66]) by www.aunet.org (Postfix) with ESMTP id E2CCF4A2B9 for ; Thu, 12 Oct 2000 10:20:38 -0700 (PDT) Received: (from uucp@localhost) by natsemi-bh.nsc.com (8.8.8/8.6.11) id KAA10877; Thu, 12 Oct 2000 10:15:50 -0700 (PDT) From: sojan@malkauns.nsc.com Received: from nsc.nsc.com(139.187.81.1) by natsemi-bh.nsc.com via smap (4.1) id xma010333; Thu, 12 Oct 00 10:14:32 -0700 Received: from malkauns.malkauns.nsc.com (malkauns.nsc.com [139.187.83.131]) by nsc.nsc.com (8.9.3+Sun/8.9.3) with SMTP id KAA02525; Thu, 12 Oct 2000 10:14:24 -0700 (PDT) Received: from indira by malkauns.malkauns.nsc.com (SMI-8.6/SMI-SVR4) id WAA22052; Thu, 12 Oct 2000 22:53:06 GMT Date: Thu, 12 Oct 2000 22:53:51 +0500 (GMT-5) X-Sender: sojan@idc-sw1.nsc.com To: Rajani K Cc: linux Subject: Re: C Program In-Reply-To: <39E5A85A.D2C47468@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/88 Wow!...this is interesting. Here is a gdb session on the file.. (gdb) break 10 Breakpoint 1 at 0x80483df: file tt.c, line 10. (gdb) r Starting program: /home10/sojan/./a.out Breakpoint 1, main () at tt.c:10 10 printf("\n%x",add); (gdb) p add $1 = {int (int, int)} 0x80483c8 (gdb) p *add $2 = {int (int, int)} 0x80483c8 (gdb) p *(*add) $3 = {int (int, int)} 0x80483c8 (gdb) p add(2,3) I am there $4 = 14 (gdb) Is this in some way related to the fact that we need not dereference a pointer to a function to call it?....but it still doesn't make sense, does it? On Thu, 12 Oct 2000, Rajani K wrote: > Hi All!! > > heres a piece of C code, > > #include > > int add(int a, int b) > { > printf ( "\n I am there \n" ); > } > > main() > { > printf("\n%x",add); > printf("\n%x",*add); > printf("\n%x",*(*(*(*add)))); > } > > The Compiler does not crib. The program gets built and > the result prints the same value for all the above three printfs. > What can be the probable reason ? > > TIA!! > > Cheers > Rajani > > > --------------------------------------------- > 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. > -- Sojan James Consultant, National Semi. India Designs Ltd. 7/6 Brunton Road, Bangalore 560025. India. Ph: 5587918/919/920 ext. 308 From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 10:51:20 2000 Received: from ccsun50.iitd.ac.in (unknown [202.141.69.222]) by www.aunet.org (Postfix) with ESMTP id C363F49F4B for ; Thu, 12 Oct 2000 10:51:15 -0700 (PDT) Received: (from mau96415@localhost) by ccsun50.iitd.ac.in (8.8.8+Sun/8.8.8) id XAA24062; Thu, 12 Oct 2000 23:25:37 GMT Date: Thu, 12 Oct 2000 23:25:37 GMT Message-Id: <200010122325.XAA24062@ccsun50.iitd.ac.in> From: Harshal Pradhan To: linux-india-programmers@lists.linux-india.org Subject: core files X-Archive-Number: 200010/89 Hi, I dont seem to get any core dump after a program segfaults.This is on a freshly installed debian box. I checked /etc/security/limits.conf to see if any limits had been set through PAM. But that is not the case. Does anyone know what debian does (out of the box) that causes core dumps to be disabled ? TIA, Harshal From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 10:58:21 2000 Received: from ccsun50.iitd.ac.in (unknown [202.141.69.222]) by www.aunet.org (Postfix) with ESMTP id 0E08C4A015 for ; Thu, 12 Oct 2000 10:58:17 -0700 (PDT) Received: (from mau96415@localhost) by ccsun50.iitd.ac.in (8.8.8+Sun/8.8.8) id XAA24169; Thu, 12 Oct 2000 23:32:38 GMT Date: Thu, 12 Oct 2000 23:32:38 GMT Message-Id: <200010122332.XAA24169@ccsun50.iitd.ac.in> From: Harshal Pradhan To: linux-india-programmers@lists.linux-india.org Subject: core files In-Reply-To: <200010122325.XAA24062@ccsun50.iitd.ac.in> References: <200010122325.XAA24062@ccsun50.iitd.ac.in> X-Archive-Number: 200010/90 Harshal Pradhan writes: > Does anyone know what debian does (out of the box) that causes core > dumps to be disabled ? Oops, I forgot all about bash ulimits ...... Setting ulimit -c unlimited makes things right again. Thanks anyway, Harshal From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 20:30: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 D650E4A098 for ; Thu, 12 Oct 2000 20:30:27 -0700 (PDT) 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 UAA06706 for ; Thu, 12 Oct 2000 20:25:38 -0700 (PDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-15.pilot.net with ESMTP id UAA00563 for ; Thu, 12 Oct 2000 20:25:37 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id <4ZPHK1LG>; Fri, 13 Oct 2000 09:04:09 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E024D2C96@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: query about profile info Date: Fri, 13 Oct 2000 09:04:15 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/91 profilers around the world are very environment different . the gnu profiler is gprof. so do not expect the PROFDIR env to be on all systems. BTW, on which platform are you using cc.. i mean cc is a very generic name for C compilers and hardly provides any information. On IRIX, man speedshop Shourya #-----Original Message----- #From: Y V Chaitanya Kumar [mailto:chaitu@cdacb.ernet.in] #Sent: Thursday, October 12, 2000 8:43 PM #To: linux-india-programmers@lists.linux-india.org #Subject: [LIP] query about profile info # # #If we compile a c-program with cc -p option and run the application, it #generates profile info for each task in PROFDIR. But gcc is #not supporting #the PROFDIR environment variable to create profiles.Is there any #alternative to generate profiles using gcc. # # # #--------------------------------------------- #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 Oct 12 21:47:45 2000 Received: from inet-smtp4.us.oracle.com (inet-smtp4.oracle.com [209.246.15.58]) by www.aunet.org (Postfix) with ESMTP id 6A4D24A01A for ; Thu, 12 Oct 2000 21:47:42 -0700 (PDT) Received: from gmgw01.oraclecorp.com (gmgw01.us.oracle.com [130.35.61.190]) by inet-smtp4.us.oracle.com (8.9.3/8.9.3) with ESMTP id VAA28979 for ; Thu, 12 Oct 2000 21:42:52 -0700 (PDT) Received: from oracle.com (incq249a.idc.oracle.com [152.69.168.249]) by gmgw01.oraclecorp.com (8.8.8+Sun/8.8.8) with ESMTP id VAA29940 for ; Thu, 12 Oct 2000 21:42:50 -0700 (PDT) Message-ID: <39E6923F.2C1CC64E@oracle.com> Date: Fri, 13 Oct 2000 10:10:32 +0530 From: Arvind Devarajan Organization: Oracle Corporation X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux Subject: Re: C Program References: <39E5A85A.D2C47468@wipro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/92 hi, this is true: we all know that the name of a function is a pointer to itself. well, that being the case, if func() is the function, "func" is a pointer to func(). and, if (*fp)() = func, and, if you could "call" the function func() as "func()" (i.e., use the "pointer" "func"), you could also use another pointer to func - fp for calling it, i.e., you could use fp() - having the same effect as func(). the linux kernel code makes heavy use of this fact. while fd = open(...) is a file descriptor identifying a file on the hard disk (or a device, etc.), sd=socket(...) identifies a socket. now, a read() with fd activates the filesystem code, read() with sd activates the network sub-system. internal to the kernel, the file_operations structure contains pointers to various pointers to functions performing read, write, etc. of the file. when an open() is called, a new file_operations structure is malloc()ed (kalloced), and the file system read(), write() etc. functions are assigned to these pointers. when a socket() is used, the same structure is used, but, now, read(), write() etc. are assigned sock_read(), sock_write(), etc. the actual call of the system call read() or write() by the user actually gets translated to file_ops -> read(), file_ops -> write(), etc. i.e, read() and write() is used as function calls, though they have been declared as "pointers to functions". and, if fp() and func() both refer to the same, (*fp)() and (*func)() too... arvind. Rajani K wrote: > Hi All!! > > heres a piece of C code, > > #include > > int add(int a, int b) > { > printf ( "\n I am there \n" ); > } > > main() > { > printf("\n%x",add); > printf("\n%x",*add); > printf("\n%x",*(*(*(*add)))); > } > > The Compiler does not crib. The program gets built and > the result prints the same value for all the above three printfs. > What can be the probable reason ? > > TIA!! > > Cheers > Rajani > > --------------------------------------------- > 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 Oct 12 22:50:43 2000 Received: from unknown (unknown [210.214.82.71]) by www.aunet.org (Postfix) with SMTP id C4A604A015; Thu, 12 Oct 2000 22:50:26 -0700 (PDT) From: Subject: WORK WITH AMERICAN COMPANY Date: Fri, 13 Oct 2000 07:40:47 Message-Id: <20001013055026.C4A604A015@www.aunet.org> X-Archive-Number: 200010/93 Hello ! International AMERICAN company in grand expansion all over the world that works 20 years in 49 countries looks for : * Motivated & serious people that really want to work hard and earn very good money based on own efforts. * Part time work even from your home. * Management work combined travelling around the world. If you are interested in one or more from the subjects above, please send us your curriculum vita or your telephone number. We'll happy to assist you. alojetics crew. Our e-mail address : alojetic@satyam.net.in Phone : 011 - 6966091 / 011 - 6520632 Mobile : 98-100-93661 Voicemail : 9396060 Fax : 011 - 6520636 From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 23:32:56 2000 Received: from id.eth.net (unknown [202.9.152.12]) by www.aunet.org (Postfix) with ESMTP id ED6A34A0FF; Thu, 12 Oct 2000 23:32:50 -0700 (PDT) Received: from wnt04 ([202.9.153.124]) by id.eth.net with Microsoft SMTPSVC(5.5.1877.197.19); Fri, 13 Oct 2000 11:58:47 +0530 Message-ID: <000e01c034dc$c3a5b400$6801010a@incontrolint.in> From: "Anuj Kumar" To: Cc: Subject: Linking problems Date: Fri, 13 Oct 2000 11:36:58 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/94 Hi Guys, Problem -one:-------- I want to use / And .. I have linking error. Because I don't know linking options. I am using gcc complier. Please, I required your valuable guidance. Thanks in Advance. Anuj From linux-india-programmers-owner@lists.linux-india.org Thu Oct 12 23:52:36 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.129]) by www.aunet.org (Postfix) with ESMTP id 0AC2F4A111 for ; Thu, 12 Oct 2000 23:52:07 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@sahyadri.bombay.retortsoft.com [192.168.100.80]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id MAA26780; Fri, 13 Oct 2000 12:18:03 +0530 Received: (from amar@localhost) by localhost.localdomain (8.9.3/8.9.3) id GAA10312; Fri, 13 Oct 2000 06:49:13 +0530 Date: Fri, 13 Oct 2000 06:49:13 +0530 From: Amarendra GODBOLE To: linux-india-programmers@lists.linux-india.org Cc: helper@satyam.net.in Subject: Re: WORK WITH AMERICAN COMPANY Message-ID: <20001013064913.A10309@sahyadri.bombay.retortsoft.com> References: <20001013055026.C4A604A015@www.aunet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20001013055026.C4A604A015@www.aunet.org>; from helper@satyam.net.in on Fri, Oct 13, 2000 at 07:40:47AM +0000 X-Quote: "If you don't try to succeed, nobody will try to stop you." X-Friends: Shailesh, Shantanu, Sameer, Prachi, Dinesh. X-Home: amar.gnu-linux.net X-Organisation: Retort Software Pvt. Ltd., Powai, Mumbai. INDIA. X-Archive-Number: 200010/95 On Fri, Oct 13, 2000, the greycells of helper@satyam.net.in expressed: > Hello ! > > International AMERICAN company in grand expansion all over the > world that works 20 years in 49 countries looks for : > > * Motivated & serious people that really want to work hard and [snipped] This is _NOT_ the place to put up such ads.. Advice: Why not put up in a newspaper ? -- /\ |\/| /\ r e |\| d r /\ http://www.crosswinds.net/~amargod http://amar.gnu-linux.net From linux-india-programmers-owner@lists.linux-india.org Fri Oct 13 00:36:50 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id C3B374A010 for ; Fri, 13 Oct 2000 00:29:45 -0700 (PDT) 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 e9D7V4b22524 for ; Fri, 13 Oct 2000 13:01:04 +0530 Message-ID: <39E6B973.14BB0838@pspl.co.in> Date: Fri, 13 Oct 2000 12:57:47 +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: Linking problems References: <000e01c034dc$c3a5b400$6801010a@incontrolint.in> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/96 Hi Exact error messages will help. Anyway try following. 1)rpm -ql `rpm -qa | grep ncurses`|more Find out libraries i.e. .so file in this listing and try to specify it as -l option on gcc command line. Something like this. $ gcc -o first -lcurses first.c If you have a shared library as libname.so., then command line option will be -lname. Remeber that. HTH Bye Shridhar Anuj Kumar wrote: > Hi Guys, > > Problem -one:-------- > > I want to use / And .. > I have linking error. Because I don't know linking options. > I am using gcc complier. > > Please, I required your valuable guidance. > Thanks in Advance. > Anuj > > --------------------------------------------- > 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 Oct 13 12:10:35 2000 Received: from web9504.mail.yahoo.com (web9504.mail.yahoo.com [216.136.129.134]) by www.aunet.org (Postfix) with SMTP id 4AEBA4A0C2 for ; Fri, 13 Oct 2000 12:10:31 -0700 (PDT) Message-ID: <20001013190539.87985.qmail@web9504.mail.yahoo.com> Received: from [203.197.61.123] by web9504.mail.yahoo.com; Fri, 13 Oct 2000 12:05:39 PDT Date: Fri, 13 Oct 2000 12:05:39 -0700 (PDT) From: Vicky Plaha Subject: Re: WORK WITH AMERICAN COMPANY To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/97 Hi, Could you send me more details? for Netalive Solutions VICKY --- helper@satyam.net.in wrote: > Hello ! > > International AMERICAN company in grand expansion > all over the > world that works 20 years in 49 countries looks for > : > > * Motivated & serious people that really want to > work hard and > earn very good money based on own efforts. > > * Part time work even from your home. > > * Management work combined travelling around the > world. > > If you are interested in one or more from the > subjects above, > please send us your curriculum vita or your > telephone number. > > We'll happy to assist you. > > alojetics crew. > > Our e-mail address : alojetic@satyam.net.in > > Phone : 011 - 6966091 / 011 - 6520632 > > > Mobile : 98-100-93661 Voicemail : 9396060 > > Fax : 011 - 6520636 > > > > > > > > > > --------------------------------------------- > 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 __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sat Oct 14 03:32:17 2000 Received: from prodserver1.goatelecom.com (unknown [210.212.161.28]) by www.aunet.org (Postfix) with ESMTP id 1864C4A02C for ; Sat, 14 Oct 2000 03:32:05 -0700 (PDT) Received: from gaurav by prodserver1.goatelecom.com (8.9.3/1.1.4.2/09Jun00-0241PM) id PAA0000014514; Sat, 14 Oct 2000 15:59:39 +0530 (IST) Message-ID: <001901c035c9$d051e320$20a0d4d2@gaurav> From: "Gaurav Priyolkar" To: Subject: raw/packet sockets Date: Sat, 14 Oct 2000 16:00:38 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/98 Hi all, This is once again with reference to the question about implementing protocols that I had earlier for which I thank all those who helped. Regarding the two suggestions offered, I have as yet been unable to download 'ns' and I am going ahead with using packet sockets. Now regarding the use of packet sockets I have a question: Only superuser is allowed to create packet or raw sockets. So, in a program, would I have to ask the user to enter root password, then do a 'su -' , create the sockets followed by an 'exit' system call? Or is there an alternative method ? Also, should such system programs be object oriented or procedural? My thinking is that they should be probably be procedural. From linux-india-programmers-owner@lists.linux-india.org Sat Oct 14 03:58:04 2000 Received: from bgl.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id A2AA44A044 for ; Sat, 14 Oct 2000 03:58:02 -0700 (PDT) Received: from linux.local (PPP-178-199.bng.vsnl.net.in [203.197.178.199]) by bgl.vsnl.net.in (Postfix) with ESMTP id 4CC2D6003 for ; Sat, 14 Oct 2000 16:17:11 +0530 (IST) Received: from user (unknown [192.168.0.12]) by linux.local (Postfix) with SMTP id 9FA37A54 for ; Sat, 14 Oct 2000 16:22:20 +0530 (IST) Message-ID: <000701c035cc$8ee13be0$0c00a8c0@user> From: "demon" To: References: <001901c035c9$d051e320$20a0d4d2@gaurav> Subject: ipchains Date: Sat, 14 Oct 2000 16:20:20 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/99 Hi all, can anyone please enlighten me about ipchains, scripts? good sources dealing with ipchains? Thanks, Keerthi From linux-india-programmers-owner@lists.linux-india.org Sat Oct 14 04:38:38 2000 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id 4BAC84A015 for ; Sat, 14 Oct 2000 04:38:36 -0700 (PDT) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id HAA15849 for ; Sat, 14 Oct 2000 07:33:58 -0400 (EDT) Message-ID: <003401c035d1$c66245a0$8200000a@aclindia.com> From: "Ambar Roy" To: References: <001901c035c9$d051e320$20a0d4d2@gaurav> <000701c035cc$8ee13be0$0c00a8c0@user> Subject: Re: ipchains Date: Sat, 14 Oct 2000 16:57:35 +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.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200010/100 > Hi all, can anyone please enlighten me about ipchains, scripts? good sources > dealing with ipchains? try the ipchains howto.. on my rh 6.2 box they are at /usr/doc/ipchains..... Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Sat Oct 14 06:01:39 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 3103D4A02A for ; Sat, 14 Oct 2000 06:01:37 -0700 (PDT) Received: from unknown-24-5.pilot.net (unknown-24-5.pilot.net [206.189.24.5]) by unknown-147.101.pilot.net with ESMTP id FAA07064 for ; Sat, 14 Oct 2000 05:56:42 -0700 (PDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-5.pilot.net with ESMTP id FAA16221 for ; Sat, 14 Oct 2000 05:56:40 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id <45PZFYMM>; Sat, 14 Oct 2000 18:35:13 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0254AB73@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: raw/packet sockets Date: Sat, 14 Oct 2000 18:03:05 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200010/101 Gaurav, 1. do a little readup on effective user id and real user id. I think it is covered in advanced programming on unix , rich stevens. that should answer your queries. 2. at the socket level, things are usually procedural. but that is very unsafe due to a whole lot of reasons, doesn't scale well, can be arued to be not-very-robust etc. etc. that is why you have frameworks like ACE coming up For more on network oo progmng, please read this paper http://www.cs.wustl.edu/~schmidt/PDF/C++-report-col1.pdf Warmest regards and wish you all the best on your work Shourya Shourya.Sarcar@geind.ge.com ______________________________________________________________ Global Software Platforms GE Medical Systems A1 Golden Enclave, Airport Road, Bangalore, India 560 017=20 Tel : +91-80-526 3121|3496 Ext 362=A0 Surf : www.gemedicalsystems.com | www.shourya.com #-----Original Message----- #From: Gaurav Priyolkar [mailto:pgaurav@goatelecom.com] #Sent: Saturday, October 14, 2000 4:01 PM #To: linux-india-programmers@lists.linux-india.org #Subject: [LIP] raw/packet sockets # # #Hi all, # #This is once again with reference to the question about implementing #protocols that I had earlier for which I thank all those who helped. #Regarding the two suggestions offered, I have as yet been=20 #unable to download #'ns' and I am going ahead with using packet sockets. Now=20 #regarding the use #of packet sockets I have a question: #Only superuser is allowed to create packet or raw sockets. So,=20 #in a program, #would I have to ask the user to enter root password, then do a 'su -' , #create the sockets followed by an 'exit' system call? Or is there an #alternative method ? # #Also, should such system programs be object oriented or procedural? My #thinking is that they should be probably be procedural. # # # # #--------------------------------------------- #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 Sat Oct 14 08:01:28 2000 Received: from hanuman.aukbc.org (unknown [203.197.142.200]) by www.aunet.org (Postfix) with ESMTP id 4B9784A01A for ; Sat, 14 Oct 2000 08:01:22 -0700 (PDT) Received: from localhost (IDENT:mksarav@localhost [127.0.0.1]) by hanuman.aukbc.org (8.9.3/8.9.3) with ESMTP id UAA03324 for ; Sat, 14 Oct 2000 20:32:53 +0530 Date: Sat, 14 Oct 2000 20:32:53 +0530 (IST) From: M K Saravanan To: linux-india-programmers@lists.linux-india.org Subject: Re: ipchains In-Reply-To: <000701c035cc$8ee13be0$0c00a8c0@user> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/102 On Sat, 14 Oct 2000, demon wrote: > Hi all, can anyone please enlighten me about ipchains, scripts? good sources > dealing with ipchains? read IPCHAINS-HOWTO -- mks -- -- ******************************************************************** M K Saravanan, Member Research Staff, The AU-KBC Centre for Internet & Telecom Technologies, Madras Institute of Technology, Anna University, Chromepet, Chennai 600 044. Tamilnadu, INDIA Tel (O): 91 44 2417885 Email: mksarav@mitindia.edu Telefax (O): 91 44 2402711 URL : http://mksarav.tripod.com ******************************************************************* From linux-india-programmers-owner@lists.linux-india.org Sat Oct 14 11:51:35 2000 Received: from nick.nikhilwiz.net (unknown [202.63.115.26]) by www.aunet.org (Postfix) with ESMTP id 7FCD749F4B; Sat, 14 Oct 2000 11:50:49 -0700 (PDT) Received: (from nikhil@localhost) by nick.nikhilwiz.net (8.10.2/8.10.2) id e9EIx1c01336; Sun, 15 Oct 2000 00:29:01 +0530 X-Authentication-Warning: nick.nikhilwiz.net: nikhil set sender to nikhilwiz@yahoo.com using -f Date: Sun, 15 Oct 2000 00:29:01 +0530 From: Nick Hill To: ilughyd@egroups.com Cc: linux-india-general@lists.linux-india.org, linux-india-programmers@lists.linux-india.org Subject: ANNOUNCE : GnomeMsg Message-ID: <20001015002901.A1289@nick.nikhilwiz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.2i X-Operating-System: Linux nick 2.4.0-test8 X-Archive-Number: 200010/103 Hi guys... I hope u remember a tiny announcement i made on this list a while ago, talking about my pet project GnomeMsg. There was only a CVS version available then. Now, I've made a release (0.1). Those who want to give it a try can look into it. The URL is http://gnomemsg.sourceforge.net Please send me any bugs u manage to find. The website is full of crappy HTML/PHP. The Screenshots section isn't up, so please dont tell me about that. If someone has the patience to make some, please do, and send me a copy, and i'll put it up. The Messenger is NOT YET multi-threaded and will appear to hang when its communicating with the server or with another client. So, dont be surprised if it freezes at startup, when it is logging on to the server. The account creation is completely manual as of now. If you want to log on to a server, just to test the client. You can use : free.house.cx Give me a tinkle if u want to help testing, and i'll create an account for u at the server. There is only a GNOME/GTK+ client in existance now, but a Java client will be put up soon. Watch this space. Nikhil. PS: Are announcements permitted on this list? Please excuse me if they're against the regulations. From linux-india-programmers-owner@lists.linux-india.org Sat Oct 14 22:06:57 2000 Received: from del1.vsnl.net.in (giasdl01.vsnl.net.in [202.54.15.1]) by www.aunet.org (Postfix) with ESMTP id 716CD4A00A for ; Sat, 14 Oct 2000 22:06:52 -0700 (PDT) Received: from d (d2095.pppdel.vsnl.net.in [203.197.195.220]) by del1.vsnl.net.in (8.9.2/8.9.2) with SMTP id KAA20278 for ; Sun, 15 Oct 2000 10:35:03 -0500 (GMT) Message-Id: <200010151535.KAA20278@del1.vsnl.net.in> Date: Sun, 15 Oct 2000 10:32:7 +0500 From: pipeline Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: insmod error X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/104 hi i am new to module programming . i read lkmpg by Ori Pomerantz . and tried to execute some of the examples given there. hello.c ran fine . but the other 2 examples sleep.c & chardev.c get complied with 2 warnings . one of which is chrdev.c:85: warning: implicit declaration of function `sprintf_R3c2c5af5' and other is replated to printk now on insmod they give following error chrdev.o: unresolved symbol __put_user_X how to fix it up . any links to some good tutorials on this + mailing lists when i copied the message from buffer to user segment directly without using put_user it runs OK thanks ----------------------------- reply soon bye ==== deepak ---- have a great day ICQ 30662394 -- The important thing is not to stop questioning. ----------------------------- reply soon bye ==== deepak ---- have a great day ICQ 30662394 -- After a number of decimal places, nobody gives a damn. From linux-india-programmers-owner@lists.linux-india.org Sun Oct 15 02:45:32 2000 Received: from c1mailgw05.prontomail.com (unknown [216.163.184.10]) by www.aunet.org (Postfix) with ESMTP id 29C284A031 for ; Sun, 15 Oct 2000 02:45:28 -0700 (PDT) Received: from c1web02 (208.178.29.202) by c1mailgw05.prontomail.com (NPlex 5.1.050) id 39E545C9000674D6 for linux-india-programmers@lists.linux-india.org; Sun, 15 Oct 2000 02:40:24 -0700 X-Version: indya 6.2.3 .2329.0 From: linus@indya.com Message-Id: Date: Sun, 15 Oct 2000 15:12:17 +0000 X-Priority: Normal Content-Type: text/plain; charset=iso-8859-1 To: linux-india-programmers@lists.linux-india.org Subject: Proxy testing X-Mailer: Web Based Pronto Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/105 Hello all, I am currently working on a proxy testing project, which requires me to send request( URL's) to the Proxy and get the response from the proxy. Several requests needs to send to check the number of requests that can be handled simulatneouly.Respones for each of the request should be received. I do have the message formats of the server and client. Since I will not be programming on the server side, I do not know whether the request sent has reached the proxy. I am using sockets to connect to the proxy. The proxy is listening at port 1405. I am able to connect to the server (I believe it does connect to the server bcos it does not give me any error message with the connect() system call). The proxy is residing on a NT machine and I am writing the client program on LINUX platform. How do I go about it ?. TIA regards, Mani. Enter your default signature here Sent by Indya Messaging Service From linux-india-programmers-owner@lists.linux-india.org Sun Oct 15 03:46:25 2000 Received: from del1.vsnl.net.in (giasdl01.vsnl.net.in [202.54.15.1]) by www.aunet.org (Postfix) with ESMTP id CC3654A014 for ; Sun, 15 Oct 2000 03:46:20 -0700 (PDT) Received: from d ([203.197.226.63]) by del1.vsnl.net.in (8.9.2/8.9.2) with SMTP id QAA06373 for ; Sun, 15 Oct 2000 16:14:31 -0500 (GMT) Message-Id: <200010152114.QAA06373@del1.vsnl.net.in> Date: Sun, 15 Oct 2000 16:11:35 +0500 From: pipeline Reply-To: deepakyadav@india.com To: "linux-india-programmers@lists.linux-india.org" Subject: Re: Re: dev X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/106 hi the reason may be like this (ofcourse i may be ABSOLUTLEY wrong) . the ide controller can have upto 8 devices .so hd[a..h] . plus partioning within those devices takes the numbers hda[1..h][1..9] . ________ deepak At 10/11/00 12:32:00 PM, you wrote: > >Hi > >In HDD naming convention > >a=primary master >b=primary slave >c=secondary master >d=secondary slave. > >So it's directly mapped from IDE interface. > >Where as floppy drives can not share same bay or controller. So they are refered >as numbers. > > >My opinions. Don't take them for granted. > > >Bye > Shridhar > >Nitin Kumar Gupta wrote: > >> >> why are numbers used for floppies and alphabets for hds. > > >--------------------------------------------- >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 ==== deepak ---- have a great day ICQ 30662394 -- After a number of decimal places, nobody gives a damn. From linux-india-programmers-owner@lists.linux-india.org Sun Oct 15 20:07:18 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 381BA4A014 for ; Sun, 15 Oct 2000 20:07:10 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id IAA16647 for ; Mon, 16 Oct 2000 08:26:40 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id IAA04577 for ; Mon, 16 Oct 2000 08:29:52 +0500 (GMT) Received: from yaksha.wipro.com ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA104D; Mon, 16 Oct 2000 08:30:06 +0530 Date: Mon, 16 Oct 2000 08:37:01 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipro.com Reply-To: Sharad Joshi To: pipeline Cc: linux-india-programmers Subject: Re: insmod error In-Reply-To: <200010151535.KAA20278@del1.vsnl.net.in> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/107 Are you sure you are using the same kernel version and include files for which lkmpg was written for? Sharad. On Sun, 15 Oct 2000, pipeline wrote: + hi + i am new to module programming . i read lkmpg by Ori Pomerantz . and tried to execute some of the + examples given there. hello.c ran fine . but the other 2 examples sleep.c & chardev.c get complied + with 2 warnings . one of which is + chrdev.c:85: warning: implicit declaration of function `sprintf_R3c2c5af5' + and other is replated to printk + + now on insmod they give following error + chrdev.o: unresolved symbol __put_user_X From linux-india-programmers-owner@lists.linux-india.org Tue Oct 17 05:11:00 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id A49D84A057 for ; Tue, 17 Oct 2000 05:10:54 -0700 (PDT) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id e9HC5aI08918 for ; Tue, 17 Oct 2000 12:05:36 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8019.fe.bosch.de(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma008058; Tue, 17 Oct 00 12:04:31 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id ; Tue, 17 Oct 2000 14:04:26 +0200 Message-ID: From: "Harpreet Singh (RBIN/DCA-NMP)" To: linux-india-programmers@lists.linux-india.org Subject: Apache Server Date: Tue, 17 Oct 2000 14:04:07 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain X-Archive-Number: 200010/108 Hi, While working with the apache server I am getting the following error when I try to call a cgi-bin prg from the address bar. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.12 Server at 173.148.7.93 Port 80 And in the error log the following information is present script not found or unable to stat : /usr/local/apache/WEBSITE/cgi-bin/vacation.sh Premature end of script headers : /usr/local/apache/WEBSITE/cgi-bin/vacation.sh Regards, Harpreet From linux-india-programmers-owner@lists.linux-india.org Tue Oct 17 05:20:32 2000 Received: from inet-smtp3.oracle.com (inet-smtp3.oracle.com [205.227.43.23]) by www.aunet.org (Postfix) with ESMTP id 1B5874A11A for ; Tue, 17 Oct 2000 05:20:29 -0700 (PDT) Received: from gmgw01.oraclecorp.com (gmgw01.us.oracle.com [130.35.61.190]) by inet-smtp3.oracle.com (8.9.3/8.9.3) with ESMTP id FAA12924 for ; Tue, 17 Oct 2000 05:15:06 -0700 (PDT) Received: from oracle.com (incq249a.idc.oracle.com [152.69.168.249]) by gmgw01.oraclecorp.com (8.8.8+Sun/8.8.8) with ESMTP id FAA23859 for ; Tue, 17 Oct 2000 05:15:00 -0700 (PDT) Message-ID: <39EC422D.EDCC6F0C@oracle.com> Date: Tue, 17 Oct 2000 17:42:29 +0530 From: Arvind Devarajan Organization: Oracle Corporation X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Apache Server References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/109 hi, this could occur due to any of these: 1. you must have not set the execute permissions for your cgi script. use chmod +x for this 2. there could have been some error in your script. try executing the script like a command from the command prompt (you might have to arrange for supplying form fields in your script needs them:-) arvind. "Harpreet Singh (RBIN/DCA-NMP)" wrote: > Hi, > > While working with the apache server I am getting the following error when I > try to call a cgi-bin prg from the address bar. > > Internal Server Error > The server encountered an internal error or misconfiguration and was unable > to complete your request. > Please contact the server administrator, and inform them of the time the > error occurred, and anything you might have done that may have caused the > error. > More information about this error may be available in the server error log. > > Apache/1.3.12 Server at 173.148.7.93 Port 80 > > And in the error log the following information is present > > script not found or unable to stat : > /usr/local/apache/WEBSITE/cgi-bin/vacation.sh > Premature end of script headers : > /usr/local/apache/WEBSITE/cgi-bin/vacation.sh > > Regards, > Harpreet > > --------------------------------------------- > 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 Oct 17 05:38:23 2000 Received: from bgl.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id E4D754A1F4 for ; Tue, 17 Oct 2000 05:38:17 -0700 (PDT) Received: from linux.local (PPP-174-90.bng.vsnl.net.in [203.197.174.90]) by bgl.vsnl.net.in (Postfix) with ESMTP id 37FA75FA4 for ; Tue, 17 Oct 2000 17:57:07 +0530 (IST) Received: from indvalley.com (unknown [192.168.0.12]) by linux.local (Postfix) with ESMTP id 37040A94 for ; Tue, 17 Oct 2000 18:02:45 +0530 (IST) Message-ID: <39EC462B.694A15BA@indvalley.com> Date: Tue, 17 Oct 2000 17:59:31 +0530 From: demon 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: Apache Server References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/110 Hi, 1.Have you specified the content type? ("Content-type: text/html" followed by two newline chars) 2.Most of the times there will be an error in the script. 3. And some programs (for ex. those using Net:Ping) which might work when tested at command prompt but give errors when put on a browser. 4.Also check whether the file has execute permission. From linux-india-programmers-owner@lists.linux-india.org Wed Oct 18 10:46:08 2000 Received: from web5201.mail.yahoo.com (web5201.mail.yahoo.com [216.115.106.95]) by www.aunet.org (Postfix) with SMTP id CAB4E4A012 for ; Wed, 18 Oct 2000 10:45:58 -0700 (PDT) Message-ID: <20001018174046.27059.qmail@web5201.mail.yahoo.com> Received: from [203.197.239.25] by web5201.mail.yahoo.com; Wed, 18 Oct 2000 10:40:46 PDT Date: Wed, 18 Oct 2000 10:40:46 -0700 (PDT) From: mourya jain Subject: Useful Information To: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/111 Hi folks, Fantastic. Really found a feast for my thirst. Ya, Found the useful & worthful site especifically for developers, "GNU-INDIA.ORG". It cares for further growth too in futuristic visions & dimensions. It has come up with "Mailing list" for sharing everyones technical expertise, ideas, knowledge and vision. I admire & appreciate GNU's vision in Free Software promotion. Try visiting & Subscribing @ "http://www.gnu-india.org/mailinglist.html". Links page is complete and covers almost all the links related to gnumach & hurd. Thanx & Regards Mourya __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Oct 19 05:42:05 2000 Received: from localhost (nwcst340.netaddress.usa.net [204.68.23.85]) by www.aunet.org (Postfix) with SMTP id 447B84A0F2 for ; Thu, 19 Oct 2000 05:42:02 -0700 (PDT) Received: (qmail 7806 invoked by uid 60001); 19 Oct 2000 12:36:40 -0000 Message-ID: <20001019123640.7805.qmail@localhost> Received: from 204.68.23.85 by nwcst340 for [61.1.156.119] via web-mailer(34FM.0700.4.03) on Thu Oct 19 12:36:40 GMT 2000 Date: 19 Oct 00 06:36:40 MDT From: Uber Cracker To: linux-india-programmers@lists.linux-india.org Subject: Servlets X-Mailer: USANET web-mailer (34FM.0700.4.03) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200010/112 How can i run servlets on Linux. And what are the other Web Servers available for Linux. ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D1 From linux-india-programmers-owner@lists.linux-india.org Thu Oct 19 05:48:18 2000 Received: from ewey.excite.com (ewey-rwcmta.excite.com [198.3.99.191]) by www.aunet.org (Postfix) with ESMTP id 2748C4A0A9 for ; Thu, 19 Oct 2000 05:48:17 -0700 (PDT) Received: from bessie.excite.com ([199.172.152.102]) by ewey.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20001019124301.RSGQ23819.ewey.excite.com@bessie.excite.com> for ; Thu, 19 Oct 2000 05:43:01 -0700 Message-ID: <20654047.971959381463.JavaMail.imail@bessie.excite.com> Date: Thu, 19 Oct 2000 05:43:01 -0700 (PDT) From: ramesh subhash To: linux-india-programmers@lists.linux-india.org Subject: UDP pgm Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.197.176.155 X-Archive-Number: 200010/113 hello.... i have one doubt..on UDP pgm UDP client sends a packet to server.if the machine, which is having udp server process, is not up, what will happen to client's "recvfrom" call. will it be blocked or not.if so, why? thank you.. _______________________________________________________ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html From linux-india-programmers-owner@lists.linux-india.org Thu Oct 19 05:53:30 2000 Received: from web9208.mail.yahoo.com (web9208.mail.yahoo.com [216.136.129.41]) by www.aunet.org (Postfix) with SMTP id 782A24A134 for ; Thu, 19 Oct 2000 05:53:27 -0700 (PDT) Message-ID: <20001019124804.58895.qmail@web9208.mail.yahoo.com> Received: from [202.9.170.170] by web9208.mail.yahoo.com; Thu, 19 Oct 2000 05:48:04 PDT Date: Thu, 19 Oct 2000 05:48:04 -0700 (PDT) From: john slater Subject: Re: Servlets To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/114 hello i have problem releate to networking. when i ping ex:- ping ip_addres an error respons say ping:unknown protocol icmp can someone help me in how to over come the problem. thankx john Slater --- Uber Cracker wrote: > How can i run servlets on Linux. > And what are the other Web Servers available for > Linux. > > > ____________________________________________________________________ > 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. ===== John Slater #123, Hooly Wood LA, CA 34523 __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Oct 19 18:12:41 2000 Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by www.aunet.org (Postfix) with ESMTP id 6A0DC4A0A8 for ; Thu, 19 Oct 2000 18:12:36 -0700 (PDT) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id e9K17Ht22878 for ; Fri, 20 Oct 2000 03:07:17 +0200 (MEST) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G2P00D01F44YX@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Fri, 20 Oct 2000 03:07:17 +0200 (MET DST) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G2P009DAF42K2@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Fri, 20 Oct 2000 03:07:16 +0200 (MET DST) Date: Fri, 20 Oct 2000 09:09:19 +0800 From: Aravind Sadagopan Subject: Re: Servlets To: linux-india-programmers@lists.linux-india.org Message-id: <39EF9B3F.F5848015@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <20001019123640.7805.qmail@localhost> X-Archive-Number: 200010/115 Go to apache.org and download the tomcat java add on for apache..that should help you run servlets , JSP etc. There are a host of other web servers for linux ..The Java web server from Sun itself can run on linux... some small web servers without servlet capabilities are there thttpd, Jetty ....etc Cheers Aravind Uber Cracker wrote: > How can i run servlets on Linux. > And what are the other Web Servers available for Linux. > > ____________________________________________________________________ > 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. -- Living on Earth is expensive, but it does include a free trip round the sun From linux-india-programmers-owner@lists.linux-india.org Thu Oct 19 23:04:24 2000 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id E0E544A032 for ; Thu, 19 Oct 2000 23:04:20 -0700 (PDT) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id BAA08055 for ; Fri, 20 Oct 2000 01:58:58 -0400 (EDT) Message-ID: <004d01c03a59$fcee2620$8200000a@aclindia.com> From: "Ambar Roy" To: References: <20001019123640.7805.qmail@localhost> Subject: Re: Servlets Date: Fri, 20 Oct 2000 11:21:29 +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.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200010/116 You can run servlets in two ways under linux, either by using a webserver that supports servlets, like the java web server, or netscape iPlanet server, or u can run servlets on an application server and link it to apache! the popular commercial ones are IBM WebSphere and Unify e-wave ServletExec. and the freeware/open source ones are Jserv and Tomcat (both are subprojects of the apache group). the only problem with jserv is that it supports only servlet api 2.0, whereas tomcat supports the latest 2.2 servlet api and the v1.1 jsp api. Also tomcat is the official referrence implementation of the latest servlet/jsp specs!! Here at our organization we are using Tomcat 3.1 and 3.2 beta 4, and till now we haven't had problems with it. the only problem that tomcat has is that it is not as scalable or fast as the commercial servlet engines... > How can i run servlets on Linux. > And what are the other Web Servers available for Linux. Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Thu Oct 19 23:30:28 2000 Received: from mail.cysphere.com (unknown [203.197.248.131]) by www.aunet.org (Postfix) with ESMTP id F091F4A04D for ; Thu, 19 Oct 2000 23:30:24 -0700 (PDT) Received: from activevolcano ([203.197.248.133]) by mail.cysphere.com (Post.Office MTA v3.5.3 release 223 ID# 0-63969U100L2S100V35) with SMTP id com for ; Fri, 20 Oct 2000 11:55:14 +0530 From: ralhan@cysphere.com (ralhan) Reply-To: ralhan@cysphere.com Organization: Cysphere.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Servlets Date: Fri, 20 Oct 2000 12:05:09 +0530 X-Mailer: KMail [version 1.0.29.2] Content-Type: text/plain References: <20001019123640.7805.qmail@localhost> <004d01c03a59$fcee2620$8200000a@aclindia.com> In-Reply-To: <004d01c03a59$fcee2620$8200000a@aclindia.com> MIME-Version: 1.0 Message-Id: <00102012062909.10607@activevolcano> Content-Transfer-Encoding: 8bit X-Archive-Number: 200010/117 if scalabilty and spped is concern. one can try resin ( www.caucho.com) it is also an open source project. i coems for linux platform also it has xml as well as ejb support regards, ralhan On Fri, 20 Oct 2000, you wrote: > You can run servlets in two ways under linux, either by using a webserver > that supports servlets, like the java web server, or netscape iPlanet > server, or u can run servlets on an application server and link it to > apache! the popular commercial ones are IBM WebSphere and Unify e-wave > ServletExec. and the freeware/open source ones are Jserv and Tomcat (both > are subprojects of the apache group). the only problem with jserv is that it > supports only servlet api 2.0, whereas tomcat supports the latest 2.2 > servlet api and the v1.1 jsp api. Also tomcat is the official referrence > implementation of the latest servlet/jsp specs!! > > Here at our organization we are using Tomcat 3.1 and 3.2 beta 4, and till > now we haven't had problems with it. the only problem that tomcat has is > that it is not as scalable or fast as the commercial servlet engines... > > How can i run servlets on Linux. > > And what are the other Web Servers available for Linux. > > Bye, > /\ |\/| |3 /\ r > > > > --------------------------------------------- > 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 Oct 20 01:48:21 2000 Received: from id.eth.net (unknown [202.9.152.12]) by www.aunet.org (Postfix) with ESMTP id 0E3294A04A for ; Fri, 20 Oct 2000 01:48:14 -0700 (PDT) Received: from wnt04 ([202.9.153.137]) by id.eth.net with Microsoft SMTPSVC(5.5.1877.197.19); Fri, 20 Oct 2000 14:13:18 +0530 Message-ID: <005301c03a6f$b71a9f50$6801010a@incontrolint.in> From: "Anuj Kumar" To: Subject: gdb and 'c' programming Date: Fri, 20 Oct 2000 13:12:46 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/118 Hi, I want to use gdb debugger for 'C' program. I have compiled program using -g option. Now; I want see the program behavior Line by Line. How can I run 'C' program line by line? Waiting your valuable guidance. With regards, Anuj From linux-india-programmers-owner@lists.linux-india.org Fri Oct 20 01:59:47 2000 Received: from motgate2.mot.com (motgate2.mot.com [136.182.1.10]) by www.aunet.org (Postfix) with ESMTP id A5AC64A10F for ; Fri, 20 Oct 2000 01:59:40 -0700 (PDT) Received: [from mothost.mot.com (mothost.mot.com [129.188.137.101]) by motgate2.mot.com (motgate2 2.1) with ESMTP id BAA04466 for ; Fri, 20 Oct 2000 01:54:01 -0700 (MST)] Received: [from msghkg1.sps.mot.com (msghkg1.sps.mot.com [216.17.115.1]) by mothost.mot.com (MOT-mothost 2.0) with ESMTP id BAA12115 for ; Fri, 20 Oct 2000 01:54:00 -0700 (MST)] Received: from india109.email.sps.mot.com ([223.1.236.109]) by msghkg1.sps.mot.com (Netscape Messaging Server 3.61) with ESMTP id AAA6FD7; Fri, 20 Oct 2000 16:53:56 +0800 X-Mailer: emacs 20.7.2 (via feedmail 8 I) From: puneet To: linux-india-programmers@lists.linux-india.org Subject: Re: gdb and 'c' programming References: <005301c03a6f$b71a9f50$6801010a@incontrolint.in> Date: 20 Oct 2000 14:25:58 +0000 In-Reply-To: "Anuj Kumar"'s message of "Fri, 20 Oct 2000 01:43:59 MST" Message-ID: Lines: 33 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/119 Try using gdb from an Emacs buffer (M-x gdb). Works great for me. >>>>> "Anuj" == Anuj Kumar writes: Anuj> Hi, I want to use gdb debugger for 'C' program. I have Anuj> compiled program using -g option. Now; I want see the Anuj> program behavior Line by Line. How can I run 'C' program Anuj> line by line? Waiting your valuable guidance. With Anuj> regards, Anuj Anuj> --------------------------------------------- Find out more Anuj> about this and other Linux India mailing lists at Anuj> http://lists.linux-india.org/ -- Puneet Goel mailto:puneet@computer.org home:(91)124-6335056 work:(91)124-6303212 x 1213 -- Don't blame my opinion on my employer. -- MY evening came among the alien trees and spoke in a language which my morning stars did not know. - Rabindranath Tagore (Stray Birds) -- From linux-india-programmers-owner@lists.linux-india.org Fri Oct 20 02:04:40 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 443904A03E for ; Fri, 20 Oct 2000 02:04:36 -0700 (PDT) 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 e9K950S25382 for ; Fri, 20 Oct 2000 14:35:00 +0530 Message-ID: <39F00A19.EADB0BE5@pspl.co.in> Date: Fri, 20 Oct 2000 14:32:17 +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: gdb and 'c' programming References: <005301c03a6f$b71a9f50$6801010a@incontrolint.in> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/120 Hi Download DDD from GNU site, www.gnu.org if you love GUI and (bit more) ease of use :-). You will need lesstif also. Kdbg is also good. It's a part of KDK. It 's better in terms of display of data. It understands hirarchy of data structures unlike DDD. You can get it from www.kdevelop.org. HTH Bye Shridhar P.S. Sorry for replying to a reply. I got reply first and I have yet to receive the query. puneet wrote: > >>>>> "Anuj" == Anuj Kumar writes: > > Anuj> Hi, I want to use gdb debugger for 'C' program. I have > Anuj> compiled program using -g option. Now; I want see the > Anuj> program behavior Line by Line. How can I run 'C' program > Anuj> line by line? Waiting your valuable guidance. With > Anuj> regards, Anuj From linux-india-programmers-owner@lists.linux-india.org Fri Oct 20 03:14:08 2000 Received: from penguin-ext.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.110]) by www.aunet.org (Postfix) with ESMTP id B04994A0F8 for ; Fri, 20 Oct 2000 03:13:55 -0700 (PDT) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by penguin.wise.edt.ericsson.se (8.11.0/8.10.1/WIREfire-1.3) with ESMTP id e9KA8ZZ20336 for ; Fri, 20 Oct 2000 12:08:35 +0200 (MEST) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G2Q0090146ASA@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Fri, 20 Oct 2000 12:08:35 +0200 (MET DST) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G2Q005OB468MU@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Fri, 20 Oct 2000 12:08:34 +0200 (MET DST) Date: Fri, 20 Oct 2000 18:10:36 +0800 From: Aravind Sadagopan Subject: Re: gdb and 'c' programming To: linux-india-programmers@lists.linux-india.org Message-id: <39F01A1B.99C8AF5B@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <005301c03a6f$b71a9f50$6801010a@incontrolint.in> X-Archive-Number: 200010/121 Run # gdb gdb# r (to run the program) gdb# break filename:line (to set the breakpoint) gdb# continue (to continue from the breakpoint) gdb# n (to trace through) Hope this helps..if you are in to GUI programs then DDD is the best choice Cheers Aravind S Anuj Kumar wrote: > Hi, > I want to use gdb debugger for 'C' program. > I have compiled program using -g option. > Now; I want see the program behavior Line by Line. > How can I run 'C' program line by line? > Waiting your valuable guidance. > With regards, > Anuj > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ -- Living on Earth is expensive, but it does include a free trip round the sun From linux-india-programmers-owner@lists.linux-india.org Fri Oct 20 04:32:20 2000 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id 6247B4A014 for ; Fri, 20 Oct 2000 04:32:07 -0700 (PDT) Received: from fakir.india.hp.com (fakir.india.hp.com [15.10.40.3]) by atlrel1.hp.com (Postfix) with ESMTP id 632FE650 for ; Fri, 20 Oct 2000 07:26:45 -0400 (EDT) Received: from india.hp.com (root@ebnt138.india.hp.com [15.76.97.138]) by fakir.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id QAA04377 for ; Fri, 20 Oct 2000 16:57:55 +0530 (IST) Message-ID: <39F02BF0.AD07DDFD@india.hp.com> Date: Fri, 20 Oct 2000 16:56:40 +0530 From: "G.L.Suresh" 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: not found symtab_begin.h Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/122 Hi all Iam trying to compile the examples what i found at site ftp://ftp.ora.com/pub/examples/linux/drivers/ Iam getting the error like linux/symtab_begin.h not found. surprisingly when i checked the /usr/include/linux directory , i could not found that file. here iam compiling the files on 2.2.0.4 version of kernel. If those files are not part of this version then pl, let me know how I can prepare the symbol table, which I have to pass it to register_symtab() function. regards, G.L From linux-india-programmers-owner@lists.linux-india.org Fri Oct 20 18:31:06 2000 Received: from prodserver1.goatelecom.com (unknown [210.212.161.28]) by www.aunet.org (Postfix) with ESMTP id 55FDB4A08D for ; Fri, 20 Oct 2000 18:30:59 -0700 (PDT) Received: from gaurav by prodserver1.goatelecom.com (8.9.3/1.1.20.3/07Jul00-0916AM) id GAA0000021505; Sat, 21 Oct 2000 06:58:20 +0530 (IST) Message-ID: <004901c03afe$58f30680$2ca0d4d2@gaurav> From: "Gaurav Priyolkar" To: Subject: how to create thread to exec member fn of a class Date: Sat, 21 Oct 2000 06:50:02 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/123 Hi all, Is it possible to create a thread to execute the member function of a class? pthread_create(&tid, NULL, A.x, (void*) arg); on compilation results in the warning: warning: converting from 'void*(A::*)(void*)' to 'void*(*)(void*)' Although the program runs and thread is created, how to get rid of this warning? Summing up, how to type cast a pointer to a member function of a class to a pointer to a global function? -Gaurav. From linux-india-programmers-owner@lists.linux-india.org Sat Oct 21 03:15:09 2000 Received: from id.eth.net (unknown [202.9.152.12]) by www.aunet.org (Postfix) with ESMTP id E44C94A101 for ; Sat, 21 Oct 2000 03:14:15 -0700 (PDT) Received: from wnt04 ([202.9.153.73]) by id.eth.net with Microsoft SMTPSVC(5.5.1877.197.19); Sat, 21 Oct 2000 15:37:44 +0530 Message-ID: <000501c03b44$ac7222f0$6801010a@incontrolint.in> From: "Anuj Kumar" To: Subject: Re: gdb and 'c' programming Date: Sat, 21 Oct 2000 15:22:42 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/124 Thanks for response. This is useful. If I have one '.c' file then OK. But I have complete Project, Number of '.c' file is there. And i am using 'Makefile' project concepts. In this case how to start debugging line by line. Waiting you guidence. with regards, Anuj ****Aravind Sadagopan wrote *********** Date: Fri, 20 Oct 2000 18:10:36 +0800 From: Aravind Sadagopan | Block address Subject: Re: [LIP] gdb and 'c' programming To: linux-india-programmers@lists.linux-india.org Reply-to: linux-india-programmers@lists.linux-india.org Add Addresses Run # gdb gdb# r (to run the program) gdb# break filename:line (to set the breakpoint) gdb# continue (to continue from the breakpoint) gdb# n (to trace through) Hope this helps..if you are in to GUI programs then DDD is the best choice Cheers Aravind S Anuj Kumar wrote: > Hi, > I want to use gdb debugger for 'C' program. > I have compiled program using -g option. > Now; I want see the program behavior Line by Line. > How can I run 'C' program line by line? > Waiting your valuable guidance. > With regards, > Anuj > From linux-india-programmers-owner@lists.linux-india.org Sat Oct 21 07:39:50 2000 Received: from mail.cse.iitk.ac.in (unknown [210.212.54.4]) by www.aunet.org (Postfix) with ESMTP id 6B9694A043 for ; Sat, 21 Oct 2000 06:59:25 -0700 (PDT) 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 TAA29631 for ; Sat, 21 Oct 2000 19:24:38 +0530 Received: from csemt72.cse.iitk.ac.in (csemt72.cse.iitk.ac.in [172.31.17.72]) by cseultra2.cse.iitk.ac.in (8.10.1/8.10.1) with ESMTP id e9LDnQx24725 for ; Sat, 21 Oct 2000 19:19:26 +0530 (IST) Date: Sat, 21 Oct 2000 13:59:46 +0530 (IST) From: Saugata Das Purkayastha To: linux-india-programmers@lists.linux-india.org Subject: Ethernet Card Problem Message-ID: Organization: Dept of Computer Science IIT Kanpur MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/125 Hi all, 1) I want to install two ethernet cards (RealTek 8139) in my linux m/c. The cards don't have any jumper setting facility for irq. I configured both cards, (setting IP addr, kernel module, irq etc.) using "netconf". But, I'm not able to run any network application. For example, when I start NFS, the following 3 messages comes again and again.. eth0: Tx queue start entry 4 dirty entry 0 eth0: Transmit timeout, status 0d 0004 media 08 eth0: rtl8139 interrupt line blocked, status 4 2) My second problem, is that, I want to install ISA NE2000 card in some other linux m/c. I have written following two lines in the /etc/conf.modules, alias eth0 ne options ne io=0x300 But, during initialization of eth0, at boot time, it gives folloeing error message and fails, "insmod ne: device busy" What can be the problem? Thanking in advance, saugata From linux-india-programmers-owner@lists.linux-india.org Sun Oct 22 09:13:41 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.141]) by www.aunet.org (Postfix) with ESMTP id 4711949F48 for ; Sun, 22 Oct 2000 01:14:35 -0700 (PDT) Received: from bombay.retortsoft.com (IDENT:binand@aragorn.home.retortsoft.com [192.168.111.4]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id NAA09131; Sun, 22 Oct 2000 13:41:51 +0530 Message-ID: <39F2A23F.C8A6C841@bombay.retortsoft.com> Date: Sun, 22 Oct 2000 13:45:59 +0530 From: "Binand Raj S." Organization: Retort Software Pvt. Ltd. X-Mailer: Mozilla 4.72 [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: Re: Ethernet Card Problem References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/126 Saugata Das Purkayastha wrote: > > Hi all, > > when I start NFS, the following 3 messages comes again and again.. > eth0: Tx queue start entry 4 dirty entry 0 > eth0: Transmit timeout, status 0d 0004 media 08 > eth0: rtl8139 interrupt line blocked, status 4 That probably means that the card is not screwed in tightly inside the computer, or there is a loose contact somewhere. The module you have chosen is correct (rtl8139.o), and the card is PCI, so I cannot think of any other reason. Check the cabling, the hub etc. > alias eth0 ne > options ne io=0x300 > "insmod ne: device busy" Most likely that the I/O address is wrong. I usually run the shell loop for i in 220 240 260 280 300 320; do modprobe -t net ne io=0x$i && break; done and enter the I/O address where the shell loop breaks out in /etc/conf.modules. You too can try that. All ISA cards that I have seen are ne compatible. Binand From linux-india-programmers-owner@lists.linux-india.org Sun Oct 22 18:00:09 2000 Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by www.aunet.org (Postfix) with ESMTP id 961114A02E for ; Sun, 22 Oct 2000 18:00:06 -0700 (PDT) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id e9N0upt04189 for ; Mon, 23 Oct 2000 02:56:51 +0200 (MEST) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G2U00601YMQ2L@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 23 Oct 2000 02:56:50 +0200 (MET DST) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G2U001SFYMOAW@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 23 Oct 2000 02:56:50 +0200 (MET DST) Date: Mon, 23 Oct 2000 08:58:42 +0800 From: Aravind Sadagopan Subject: Re: gdb and 'c' programming To: linux-india-programmers@lists.linux-india.org Message-id: <39F38D42.206101BA@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <000501c03b44$ac7222f0$6801010a@incontrolint.in> X-Archive-Number: 200010/127 Hi Anuj I dont think it makes a lot of difference either way... I guess the end product will be an executable no matter how many source files you have and you are debugging the executable. Even if your project has a hundred source files and different target in your makefile..all you have to do is compile with the -g option and give the name of your executable (which has been formed linked from 100 odd source files)..set a break point at 'main' function which I suppose..run it, it will break at the first line of your program..then type 'n' to debug line by line..if you want to see the values of your vriables use the 'print' command to view the values I hope this is what you wanted to know or maybe I am not clear on this... Thanks Aravind S Anuj Kumar wrote: > Thanks for response. > This is useful. If I have one '.c' file then OK. > But I have complete Project, Number of '.c' file is there. > And i am using 'Makefile' project concepts. > In this case how to start debugging line by line. > Waiting you guidence. > with regards, > Anuj > > ****Aravind Sadagopan wrote *********** > > Date: Fri, 20 Oct 2000 18:10:36 +0800 > From: Aravind Sadagopan | Block address > Subject: Re: [LIP] gdb and 'c' programming > To: linux-india-programmers@lists.linux-india.org > Reply-to: linux-india-programmers@lists.linux-india.org > Add Addresses > > Run > # gdb > gdb# r (to run the program) > gdb# break filename:line (to set the breakpoint) > gdb# continue (to continue from the breakpoint) > gdb# n (to trace through) > > Hope this helps..if you are in to GUI programs then DDD is the best > choice > > Cheers > Aravind S > > Anuj Kumar wrote: > > > Hi, > > I want to use gdb debugger for 'C' program. > > I have compiled program using -g option. > > Now; I want see the program behavior Line by Line. > > How can I run 'C' program line by line? > > Waiting your valuable guidance. > > With regards, > > Anuj > > > > --------------------------------------------- > 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. -- Living on Earth is expensive, but it does include a free trip round the sun From linux-india-programmers-owner@lists.linux-india.org Sun Oct 22 21:49:28 2000 Received: from smtp2.mail.yahoo.com (smtp2.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id D31334A021 for ; Sun, 22 Oct 2000 21:49:23 -0700 (PDT) Received: from unknown (HELO yahoo.com) (202.9.174.7) by smtp.mail.vip.suc.yahoo.com with SMTP; 23 Oct 2000 04:46:08 -0000 X-Apparently-From: Message-ID: <39F3C2E1.7000503@yahoo.com> Date: Mon, 23 Oct 2000 10:17:29 +0530 From: Ramesh Organization: DishnetDSL Pvt Ltd. User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20000929 Netscape6/6.0b3 X-Accept-Language: en MIME-Version: 1.0 To: linux Subject: snmpwalk Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/128 hi all, how to use this snmp walk command to get the value of the inbytes and outbytes of my interface.... i know the OID of those two .. but how to use this to parse thru the MIB tree.... can anybody help mee.... ramesh __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Sun Oct 22 22:08:10 2000 Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by www.aunet.org (Postfix) with ESMTP id 5717D4A02D for ; Sun, 22 Oct 2000 22:08:06 -0700 (PDT) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by palrel1.hp.com (Postfix) with ESMTP id 2A117C642 for ; Sun, 22 Oct 2000 22:04:50 -0700 (PDT) Received: from india.hp.com (nt4175.india.hp.com [15.10.41.75]) by hpuxsrv.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id KAA29042 for ; Mon, 23 Oct 2000 10:33:35 +0530 (IST) Message-ID: <39F3C6E9.20186664@india.hp.com> Date: Mon, 23 Oct 2000 10:34:41 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: snmpwalk References: <39F3C2E1.7000503@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/129 Hi, SNMP walk works as follows: 1. Does a 'Get-Next' on the OID you have supplied. 2. Then, captures the OID returned in the previous Get-Next. 3. Does a Get-Next on the OID as in (2) above. 4. Repeats step(2) until End of MIB View or error. Now, it should be easy for you to decide how to use it in your case. Enjoy!! Satheesh Ramesh wrote: > hi all, > > how to use this snmp walk command to get the value of the inbytes and > outbytes of my interface.... i know the OID of those two .. but how to > use this to parse thru the MIB tree.... > can anybody help mee.... > > ramesh > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > --------------------------------------------- > 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 Oct 22 22:25:31 2000 Received: from smtp2.mail.yahoo.com (smtp2.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id 0A57E4A02D for ; Sun, 22 Oct 2000 22:25:26 -0700 (PDT) Received: from unknown (HELO yahoo.com) (202.9.174.7) by smtp.mail.vip.suc.yahoo.com with SMTP; 23 Oct 2000 05:22:09 -0000 X-Apparently-From: Message-ID: <39F3CB52.2020509@yahoo.com> Date: Mon, 23 Oct 2000 10:53:30 +0530 From: Ramesh Organization: DishnetDSL Pvt Ltd. User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20000929 Netscape6/6.0b3 X-Accept-Language: en MIME-Version: 1.0 To: linux Subject: socket propgramming Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/130 hi all, i want to communicate to a machine in different subnet means how to acheive it with socket porgramming... i did the same thing lihke creatinga socket and establishing a connection with a machine with the local subnet ... but when i wawnt to connect to a valid ip machine or a machine in diffrent subnet.. how to acheive it programmatically.... can anybody help me... ramesh __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Sun Oct 22 23:58:32 2000 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id 3D0FD4A02E for ; Sun, 22 Oct 2000 23:58:30 -0700 (PDT) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id CAA24279 for ; Mon, 23 Oct 2000 02:55:26 -0400 (EDT) Message-ID: <007a01c03cbd$5b409ae0$8200000a@aclindia.com> From: "Ambar Roy" To: References: <39F3CB52.2020509@yahoo.com> Subject: Re: socket propgramming Date: Mon, 23 Oct 2000 12:19:05 +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.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200010/131 > i want to communicate to a machine in different subnet means how to > acheive it with socket porgramming... i did the same thing lihke > creatinga socket and establishing a connection with a machine with the > local subnet ... but when i wawnt to connect to a valid ip machine or a > machine in diffrent subnet.. how to acheive it programmatically.... can > anybody help me... there shouldn't be any difference in connecting to any machine using sockets. At the TCP socket level you don't have to worry about subnets or anything. you just specify a destination ip and socket and then just connect!! And as long as you can reach them through normal programs there should not be any problems. The only problem that you might have is that you might be behind a firewall or a proxy. in case you are behind a proxy, then you will have to connect to external addresses through the proxy server! and also most firewalls filter out packets to non standard ports. Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 01:49:39 2000 Received: from web4501.mail.yahoo.com (web4501.mail.yahoo.com [216.115.105.62]) by www.aunet.org (Postfix) with SMTP id 106774A00B for ; Mon, 23 Oct 2000 01:49:35 -0700 (PDT) Message-ID: <20001023084619.18469.qmail@web4501.mail.yahoo.com> Received: from [202.9.174.7] by web4501.mail.yahoo.com; Mon, 23 Oct 2000 01:46:19 PDT Date: Mon, 23 Oct 2000 01:46:19 -0700 (PDT) From: Ramesh Subject: snmpwalk command is not found To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/132 hi all, in my redhat linux 6.2 machine the "snmpwalk" command is not there. the whole set of snmp commands is not there in my machine . how to get it... can anybody help me. i have to need to install anything... ramesh __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 01:54:28 2000 Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by www.aunet.org (Postfix) with ESMTP id 124284A053 for ; Mon, 23 Oct 2000 01:54:20 -0700 (PDT) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id e9N8p3t11772 for ; Mon, 23 Oct 2000 10:51:03 +0200 (MEST) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G2V00E01KKZYQ@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 23 Oct 2000 10:51:03 +0200 (MET DST) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G2V00BFLKKUVV@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 23 Oct 2000 10:50:56 +0200 (MET DST) Date: Mon, 23 Oct 2000 16:52:47 +0800 From: Aravind Sadagopan Subject: Re: snmpwalk command is not found To: linux-india-programmers@lists.linux-india.org Message-id: <39F3FC5F.77F8DE8B@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <20001023084619.18469.qmail@web4501.mail.yahoo.com> X-Archive-Number: 200010/133 Hi Ramesh, You can get them from http://rpmfind.net/linux/RPM/redhat/6.2/i386////ucd-snmp-utils-4.1.1-2.i386.html (You can navigate rpmfind.net if the link is not live) This is part of the ucd-snmp package Cheers Aravind S Ramesh wrote: > hi all, > > in my redhat linux 6.2 machine the "snmpwalk" command > is not there. the whole set of snmp commands is not > there in my machine . how to get it... can anybody > help me. i have to need to install anything... > > ramesh > > __________________________________________________ > Do You Yahoo!? > Yahoo! Messenger - Talk while you surf! It's FREE. > http://im.yahoo.com/ > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ -- Living on Earth is expensive, but it does include a free trip round the sun From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 01:54:37 2000 Received: from web1105.mail.yahoo.com (web1105.mail.yahoo.com [128.11.23.125]) by www.aunet.org (Postfix) with SMTP id 182FD4A0BA for ; Mon, 23 Oct 2000 01:54:35 -0700 (PDT) Message-ID: <20001023085117.22842.qmail@web1105.mail.yahoo.com> Received: from [216.6.88.34] by web1105.mail.yahoo.com; Mon, 23 Oct 2000 01:51:17 PDT Date: Mon, 23 Oct 2000 01:51:17 -0700 (PDT) From: Rudraashish Subject: writing shared libraries ! To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/134 Hi , I am interested in knowing about "writing shared libraries " and how to use them in C code and if i have a shared library then how to change a default trigger handler( defined in shared library) with my code. Any pointers ? Regards, Rudra __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 02:00:52 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 0F68B4A11C for ; Mon, 23 Oct 2000 02:00:45 -0700 (PDT) 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 e9N92wN30821 for ; Mon, 23 Oct 2000 14:32:58 +0530 Message-ID: <39F3FE2D.77A732EA@pspl.co.in> Date: Mon, 23 Oct 2000 14:30:29 +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: writing shared libraries ! References: <20001023085117.22842.qmail@web1105.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/135 Hi This is all you do.... $ man ld #Look for -shared and -soname option $man gcc/g++ #look for -c option Or get a tarball of some package and try to hack makefiles. I think there was a posting regarding this on LIP. Dig the archives.... Also 'man dlopen' to help you. Bye Shridhar Rudraashish wrote: > Hi , > I am interested in knowing about "writing > shared libraries " and how to use them in C code and > if i have a shared library then how to change a > default trigger handler( defined in shared library) > with my code. From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 02:14:59 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 8A6814A00B for ; Mon, 23 Oct 2000 02:14:58 -0700 (PDT) Received: from unknown-24-5.pilot.net (unknown-24-5.pilot.net [206.189.24.5]) by unknown-147.101.pilot.net with ESMTP id CAA04883; Mon, 23 Oct 2000 02:11:30 -0700 (PDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-5.pilot.net with ESMTP id CAA23618; Mon, 23 Oct 2000 02:11:28 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id ; Mon, 23 Oct 2000 14:49:51 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E026D67BB@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org, ilug-cal@ilug-cal.org Subject: clearcase on linux Date: Mon, 23 Oct 2000 14:50:03 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/136 Friends ! Has anybody successfully deployed ClearCase (Rational)on Linux in your organisation ? Any reported problems with MVFS ? TIA Shourya From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 02:39:55 2000 Received: from web4503.mail.yahoo.com (web4503.mail.yahoo.com [216.115.105.64]) by www.aunet.org (Postfix) with SMTP id A997F49F37 for ; Mon, 23 Oct 2000 02:39:53 -0700 (PDT) Message-ID: <20001023093638.25125.qmail@web4503.mail.yahoo.com> Received: from [202.9.174.7] by web4503.mail.yahoo.com; Mon, 23 Oct 2000 02:36:38 PDT Date: Mon, 23 Oct 2000 02:36:38 -0700 (PDT) From: Ramesh Subject: Re: snmpwalk command is not found To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/137 HI ARAVIND, thanx for ur response. but in my machime when i tried to install the ucd_snmp_utils_4.1.1-2RPM for 1386 it asked for ucd_snmp package. i dowloaded that thing also and when i tried to install this this shows an error like only packages wiht major numbers <= 3 are supported by this version of RPM. error. unable to install. this is the error message. kindly instruct me what to do.... ramesh __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 03:03:01 2000 Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by www.aunet.org (Postfix) with ESMTP id D938549F37 for ; Mon, 23 Oct 2000 03:02:52 -0700 (PDT) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id e9N9xZt04154 for ; Mon, 23 Oct 2000 11:59:35 +0200 (MEST) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G2V00301NR8ML@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 23 Oct 2000 11:59:35 +0200 (MET DST) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G2V001JYNR6N3@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 23 Oct 2000 11:59:32 +0200 (MET DST) Date: Mon, 23 Oct 2000 18:01:23 +0800 From: Aravind Sadagopan Subject: Re: snmpwalk command is not found To: linux-india-programmers@lists.linux-india.org Message-id: <39F40C73.14C76E87@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <20001023093638.25125.qmail@web4503.mail.yahoo.com> X-Archive-Number: 200010/138 Hi Ramesh, I think I know where the problem lies...the latest packages for Redhat are in rpm4 format which is incompatible with those with Redhat 6.2. When trying to install the ucd_snmp package you must have downloaded the rpms for either rawhide or redhat 7.0 so they are incompatible..scrolldown to find Redhat 6.2 i386 and download that package..it should work..That is the only case this error could have occured Cheers Aravind S Ramesh wrote: > HI ARAVIND, > > thanx for ur response. but in my machime when i tried > to install the ucd_snmp_utils_4.1.1-2RPM for 1386 it > asked for ucd_snmp package. i dowloaded that thing > also > and when i tried to install this this shows an error > like > > only packages wiht major numbers <= 3 are supported by > this version of RPM. error. unable to install. > > this is the error message. kindly instruct me what to > do.... > > ramesh > > __________________________________________________ > Do You Yahoo!? > Yahoo! Messenger - Talk while you surf! It's FREE. > http://im.yahoo.com/ > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ -- Living on Earth is expensive, but it does include a free trip round the sun From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 03:19:31 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.141]) by www.aunet.org (Postfix) with ESMTP id 0C1B449F46; Mon, 23 Oct 2000 03:18:58 -0700 (PDT) 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 PAA07166; Mon, 23 Oct 2000 15:48:22 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id PAA02374; Mon, 23 Oct 2000 15:45:17 +0530 Date: Mon, 23 Oct 2000 15:45:16 +0530 From: "Binand Raj S." To: linux-india-help@lists.linux-india.org Cc: Linux India Programmers Subject: Re: snmpwalk command is not found Message-ID: <20001023154516.A1199@bombay.retortsoft.com> Mail-Followup-To: linux-india-help@lists.linux-india.org, Linux India Programmers References: <20001023093638.25125.qmail@web4503.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <20001023093638.25125.qmail@web4503.mail.yahoo.com>; from ramesh_tnj@yahoo.com on Mon, Oct 23, 2000 at 02:36:38AM -0700 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: 200010/139 Ramesh forced the electrons to say: > only packages wiht major numbers <= 3 are supported by > this version of RPM. error. unable to install. OK. I guess too many people on this list have faced this problem. rpm 3.0.4, the version that shipped with RHL 6.2, supported only packages that were conformant to RPM packaging format version 3. Later on, the RPM packaging format version 4 was released, and rpm 3.0.6 onwards build RPMs in this new version. So, if a package was built using rpm 3.0.6 or later, then it will not install under older rpm versions. The solution? Grab the RPM of rpm 3.0.6 from www.rpm.org, and upgrade your system. rpm 3.0.6 is the first version that understands both RPM 3 and RPM 4 packages. HTH, Binand PS: Crossposted to LIH, as this is more on topic there. Follow-ups there, please. -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 04:06:55 2000 Received: from web4502.mail.yahoo.com (web4502.mail.yahoo.com [216.115.105.63]) by www.aunet.org (Postfix) with SMTP id 6D0124A175 for ; Mon, 23 Oct 2000 04:05:21 -0700 (PDT) Message-ID: <20001023110204.23947.qmail@web4502.mail.yahoo.com> Received: from [202.9.174.7] by web4502.mail.yahoo.com; Mon, 23 Oct 2000 04:02:04 PDT Date: Mon, 23 Oct 2000 04:02:04 -0700 (PDT) From: Ramesh Subject: RPM error solution To: mksarav@mail.mitindia.edu Cc: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/140 hi, go to this site ( which i got it from one of ouor fren in linux-programmers mailing list - Aravind) http://rpmfind.net/linux/rpm2html/search.php here u enter the specific rpm u want or the starting words of the rpm u want. now u will get many options of the rpm file when the search result is obtained. now choose the rpm which will satisfy ur version of redhat. i think the error which u got is may be due to u tried to install a higher version of rpm in ur system. so choose ur redhat version and select the corresponding rpm. i think ur proble will be solved now. cheers, ramesh __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 10:38:37 2000 Received: from infbosvw.inf.com (unknown [216.52.49.35]) by www.aunet.org (Postfix) with SMTP id 5BA5A4A131 for ; Mon, 23 Oct 2000 10:38:35 -0700 (PDT) Received: from 204.4.54.41 by infbosvw.inf.com (InterScan E-Mail VirusWall NT); Mon, 23 Oct 2000 12:19:52 -0400 (Eastern Daylight Time) Received: by KEC-01-MSG with Internet Mail Service (5.5.2650.21) id ; Mon, 23 Oct 2000 21:14:38 +0530 Message-ID: <1BD922A62552D411B48A00D0B7472375019CE78B@kecmsg04> From: Sreeramkr To: "'linux-india-programmers@lists.linux-india.org'" Subject: offlist query not related to programming Date: Mon, 23 Oct 2000 20:13:33 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200010/141 Hi, I need the latest version of FreeBSD so that I can burn a cd. It is rather an urgent requirement. If anyone has please do contact me offlist. A small treat is promised :) TIA Regards Sreeram From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 22:57:21 2000 Received: from smtp1b.mail.yahoo.com (smtp3.mail.yahoo.com [128.11.68.135]) by www.aunet.org (Postfix) with SMTP id 3CF624A047 for ; Mon, 23 Oct 2000 22:53:33 -0700 (PDT) Received: from unknown (HELO yahoo.com) (202.9.178.2) by smtp.mail.vip.suc.yahoo.com with SMTP; 24 Oct 2000 05:50:11 -0000 X-Apparently-From: Message-ID: <39F5235E.7020807@yahoo.com> Date: Tue, 24 Oct 2000 11:21:26 +0530 From: Ramesh Organization: DishnetDSL Pvt Ltd. User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20000929 Netscape6/6.0b3 X-Accept-Language: en MIME-Version: 1.0 To: linux Subject: snmpset command help Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/142 hi all, i am going to use this snmpset command in my mini snmp manager program to manage some devices. now i have a doubt. i found in the man page examples that by giving the community name a private we can able to access the device to change settings. then what about the security.. there is no need of passwd r what. suppose if anybody know the IP address and the community name can able to set the device r what. if not then where to give the passwd for this command line utility snmpset...... can anybody help me.... ramesh. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Mon Oct 23 23:04:13 2000 Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by www.aunet.org (Postfix) with ESMTP id A08D549F62 for ; Mon, 23 Oct 2000 23:04:06 -0700 (PDT) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by palrel1.hp.com (Postfix) with ESMTP id B500D122D for ; Mon, 23 Oct 2000 23:00:30 -0700 (PDT) Received: from india.hp.com (nt4175.india.hp.com [15.10.41.75]) by hpuxsrv.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id LAA24395 for ; Tue, 24 Oct 2000 11:29:09 +0530 (IST) Message-ID: <39F52548.CB05E535@india.hp.com> Date: Tue, 24 Oct 2000 11:29:36 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: snmpset command help References: <39F5235E.7020807@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/143 SNMP security in its basic form involves an SNMP community name only. There's no password etc. However, there are related specs like secure SNMP which I'm not much aware of. cheers Satheesh Ramesh wrote: > hi all, > > i am going to use this snmpset command in my mini snmp manager program > to manage some devices. now i have a doubt. i found in the man page > examples that by giving the community name a private we can able to > access the device to change settings. then what about the security.. > there is no need of passwd r what. suppose if anybody know the IP > address and the community name can able to set the device r what. if not > then where to give the passwd for this command line utility snmpset...... > > can anybody help me.... > > ramesh. > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > --------------------------------------------- > 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 Oct 23 23:36:04 2000 Received: from id.eth.net (unknown [202.9.152.12]) by www.aunet.org (Postfix) with ESMTP id 517934A0FF for ; Mon, 23 Oct 2000 23:34:58 -0700 (PDT) Received: from wnt04 ([202.9.155.168]) by id.eth.net with Microsoft SMTPSVC(5.5.1877.197.19); Tue, 24 Oct 2000 12:02:00 +0530 Message-ID: <001501c03d82$099bc460$6801010a@incontrolint.in> From: "Anuj Kumar" To: References: <000501c03b44$ac7222f0$6801010a@incontrolint.in> <39F38D42.206101BA@eno.ericsson.se> Subject: Re: gdb and 'c' programming 'RPM DDD' Date: Tue, 24 Oct 2000 11:45:01 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/144 Thanks, Yes, Now I am able to debug project. But I want know about DDD. Where I found it. I requried 'DDD RPM' verstion. Best regards, Anuj ----- Original Message ----- From: Aravind Sadagopan To: Sent: Monday, October 23, 2000 6:28 AM Subject: Re: [LIP] gdb and 'c' programming > Hi Anuj > I dont think it makes a lot of difference either way... I guess the end > product will be an executable no matter how many source files you have and you > are debugging the executable. Even if your project has a hundred source files > and different target in your makefile..all you have to do is compile with the > -g option > and give the name of your executable (which has been formed linked from 100 odd > source files)..set a break point at 'main' function which I suppose..run it, it > will break at the first line of your program..then type 'n' to debug line by > line..if you want to see the values of your vriables use the 'print' command to > view the values > > I hope this is what you wanted to know or maybe I am not clear on this... > > Thanks > Aravind S > Anuj Kumar wrote: > > > Thanks for response. > > This is useful. If I have one '.c' file then OK. > > But I have complete Project, Number of '.c' file is there. > > And i am using 'Makefile' project concepts. > > In this case how to start debugging line by line. > > Waiting you guidence. > > with regards, > > Anuj > > > > ****Aravind Sadagopan wrote *********** > > > > Date: Fri, 20 Oct 2000 18:10:36 +0800 > > From: Aravind Sadagopan | Block address > > Subject: Re: [LIP] gdb and 'c' programming > > To: linux-india-programmers@lists.linux-india.org > > Reply-to: linux-india-programmers@lists.linux-india.org > > Add Addresses > > > > Run > > # gdb > > gdb# r (to run the program) > > gdb# break filename:line (to set the breakpoint) > > gdb# continue (to continue from the breakpoint) > > gdb# n (to trace through) > > > > Hope this helps..if you are in to GUI programs then DDD is the best > > choice > > > > Cheers > > Aravind S > > > > Anuj Kumar wrote: > > > > > Hi, > > > I want to use gdb debugger for 'C' program. > > > I have compiled program using -g option. > > > Now; I want see the program behavior Line by Line. > > > How can I run 'C' program line by line? > > > Waiting your valuable guidance. > > > With regards, > > > Anuj > > > > > > > --------------------------------------------- > > 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. > > -- > Living on Earth is expensive, but it does include a free trip > round the sun > > > > > --------------------------------------------- > 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 Tue Oct 24 00:24:16 2000 Received: from smtp2.mail.yahoo.com (smtp2.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id A5DE64A02E for ; Mon, 23 Oct 2000 23:57:43 -0700 (PDT) Received: from unknown (HELO yahoo.com) (202.9.178.2) by smtp.mail.vip.suc.yahoo.com with SMTP; 24 Oct 2000 06:54:20 -0000 X-Apparently-From: Message-ID: <39F53261.5000006@yahoo.com> Date: Tue, 24 Oct 2000 12:25:29 +0530 From: Ramesh Organization: DishnetDSL Pvt Ltd. User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20000929 Netscape6/6.0b3 X-Accept-Language: en MIME-Version: 1.0 To: linux Subject: telnet from linux Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/145 hi all, i have a problem with telnet from linux. my machine has both NT and linux and it is under microsoft proxy server. from NT i want to telnet to a valid IP machine means it is connecting... ( i think NAT is done on the server ) but when the same thing when i want to telnet to a valid IP machine means it is giving the error network unreachable ( the connect function sets this error number ). so how to solve the thing. kindly anybody help me... ramesh __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 00:24:34 2000 Received: from ewey.excite.com (ewey-rwcmta.excite.com [198.3.99.191]) by www.aunet.org (Postfix) with ESMTP id 2E2BB4A280 for ; Tue, 24 Oct 2000 00:08:27 -0700 (PDT) Received: from knuckles.excite.com ([199.172.148.179]) by ewey.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20001024070507.CPXS12480.ewey.excite.com@knuckles.excite.com> for ; Tue, 24 Oct 2000 00:05:07 -0700 Message-ID: <12270201.972371107652.JavaMail.imail@knuckles.excite.com> Date: Tue, 24 Oct 2000 00:05:07 -0700 (PDT) From: honne gowda gowda To: linux-india-programmers@lists.linux-india.org Subject: preprocessor directives? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.197.176.127 X-Archive-Number: 200010/146 hi, can somebody explain the following piece of code: #include main() { int first=0,second=1; printf("%d:%d\n",first,second); #define first second #define second first printf("%d:%d\n",first,second); exit(0); } thanx in advance _______________________________________________________ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 01:19:53 2000 Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by www.aunet.org (Postfix) with ESMTP id 289A54A20D for ; Tue, 24 Oct 2000 00:30:04 -0700 (PDT) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id e9O7Qdt06227 for ; Tue, 24 Oct 2000 09:26:39 +0200 (MEST) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G2X00201BCCP2@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Tue, 24 Oct 2000 09:26:39 +0200 (MET DST) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G2X00166BCAEG@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Tue, 24 Oct 2000 09:26:36 +0200 (MET DST) Date: Tue, 24 Oct 2000 15:28:24 +0800 From: Aravind Sadagopan Subject: Re: gdb and 'c' programming 'RPM DDD' To: linux-india-programmers@lists.linux-india.org Message-id: <39F53A18.934781AA@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <000501c03b44$ac7222f0$6801010a@incontrolint.in> <39F38D42.206101BA@eno.ericsson.se> <001501c03d82$099bc460$6801010a@incontrolint.in> X-Archive-Number: 200010/147 The rpm find mantra is in http://www.rpmfind.net ..type 'ddd' and among the search results look for the redhat/Linux version you are using and download that rpm..downloading an incompatible rpm can cause problems..BTW the latest ddd is improved and looks amazing Cheers Aravind S Anuj Kumar wrote: > Thanks, > Yes, Now I am able to debug project. > But I want know about DDD. Where I found it. > I requried 'DDD RPM' verstion. > Best regards, > Anuj > > ----- Original Message ----- > From: Aravind Sadagopan > To: > Sent: Monday, October 23, 2000 6:28 AM > Subject: Re: [LIP] gdb and 'c' programming > > > Hi Anuj > > I dont think it makes a lot of difference either way... I guess the end > > product will be an executable no matter how many source files you have and > you > > are debugging the executable. Even if your project has a hundred source > files > > and different target in your makefile..all you have to do is compile with > the > > -g option > > and give the name of your executable (which has been formed linked from > 100 odd > > source files)..set a break point at 'main' function which I suppose..run > it, it > > will break at the first line of your program..then type 'n' to debug line > by > > line..if you want to see the values of your vriables use the 'print' > command to > > view the values > > > > I hope this is what you wanted to know or maybe I am not clear on this... > > > > Thanks > > Aravind S > > Anuj Kumar wrote: > > > > > Thanks for response. > > > This is useful. If I have one '.c' file then OK. > > > But I have complete Project, Number of '.c' file is there. > > > And i am using 'Makefile' project concepts. > > > In this case how to start debugging line by line. > > > Waiting you guidence. > > > with regards, > > > Anuj > > > > > > ****Aravind Sadagopan wrote *********** > > > > > > Date: Fri, 20 Oct 2000 18:10:36 +0800 > > > From: Aravind Sadagopan | Block > address > > > Subject: Re: [LIP] gdb and 'c' programming > > > To: linux-india-programmers@lists.linux-india.org > > > Reply-to: linux-india-programmers@lists.linux-india.org > > > Add Addresses > > > > > > Run > > > # gdb > > > gdb# r (to run the program) > > > gdb# break filename:line (to set the breakpoint) > > > gdb# continue (to continue from the breakpoint) > > > gdb# n (to trace through) > > > > > > Hope this helps..if you are in to GUI programs then DDD is the best > > > choice > > > > > > Cheers > > > Aravind S > > > > > > Anuj Kumar wrote: > > > > > > > Hi, > > > > I want to use gdb debugger for 'C' program. > > > > I have compiled program using -g option. > > > > Now; I want see the program behavior Line by Line. > > > > How can I run 'C' program line by line? > > > > Waiting your valuable guidance. > > > > With regards, > > > > Anuj > > > > > > > > > > --------------------------------------------- > > > 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. > > > > -- > > Living on Earth is expensive, but it does include a free trip > > round the sun > > > > > > > > > > --------------------------------------------- > > 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. -- Living on Earth is expensive, but it does include a free trip round the sun From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 01:52:15 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id D0B3A4A653 for ; Tue, 24 Oct 2000 01:30:47 -0700 (PDT) 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 e9O8Wuw20509 for ; Tue, 24 Oct 2000 14:02:56 +0530 Message-ID: <39F548A9.CD54943A@pspl.co.in> Date: Tue, 24 Oct 2000 14:00:33 +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: gdb and 'c' programming 'RPM DDD' References: <000501c03b44$ac7222f0$6801010a@incontrolint.in> <39F38D42.206101BA@eno.ericsson.se> <001501c03d82$099bc460$6801010a@incontrolint.in> <39F53A18.934781AA@eno.ericsson.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/148 Hi check out http://www.gnu.org/software/ddd/ddd.html. I don't find rpmfind.net that much easy to use. Better use freshmeat. It's couple of hops, ok, but gives homepage too. HTH Bye Shridhar Aravind Sadagopan wrote: > The rpm find mantra is in http://www.rpmfind.net ..type 'ddd' and among the > search results look for the redhat/Linux version you are using and download > that rpm..downloading an incompatible rpm can cause problems..BTW the latest > ddd is improved and looks amazing > From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 02:56:44 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 63EF84A243 for ; Tue, 24 Oct 2000 02:46:14 -0700 (PDT) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id PAA02103 for ; Tue, 24 Oct 2000 15:22:04 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA6DC8 for ; Tue, 24 Oct 2000 15:03:42 +0530 Message-ID: <39F55A7A.EB9E0432@wipro.com> Date: Tue, 24 Oct 2000 15:16:35 +0530 From: "Vibhu Rishi" X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: clearcase on linux References: <1196B5CB33DED311A73700508B6FEB1E026D67BB@ban03xbindge.geind.ge.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/149 does rational make clearcase for linux ? i m working on solaris from a linux dubba, and I run xclearcase from the solaris shell.. but it is not clearcase on Linux. vibhu.. "Sarcar, Shourya (MED)" wrote: > Friends ! > Has anybody successfully deployed ClearCase (Rational)on Linux in your > organisation ? Any reported problems with MVFS ? > > TIA > Shourya > > --------------------------------------------- > 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. -- .......................................................................... To know the road ahead, ask those coming back. -Chinese Proverb -------------------------------------------------------------------------- Vibhu Rishi e@ vibhu.rishi@wipro.com Sr. Systems Engineer ring@ 8520408/416/419/420/424/425 WIPRO ext.: 2109 Electronic City - Bangalore -------------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 02:56:47 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id AAD004A240 for ; Tue, 24 Oct 2000 02:44:33 -0700 (PDT) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id PAA01714 for ; Tue, 24 Oct 2000 15:20:21 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA6A0F for ; Tue, 24 Oct 2000 15:02:24 +0530 Message-ID: <39F55A2B.FBA85BB9@wipro.com> Date: Tue, 24 Oct 2000 15:15:15 +0530 From: "Vibhu Rishi" X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: snmpset command help References: <39F5235E.7020807@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/150 Hi Ramesh , you are correct. SNMPv1 has no provisioin for security, and this is the biggest drawback of SNMP. SNMPv3 has got a lot of security provisions, but snmpget/set is not implemented for v3. If you want a v3 manager, then you need to get some commercial software or you can make your own. A warning SNMPv3 is not at all "simple". vibhu.. Ramesh wrote: > hi all, > > i am going to use this snmpset command in my mini snmp manager program > to manage some devices. now i have a doubt. i found in the man page > examples that by giving the community name a private we can able to > access the device to change settings. then what about the security.. > there is no need of passwd r what. suppose if anybody know the IP > address and the community name can able to set the device r what. if not > then where to give the passwd for this command line utility snmpset...... > > can anybody help me.... > > ramesh. > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ -- .......................................................................... To know the road ahead, ask those coming back. -Chinese Proverb -------------------------------------------------------------------------- Vibhu Rishi e@ vibhu.rishi@wipro.com Sr. Systems Engineer ring@ 8520408/416/419/420/424/425 WIPRO ext.: 2109 Electronic City - Bangalore -------------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 02:56:53 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 4BAC34A246 for ; Tue, 24 Oct 2000 02:49:02 -0700 (PDT) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id PAA03068 for ; Tue, 24 Oct 2000 15:24:23 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA7505 for ; Tue, 24 Oct 2000 15:06:28 +0530 Message-ID: <39F55B1F.46EDB104@wipro.com> Date: Tue, 24 Oct 2000 15:19:19 +0530 From: "Vibhu Rishi" X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: socket propgramming References: <39F3CB52.2020509@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/151 Correct me if I am worng .. your IP address is something like 192.191.70.90 and you want to connect to 192.191.80.90 ? no problem if you are in the same network - no firewalls in between. if you have a firewall/proxy server in between, then I don't know. - any one out there who knows how this can be done ? vibhu.. Ramesh wrote: > hi all, > > i want to communicate to a machine in different subnet means how to > acheive it with socket porgramming... i did the same thing lihke > creatinga socket and establishing a connection with a machine with the > local subnet ... but when i wawnt to connect to a valid ip machine or a > machine in diffrent subnet.. how to acheive it programmatically.... can > anybody help me... > > ramesh > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.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. -- .......................................................................... To know the road ahead, ask those coming back. -Chinese Proverb -------------------------------------------------------------------------- Vibhu Rishi e@ vibhu.rishi@wipro.com Sr. Systems Engineer ring@ 8520408/416/419/420/424/425 WIPRO ext.: 2109 Electronic City - Bangalore -------------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 03: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 5E4A64A21C for ; Tue, 24 Oct 2000 03:08:18 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id PAA01498 for ; Tue, 24 Oct 2000 15:28:29 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id PAA11972 for ; Tue, 24 Oct 2000 15:31:46 +0500 (GMT) Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA6528 for ; Tue, 24 Oct 2000 15:32:06 +0530 Message-ID: <39F5615B.D8000BF3@wipro.com> Date: Tue, 24 Oct 2000 15:45:55 +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: preprocessor directives? References: <12270201.972371107652.JavaMail.imail@knuckles.excite.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/152 hi, when cpp ( pre-processor ) runs it converts all $define as said. so after cpp code does not have any #defines and all it's corresponding values are replaced with defined values. out put of file only preprocessed ( gcc -E ....) ( note this is out got on my m/c) -------------------------------------------- # 1 "1.c" 2 main() { int first=0,second=1; printf("%d:%d\n",first,second); printf("%d:%d\n",first ,second ); exit(0); } ------------------------------------------- now i think u can see , why result came as it is given. 0:1 0:1 since that is what code does... hth bye ketan if i missed anything... let me know. honne gowda gowda wrote: > > hi, > > can somebody explain the following piece of code: > > #include > main() > { > int first=0,second=1; > > printf("%d:%d\n",first,second); > #define first second > #define second first > printf("%d:%d\n",first,second); > exit(0); > } > > thanx in advance From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 03:42:14 2000 Received: from inet-smtp4.us.oracle.com (inet-smtp4.oracle.com [209.246.15.58]) by www.aunet.org (Postfix) with ESMTP id 68EEE4A6BE for ; Tue, 24 Oct 2000 03:34:14 -0700 (PDT) Received: from gmgw01.oraclecorp.com (gmgw01.us.oracle.com [130.35.61.190]) by inet-smtp4.us.oracle.com (8.9.3/8.9.3) with ESMTP id DAA16549 for ; Tue, 24 Oct 2000 03:30:54 -0700 (PDT) Received: from oracle.com (incq249a.idc.oracle.com [152.69.168.249]) by gmgw01.oraclecorp.com (8.8.8+Sun/8.8.8) with ESMTP id DAA06971 for ; Tue, 24 Oct 2000 03:30:52 -0700 (PDT) Message-ID: <39F56420.CF11E589@oracle.com> Date: Tue, 24 Oct 2000 15:57:44 +0530 From: Arvind Devarajan Organization: Oracle Corporation X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: socket propgramming References: <39F3CB52.2020509@yahoo.com> <39F55B1F.46EDB104@wipro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/153 hi vibhu, correct. you cannot connect to networks between which there are firewalls. for example, you know that www.redhat.com is at 216.148.218.195, still you cannot connect to it only because you will have firewalls both in your side (your company firewall) and at redhat. firewalls basically would look at your IP packets. they would extract source address, and have certain policies depending upon the destination addresses. for example, your firewall might have been configured so that all packets having a destination address, the network part of which is not any local network should be dropped. an example with numbers: suppose your network is 192.168.20.0, you might have a firewall installed at the gate way that drops all packets whose destination address is for networks other than 192.168.20.0. This effectively blocks you from accessing other networks. similarly, firewall could be configured so that they accept only packets whose source address is some trustable network - for example, "accept all packets from network 192.168.30.0, 192.168.25.0, etc." When this configuration exists, all packets belonging to networks not in the above list are dropped. what you can understand from this is: while you use the socket API to send and receive packets, your OS network software constructs IP packets with source and destination address specified by you (in the simplest case). and, this is not in your control - assuming that you are not using RAW sockets. finally, the firewalls look into these IP packets, and filter your packets.... and, might not allow you to connect to certain systems. arvind. Vibhu Rishi wrote: > Correct me if I am worng .. > > your IP address is something like 192.191.70.90 and you want to connect to > 192.191.80.90 ? > > no problem if you are in the same network - no firewalls in between. > > if you have a firewall/proxy server in between, then I don't know. - any > one out there who knows how this can be done ? > > vibhu.. > > Ramesh wrote: > > > hi all, > > > > i want to communicate to a machine in different subnet means how to > > acheive it with socket porgramming... i did the same thing lihke > > creatinga socket and establishing a connection with a machine with the > > local subnet ... but when i wawnt to connect to a valid ip machine or a > > machine in diffrent subnet.. how to acheive it programmatically.... can > > anybody help me... > > > > ramesh > > > > __________________________________________________ > > Do You Yahoo!? > > Talk to your friends online with Yahoo! Messenger. > > http://im.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. > > -- > .......................................................................... > To know the road ahead, ask those coming back. -Chinese Proverb > -------------------------------------------------------------------------- > Vibhu Rishi e@ vibhu.rishi@wipro.com > Sr. Systems Engineer ring@ 8520408/416/419/420/424/425 > WIPRO ext.: 2109 > Electronic City - Bangalore > -------------------------------------------------------------------------- > > --------------------------------------------- > 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 Oct 24 03:55:12 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 759634A12A for ; Tue, 24 Oct 2000 03:54:46 -0700 (PDT) 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 GAA17948 for ; Tue, 24 Oct 2000 06:51:25 -0400 (EDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-164.pilot.net with ESMTP id GAA04409 for ; Tue, 24 Oct 2000 06:51:23 -0400 (EDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id ; Tue, 24 Oct 2000 16:30:45 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E02753715@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: clearcase on linux Date: Tue, 24 Oct 2000 16:30:00 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200010/154 hi vibhu, Clearcase has been ported and released on Red Hat Linux afew months back. This is ClearCase 4.0 http://www.rational.com/news/press/pr_view.jsp?ID=3D7869 Regards Shourya Shourya.Sarcar@geind.ge.com ______________________________________________________________ Global Software Platforms GE Medical Systems A1 Golden Enclave, Airport Road, Bangalore, India 560 017=20 Tel : +91-80-526 3121|3496 Ext 362=A0 Surf : www.gemedicalsystems.com | www.shourya.com #-----Original Message----- #From: Vibhu Rishi [mailto:vibhu.rishi@wipro.com] #Sent: Tuesday, October 24, 2000 3:17 PM #To: linux-india-programmers@lists.linux-india.org #Subject: Re: [LIP] clearcase on linux # # #does rational make clearcase for linux ? # #i m working on solaris from a linux dubba, and I run=20 #xclearcase from the #solaris shell.. but it is not clearcase on Linux. # #vibhu.. # # #"Sarcar, Shourya (MED)" wrote: # #> Friends ! #> Has anybody successfully deployed ClearCase (Rational)on=20 #Linux in your #> organisation ? Any reported problems with MVFS ? #> #> TIA #> Shourya #> #> --------------------------------------------- #> 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. # #-- #............................................................... #........... # #To know the road ahead, ask those coming back. -Chinese Proverb #--------------------------------------------------------------- #----------- # #Vibhu Rishi e@ vibhu.rishi@wipro.com #Sr. Systems Engineer ring@ 8520408/416/419/420/424/425 #WIPRO ext.: 2109 #Electronic City - Bangalore #--------------------------------------------------------------- #----------- # # # # #--------------------------------------------- #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 Oct 24 06:07:05 2000 Received: from eth.net (mailserver2.ddsl.net [202.9.145.19]) by www.aunet.org (Postfix) with ESMTP id 514F04A2EF for ; Tue, 24 Oct 2000 06:03:17 -0700 (PDT) Received: from gdr ([202.9.170.114]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Tue, 24 Oct 2000 18:27:02 +0530 Message-ID: <001501c03dbd$aedce7c0$72aa09ca@gdr> From: "Delip Rao" To: "LIP" Subject: Detecting open files Date: Tue, 24 Oct 2000 18:53:55 +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.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200010/155 Hi, How do I detect a file already been opened by someother process? Thanks, Happy Diwali Delip Rao From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 06:07:14 2000 Received: from eth.net (mailserver2.ddsl.net [202.9.145.19]) by www.aunet.org (Postfix) with ESMTP id 9A6334A2E7 for ; Tue, 24 Oct 2000 06:00:07 -0700 (PDT) Received: from gdr ([202.9.170.114]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Tue, 24 Oct 2000 18:23:47 +0530 Message-ID: <000201c03dbd$3ac55ca0$72aa09ca@gdr> From: "Delip Rao" To: References: <000e01c034dc$c3a5b400$6801010a@incontrolint.in> Subject: Re: Linking problems Date: Tue, 17 Oct 2000 00:37:04 +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.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200010/156 Hi, Try compiling with -lncurses ----- Original Message ----- From: Anuj Kumar To: Cc: Sent: Friday, October 13, 2000 11:36 AM Subject: [LIP] Linking problems > Hi Guys, > > Problem -one:-------- > > I want to use / And .. > I have linking error. Because I don't know linking options. > I am using gcc complier. > > Please, I required your valuable guidance. > Thanks in Advance. > Anuj > > > > > > --------------------------------------------- > 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 Tue Oct 24 22:19:37 2000 Received: from gateway.shar.ernet.in (unknown [202.141.130.147]) by www.aunet.org (Postfix) with SMTP id 923AF4A00F for ; Tue, 24 Oct 2000 22:18:45 -0700 (PDT) Received: from GATEWAY [202.141.130.147] (HELO localhost) by gateway.shar.ernet.in (AltaVista Mail V1.0/1.0 BL18 listener) id 0000_0049_39f6_abd5_7cb6; Wed, 25 Oct 2000 10:45:57 +0100 Message-ID: <01C03E6F.C70E50B0@ACCPF1> From: "Y.R.S.N.Srinivas Anand" To: "Linux-India-Programmers Mailing List (E-mail)" Subject: Help to execute C Program Outputs Date: Wed, 25 Oct 2000 10:38:56 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/157 Hello Friends I am a new comer to LINUX. I had written C Programs and compiled them without errors. My computer does not execute a.out even though Execute Rights are available. Kindly Help Y.R.S.N.Srinivas Anand From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 22:30:47 2000 Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by www.aunet.org (Postfix) with ESMTP id ABFD94A03C for ; Tue, 24 Oct 2000 22:30:39 -0700 (PDT) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id e9P5RFt13098 for ; Wed, 25 Oct 2000 07:27:15 +0200 (MEST) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G2Z00G010HEEB@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Wed, 25 Oct 2000 07:27:15 +0200 (MET DST) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G2Z00GAG0HD2X@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Wed, 25 Oct 2000 07:27:14 +0200 (MET DST) Date: Wed, 25 Oct 2000 13:28:59 +0800 From: Aravind Sadagopan Subject: Re: Help to execute C Program Outputs To: linux-india-programmers@lists.linux-india.org Message-id: <39F66F9B.DA36F01A@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <01C03E6F.C70E50B0@ACCPF1> X-Archive-Number: 200010/158 Hope these are the steps you followed ..assume your source file is in /home/anand/mydirectory [mydirectory]> gcc test.c This will create a a.out file in 'mydirectory'..Then to execute [mydirectory]> ./a.out This will execute the file a.out (the "./" is a shortcut to execute from the current directory) Other alternatives will be 1. include 'mydirectory' in your path..by giving -export PATH=$PATH:mydirectory and then execute the program starightaway at the prompt 2. give the full path name of your executable- /home/anand/mydirectory/a.out at the prompt Cheers Aravind S "Y.R.S.N.Srinivas Anand" wrote: > Hello Friends > > I am a new comer to LINUX. I had written C Programs and compiled them without errors. > > My computer does not execute a.out even though Execute Rights are available. > > Kindly Help > > Y.R.S.N.Srinivas Anand > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ -- Living on Earth is expensive, but it does include a free trip round the sun From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 22:31:58 2000 Received: from natsemi-bh.nsc.com (natsemi-bh.nsc.com [204.163.202.66]) by www.aunet.org (Postfix) with ESMTP id 3AF8C4A08D for ; Tue, 24 Oct 2000 22:31:57 -0700 (PDT) Received: (from uucp@localhost) by natsemi-bh.nsc.com (8.8.8/8.6.11) id WAA16481 for ; Tue, 24 Oct 2000 22:28:29 -0700 (PDT) From: sojan@malkauns.nsc.com Received: from nsc.nsc.com(139.187.81.1) by natsemi-bh.nsc.com via smap (4.1) id xma016328; Tue, 24 Oct 00 22:28:01 -0700 Received: from malkauns.malkauns.nsc.com (malkauns.nsc.com [139.187.83.131]) by nsc.nsc.com (8.9.3+Sun/8.9.3) with SMTP id WAA06473 for ; Tue, 24 Oct 2000 22:27:52 -0700 (PDT) Received: from chakravakam by malkauns.malkauns.nsc.com (SMI-8.6/SMI-SVR4) id LAA09171; Wed, 25 Oct 2000 11:06:19 GMT Date: Wed, 25 Oct 2000 11:07:00 +0500 (GMT-5) X-Sender: sojan@idc-sw1.nsc.com To: "Linux-India-Programmers Mailing List (E-mail)" Subject: Re: Help to execute C Program Outputs In-Reply-To: <01C03E6F.C70E50B0@ACCPF1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/159 try "./a.out" instead of "a.out" or add the current directory "." in your PATH. Soj. On Wed, 25 Oct 2000, Y.R.S.N.Srinivas Anand wrote: > > Hello Friends > > I am a new comer to LINUX. I had written C Programs and compiled them without errors. > > My computer does not execute a.out even though Execute Rights are available. > > Kindly Help From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 22:50:55 2000 Received: from mailhost.iitb.ac.in (mailhost.iitb.ac.in [203.197.74.142]) by www.aunet.org (Postfix) with SMTP id F1A5D4A1D9 for ; Tue, 24 Oct 2000 22:50:31 -0700 (PDT) Received: (qmail 29873 invoked from network); 25 Oct 2000 05:50:06 -0000 Received: from sankhya.math.iitb.ernet.in (144.16.98.200) by mailhost.iitb.ac.in with SMTP; 25 Oct 2000 05:50:06 -0000 Received: from sutra.math.iitb.ernet.in (root@sutra.math.iitb.ernet.in [144.16.98.199]) by sankhya.math.iitb.ernet.in (8.8.8/8.8.8) with ESMTP id KAA22124 for ; Wed, 25 Oct 2000 10:08:52 +0530 (IST) Received: from localhost (mishra@localhost) by sutra.math.iitb.ernet.in (8.9.3/8.9.3) with ESMTP id LAA19222 for ; Wed, 25 Oct 2000 11:23:06 +0530 Date: Wed, 25 Oct 2000 11:23:06 +0530 (IST) From: Ashish To: linux-india-programmers@lists.linux-india.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/160 Hi, I have just started to learn network programming. I tried to run a c program from Stevens book on network programming. The program is #include #include #include #include main() { int pipefd[2], n ; char buff[100] ; if( pipe(pipefd) < 0) err_sys("pipe erroe"); printf("read fd = %d, write fd = %d\n", pipefd[0], pipefd[1]); if(write(pipefd[1], "hello world",12) != 12) err_sys("write error"); if( (n = read(pipefd[0], buff ,sizeof(buff))) <= 0 ) err_sys("read error"); write(1, buff, n); exit(0); } Its giving error as follows: /tmp/cc6q5fia.o: In function `main': /tmp/cc6q5fia.o(.text+0x1e): undefined reference to `err_sys' /tmp/cc6q5fia.o(.text+0x5a): undefined reference to `err_sys' /tmp/cc6q5fia.o(.text+0x84): undefined reference to `err_sys' collect2: ld returned 1 exit status I am compiling on linux. Is there any header file I am not including? Please let me know what's the problem bye Ashish From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 23:13:20 2000 Received: from inet-smtp3.oracle.com (inet-smtp3.oracle.com [205.227.43.23]) by www.aunet.org (Postfix) with ESMTP id 21EDF4A106 for ; Tue, 24 Oct 2000 23:12:06 -0700 (PDT) Received: from gmgw01.oraclecorp.com (gmgw01.us.oracle.com [130.35.61.190]) by inet-smtp3.oracle.com (8.9.3/8.9.3) with ESMTP id XAA02837 for ; Tue, 24 Oct 2000 23:08:42 -0700 (PDT) Received: from oracle.com (incq249a.idc.oracle.com [152.69.168.249]) by gmgw01.oraclecorp.com (8.8.8+Sun/8.8.8) with ESMTP id XAA28525 for ; Tue, 24 Oct 2000 23:08:35 -0700 (PDT) Message-ID: <39F67822.EBF72691@oracle.com> Date: Wed, 25 Oct 2000 11:35:23 +0530 From: Arvind Devarajan Organization: Oracle Corporation X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/161 hi ashish, no. there is no need to add anymore header file. you just will have to type in the function err_sys() in your code. this, you can either write your own code, or, copy the code in stevens book, pg. 724, Seventh Indian Reprint (Appendix A, Standard Error Routines). arvind. Ashish wrote: > Hi, > > I have just started to learn network programming. > I tried to run a c program from Stevens book on network > programming. > > The program is > > #include > #include > #include > #include > > main() > > { > int pipefd[2], n ; > char buff[100] ; > > if( pipe(pipefd) < 0) > err_sys("pipe erroe"); > > printf("read fd = %d, write fd = %d\n", pipefd[0], pipefd[1]); > > if(write(pipefd[1], "hello world",12) != 12) > err_sys("write error"); > > if( (n = read(pipefd[0], buff ,sizeof(buff))) <= 0 ) > err_sys("read error"); > > write(1, buff, n); > > exit(0); > > } > > Its giving error as follows: > > /tmp/cc6q5fia.o: In function `main': > /tmp/cc6q5fia.o(.text+0x1e): undefined reference to `err_sys' > /tmp/cc6q5fia.o(.text+0x5a): undefined reference to `err_sys' > /tmp/cc6q5fia.o(.text+0x84): undefined reference to `err_sys' > collect2: ld returned 1 exit status > > I am compiling on linux. Is there any header file I am not including? > Please let me know what's the problem > > bye > Ashish > > > > --------------------------------------------- > 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 Tue Oct 24 23:25:56 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 9BE314A00C for ; Tue, 24 Oct 2000 23:14:22 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id LAA09557 for ; Wed, 25 Oct 2000 11:35:14 +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 LAA25393 for ; Wed, 25 Oct 2000 11:38:31 +0500 (GMT) Received: from saveri.wipro.tcpn.com (syedk@saveri.wipro.tcpn.com [172.31.41.28]) by wipro.tcpn.com (8.9.3/8.9.3) with SMTP id LAA01079 for ; Wed, 25 Oct 2000 11:41:07 +0530 (IST) Date: Wed, 25 Oct 2000 11:45:36 +0530 (IST) From: Syed Khaleelulla To: linux-india-programmers@lists.linux-india.org Subject: Re: Problem in calling err_sys procedure, In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/162 Hello, I think the "err_sys" is a private procedure that has been written. You can use the perror or strerror function, insted of that procedure. See man perror & man strerror for more detail. -Bye, Syed Khaleelulla. ------------------ On Wed, 25 Oct 2000, Ashish wrote: + +Hi, + +I have just started to learn network programming. +I tried to run a c program from Stevens book on network +programming. + +The program is + +#include +#include +#include +#include + +main() + +{ + int pipefd[2], n ; + char buff[100] ; + + if( pipe(pipefd) < 0) + err_sys("pipe erroe"); + + printf("read fd = %d, write fd = %d\n", pipefd[0], pipefd[1]); + + if(write(pipefd[1], "hello world",12) != 12) + err_sys("write error"); + + if( (n = read(pipefd[0], buff ,sizeof(buff))) <= 0 ) + err_sys("read error"); + + write(1, buff, n); + + exit(0); + +} + + +Its giving error as follows: + +/tmp/cc6q5fia.o: In function `main': +/tmp/cc6q5fia.o(.text+0x1e): undefined reference to `err_sys' +/tmp/cc6q5fia.o(.text+0x5a): undefined reference to `err_sys' +/tmp/cc6q5fia.o(.text+0x84): undefined reference to `err_sys' +collect2: ld returned 1 exit status + +I am compiling on linux. Is there any header file I am not including? +Please let me know what's the problem + +bye +Ashish + From linux-india-programmers-owner@lists.linux-india.org Tue Oct 24 23:41:31 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 A9FFC4A012 for ; Tue, 24 Oct 2000 23:40:33 -0700 (PDT) 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 CAA01980 for ; Wed, 25 Oct 2000 02:37:09 -0400 (EDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-165.pilot.net with ESMTP id CAA19501 for ; Wed, 25 Oct 2000 02:37:08 -0400 (EDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id ; Wed, 25 Oct 2000 12:16:28 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E0279552E@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Problem in calling err_sys procedure, Date: Wed, 25 Oct 2000 12:15:47 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/163 if you feel too lazy to implement arvind devarajan's solution, replace "err_sys" by "perror". #define err_sys perror shourya #-----Original Message----- #From: Syed Khaleelulla [mailto:Syed.Khaleelulla@wipro.com] #Sent: Wednesday, October 25, 2000 11:46 AM #To: linux-india-programmers@lists.linux-india.org #Subject: Re: [LIP] Problem in calling err_sys procedure, # # #Hello, # #I think the "err_sys" is a private procedure that has been written. # #You can use the perror or strerror function, insted of that procedure. #See man perror & man strerror for more detail. # #-Bye, #Syed Khaleelulla. #------------------ # #On Wed, 25 Oct 2000, Ashish wrote: # #+ #+Hi, #+ #+I have just started to learn network programming. #+I tried to run a c program from Stevens book on network #+programming. #+ #+The program is #+ #+#include #+#include #+#include #+#include #+ #+main() #+ #+{ #+ int pipefd[2], n ; #+ char buff[100] ; #+ #+ if( pipe(pipefd) < 0) #+ err_sys("pipe erroe"); #+ #+ printf("read fd = %d, write fd = %d\n", pipefd[0], pipefd[1]); #+ #+ if(write(pipefd[1], "hello world",12) != 12) #+ err_sys("write error"); #+ #+ if( (n = read(pipefd[0], buff ,sizeof(buff))) <= 0 ) #+ err_sys("read error"); #+ #+ write(1, buff, n); #+ #+ exit(0); #+ #+} #+ #+ #+Its giving error as follows: #+ #+/tmp/cc6q5fia.o: In function `main': #+/tmp/cc6q5fia.o(.text+0x1e): undefined reference to `err_sys' #+/tmp/cc6q5fia.o(.text+0x5a): undefined reference to `err_sys' #+/tmp/cc6q5fia.o(.text+0x84): undefined reference to `err_sys' #+collect2: ld returned 1 exit status #+ #+I am compiling on linux. Is there any header file I am not including? #+Please let me know what's the problem #+ #+bye #+Ashish #+ # # #--------------------------------------------- #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 Oct 25 00:27:07 2000 Received: from web9210.mail.yahoo.com (web9210.mail.yahoo.com [216.136.129.43]) by www.aunet.org (Postfix) with SMTP id 79F384A222 for ; Wed, 25 Oct 2000 00:09:15 -0700 (PDT) Message-ID: <20001025070547.4985.qmail@web9210.mail.yahoo.com> Received: from [202.9.170.144] by web9210.mail.yahoo.com; Wed, 25 Oct 2000 00:05:47 PDT Date: Wed, 25 Oct 2000 00:05:47 -0700 (PDT) From: john slater Subject: to remove the loging prompt and password............... To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/164 hello i am in to development of a linux thin Client, insteated of a bootrom i am using a M-System diskonchip, i am in the inital stages of development, the diskonchip contains the base os(Red Hat 6.0), X-drivers, network drives,... etc with all other services, the status of the project is that the linux has recognized the diskonchip, i have put all the neccessary files to boot, even the lilo is updated, the problem is that i am not abel to remove the login prompt, which is not required in the project, i will be pleased if some one can help me in removing the login prompt and password, thank u Syed Mudasir Ahmed --- Arvind Devarajan wrote: > hi vibhu, > correct. you cannot connect to networks between > which there are firewalls. > for example, you know that www.redhat.com is at > 216.148.218.195, still you > cannot connect to it only because you will have > firewalls both in your side > (your company firewall) and at redhat. > firewalls basically would look at your IP > packets. they would extract > source address, and have certain policies depending > upon the destination > addresses. for example, your firewall might have > been configured so that all > packets having a destination address, the network > part of which is not any > local network should be dropped. an example with > numbers: suppose your network > is 192.168.20.0, you might have a firewall installed > at the gate way that > drops all packets whose destination address is for > networks other than > 192.168.20.0. This effectively blocks you from > accessing other networks. > similarly, firewall could be configured so that > they accept only packets > whose source address is some trustable network - for > example, "accept all > packets from network 192.168.30.0, 192.168.25.0, > etc." When this configuration > exists, all packets belonging to networks not in the > above list are dropped. > what you can understand from this is: while you > use the socket API to send > and receive packets, your OS network software > constructs IP packets with > source and destination address specified by you (in > the simplest case). and, > this is not in your control - assuming that you are > not using RAW sockets. > finally, the firewalls look into these IP packets, > and filter your packets.... > and, might not allow you to connect to certain > systems. > > arvind. > > Vibhu Rishi wrote: > > > Correct me if I am worng .. > > > > your IP address is something like 192.191.70.90 > and you want to connect to > > 192.191.80.90 ? > > > > no problem if you are in the same network - no > firewalls in between. > > > > if you have a firewall/proxy server in between, > then I don't know. - any > > one out there who knows how this can be done ? > > > > vibhu.. > > > > Ramesh wrote: > > > > > hi all, > > > > > > i want to communicate to a machine in different > subnet means how to > > > acheive it with socket porgramming... i did the > same thing lihke > > > creatinga socket and establishing a connection > with a machine with the > > > local subnet ... but when i wawnt to connect to > a valid ip machine or a > > > machine in diffrent subnet.. how to acheive it > programmatically.... can > > > anybody help me... > > > > > > ramesh > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Talk to your friends online with Yahoo! > Messenger. > > > http://im.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. > > > > -- > > > .......................................................................... > > To know the road ahead, ask those coming back. > -Chinese Proverb > > > -------------------------------------------------------------------------- > > Vibhu Rishi e@ vibhu.rishi@wipro.com > > Sr. Systems Engineer ring@ > 8520408/416/419/420/424/425 > > WIPRO ext.: 2109 > > Electronic City - Bangalore > > > -------------------------------------------------------------------------- > > > > --------------------------------------------- > > 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. > > > --------------------------------------------- > 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! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 00:28:15 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.141]) by www.aunet.org (Postfix) with ESMTP id 87BCC4A129 for ; Tue, 24 Oct 2000 23:58:10 -0700 (PDT) Received: (from binand@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id MAA08714 for linux-india-programmers@lists.linux-india.org; Wed, 25 Oct 2000 12:24:00 +0530 Date: Wed, 25 Oct 2000 12:24:00 +0530 From: Binand Raj S To: linux-india-programmers@lists.linux-india.org Subject: Stevens (was: Re: ) Message-ID: <20001025122400.A8675@alice.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 X-Mailer: Mutt 1.0pre3us In-Reply-To: X-Operating-System: Linux 2.2.17-11alice X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200010/165 Ashish forced the electrons to say: > I have just started to learn network programming. > I am compiling on linux. Is there any header file I am not including? I'd say you forgot #include Binand PS: Also, read the book once again, especially the appendix Stevens has on code common to all the programs in the book. From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 02:07:16 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id D28AB4A264 for ; Wed, 25 Oct 2000 01:37:19 -0700 (PDT) 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 e9P8dKq13366 for ; Wed, 25 Oct 2000 14:09:20 +0530 Message-ID: <39F69BAF.58585F1C@pspl.co.in> Date: Wed, 25 Oct 2000 14:07:03 +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: to remove the loging prompt and password............... References: <20001025070547.4985.qmail@web9210.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/166 Hi You got to hack /bin/login. This is the program called to authenticate users. Write a simple program that returns true for everything. Look at what pam requires. I don't know it exactly. This was asked couple of times before. But yours is only situation where doing so is justificable (To my opinion.. :-))). HTH Bye Shridhar john slater wrote: > hello > i will be pleased if some one can help me in > removing the login prompt and password, > thank u > Syed Mudasir Ahmed From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 02:29:00 2000 Received: from fw1-bv.tek.com (fw1-bv.tek.com [192.65.40.16]) by www.aunet.org (Postfix) with ESMTP id 39A324A3BD for ; Wed, 25 Oct 2000 02:17:04 -0700 (PDT) Received: from fw1-bv.tek.com (root@localhost) by fw1-bv.tek.com with ESMTP id CAA01681 for ; Wed, 25 Oct 2000 02:13:40 -0700 (PDT) From: ashok.narayanan.potti@exgate.tek.com Received: from tektronix.tek.com (tektronix.tek.com [128.181.6.43]) by fw1-bv.tek.com with ESMTP id CAA01673 for ; Wed, 25 Oct 2000 02:13:40 -0700 (PDT) Received: from us-bv-u07.bv.tek.com (webshield.tek.com [128.181.2.130]) by tektronix.tek.com (8.9.3+Sun/8.9.3) with SMTP id CAA05511 for ; Wed, 25 Oct 2000 02:13:26 -0700 (PDT) Received: FROM us-bv-m01.bv.tek.com BY us-bv-u07.bv.tek.com ; Wed Oct 25 02:13:07 2000 -0700 Received: by us-bv-m01.bv.tek.com with Internet Mail Service (5.5.2448.0) id ; Wed, 25 Oct 2000 02:13:07 -0700 Message-ID: <21F9768AF088D211BF1C0008C71E5786D2C35A@ap-bang-m02.india.tek.com> To: linux-india-programmers@lists.linux-india.org Subject: Happy Diwali Date: Wed, 25 Oct 2000 02:13:22 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/167 Hi Linux Friends Happy Diwali Regards Ashok Narayanan From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 03:35:33 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.134]) by www.aunet.org (Postfix) with ESMTP id F2E6F4A0F0 for ; Wed, 25 Oct 2000 03:35:09 -0700 (PDT) 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 PAA18832 for ; Wed, 25 Oct 2000 15:54:09 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id PAA08544 for linux-india-programmers@lists.linux-india.org; Wed, 25 Oct 2000 15:50:57 +0530 Date: Wed, 25 Oct 2000 15:50:57 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: to remove the loging prompt and password............... Message-ID: <20001025155057.A8515@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001025070547.4985.qmail@web9210.mail.yahoo.com> <39F69BAF.58585F1C@pspl.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <39F69BAF.58585F1C@pspl.co.in>; from shridhard@pspl.co.in on Wed, Oct 25, 2000 at 02:07:03PM +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: 200010/168 Shridhar Daithankar forced the electrons to say: > You got to hack /bin/login. This is the program called to authenticate users. I have got a little patch to mingetty that avoids the call to /bin/login altogether, and starts a shell for me, instead of the usual login/password procedure. Mind you, it is very dangerous to use on a production server, I use it only on one VT of my laptop. If you are interested, mail me offline. Binand -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 03:47:10 2000 Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61]) by www.aunet.org (Postfix) with ESMTP id EE9554A129 for ; Wed, 25 Oct 2000 03:47:04 -0700 (PDT) Received: from dlep7.itg.ti.com ([157.170.134.103]) by gatekeep.ti.com (8.11.1/8.11.1) with ESMTP id e9PAhen04701 for ; Wed, 25 Oct 2000 05:43:40 -0500 (CDT) Received: from dlep7.itg.ti.com (localhost [127.0.0.1]) by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id FAA04506 for ; Wed, 25 Oct 2000 05:43:40 -0500 (CDT) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.101.6]) by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id FAA04476 for ; Wed, 25 Oct 2000 05:43:37 -0500 (CDT) Received: from apdsparc3.india.ti.com (apdsparc3 [157.87.96.6]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id QAA15774 for ; Wed, 25 Oct 2000 16:13:34 +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 QAA11421 for ; Wed, 25 Oct 2000 16:13:20 +0530 (IST) Message-ID: <39F6B948.41B7C836@india.ti.com> Date: Wed, 25 Oct 2000 16:13:20 +0530 From: Sumit Rangawala 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: Help to execute C Program Outputs References: <01C03E6F.C70E50B0@ACCPF1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/169 Hi, What's the error message. May be you need to include current directory in your path. Linux shell does not search for an executable in the present dir by default. Bye Sumit "Y.R.S.N.Srinivas Anand" wrote: > Hello Friends > > I am a new comer to LINUX. I had written C Programs and compiled them without errors. > > My computer does not execute a.out even though Execute Rights are available. > > Kindly Help > > Y.R.S.N.Srinivas Anand > > --------------------------------------------- > 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 Oct 25 03:50:32 2000 Received: from mars.hss.co.in (unknown [202.54.26.197]) by www.aunet.org (Postfix) with ESMTP id EC7294A126 for ; Wed, 25 Oct 2000 03:50:14 -0700 (PDT) Received: from sandesh.hss.hns.com (sandesh [139.85.242.35]) by mars.hss.co.in (8.10.0/8.10.0) with SMTP id e9PAl9C24357 for ; Wed, 25 Oct 2000 16:17:19 +0530 (IST) Received: by sandesh.hss.hns.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 65256983.003A3157 ; Wed, 25 Oct 2000 16:05:37 +0530 X-Lotus-FromDomain: HSS From: mamuneeb@hss.hns.com To: linux-india-programmers@lists.linux-india.org Message-ID: <65256983.003A307D.00@sandesh.hss.hns.com> Date: Wed, 25 Oct 2000 16:11:06 +0530 Subject: Re: Happy Diwali Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200010/170 I hope not to see again this kind of message in the linux newsgroups.... If we go on wishing each other on festivals, there are plenty of them. Imagine if everyone sends a message on their festival , the linux newsgroup will be flooded with these messages only...... Atleast I haven't subscribed to linux programmers newsgroup to received this kind of message... what say ??? -muneeb From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 04:10:32 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id EF5614A14B for ; Wed, 25 Oct 2000 04:10:23 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id QAA29548 for ; Wed, 25 Oct 2000 16:31:22 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id QAA17911 for ; Wed, 25 Oct 2000 16:34:40 +0500 (GMT) Received: from wipro.com ([164.164.27.181]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAAB24 for ; Wed, 25 Oct 2000 16:35:01 +0530 Message-ID: <39F6C19F.306ABA1C@wipro.com> Date: Wed, 25 Oct 2000 16:48:55 +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: regarding samba References: <21F9768AF088D211BF1C0008C71E5786D2C35A@ap-bang-m02.india.tek.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/171 hi all, this is not exactly programming problem. but i think if anyone help me out. ( i don't want any reminding that this is not maillist..... , i think i can get reply from here). i want to know , i am having box running samba , so win* machines on network can see it. now when someone is connected to my machine, can i send win popup message to machine. or anyway i can send message to that machine. i can know ip. NetBios name .... can't use message , since that is win machine??? pls help in this matter. thanks for reading. bye ketan From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 04:21:28 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.134]) by www.aunet.org (Postfix) with ESMTP id AAE2149F47 for ; Wed, 25 Oct 2000 04:21:20 -0700 (PDT) Received: (from amarg@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id QAA20764 for linux-india-programmers@lists.linux-india.org; Wed, 25 Oct 2000 16:46:08 +0530 Date: Wed, 25 Oct 2000 16:46:08 +0530 From: Amarendra GODBOLE To: linux-india-programmers@lists.linux-india.org Subject: Re: Happy Diwali Message-ID: <20001025164608.A20626@alice.bombay.retortsoft.com> References: <65256983.003A307D.00@sandesh.hss.hns.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <65256983.003A307D.00@sandesh.hss.hns.com> X-Quote: "If you don't try to succeed, nobody will try to stop you." X-Friends: Shailesh, Shantanu, Sameer, Prachi, Dinesh. X-Home: amar.gnu-linux.net X-Organisation: Retort Software Pvt. Ltd., Powai, Mumbai. INDIA. X-Archive-Number: 200010/172 On Wed, Oct 25, 2000, the greycells of mamuneeb@hss.hns.com expressed: > I hope not to see again this kind of message in the linux newsgroups.... Why not ? > > If we go on wishing each other on festivals, there are plenty of them. > > Imagine if everyone sends a message on their festival , the linux newsgroup will > be flooded > with these messages only...... Should I prove mathematically that given the number of festivals, the total subscribers and the subscribers who send wishes, do _NOT_ flood the newsgroup ? ;-) > > Atleast I haven't subscribed to linux programmers newsgroup to received this > kind of message... > Think about it and try to respect sentiments behind the greetings. > > what say ??? Said already. > > -muneeb Regards, Amar :-) -- Amarendra GODBOLE Good judgement comes from experience, Experience comes from bad judgement. From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 04:25:28 2000 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id 006CF4A16A for ; Wed, 25 Oct 2000 04:25:23 -0700 (PDT) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id HAA17216 for ; Wed, 25 Oct 2000 07:22:20 -0400 (EDT) Message-ID: <019201c03e74$f32105d0$8200000a@aclindia.com> From: "Ambar Roy" To: References: <20001025070547.4985.qmail@web9210.mail.yahoo.com> <39F69BAF.58585F1C@pspl.co.in> <20001025155057.A8515@bombay.retortsoft.com> Subject: Re: to remove the loging prompt and password............... Date: Wed, 25 Oct 2000 16:45:51 +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.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200010/173 > procedure. Mind you, it is very dangerous to use on a production server, I use but not really on desktops!! remember DOS, and windows 9x/me!! also win2k has a feature where u r logged on automatically!! Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 04:27:08 2000 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id 1B0894A215 for ; Wed, 25 Oct 2000 04:27:07 -0700 (PDT) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id HAA17422 for ; Wed, 25 Oct 2000 07:23:59 -0400 (EDT) Message-ID: <019601c03e75$301f0950$8200000a@aclindia.com> From: "Ambar Roy" To: References: <65256983.003A307D.00@sandesh.hss.hns.com> Subject: Re: Happy Diwali Date: Wed, 25 Oct 2000 16:47:28 +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.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200010/174 Come on!!!! i hav recieved only one message till now!! and that is not that bad really!! i agree that everyone shud not greet each other on festivals, but then how abt such messages from the admin, or generated automatically by the admin!! Bye, /\ |\/| |3 /\ r > I hope not to see again this kind of message in the linux newsgroups.... > > If we go on wishing each other on festivals, there are plenty of them. > > Imagine if everyone sends a message on their festival , the linux newsgroup will > be flooded > with these messages only...... > > Atleast I haven't subscribed to linux programmers newsgroup to received this > kind of message... From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 05:18:18 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.134]) by www.aunet.org (Postfix) with ESMTP id 9BFF84A0F0 for ; Wed, 25 Oct 2000 05:18:07 -0700 (PDT) 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 RAA21898 for ; Wed, 25 Oct 2000 17:36:10 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id RAA09131 for linux-india-programmers@lists.linux-india.org; Wed, 25 Oct 2000 17:32:53 +0530 Date: Wed, 25 Oct 2000 17:32:53 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Happy Diwali Message-ID: <20001025173252.B8627@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <65256983.003A307D.00@sandesh.hss.hns.com> <20001025164608.A20626@alice.bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <20001025164608.A20626@alice.bombay.retortsoft.com>; from amarg@bombay.retortsoft.com on Wed, Oct 25, 2000 at 04:46: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: 200010/175 Amarendra GODBOLE forced the electrons to say: > > I hope not to see again this kind of message in the linux newsgroups.... > Why not ? Because it is OT here, it is unwanted, it just floods the list and many more reasons. > Should I prove mathematically that given the number of festivals, the > total subscribers and the subscribers who send wishes, do _NOT_ flood > the newsgroup ? ;-) Well, so far I am concerned, even a single OT posting constitutes flooding. > Think about it and try to respect sentiments behind the greetings. What sentiments? That someone, whom I don't even know, is wasting my hard earned bandwidth - bandwidth that I have reserved to learn more about the Linux operating system - for absolutely irrelevant and frivolous activities? Diwali greetings have a place, I admit - but not in a mailing list that has in its charter 'Discussion of issues related to programming in Linux'. My INR 0.02. Binand PS: Suresh - take over from there :) -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 11:09:43 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id C7A3C4A14B for ; Wed, 25 Oct 2000 11:09:40 -0700 (PDT) Received: (qmail 32193 invoked by uid 417); 25 Oct 2000 18:02:00 -0000 Received: from unknown (HELO d) (210.214.88.169) by smtpb.softhome.net with SMTP; 25 Oct 2000 18:02:00 -0000 Date: Wed, 25 Oct 2000 23:30:19 +0500 From: Ð ë ê þ ã K Reply-To: deepakyadav@india.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: to remove the loging prompt and password............... X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Message-Id: <20001025180940.C7A3C4A14B@www.aunet.org> X-Archive-Number: 200010/176 hi write APPEND= single in your /etc/lilo.conf e.g image=/boot/vmlinuz-2.2.14-12 label=l APPEND= single read-only root=/dev/hda4 this drops u in a shell as superuser _______ deepak At 10/25/00 2:07:00 PM, you wrote: >Hi > >You got to hack /bin/login. This is the program called to authenticate users. >Write a simple program that returns true for everything. Look at what pam >requires. I don't know it exactly. > >This was asked couple of times before. But yours is only situation where doing >so is justificable (To my opinion.. :-))). > >HTH > > Bye > Shridhar > >john slater wrote: > >> hello >> i will be pleased if some one can help me in >> removing the login prompt and password, >> thank u >> Syed Mudasir Ahmed > > >--------------------------------------------- >The mailing list archives are available at >http://lists.linux-india.org/cgi-bin/wilma/LIP > > ----------------------------- reply soon bye ==== Ð ë ê þ ã K ---- have a great day ICQ 30662394 -- The attention span of a computer is only as long as its power cord. From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 11:09:51 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id C39C04A14B for ; Wed, 25 Oct 2000 11:09:42 -0700 (PDT) Received: (qmail 32421 invoked by uid 417); 25 Oct 2000 18:02:12 -0000 Received: from unknown (HELO d) (210.214.88.169) by smtpb.softhome.net with SMTP; 25 Oct 2000 18:02:12 -0000 Date: Wed, 25 Oct 2000 23:30:26 +0500 From: Ð ë ê þ ã K Reply-To: deepakyadav@india.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Detecting open files X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Message-Id: <20001025180942.C39C04A14B@www.aunet.org> X-Archive-Number: 200010/177 hi the VFS inode has a count field . if u can check that out ( i donno how) ------------ deepak At 10/24/00 6:53:00 PM, you wrote: >Hi, >How do I detect a file already been opened by someother >process? >Thanks, >Happy Diwali >Delip Rao > > >--------------------------------------------- >Find out more about this and other Linux India >mailing lists at http://lists.linux-india.org/ > > ----------------------------- reply soon bye ==== Ð ë ê þ ã K ---- have a great day ICQ 30662394 -- The attention span of a computer is only as long as its power cord. From linux-india-programmers-owner@lists.linux-india.org Wed Oct 25 13:22:58 2000 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id E0F1A4A00B for ; Wed, 25 Oct 2000 13:22:52 -0700 (PDT) Received: from noname (PPP-203-197-8-25.bom.vsnl.net.in [203.197.8.25]) by bom8.vsnl.net.in (Postfix) with SMTP id 0A1C7606F for ; Thu, 26 Oct 2000 01:19:17 +0500 (GMT+0500) Message-ID: <000901c03ebd$96b59ec0$1908c5cb@noname> From: "Arsalan Zaidi" To: Subject: writing struct to disk with write() Date: Thu, 26 Oct 2000 01:25:15 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/178 Hi. It's nearly 1:30 am and I'm not getting this... When I run this prog, perror() tells me write() won't write because of a Bad File Descriptor. open() however succeeds. What am I doing wrong? --Arsalan. #include #include #include #include #include #include #include #include #include #include #include #include struct file_info_struct { char username[8]; char password[10]; char filename[256]; long filesize; time_t timestamp; }; main() { struct file_info_struct file_info; int fd, ret; char *msg = "azaidi password file.txt 1024"; memset(&file_info,0,sizeof(file_info)); sscanf(msg, "%s %s %s %d", file_info.username, file_info.password, file_info.filename, &file_info.filesize); fd = open("aaa.info", O_APPEND); printf("error 1 = %d\n", errno); perror ("after open"); //fd = open("/dev/pts/0",0); printf("fd = %d\n",fd); ret = write(fd, &file_info, sizeof(file_info)); printf("write = %d\n",ret); printf("error 2 = %d\n", errno); perror("write error"); close(fd); printf("sizeof = %d\n", sizeof(file_info)); printf("%s %s %s %d", file_info.username, file_info.password, file_info.filename,file_info.filesize); } From linux-india-programmers-owner@lists.linux-india.org Thu Oct 26 01:48:07 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 6EFD84A01A for ; Thu, 26 Oct 2000 01:48:00 -0700 (PDT) Received: from ashwin ([202.9.170.145]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Thu, 26 Oct 2000 14:09:03 +0530 Message-Id: Date: Thu, 26 Oct 2000 08:17:49 +0530 X-Priority: 3 From: Ashwin Reply-To: ashwin_n@newmail.net X-Mailer: Mail Warrior 2 To: linux-india-programmers@lists.linux-india.org Subject: Linux programming MIME-Version: 1.0 Content-Type: Text/Plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer-Version:v2.31a X-Archive-Number: 200010/179 Hi, I'm new to Linux and programming in Linux. In college this semester I've got to write an screen editor using curses library. Can somebody point me to some good links on - writing a text editor (how an editor works) - using curses (other than the manuals) Ashwin ashwin_n@newmail.net -- A kind of Batman of contemporary letters. -- Philip Larkin on Anthony Burgess From linux-india-programmers-owner@lists.linux-india.org Thu Oct 26 02:17:31 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id DABEA49F49 for ; Thu, 26 Oct 2000 02:17:24 -0700 (PDT) Received: from gdr ([202.9.170.126]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Thu, 26 Oct 2000 14:38:27 +0530 Message-ID: <000201c03f30$787e5820$7eaa09ca@gdr> From: "Delip Rao" To: References: <01C03E6F.C70E50B0@ACCPF1> Subject: Re: Help to execute C Program Outputs Date: Wed, 25 Oct 2000 21:57:31 +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.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200010/180 Hi, Try ./a.out ----- Original Message ----- From: Y.R.S.N.Srinivas Anand To: Linux-India-Programmers Mailing List (E-mail) Sent: Wednesday, October 25, 2000 4:08 PM Subject: [LIP] Help to execute C Program Outputs > > Hello Friends > > I am a new comer to LINUX. I had written C Programs and compiled them without errors. > > My computer does not execute a.out even though Execute Rights are available. > > Kindly Help > > > Y.R.S.N.Srinivas Anand > > > --------------------------------------------- > 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 Oct 26 04:38:05 2000 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id 8829B4A033 for ; Thu, 26 Oct 2000 04:38:03 -0700 (PDT) Received: from noname (PPP-203-197-8-192.bom.vsnl.net.in [203.197.8.192]) by bom8.vsnl.net.in (Postfix) with SMTP id 75A355EB5 for ; Thu, 26 Oct 2000 16:59:46 +0500 (GMT+0500) Message-ID: <000501c03f40$f9e0f3e0$c008c5cb@noname> From: "Arsalan Zaidi" To: References: <000901c03ebd$96b59ec0$1908c5cb@noname> Subject: Re: writing struct to disk with write() Date: Thu, 26 Oct 2000 17:05:45 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/181 Forget about this, solved this just a sec ago. It's amazing what a little sleep can do... I was forgetting the flags in the open. > > Hi. > > It's nearly 1:30 am and I'm not getting this... When I run this prog, > perror() tells me write() won't write because of a Bad File Descriptor. > open() however succeeds. What am I doing wrong? > > --Arsalan. > > > > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > struct file_info_struct > { > char username[8]; > char password[10]; > char filename[256]; > long filesize; > time_t timestamp; > }; > > main() > { > struct file_info_struct file_info; > int fd, ret; > char *msg = "azaidi password file.txt 1024"; > memset(&file_info,0,sizeof(file_info)); > > sscanf(msg, "%s %s %s %d", file_info.username, file_info.password, > file_info.filename, &file_info.filesize); > > fd = open("aaa.info", O_APPEND); > printf("error 1 = %d\n", errno); > > perror ("after open"); > file://fd = open("/dev/pts/0",0); > printf("fd = %d\n",fd); > > ret = write(fd, &file_info, sizeof(file_info)); > > printf("write = %d\n",ret); > printf("error 2 = %d\n", errno); > perror("write error"); > close(fd); > > printf("sizeof = %d\n", sizeof(file_info)); > printf("%s %s %s %d", file_info.username, file_info.password, > file_info.filename,file_info.filesize); > > } > > > > --------------------------------------------- > 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 Oct 26 21:09:23 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 666EA4A0BC for ; Thu, 26 Oct 2000 21:09:19 -0700 (PDT) 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 AAA11159 for ; Fri, 27 Oct 2000 00:05:47 -0400 (EDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-165.pilot.net with ESMTP id AAA25337 for ; Fri, 27 Oct 2000 00:05:46 -0400 (EDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id ; Fri, 27 Oct 2000 09:45:04 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E027DDF65@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: writing struct to disk with write() Date: Fri, 27 Oct 2000 09:45:26 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/182 #fd = open("aaa.info", O_APPEND); #printf("error 1 = %d\n", errno); # #perror ("after open"); #//fd = open("/dev/pts/0",0); #printf("fd = %d\n",fd); # #ret = write(fd, &file_info, sizeof(file_info)); # #printf("write = %d\n",ret); #printf("error 2 = %d\n", errno); #perror("write error"); #close(fd); # are you checking the file for the output after the program stops ? what say that ? keep in mind that the extern int errno variable is NOT reset if a syscall performs OK. So errno could have a value left over from program startup/previous error and perror (if unconditional) will still show an error message. I would reccomend : if ((fd=open(..))== -1) { perror("Failed open"); } if ((nbytes=write(fd,..))== -1) { perror("Failed write"); } Regards Shourya From linux-india-programmers-owner@lists.linux-india.org Thu Oct 26 21:46:57 2000 Received: from archanp.naturesoft.com (unknown [202.9.161.7]) by www.aunet.org (Postfix) with ESMTP id 042DA4A1BA for ; Thu, 26 Oct 2000 21:46:53 -0700 (PDT) Received: from archanp.naturesoft.com (IDENT:pagladashu@archanp.naturesoft.com [192.168.0.66]) by archanp.naturesoft.com (8.11.0/8.11.0) with SMTP id e9R4dET01274 for ; Fri, 27 Oct 2000 10:09:14 +0530 From: Archan Paul Reply-To: kernelcoder@yahoo.com Organization: Lateral Linux Labs To: linux-india-programmers@lists.linux-india.org Subject: Re: Date: Fri, 27 Oct 2000 10:07:35 +0530 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain References: In-Reply-To: MIME-Version: 1.0 Message-Id: <00102710091409.01079@archanp.naturesoft.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200010/183 Hi Ashish, err_sys is a stevens written lib function (see Appendix A).... It is not there when u compiled the prog.... Archan Paul Lateral Linux Labs archanp@bigfoot.com icq - 61737056 On Wed, 25 Oct 2000, you wrote: > Hi, > > I have just started to learn network programming. > I tried to run a c program from Stevens book on network > programming. > > The program is > > err_sys("pipe erroe"); > Its giving error as follows: > > /tmp/cc6q5fia.o: In function `main': > /tmp/cc6q5fia.o(.text+0x1e): undefined reference to `err_sys' > Ashish From linux-india-programmers-owner@lists.linux-india.org Fri Oct 27 03:45:19 2000 Received: from suraksha.wipsys.soft.net (unknown [202.54.69.9]) by www.aunet.org (Postfix) with ESMTP id 4F39D4A015 for ; Fri, 27 Oct 2000 03:45:09 -0700 (PDT) Received: by suraksha.wipsys.soft.net (8.8.8+Sun/SMI-SVR4) id QAA25001; Fri, 27 Oct 2000 16:07:38 +0530 (IST) Received: from cdcvwall(192.168.160.23) by suraksha via smap (V2.0) id xma024992; Fri, 27 Oct 00 16:07:09 +0530 Received: from CDC203 ([192.168.165.97]) by bhairavi.mail.wipro.com (Netscape Messaging Server 3.6) with SMTP id AAA64EB for ; Fri, 27 Oct 2000 16:04:14 +0530 Message-ID: <003801c04003$3f6902a0$61a5a8c0@wipsys.soft.net> From: "Vimal Mathew" To: "Linux India Programmers" Subject: The 8139/8129 ethernet driver Date: Fri, 27 Oct 2000 16:17:04 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/184 Hi, I have this strange problem with my Ethernet driver, and I am not sure if what I plan to ask belongs to the Linux-India-Help mail-list. My system has a Realtek 8139(10/100M) Ethernet card. Windows shows it as an DFE-538TX 10/100 PCI Fast Ethernet NIC. I dont have any problems with it in Windows. In Linux, the card is detected fine, but any attempt to send data across it fails in a strange manner. As an example, "ping" to any system in the local n/w reports reply to the first response immediately, the next packet gets a response only after about 76 seconds(I dont wait for the response from other packets). Pinging to the IP address of the NIC also has the same problem. ARP requests and all else I know timeout unsuccessfully. Any attempt to monitor traffic, such as using "tcpdump" shows the packets flowing around in the network. The only problem seems to occur in injecting packets into the network. The network driver is an LKM, so I reloaded it with "debug=5", and redirected some of the output (through syslogd) to a file Oct 27 14:51:55 flint kernel: rtl8139.c:v1.07 5/6/99 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/rtl8139.html Oct 27 14:51:55 flint kernel: eth0: RealTek RTL8139 Fast Ethernet at 0xc000, IRQ 11, 00:50:ba:d7:12:78. Oct 27 14:52:07 flint kernel: eth0: Setting 10mbps full-duplex based on auto-negotiated partner ability 4461. Oct 27 14:52:07 flint kernel: eth0: set_rx_mode(1042) done -- Rx config 00009c00. Oct 27 14:52:07 flint kernel: eth0: rtl8129_open() ioaddr 0xc000 IRQ 11 GP Pins 18 half-duplex. Oct 27 14:52:07 flint kernel: eth0: set_rx_mode(1043) done -- Rx config 00009c0e. Oct 27 14:52:07 flint last message repeated 2 times Oct 27 14:52:07 flint kernel: eth0: exiting interrupt, intr_status=0x4000000. Oct 27 14:52:09 flint last message repeated 13 times Oct 27 14:52:09 flint kernel: eth0: Setting full-duplex based on MII #32 link partner ability of 4461. Oct 27 14:52:09 flint kernel: eth0: Media selection tick, Link partner 4461. Oct 27 14:52:09 flint kernel: eth0: Other registers are IntMask c07f IntStatus 0000 RxStatus 5280d0a. Oct 27 14:52:09 flint kernel: eth0: Chip config 13 6c. Oct 27 14:52:10 flint kernel: eth0: exiting interrupt, intr_status=0x4000000. Oct 27 14:52:41 flint last message repeated 240 times I believe the problem lies somewhere in the rtl8129_open() function. The RX/TX gets enabled, but maybe the auto-negotiation with the hub is not proper. I tried fooling around with the full_duplex value, but without much results. BTW, 10mbps with full-duplex works fine in Windows. Also, cesdis.gsfc.nasa.gov seems to be down, and so I am unable to get newer versions of the driver. I tried all this out on a RH6.2 system, first with the default kernel, and then tried recompiling the kernel to check if it helped (it didnt). Newer 2.2.x kernels also seem to have the same version of the rtl8139 driver. Also, I am reluctant to migrate to 2.3.x or 2.4-test* yet. Could someone pleeeeeeease help me out? It seems like a small problem, especially since "tcpdump" works so fine!!! -vml From linux-india-programmers-owner@lists.linux-india.org Fri Oct 27 06:00:34 2000 Received: from web3802.mail.yahoo.com (web3802.mail.yahoo.com [204.71.203.173]) by www.aunet.org (Postfix) with SMTP id 2813E4A035 for ; Fri, 27 Oct 2000 06:00:27 -0700 (PDT) Message-ID: <20001027125655.4565.qmail@web3802.mail.yahoo.com> Received: from [203.199.224.50] by web3802.mail.yahoo.com; Fri, 27 Oct 2000 05:56:55 PDT Date: Fri, 27 Oct 2000 05:56:55 -0700 (PDT) From: Balakrishnan Kalidas Subject: Algorithm To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/185 Hi, Does anybody know how to generate an unique ID for a given 255 char(max) string. I need it urgently for my project. Thanx in advance. Kalidas Balakrishnan __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Fri Oct 27 06:09:28 2000 Received: from hotmail.com (f41.law10.hotmail.com [64.4.15.41]) by www.aunet.org (Postfix) with ESMTP id C150049F49 for ; Fri, 27 Oct 2000 06:09:22 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 27 Oct 2000 06:05:49 -0700 Received: from 203.199.227.135 by lw10fd.law10.hotmail.msn.com with HTTP; Fri, 27 Oct 2000 13:05:49 GMT X-Originating-IP: [203.199.227.135] From: "srinivasan ranganathan" To: linux-india-programmers@lists.linux-india.org Subject: Re: Algorithm Date: Fri, 27 Oct 2000 13:05:49 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Oct 2000 13:05:49.0593 (UTC) FILETIME=[A0B33090:01C04016] X-Archive-Number: 200010/186 Hi Kalidas Try using gperf. Its a hash function generator. It takes a file with a structure definition and a list of ("String", value) pairs and generates C function to find the values using the string as an index. That is, it creates an associative array. I have tried it in an 8085 assembler project and it works. Check out the man page. Regards Sridhar Ranganathan Madras >From: Balakrishnan Kalidas >Reply-To: linux-india-programmers@lists.linux-india.org >To: linux-india-programmers@lists.linux-india.org >Subject: [LIP] Algorithm >Date: Fri, 27 Oct 2000 05:56:55 -0700 (PDT) > >Hi, > Does anybody know how to generate an unique ID for a >given 255 char(max) string. I need it urgently for my >project. > >Thanx in advance. > >Kalidas Balakrishnan > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Messenger - Talk while you surf! It's FREE. >http://im.yahoo.com/ > >--------------------------------------------- >The mailing list archives are available at >http://lists.linux-india.org/cgi-bin/wilma/LIP _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From linux-india-programmers-owner@lists.linux-india.org Fri Oct 27 06:20:28 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id C35714A019 for ; Fri, 27 Oct 2000 06:20:23 -0700 (PDT) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id e9RDGmo07636 for ; Fri, 27 Oct 2000 13:16:48 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8019.fe.bosch.de(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma006855; Fri, 27 Oct 00 13:15:29 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id ; Fri, 27 Oct 2000 15:15:21 +0200 Message-ID: From: "Harpreet Singh (RBIN/DCA-NMP)" To: linux-india-programmers@lists.linux-india.org Subject: Leak Return Date: Fri, 27 Oct 2000 15:15:19 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain X-Archive-Number: 200010/187 Hi, I am creating a associative array (using MAP) and inserting a couple of entries (about 500) Throughout the insert procedure is successful. But when I compile the code using a code coverage tool (insure++), I get a LEAK_RETURN warning at this statement during execution. (But I am getting the desired result) So my questions are : 1) What is a leak return ? 2) How can I avoid it ? Regards, Harpreet From linux-india-programmers-owner@lists.linux-india.org Fri Oct 27 06:21:24 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 B74144A10B for ; Fri, 27 Oct 2000 06:21:17 -0700 (PDT) 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 JAA00122 for ; Fri, 27 Oct 2000 09:17:40 -0400 (EDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-239-165.pilot.net with ESMTP id JAA28354 for ; Fri, 27 Oct 2000 09:17:37 -0400 (EDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id ; Fri, 27 Oct 2000 18:56:50 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E027DEC67@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Algorithm Date: Fri, 27 Oct 2000 18:57:12 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/188 i figure that could be tough, even with gperf even raw-hashing could create duplicates, although I have heard taht gperf creates a good hashing function.never used it as yet. i assume you are talking about an unsigned integer ID. Your ID space for the string would be pow(26+26+10+allowed_special_characters,255) which I think is mucho larger (is it ?) that the MAXINT of a machine with 64 bit ints (long long in Linux). #-----Original Message----- #From: Balakrishnan Kalidas [mailto:kalidasbala@yahoo.com] #Sent: Friday, October 27, 2000 6:27 PM #To: linux-india-programmers@lists.linux-india.org #Subject: [LIP] Algorithm # # #Hi, # Does anybody know how to generate an unique ID for a #given 255 char(max) string. I need it urgently for my #project. # #Thanx in advance. # #Kalidas Balakrishnan # # #__________________________________________________ #Do You Yahoo!? #Yahoo! Messenger - Talk while you surf! It's FREE. #http://im.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 Fri Oct 27 06:34:41 2000 Received: from mail.eis.ernet.in (unknown [202.41.97.131]) by www.aunet.org (Postfix) with ESMTP id DEEC44A0C2 for ; Fri, 27 Oct 2000 06:34:12 -0700 (PDT) Received: from uucp-relay-delhi.ernet.in (vikram.doe.ernet.in [202.41.100.90]) by mail.eis.ernet.in (Netscape Messaging Server 4.15) with ESMTP id G33DHH00.WS3 for ; Fri, 27 Oct 2000 18:58:29 +0500 Received: by uucp-relay-delhi.ernet.in (8.9.3+Sun/SMI-4.1-MHS-7.0) id SAA17018; Fri, 27 Oct 2000 18:54:17 -0600 (GMT) >Received: from cancer.cdotd.ernet.in by cdotd.cdotd.ernet.in (SMI-8.6/SMI-SVR4) id QAA03817; Fri, 27 Oct 2000 16:47:40 -0500 Date: Fri, 27 Oct 2000 16:47:58 +0500 (GMT+0500) From: Manimay Biswas To: linux-india-programmers@lists.linux-india.org Subject: Re: writing struct to disk with write() In-Reply-To: <000901c03ebd$96b59ec0$1908c5cb@noname> Message-ID: MIME-Version: 1.0 Received: from cdotd by vikram.doe.ernet.in; Fri, 27 Oct 2000 18:54 GMT Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/189 Hi , try this out instead ========> fd = open("aaa.info", O_WRONLY | O_APPEND); do check out the man page for open() ====> int open(const char *path, int oflag, ... /* [mode_t mode] */ );... it says that exactly one of the O_RDONLY, O_WRONLY, or O_RDWR flags must be used in composing the value of oflag. regards manimay...! On Thu, 26 Oct 2000, Arsalan Zaidi wrote: > > Hi. > > It's nearly 1:30 am and I'm not getting this... When I run this prog, > perror() tells me write() won't write because of a Bad File Descriptor. > open() however succeeds. What am I doing wrong? > > --Arsalan. > > > > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > struct file_info_struct > { > char username[8]; > char password[10]; > char filename[256]; > long filesize; > time_t timestamp; > }; > > main() > { > struct file_info_struct file_info; > int fd, ret; > char *msg = "azaidi password file.txt 1024"; > memset(&file_info,0,sizeof(file_info)); > > sscanf(msg, "%s %s %s %d", file_info.username, file_info.password, > file_info.filename, &file_info.filesize); > > fd = open("aaa.info", O_APPEND); > printf("error 1 = %d\n", errno); > > perror ("after open"); > //fd = open("/dev/pts/0",0); > printf("fd = %d\n",fd); > > ret = write(fd, &file_info, sizeof(file_info)); > > printf("write = %d\n",ret); > printf("error 2 = %d\n", errno); > perror("write error"); > close(fd); > > printf("sizeof = %d\n", sizeof(file_info)); > printf("%s %s %s %d", file_info.username, file_info.password, > file_info.filename,file_info.filesize); > > } > > > > --------------------------------------------- > 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 Oct 27 06:34:58 2000 Received: from hotmail.com (f31.law10.hotmail.com [64.4.15.31]) by www.aunet.org (Postfix) with ESMTP id F18D34A133 for ; Fri, 27 Oct 2000 06:34:54 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 27 Oct 2000 06:31:16 -0700 Received: from 203.199.227.135 by lw10fd.law10.hotmail.msn.com with HTTP; Fri, 27 Oct 2000 13:31:15 GMT X-Originating-IP: [203.199.227.135] From: "srinivasan ranganathan" To: linux-india-programmers@lists.linux-india.org Subject: RE: Algorithm Date: Fri, 27 Oct 2000 13:31:15 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Oct 2000 13:31:16.0153 (UTC) FILETIME=[2E99C290:01C0401A] X-Archive-Number: 200010/190 I don't really understand what u just said. Please explain.... Regards Sridhar Ranganathan >From: "Sarcar, Shourya (MED)" >Reply-To: linux-india-programmers@lists.linux-india.org >To: linux-india-programmers@lists.linux-india.org >Subject: RE: [LIP] Algorithm >Date: Fri, 27 Oct 2000 18:57:12 +0530 > >i figure that could be tough, even with gperf >even raw-hashing could create duplicates, although I have heard taht gperf >creates a good hashing function.never used it as yet. > >i assume you are talking about an unsigned integer ID. >Your ID space for the string would be >pow(26+26+10+allowed_special_characters,255) which I think is mucho larger >(is it ?) that the MAXINT of a machine with 64 bit ints (long long in >Linux). > > > >#-----Original Message----- >#From: Balakrishnan Kalidas [mailto:kalidasbala@yahoo.com] >#Sent: Friday, October 27, 2000 6:27 PM >#To: linux-india-programmers@lists.linux-india.org >#Subject: [LIP] Algorithm ># ># >#Hi, ># Does anybody know how to generate an unique ID for a >#given 255 char(max) string. I need it urgently for my >#project. ># >#Thanx in advance. ># >#Kalidas Balakrishnan ># ># >#__________________________________________________ >#Do You Yahoo!? >#Yahoo! Messenger - Talk while you surf! It's FREE. >#http://im.yahoo.com/ ># >#--------------------------------------------- >#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 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From linux-india-programmers-owner@lists.linux-india.org Fri Oct 27 06:54:43 2000 Received: from unknown-147-100.pilot.net (unknown-147-100.pilot.net [198.232.147.100]) by www.aunet.org (Postfix) with ESMTP id 37E5449EFB for ; Fri, 27 Oct 2000 06:54:42 -0700 (PDT) Received: from unknown-24-5.pilot.net (unknown-24-5.pilot.net [206.189.24.5]) by unknown-147-100.pilot.net with ESMTP id GAA25544 for ; Fri, 27 Oct 2000 06:51:09 -0700 (PDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-5.pilot.net with ESMTP id GAA18587 for ; Fri, 27 Oct 2000 06:48:40 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id ; Fri, 27 Oct 2000 19:27:58 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E027DECA3@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Leak Return Date: Fri, 27 Oct 2000 19:28:11 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/191 hello harpreet, essentially this looks like a memory leak problem. mem_leak : you are allocaitn mempory (dynamically from the heap) but npot returning it to the OS Also, you could be returning deallocated memory or non-heap memory from a function. please post relevant code. shourya #-----Original Message----- #From: Harpreet Singh (RBIN/DCA-NMP) #[mailto:Harpreet.Singh@in.bosch.com] #Sent: Friday, October 27, 2000 6:45 PM #To: linux-india-programmers@lists.linux-india.org #Subject: [LIP] Leak Return # # #Hi, # #I am creating a associative array (using MAP) #and inserting a couple of entries (about 500) # #Throughout the insert procedure is successful. # #But when I compile the code using a code coverage tool (insure++), #I get a LEAK_RETURN warning at this statement during execution. # #(But I am getting the desired result) # #So my questions are : # #1) What is a leak return ? #2) How can I avoid it ? # #Regards, #Harpreet # #--------------------------------------------- #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 Oct 27 06:56:46 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 DE0DA4A111 for ; Fri, 27 Oct 2000 06:56:44 -0700 (PDT) Received: from unknown-24-5.pilot.net (unknown-24-5.pilot.net [206.189.24.5]) by unknown-147.101.pilot.net with ESMTP id GAA11331 for ; Fri, 27 Oct 2000 06:52:21 -0700 (PDT) Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by unknown-24-5.pilot.net with ESMTP id GAA16918 for ; Fri, 27 Oct 2000 06:47:27 -0700 (PDT) Received: by new02xbindge.geind.ge.com with Internet Mail Service (5.5.2650.21) id ; Fri, 27 Oct 2000 19:26:45 +0530 Message-ID: <1196B5CB33DED311A73700508B6FEB1E027DEC9C@ban03xbindge.geind.ge.com> From: "Sarcar, Shourya (MED)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Algorithm Date: Fri, 27 Oct 2000 19:25:35 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/192 #probably OT if you have 255 char string, and wish that each one of those strings have a unique identifier map to them then taht would equal : 256 // because there can be 256 1 char strings , incl NULL + 256 * 256 // because the two characters are independent + 256 * 256 * 256 +... + 256 * 256 * .. 255 times Wwith appropriate approximations, that would be "somewhere near" my last estimate. If the MAXINT of the machine is less than taht, no way you can have theoretically unique ID. Of course, in real life you can have it pretty well.. but hashing will _not_ guarantee that. HTH,regards, Shourya #-----Original Message----- #From: srinivasan ranganathan [mailto:srini_linux@hotmail.com] #Sent: Friday, October 27, 2000 7:01 PM #To: linux-india-programmers@lists.linux-india.org #Subject: RE: [LIP] Algorithm # # #I don't really understand what u just said. Please explain.... # #Regards #Sridhar Ranganathan # # #>From: "Sarcar, Shourya (MED)" #>Reply-To: linux-india-programmers@lists.linux-india.org #>To: linux-india-programmers@lists.linux-india.org #>Subject: RE: [LIP] Algorithm #>Date: Fri, 27 Oct 2000 18:57:12 +0530 #> #>i figure that could be tough, even with gperf #>even raw-hashing could create duplicates, although I have #heard taht gperf #>creates a good hashing function.never used it as yet. #> #>i assume you are talking about an unsigned integer ID. #>Your ID space for the string would be #>pow(26+26+10+allowed_special_characters,255) which I think is #mucho larger #>(is it ?) that the MAXINT of a machine with 64 bit ints (long long in #>Linux). #> #> #> #>#-----Original Message----- #>#From: Balakrishnan Kalidas [mailto:kalidasbala@yahoo.com] #>#Sent: Friday, October 27, 2000 6:27 PM #>#To: linux-india-programmers@lists.linux-india.org #>#Subject: [LIP] Algorithm #># #># #>#Hi, #># Does anybody know how to generate an unique ID for a #>#given 255 char(max) string. I need it urgently for my #>#project. #># #>#Thanx in advance. #># #>#Kalidas Balakrishnan #># #># #>#__________________________________________________ #>#Do You Yahoo!? #>#Yahoo! Messenger - Talk while you surf! It's FREE. #>#http://im.yahoo.com/ #># #>#--------------------------------------------- #>#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 # #_______________________________________________________________ #__________ #Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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 Fri Oct 27 07:04:38 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.147]) by www.aunet.org (Postfix) with ESMTP id 33D8B4A150 for ; Fri, 27 Oct 2000 07:04:34 -0700 (PDT) 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 TAA24902 for ; Fri, 27 Oct 2000 19:33:26 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id TAA13669 for linux-india-programmers@lists.linux-india.org; Fri, 27 Oct 2000 19:29:52 +0530 Date: Fri, 27 Oct 2000 19:29:51 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Algorithm Message-ID: <20001027192951.A13642@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001027125655.4565.qmail@web3802.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <20001027125655.4565.qmail@web3802.mail.yahoo.com>; from kalidasbala@yahoo.com on Fri, Oct 27, 2000 at 05:56:55AM -0700 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: 200010/193 Balakrishnan Kalidas forced the electrons to say: > Does anybody know how to generate an unique ID for a > given 255 char(max) string. I need it urgently for my > project. md5 sums? The algorithm is very easy to implement. Or you can take the code from many, many software that uses it. There is a command line interface as well. If you are writing proprietary code, I'd suggest implementing the algorithm. Read RFC 1321 at www.faqs.org. Binand -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Fri Oct 27 07:43:47 2000 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id 961994A0F2 for ; Fri, 27 Oct 2000 07:43:43 -0700 (PDT) Received: from noname (PPP-203-197-8-17.bom.vsnl.net.in [203.197.8.17]) by bom8.vsnl.net.in (Postfix) with SMTP id 450026C41 for ; Fri, 27 Oct 2000 20:05:19 +0500 (GMT+0500) Message-ID: <000201c04024$1121c500$1108c5cb@noname> From: "Arsalan Zaidi" To: References: <1196B5CB33DED311A73700508B6FEB1E027DDF65@ban03xbindge.geind.ge.com> Subject: Re: writing struct to disk with write() Date: Fri, 27 Oct 2000 15:33:06 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/194 Actually, the probs been solved, but you're right about the style to use to check errno. However, I was printing out the values of 'fd' and the ret val of write() and checking them visually. Thanks for the reply anyhow. --Arsalan. ----- Original Message ----- From: Sarcar, Shourya (MED) To: Sent: Friday, October 27, 2000 9:45 AM Subject: RE: [LIP] writing struct to disk with write() > > #fd = open("aaa.info", O_APPEND); > #printf("error 1 = %d\n", errno); > # > #perror ("after open"); > #//fd = open("/dev/pts/0",0); > #printf("fd = %d\n",fd); > # > #ret = write(fd, &file_info, sizeof(file_info)); > # > #printf("write = %d\n",ret); > #printf("error 2 = %d\n", errno); > #perror("write error"); > #close(fd); > # > > > are you checking the file for the output after the program stops ? what say > that ? > keep in mind that the extern int errno variable is NOT reset if a syscall > performs OK. So errno could have a value left over from program > startup/previous error and perror (if unconditional) will still show an > error message. > > I would reccomend : > > if ((fd=open(..))== -1) > { > perror("Failed open"); > } > > > if ((nbytes=write(fd,..))== -1) > { > perror("Failed write"); > } > > > Regards > Shourya > > --------------------------------------------- > 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 Fri Oct 27 20:02:52 2000 Received: from web3801.mail.yahoo.com (web3801.mail.yahoo.com [204.71.203.172]) by www.aunet.org (Postfix) with SMTP id D24F04A12E for ; Fri, 27 Oct 2000 20:02:50 -0700 (PDT) Message-ID: <20001028025915.9415.qmail@web3801.mail.yahoo.com> Received: from [203.197.137.15] by web3801.mail.yahoo.com; Fri, 27 Oct 2000 19:59:15 PDT Date: Fri, 27 Oct 2000 19:59:15 -0700 (PDT) From: Balakrishnan Kalidas Subject: Re: Algorithm To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/195 Hi, Thanx for Ur esteemed help. I found that the algorithm(MD5) is more than sufficient for me. Thanx once agin for Ur help, also for specifying the correct RFC. Let The Force Be With U. Kalidas Balakrishnan Chennai. --- "Binand Raj S." wrote: > Balakrishnan Kalidas forced the electrons to say: > > Does anybody know how to generate an unique ID > for a > > given 255 char(max) string. I need it urgently for > my > > project. > > md5 sums? The algorithm is very easy to implement. > Or you can take the > code from many, many software that uses it. There is > a command line > interface as well. > > If you are writing proprietary code, I'd suggest > implementing the > algorithm. > > Read RFC 1321 at www.faqs.org. > > Binand > > -- > The prompt for all occasions: > export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> > " > --------------- Binand Raj S. > (binand@bombay.retortsoft.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. __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sat Oct 28 01:36:03 2000 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id 3F1864A141 for ; Sat, 28 Oct 2000 01:35:59 -0700 (PDT) Received: from noname (PPP-203-197-7-155.bom.vsnl.net.in [203.197.7.155]) by bom8.vsnl.net.in (Postfix) with SMTP id BA4D76BFD for ; Sat, 28 Oct 2000 13:57:33 +0500 (GMT+0500) Message-ID: <000401c040b9$dc1ba2e0$9b07c5cb@noname> From: "Arsalan Zaidi" To: References: <20001028025915.9415.qmail@web3801.mail.yahoo.com> Subject: Re: Algorithm - correction. Date: Sat, 28 Oct 2000 13:06:24 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/196 May. That's may the force be with you. > Let The Force Be With U. > > Kalidas Balakrishnan > Chennai. Lucas may suck, but SW rules! --Arsalan. From linux-india-programmers-owner@lists.linux-india.org Sat Oct 28 04:45:38 2000 Received: from eth.net (mailserver2.ddsl.net [202.9.145.19]) by www.aunet.org (Postfix) with ESMTP id CFB514A03C for ; Sat, 28 Oct 2000 04:45:25 -0700 (PDT) Received: from gdr ([202.9.170.168]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Sat, 28 Oct 2000 17:08:49 +0530 Message-ID: <000701c040d7$75160ea0$a8aa09ca@gdr> From: "Delip Rao" To: References: <004901c03afe$58f30680$2ca0d4d2@gaurav> Subject: Re: how to create thread to exec member fn of a class Date: Sat, 28 Oct 2000 17:26:08 +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.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200010/197 Hi, Try making the member function static. ----- Original Message ----- From: Gaurav Priyolkar To: Sent: Saturday, October 21, 2000 6:50 AM Subject: [LIP] how to create thread to exec member fn of a class > Hi all, > > Is it possible to create a thread to execute the member function of a class? > > pthread_create(&tid, NULL, A.x, (void*) arg); > > on compilation results in the warning: > > warning: converting from 'void*(A::*)(void*)' to 'void*(*)(void*)' > > Although the program runs and thread is created, how to get rid of this > warning? > > Summing up, how to type cast a pointer to a member function of a > class to a pointer to a global function? > > -Gaurav. > > > > --------------------------------------------- > 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 Sat Oct 28 12:49:58 2000 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id DBFF94A1A3 for ; Sat, 28 Oct 2000 12:49:56 -0700 (PDT) Received: from noname (PPP-203-197-7-95.bom.vsnl.net.in [203.197.7.95]) by bom8.vsnl.net.in (Postfix) with ESMTP id 6216759DB for ; Sun, 29 Oct 2000 01:11:27 +0500 (GMT+0500) Message-ID: <001401c04118$00d12160$5f07c5cb@noname> From: "Arsalan Zaidi" To: Subject: Porting from Linux to SCO... Date: Sun, 29 Oct 2000 01:18:01 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/198 Hi. I'm working on a project which I'm developing under PCQ RH 6.2 (with updates). Unfortunately, the project has to compile and then run under SCO (unsure about the version). It uses (or will shortly use) socket calls, basic open() read() write(), will open() and write to a term etc. Nothing fancy. Any gotchas? Anything that's different between these two platforms and will affect compilation and running? Will linux binaries run under SCO (probably not, but no harm in checking ! ;-))? Can I cross compile using gcc? I've done my best to stay compatible but I don;t know enough to garantee it. Any help would be appreciated. BTW, are there any major diff between *BSD and Linux? --Arsalan. From linux-india-programmers-owner@lists.linux-india.org Sat Oct 28 13:52:25 2000 Received: from inbound2.maa.sify.net (unknown [202.144.76.8]) by www.aunet.org (Postfix) with ESMTP id C6F1F4A043 for ; Sat, 28 Oct 2000 13:52:19 -0700 (PDT) Received: from glidemart (210.214.99.40) by inbound2.maa.sify.net (5.0.048) id 39F66B86000D8B84 for linux-india-programmers@lists.linux-india.org; Sat, 28 Oct 2000 20:48:22 +0000 Message-ID: <000401c04120$6e31f2e0$2863d6d2@glidemart> From: "YL Narayana" To: Subject: Newbie - shell program problem Date: Sun, 29 Oct 2000 01:50:51 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" 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: 200010/199 Hi. I have been reading "Linux Programming Bible" by Goerzen. When I try to run the following shell program (pp 50-51), I get the error messages I have appended. Can somebody take the trouble to explain to me why this is happening? TIA Narayana --------Program--------- #!/bin/bash function CountMatches { MATCHES = `ls -d $1 2>/dev/null | wc -l` echo "$MATCHES" if [ $MATCHES != 0 ] ; then return 0 ; else return 1 ; fi } function DispMatches { if MATCHES=`CountMatches "$1"` ; then echo -n "Number of matches for $1: " echo $MATCHES else echo "$1 is not a valid pattern." fi } DispMatches '/dev/hda*' DispMatches '/proc/*' DispMatches '/foo/*' ---------Error messages---------- ./func.sh: MATCHES: command not found ./func.sh: [: !=: unary operator expected /dev/hda* is not a valid pattern. ./func.sh: MATCHES: command not found ./func.sh: [: !=: unary operator expected /proc/* is not a valid pattern. ./func.sh: MATCHES: command not found ./func.sh: [: !=: unary operator expected /foo/* is not a valid pattern. PS: I am running Bash 2. From linux-india-programmers-owner@lists.linux-india.org Sat Oct 28 21:07:44 2000 Received: from hotmail.com (f135.law10.hotmail.com [64.4.15.135]) by www.aunet.org (Postfix) with ESMTP id 51FFE49F61 for ; Sat, 28 Oct 2000 21:07:40 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 28 Oct 2000 21:04:00 -0700 Received: from 203.197.134.202 by lw10fd.law10.hotmail.msn.com with HTTP; Sun, 29 Oct 2000 04:03:59 GMT X-Originating-IP: [203.197.134.202] From: "srinivasan ranganathan" To: linux-india-programmers@lists.linux-india.org Subject: XWindows Programming Using Tcl/Tk Date: Sun, 29 Oct 2000 04:03:59 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Oct 2000 04:04:00.0188 (UTC) FILETIME=[446927C0:01C0415D] X-Archive-Number: 200010/200 Hi all Can anyone point me to some FREE resources on the Net that i can use to learn tcl/tk programming for XWindows? I am a student, so i have only limited access to the Net...so a PDF or a ZIP file download will be a help. Thanx in advance. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From linux-india-programmers-owner@lists.linux-india.org Sat Oct 28 21:24:43 2000 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 487AC4A042 for ; Sat, 28 Oct 2000 21:24:34 -0700 (PDT) Received: from qasid.cc.iitk.ac.in (qasid.cc.iitk.ac.in [172.31.1.16]) by mail.iitk.ac.in (8.9.2/8.9.2) with ESMTP id JAA15805 for ; Sun, 29 Oct 2000 09:53:35 +0530 (IST) Received: from ajayd.hall.iitk.ac.in (IDENT:ajayd@[172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id JAA01689 for ; Sun, 29 Oct 2000 09:43:59 +0530 (IST) Date: Sun, 29 Oct 2000 09:48:06 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-programmers@lists.linux-india.org Subject: Re: Newbie - shell program problem In-Reply-To: <000401c04120$6e31f2e0$2863d6d2@glidemart> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/201 On Sun, 29 Oct 2000, YL Narayana wrote: > --------Program--------- > #!/bin/bash > > function CountMatches { > MATCHES = `ls -d $1 2>/dev/null | wc -l` There should be no spaces after MATCHES. is MATCHES=`ls -d $1 2>/dev/null | wc -l` > echo "$MATCHES" > if [ $MATCHES != 0 ] ; then return 0 ; else return 1 ; fi > } > > function DispMatches { > if MATCHES=`CountMatches "$1"` ; then > echo -n "Number of matches for $1: " > echo $MATCHES > else > echo "$1 is not a valid pattern." > fi > } > > DispMatches '/dev/hda*' > DispMatches '/proc/*' > DispMatches '/foo/*' > The output on my box after the above change: Number of matches for /dev/hda*: 17 Number of matches for /proc/*: 103 /foo/* is not a valid pattern (I don't have a /foo directory :-) Bye and Enjoy Life... -- #!!! If anything can go wrong, _FIX_ it. (To hell with MURPHY) Ajay kumar Dwivedi ajayd@iitk.ac.in From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 11:11:13 2000 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id 2B0374A00D for ; Sun, 29 Oct 2000 11:11:08 -0800 (PST) Received: from noname (PPP-203-197-8-199.bom.vsnl.net.in [203.197.8.199]) by bom8.vsnl.net.in (Postfix) with ESMTP id BAC785C80 for ; Mon, 30 Oct 2000 00:32:31 +0500 (GMT+0500) Message-ID: <003e01c041db$bcf092e0$c708c5cb@noname> From: "Arsalan Zaidi" To: Subject: Introductory AI books Date: Mon, 30 Oct 2000 00:33:25 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/202 Hi. Could someone suggest a couple of good intro books to AI? --Arsalan. From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 12:11:37 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 94C264A00B for ; Sun, 29 Oct 2000 12:11:31 -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 e9TK7jh21092 for ; Mon, 30 Oct 2000 07:07:46 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9TK7kv1486987 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 07:07:46 +1100 (EDT) Date: Mon, 30 Oct 2000 07:07:46 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Newbie - shell program problem Message-ID: <20001030070746.A1446658@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Archive-Number: 200010/203 Hello, A more exhaustive explanation of the problem... (experts can look away:) The following line does not produce intended output because of the space around the = sign (a previous poster had already mentioned this). On Sun, 29 Oct 2000, YL Narayana wrote: > MATCHES = `ls -d $1 2>/dev/null | wc -l` Well, what exactly is happening here?? Consider the following shell code... VAR=foo prog This sets the environment variable VAR to the value "foo" and runs the program prog. Where can this be usefull?? http_proxy="10.0.0.1:8000" wget http://www.python.org Now, I have set the environ variable "http_proxy" to point to my proxy and I've run wget to download the given URL through the proxy. A usefull trick. In your case, you set the environment variable MATCHES to an empty string and tried to run the output of `ls -d ......` as a program. Not what you expected. While debugging shell scripts, use set -x and set -v. It seems that shell programmers know little about coding style... What you are probably thinking now is correct, "the shell is stupid!". True, the shell merely does string manipulation and is quirky and you will have to live with it. Unfortunately so. For more complex shell scripts, I tend to use python instead. Python is a very clean language with a simple syntax that programmers proficient in other languages can learn very quickly. Give it a try (www.python.org), I'm sure you'll love it. - Raja Supe From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 12:20:29 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 8B7404A04C for ; Sun, 29 Oct 2000 12:20:23 -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 e9TKGbh21162 for ; Mon, 30 Oct 2000 07:16:37 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9TKGci1474364 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 07:16:38 +1100 (EDT) Date: Mon, 30 Oct 2000 07:16:38 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Detecting open files Message-ID: <20001030071637.A1472098@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Archive-Number: 200010/204 Hello, Delip Rao wrote: > How do I detect a file already been opened by someother process? Use fuser or lsof. On debian boxes, fuser is bundled with the psmisc package and lsof is in a package of its own. If your are looking for some code, check the sources of the mentioned programs. - Raja Supe From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 13:09:11 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 7B60D4A047 for ; Sun, 29 Oct 2000 13:09:05 -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 e9TL5Kh21450 for ; Mon, 30 Oct 2000 08:05:20 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9TL5K01487270 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 08:05:20 +1100 (EDT) Date: Mon, 30 Oct 2000 08:05:20 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Help to execute C Program Outputs... and some more Message-ID: <20001030080519.B1472098@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Archive-Number: 200010/205 Hello, This is a followup post about executing programs in the current directory. This post hilights the dangers in careless PATH handling in unix and also hilights the differences btwn DOS and UNIX PATH handling. This is off topic, but I think that it's worth mentioning. The DOS shell (command.com) searches for the named program in the current dir first. Failing that, it searches through the PATH environ variable until it finds the required program and the first match is used. Unix shells search only in the dirs listed in the PATH variable. They do not make any assumptions about the current dir. This is with good reason. Say the unix shell executed programs from the current dir first (like DOS), if you changed to my home dir (cd ~username) and tried to list it's contents (ls). If I had an executable named ls in this dir you would end up running my ls instead of the system /bin/ls program. My ls program could make a copy of your shell to some hidden location and make it set uid (and I have hacked your account). After all this, it can list the dir contents as usual (skipping my trojan ls ofcourse) and you would notice nothing unusual. The standard practice is therefore never to include the current dir in the PATH. Use ./prog to run progs in the curr dir. For those security minded sys admins the PATH must be set up as follows: 1) Users bin dir (if exists) eg. ~/bin 2) Site local bin dirs eg. /usr/loca/bin 3) System bin dirs eg. /usr/bin, /bin, etc 4) Current dir. Optional... You should not be doing this. You should end up with something like... PATH=/home/user/bin:/usr/local/bin:/usr/bin:/bin Several documents have been written about this issue... search your favourite unix security website (securityfocus, cert, rootprompt, etc) on this. Another tip for unix sys admins which renders such trojan attacks useless is to mount all user writable filesystems (/home, /tmp, /var) with nosuid and nodev mount flags. Check man pages for mount, fstab for details. - Raja Supe PS: I should appologise for emailing you all repeatedly. I have woken up on Monday morning and found that linux in India is flourishing... Linux-india is great! I was just tempted to help:) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 14:32:39 2000 Received: from CLEMSON.EDU (mail.clemson.edu [130.127.28.87]) by www.aunet.org (Postfix) with ESMTP id B7EFF4A014 for ; Sun, 29 Oct 2000 14:32:33 -0800 (PST) Received: from crb69 (crb69.ces.clemson.edu [130.127.172.79]) by CLEMSON.EDU (8.11.0/8.11.0) with SMTP id e9TMSob15693 for ; Sun, 29 Oct 2000 17:28:50 -0500 (EST) Message-ID: <008301c04208$319035c0$4fac7f82@ces.clemson.edu> From: "Vilas Kumar Chitrakaran" To: "linux-india-programmers" Subject: problems with templates. Date: Sun, 29 Oct 2000 16:27:32 -0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0080_01C041C5.2332D2F0" 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: 200010/206 This is a multi-part message in MIME format. ------=_NextPart_000_0080_01C041C5.2332D2F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi programmers, I am quite a novice C++ programmer trying to make some sense out of templates. I have atached a program here that compiles well in MSvisual C++ but does not compile in GNU C++ compiler. The program compiles without problems in both the compilers if I dont define the class as a template...ie, I use the class only for defining complex numbers whose real and imaginary parts are type 'double'.....no templates used. There is something wrong I am doing with the overloading of ostream and istream operators. Can anybody help? Vilas Kumar Chitrakaran ------=_NextPart_000_0080_01C041C5.2332D2F0 Content-Type: application/octet-stream; name="Complex.hpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Complex.hpp" //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D // Project : Library for Complex Numbers //------------------------------------------------------------------ // Package :=20 // Authors : Villi=20 // Start date : // Compiler : GNU C++ // Operating System : any //------------------------------------------------------------------ // File : Complex.hpp // Header file for the class Complex. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #include #include #include #include //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D //=20 // class Complex //------------------------------------------------------------------ // The following is a definition of class template for complex numbers. // Class methods include functions to get/set real and imaginary parts=20 // of the complex number. // // The arithmetic and istream/ostream operators are overloaded to=20 // allow direct manipulation on the data of type Complex just as=20 // built in types. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D template class Complex { public: Complex(){ d_realPart=3D0; d_imaginaryPart=3D0;} // The default Constructor Complex(T realPart, T imaginaryPart){d_realPart=3DrealPart; d_imaginaryPar= t=3DimaginaryPart; } // A Constructor that allows the user to initialise // the data type ~Complex() {} // The Destructor =09=09 =09 friend ostream &operator<<(ostream&, const Complex &); // Overloading ostream operator << to directly accept complex type =09 friend istream &operator>>(istream&, Complex &); // Overloading istream operator >> to directly accept complex type =09 =09 Complex operator+(const Complex &); // Overloading binary operator + // enables sum =3D C1 + C2 where C1 and C2 are type Complex Complex operator+=3D(const Complex & secondNumber); // Overloading the +=3D operator for operations with class complex Complex operator-(const Complex &); // Overloading binary operator - // enables difference =3D C1 - C2 where C1 and C2 are type Complex Complex operator-=3D(const Complex & secondNumber); // Overloading the -=3D operator for operations with class complex =09 Complex operator*(const Complex &); // Overloading binary operator * // enables product =3D C1 * C2 where C1 and C2 are type Complex Complex operator*=3D(const Complex & secondNumber); // Overloading the *=3D operator for operations with class complex =20 Complex operator/(const Complex &); // Overloading binary operator / // enables division =3D C1 / C2 where C1 and C2 are type Complex Complex operator/=3D(const Complex & secondNumber); // Overloading the /=3D operator for operations with class complex T getRealPart() const { return d_realPart; } // Obtains the real part of the complex number =09=09 T getImaginaryPart() const { return d_imaginaryPart; } // Obtains the imaginary part of the complex number =09=09 void setRealPart(T real) {d_realPart =3D real; } // Sets the real part of the complex number =09=09 void setImaginaryPart(T imag) {d_imaginaryPart =3D imag; } // Sets the imaginary part of the complex numbe =09=09 =09 =09 =09=09 private: T d_realPart; //real part of the complex number T d_imaginaryPart;=20=20 //imaginary value of the complex number =09 }; //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D // The remaining part of this file gives the definitions for all the // functions declared above. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D friend ostream &operator<<(ostream &output, const Complex &num) // This function overloads the << ostream operator // so that 'cout' accepts the data type 'complex' // enables cout << x <<"+ j" << y { output << num.d_realPart << " + j " << "(" << num.d_imaginaryPart << ")"; return output;=09=09=09=09=09 } =09=09 =09=09 friend istream &operator>>(istream &input, Complex &num) // This function overloads the >> istream operator // so that 'cin' accepts the data type 'complex' // enables cin >> X+ jY { =09 =09 while((cin.peek()=3D=3D'\n')||(cin.peek()=3D=3D'\r')) cin.ignore(1); =09 input.ignore(1);=09=09=09=09=09 //ignore '(' input >> setw(4) >> num.d_realPart;=09=09 //input real part in 3 digits or more input.ignore(1);=09=09=09=09=09 //skip (,) input >> setw(4) >> num.d_imaginaryPart;=09 //input imaginary part in 3 digits or more input.ignore(1);=09=09=09=09=09 //ignore ')'=09 =09=09 return input;=09=09=09=09=09 } =09 template Complex Complex::operator+(const Complex & secondNumber) // Overloading operator + to directly operate on complex numbers // enables sum =3D C1 + C2 where C1 and C2 are type Complex { Complex sum;=09 sum.setRealPart(getRealPart() + secondNumber.getRealPart()); sum.setImaginaryPart(getImaginaryPart() + secondNumber.getImaginaryPart()); return (sum); } template Complex Complex::operator+=3D(const Complex & secondNumber) // Overloading the +=3D operator for operations with class complex { *this=3D*this + secondNumber; return *this; } template Complex Complex::operator-(const Complex & secondNumber) // Overloading operator - to directly operate on complex numbers // enables difference =3D C1 - C2 where C1 and C2 are type Complex { Complex difference;=20 difference.setRealPart(getRealPart() - secondNumber.getRealPart()); difference.setImaginaryPart(getImaginaryPart() - secondNumber.getImaginary= Part()); return (difference); } template Complex Complex::operator-=3D(const Complex & secondNumber) // Overloading the -=3D operator for operations with class complex { *this=3D*this - secondNumber; return *this; } template Complex Complex::operator *(const Complex & secondNumber) // Overloading operator * to directly operate on complex numbers // enables product =3D C1 * C2 where C1 and C2 are type Complex { Complex product; product.setRealPart(getRealPart()*secondNumber.getRealPart() - getImaginar= yPart()*secondNumber.getImaginaryPart()); product.setImaginaryPart(getRealPart()*secondNumber.getImaginaryPart() + g= etImaginaryPart()*secondNumber.getRealPart()); return (product); } template Complex Complex::operator*=3D(const Complex & secondNumber) // Overloading the +=3D operator for operations with class complex { *this=3D*this * secondNumber; return *this; } template Complex Complex::operator /(const Complex & secondNumber) // Overloading operator / to directly operate on complex numbers // enables sum =3D C1 / C2 where C1 and C2 are type Complex { Complex division; division.setRealPart((getRealPart()*secondNumber.getRealPart() + getImagin= aryPart()*secondNumber.getImaginaryPart())/(secondNumber.getRealPart()*seco= ndNumber.getRealPart() + secondNumber.getImaginaryPart()*secondNumber.getIm= aginaryPart())); division.setImaginaryPart((getImaginaryPart()*secondNumber.getRealPart() -= getRealPart()*secondNumber.getImaginaryPart())/(secondNumber.getRealPart()= *secondNumber.getRealPart() + secondNumber.getImaginaryPart()*secondNumber.= getImaginaryPart())); return (division); } template Complex Complex::operator/=3D(const Complex & secondNumber) // Overloading the +=3D operator for operations with class complex { *this=3D*this / secondNumber; return *this; } ------=_NextPart_000_0080_01C041C5.2332D2F0 Content-Type: application/octet-stream; name="Complex.t.cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Complex.t.cpp" //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D // Project : Library for Complex Numbers //------------------------------------------------------------------ // Package :=20 // Authors : Villi=20 // Start date : // Compiler : GNU C++ // Operating System : any //------------------------------------------------------------------ // File : Complex.t.cpp // This file tests the Class 'Complex'. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #include #include"Complex.hpp" int main() { Complex firstComplexNumber; Complex secondComplexNumber; Complex thirdComplexNumber; Complex fourthComplexNumber; =09 cout<< " Give me the first complex number as (x,y)" <> firstComplexNumber; cout <> secondComplexNumber; cout <> thirdComplexNumber; cout <> fourthComplexNumber; cout <; Sun, 29 Oct 2000 14:45:05 -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 EAA24321 for ; Mon, 30 Oct 2000 04:11:46 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id EAA22443 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 04:07:59 +0530 Date: Mon, 30 Oct 2000 04:07:58 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: Newbie - shell program problem Message-ID: <20001030040758.B21866@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001030070746.A1446658@ecr.mu.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <20001030070746.A1446658@ecr.mu.oz.au>; from rsubr@ecr.mu.oz.au on Mon, Oct 30, 2000 at 07:07:46AM +1100 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: 200010/207 I don't want to be nitpicking, but here goes... Anyway, the original query has been answered, so it is time for us flame mongers to take over... Raja Subramanian forced the electrons to say: > On Sun, 29 Oct 2000, YL Narayana wrote: > > MATCHES = `ls -d $1 2>/dev/null | wc -l` > In your case, you set the environment variable MATCHES to an empty string and > tried to run the output of `ls -d ......` as a program. Not what you > expected. Not exactly - he tries to run the program MATCHES, which might or might not be in his path, with $1 as '=' and $2 as the number of files in the directory passed as an argument to his shell function. > It seems that shell programmers know little about coding style... > What you are probably thinking now is correct, "the shell is stupid!". True, > the shell merely does string manipulation and is quirky and you will have to > live with it. Unfortunately so. We can have a long flame war about this, but LIH is better off without it. I would suggest bash2(1) for background reading. Binand -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 14:52:14 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 A30894A021 for ; Sun, 29 Oct 2000 14:52:08 -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 e9TMmN523129 for ; Mon, 30 Oct 2000 09:48:23 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9TMmN21426972 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 09:48:23 +1100 (EDT) Date: Mon, 30 Oct 2000 09:48:23 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: Newbie - shell program problem Message-ID: <20001030094822.B1509934@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001030070746.A1446658@ecr.mu.oz.au> <20001030040758.B21866@bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20001030040758.B21866@bombay.retortsoft.com>; from binand@bombay.retortsoft.com on Mon, Oct 30, 2000 at 04:07:58AM +0530 X-Archive-Number: 200010/208 Binand Raj S. wrote (binand@bombay.retortsoft.com): > > > It seems that shell programmers know little about coding style... > > What you are probably thinking now is correct, "the shell is stupid!". True, > > the shell merely does string manipulation and is quirky and you will have to > > live with it. Unfortunately so. > > We can have a long flame war about this, but LIH is better off without it. > I would suggest bash2(1) for background reading. > My appologies... that was asking for trouble :) - Raja Supe From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 20:56:45 2000 Received: from web4504.mail.yahoo.com (web4504.mail.yahoo.com [216.115.105.65]) by www.aunet.org (Postfix) with SMTP id E47A04A0AB for ; Sun, 29 Oct 2000 20:56:43 -0800 (PST) Message-ID: <20001030045259.2221.qmail@web4504.mail.yahoo.com> Received: from [202.9.174.7] by web4504.mail.yahoo.com; Sun, 29 Oct 2000 20:52:59 PST Date: Sun, 29 Oct 2000 20:52:59 -0800 (PST) From: Ramesh Subject: popen buffersize limit - doubt To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/209 hi all, what is the buffer limit for a popen call. suppose u want to pipe the ouptput of a command means and the output of the command is 350KB means does this will work.. then what is the limit of the buffer size of the popen function. does it depends on any the system runtime availability of resources.... can anybody help me... ramesh __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 21:54:50 2000 Received: from netacrossb65e.netacross.stpn.soft.net (unknown [12.10.198.124]) by www.aunet.org (Postfix) with ESMTP id B74414A432 for ; Sun, 29 Oct 2000 21:46:02 -0800 (PST) Received: from AGOEL ([172.16.0.48]) by netacrossb65e.netacross.stpn.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id VRA3QAGF; Mon, 30 Oct 2000 11:11:50 +0530 Message-ID: <017701c04235$0b3b27e0$300010ac@agoel> From: "Amit Goel" To: References: <003e01c041db$bcf092e0$c708c5cb@noname> Subject: Re: Introductory AI books Date: Mon, 30 Oct 2000 11:18:12 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/210 AI by Rich et. all. from McGrawHill / Tata McGrawHill AI by N.J. Nisson from Narosa Pub. AI & ES by patterson from PHI amit From: Arsalan Zaidi > Could someone suggest a couple of good intro books to AI? > > --Arsalan. From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 22:52:04 2000 Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by www.aunet.org (Postfix) with ESMTP id 4BBE54A0BD for ; Sun, 29 Oct 2000 22:52:02 -0800 (PST) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id e9U6mGt09129 for ; Mon, 30 Oct 2000 07:48:16 +0100 (MET) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G3800M01DKF5L@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 07:48:16 +0100 (MET) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G38007PFDK6FV@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 07:48:15 +0100 (MET) Date: Mon, 30 Oct 2000 14:50:48 +0800 From: Aravind Sadagopan Subject: Re: XWindows Programming Using Tcl/Tk To: linux-india-programmers@lists.linux-india.org Message-id: <39FD1A46.E48955E4@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: X-Archive-Number: 200010/211 Hi Srinivasan The samples that come with the binary download of TCL/TK are one of the best and a great way to get started Cheers Aravind S srinivasan ranganathan wrote: > Hi all > > Can anyone point me to some FREE resources on the Net that i can use to > learn tcl/tk programming for XWindows? I am a student, so i have only > limited access to the Net...so a PDF or a ZIP file download will be a help. > > Thanx in advance. > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP -- Living on Earth is expensive, but it does include a free trip round the sun From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 23:06:12 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.147]) by www.aunet.org (Postfix) with ESMTP id F2BA14A105 for ; Sun, 29 Oct 2000 23:06:04 -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 MAA32127 for ; Mon, 30 Oct 2000 12:35:35 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id MAA23553 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 12:31:45 +0530 Date: Mon, 30 Oct 2000 12:31:44 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: popen buffersize limit - doubt Message-ID: <20001030123144.A23515@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001030045259.2221.qmail@web4504.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.10i In-Reply-To: <20001030045259.2221.qmail@web4504.mail.yahoo.com>; from ramesh_tnj@yahoo.com on Sun, Oct 29, 2000 at 08:52:59PM -0800 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: 200010/212 Ramesh forced the electrons to say: > what is the buffer limit for a popen call. suppose u > want to pipe the ouptput of a command means and the > output of the command is 350KB means does this will > work.. popen() by itself does not allocate any buffers. To read from a program that you have opened via popen(), you have to use one of the stdio library's input functions - fgetc, fscanf, fgets etc. For example, to read 350 KB of data from a popen'ed stream, you can allocate a 350 KB (+1, for the null byte in case of text streams :-) and read everything in one fgets() call. Or you can allocate one 50 KB buffer and read data in a loop. Example: char buffer[BUFSIZ]; FILE *pp = popen ("/usr/bin/yes", "r"); if (pp) { while (fgets (buffer, sizeof buffer, pp) != NULL) /* ... */ } > the popen function. does it depends on any the system > runtime availability of resources.... Of course. The system memory, process and open files limit all will affect the success of popen(). Binand PS: The above code snippet is an infinite loop. Don't use it! -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 23:49:43 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id C06494A013 for ; Sun, 29 Oct 2000 23:49:38 -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 e9U7p1q02178 for ; Mon, 30 Oct 2000 13:21:01 +0530 Message-ID: <39FD27F4.20F21843@pspl.co.in> Date: Mon, 30 Oct 2000 13:19:08 +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: problems with templates. References: <008301c04208$319035c0$4fac7f82@ces.clemson.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/213 What's the exact error message? Bye Shridhar Vilas Kumar Chitrakaran wrote: > Hi programmers, > > I am quite a novice C++ programmer trying to make some sense out of > templates. I have atached a program here that compiles well in MSvisual C++ > but does not compile in GNU C++ compiler. From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 06:33:47 2000 Received: from web2001.mail.yahoo.com (web2001.mail.yahoo.com [128.11.68.201]) by www.aunet.org (Postfix) with SMTP id D16BE4A0EE for ; Mon, 30 Oct 2000 06:33:44 -0800 (PST) Received: (qmail 13337 invoked by uid 60001); 30 Oct 2000 14:29:58 -0000 Message-ID: <20001030142958.13336.qmail@web2001.mail.yahoo.com> Received: from [130.127.12.50] by web2001.mail.yahoo.com; Mon, 30 Oct 2000 06:29:58 PST Date: Mon, 30 Oct 2000 06:29:58 -0800 (PST) From: vilas kumar Subject: problems with templates. To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-939819582-972916198=:12684" X-Archive-Number: 200010/214 --0-939819582-972916198=:12684 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi programmers, I am quite a novice C++ programmer trying to make some sense out of templates. I have atached a program here that compiles well in MSvisual C++ but does not compile in GNU C++ compiler. The program compiles without problems in both the compilers if I dont define the class as a template...ie, I use the class only for defining complex numbers whose real and imaginary parts are type 'double'.....no templates used. There is something wrong I am doing with the overloading of ostream and istream operators. Can anybody help? Vilas Kumar Chitrakaran __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ --0-939819582-972916198=:12684 Content-Type: application/octet-stream; name="Complex.t.cpp" Content-Transfer-Encoding: base64 Content-Description: Complex.t.cpp Content-Disposition: attachment; filename="Complex.t.cpp" Ly89PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT0NCi8vIFByb2plY3QgOiBMaWJyYXJ5 IGZvciBDb21wbGV4IE51bWJlcnMNCi8vLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t DQovLyBQYWNrYWdlIDogDQovLyBBdXRob3JzIDogVmlsbGkgDQovLyBTdGFy dCBkYXRlIDoNCi8vIENvbXBpbGVyIDogR05VIEMrKw0KLy8gT3BlcmF0aW5n IFN5c3RlbSA6IGFueQ0KLy8tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCi8vIEZp bGUgOiBDb21wbGV4LnQuY3BwDQovLyBUaGlzIGZpbGUgdGVzdHMgdGhlIENs YXNzICdDb21wbGV4Jy4NCi8vPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQoNCg0K I2luY2x1ZGU8aW9zdHJlYW0uaD4NCiNpbmNsdWRlIkNvbXBsZXguaHBwIg0K DQppbnQgbWFpbigpDQp7DQoJQ29tcGxleDxkb3VibGU+IGZpcnN0Q29tcGxl eE51bWJlcjsNCglDb21wbGV4PGRvdWJsZT4gc2Vjb25kQ29tcGxleE51bWJl cjsNCglDb21wbGV4PGludD4gdGhpcmRDb21wbGV4TnVtYmVyOw0KCUNvbXBs ZXg8aW50PiBmb3VydGhDb21wbGV4TnVtYmVyOw0KDQoNCgkNCgljb3V0PDwg IiBHaXZlIG1lIHRoZSBmaXJzdCBjb21wbGV4IG51bWJlciBhcyAoeCx5KSIg PDxlbmRsOw0KCWNpbj4+IGZpcnN0Q29tcGxleE51bWJlcjsNCgljb3V0IDw8 Zmlyc3RDb21wbGV4TnVtYmVyIDw8ICJcbiI7DQoJY291dDw8ICIgXG5HaXZl IG1lIHRoZSBzZWNvbmQgY29tcGxleCBudW1iZXIgYXMgKHgseSkiIDw8ZW5k bDsNCgljaW4+PiBzZWNvbmRDb21wbGV4TnVtYmVyOw0KCWNvdXQgPDxzZWNv bmRDb21wbGV4TnVtYmVyIDw8ICJcbiI7DQoJY291dDw8ICIgR2l2ZSBtZSB0 aGUgdGhpcmQgY29tcGxleCBudW1iZXIgYXMgKHgseSkiIDw8ZW5kbDsNCglj aW4+PiB0aGlyZENvbXBsZXhOdW1iZXI7DQoJY291dCA8PHRoaXJkQ29tcGxl eE51bWJlciA8PCAiXG4iOw0KCWNvdXQ8PCAiIFxuR2l2ZSBtZSB0aGUgZm91 cnRoIGNvbXBsZXggbnVtYmVyIGFzICh4LHkpIiA8PGVuZGw7DQoJY2luPj4g Zm91cnRoQ29tcGxleE51bWJlcjsNCgljb3V0IDw8Zm91cnRoQ29tcGxleE51 bWJlciA8PCAiXG4iOw0KDQoJDQoJY291dDw8ICJhZGRpdGlvbiBvZiB0aGUg Zmlyc3QgYW5kIHNlY29uZCBudW1iZXJzOiAiIDw8IGZpcnN0Q29tcGxleE51 bWJlciArIHNlY29uZENvbXBsZXhOdW1iZXIgPDwgIlxuIjsNCgljb3V0PDwg InN1YnRyYWN0aW9uIG9mIHRoZSBmaXJzdCBhbmQgc2Vjb25kIG51bWJlcnM6 ICIgPDwgZmlyc3RDb21wbGV4TnVtYmVyIC0gc2Vjb25kQ29tcGxleE51bWJl ciA8PCAiXG4iOw0KCWNvdXQ8PCAibXVsdGlwbGljYXRpb24gb2YgdGhlIGZp cnN0IGFuZCBzZWNvbmQgbnVtYmVyczogIiA8PCBmaXJzdENvbXBsZXhOdW1i ZXIgKiBzZWNvbmRDb21wbGV4TnVtYmVyIDw8ICJcbiI7DQoJY291dDw8ICJk aXZpc2lvbiBvZiB0aGUgZmlyc3QgYW5kIHNlY29uZCBudW1iZXJzOiAiIDw8 IGZpcnN0Q29tcGxleE51bWJlciAvIHNlY29uZENvbXBsZXhOdW1iZXIgPDwg IlxuIjsNCg0KCWNvdXQ8PCAiYWRkaXRpb24gb2YgdGhlIHRoaXJkIGFuZCBm b3VydGggbnVtYmVyczogIiA8PCB0aGlyZENvbXBsZXhOdW1iZXIgKyBmb3Vy dGhDb21wbGV4TnVtYmVyIDw8ICJcbiI7DQoJY291dDw8ICJzdWJ0cmFjdGlv biBvZiB0aGUgdGhpcmQgYW5kIGZvdXJ0aCBudW1iZXJzOiAiIDw8IHRoaXJk Q29tcGxleE51bWJlciAtIGZvdXJ0aENvbXBsZXhOdW1iZXIgPDwgIlxuIjsN Cgljb3V0PDwgIm11bHRpcGxpY2F0aW9uIG9mIHRoZSB0aGlyZCBhbmQgZm91 cnRoIG51bWJlcnM6ICIgPDwgdGhpcmRDb21wbGV4TnVtYmVyICogZm91cnRo Q29tcGxleE51bWJlciA8PCAiXG4iOw0KCWNvdXQ8PCAiZGl2aXNpb24gb2Yg dGhlIHRoaXJkIGFuZCBmb3VydGggbnVtYmVyczogIiA8PCB0aGlyZENvbXBs ZXhOdW1iZXIgLyBmb3VydGhDb21wbGV4TnVtYmVyIDw8ICJcbiI7DQoNCg0K CXJldHVybiAwOw0KDQp9DQoNCg0KDQoJDQoNCg0K --0-939819582-972916198=:12684 Content-Type: application/octet-stream; name="Complex.hpp" Content-Transfer-Encoding: base64 Content-Description: Complex.hpp Content-Disposition: attachment; filename="Complex.hpp" Ly89PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT0NCi8vIFByb2plY3QgOiBMaWJyYXJ5 IGZvciBDb21wbGV4IE51bWJlcnMNCi8vLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t DQovLyBQYWNrYWdlIDogDQovLyBBdXRob3JzIDogVmlsbGkgDQovLyBTdGFy dCBkYXRlIDoNCi8vIENvbXBpbGVyIDogR05VIEMrKw0KLy8gT3BlcmF0aW5n IFN5c3RlbSA6IGFueQ0KLy8tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCi8vIEZp bGUgOiBDb21wbGV4LmhwcA0KLy8gSGVhZGVyIGZpbGUgZm9yIHRoZSBjbGFz cyBDb21wbGV4Lg0KLy89PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCg0KDQojaW5j bHVkZTxpb3N0cmVhbS5oPg0KI2luY2x1ZGU8aW9tYW5pcC5oPg0KI2luY2x1 ZGU8c3RkaW8uaD4NCiNpbmNsdWRlPG1hdGguaD4NCg0KDQovLz09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PQ0KLy8gDQovLyBjbGFzcyBDb21wbGV4DQovLy0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLQ0KLy8gVGhlIGZvbGxvd2luZyBpcyBhIGRlZmlu aXRpb24gb2YgY2xhc3MgdGVtcGxhdGUgZm9yIGNvbXBsZXggbnVtYmVycy4N Ci8vIENsYXNzIG1ldGhvZHMgaW5jbHVkZSBmdW5jdGlvbnMgdG8gZ2V0L3Nl dCByZWFsIGFuZCBpbWFnaW5hcnkgcGFydHMgDQovLyBvZiB0aGUgY29tcGxl eCBudW1iZXIuDQovLw0KLy8gVGhlIGFyaXRobWV0aWMgYW5kIGlzdHJlYW0v b3N0cmVhbSBvcGVyYXRvcnMgYXJlIG92ZXJsb2FkZWQgdG8gDQovLyBhbGxv dyBkaXJlY3QgbWFuaXB1bGF0aW9uIG9uIHRoZSBkYXRhIG9mIHR5cGUgQ29t cGxleCBqdXN0IGFzIA0KLy8gYnVpbHQgaW4gdHlwZXMuDQovLz09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PQ0KDQoNCnRlbXBsYXRlIDxjbGFzcyBUPg0KY2xhc3Mg Q29tcGxleA0Kew0KDQpwdWJsaWM6DQoJQ29tcGxleCgpeyBkX3JlYWxQYXJ0 PTA7IGRfaW1hZ2luYXJ5UGFydD0wO30NCgkJLy8gVGhlIGRlZmF1bHQgQ29u c3RydWN0b3INCg0KCUNvbXBsZXgoVCByZWFsUGFydCwgVCBpbWFnaW5hcnlQ YXJ0KXtkX3JlYWxQYXJ0PXJlYWxQYXJ0OyBkX2ltYWdpbmFyeVBhcnQ9aW1h Z2luYXJ5UGFydDsgfQ0KCQkvLyBBIENvbnN0cnVjdG9yIHRoYXQgYWxsb3dz IHRoZSB1c2VyIHRvIGluaXRpYWxpc2UNCgkJLy8gdGhlIGRhdGEgdHlwZQ0K DQoJfkNvbXBsZXgoKSB7fQ0KCQkvLyBUaGUgRGVzdHJ1Y3Rvcg0KCQkNCgkN Cg0KCWZyaWVuZCBvc3RyZWFtICZvcGVyYXRvcjw8KG9zdHJlYW0mLCBjb25z dCBDb21wbGV4PFQ+ICYpOw0KCQkvLyBPdmVybG9hZGluZyBvc3RyZWFtIG9w ZXJhdG9yIDw8IHRvIGRpcmVjdGx5IGFjY2VwdCBjb21wbGV4IHR5cGUNCgkN Cg0KCWZyaWVuZCBpc3RyZWFtICZvcGVyYXRvcj4+KGlzdHJlYW0mLCBDb21w bGV4PFQ+ICYpOw0KCQkvLyBPdmVybG9hZGluZyBpc3RyZWFtIG9wZXJhdG9y ID4+IHRvIGRpcmVjdGx5IGFjY2VwdCBjb21wbGV4IHR5cGUNCgkNCgkNCglD b21wbGV4IG9wZXJhdG9yKyhjb25zdCBDb21wbGV4PFQ+ICYpOw0KCQkvLyBP dmVybG9hZGluZyBiaW5hcnkgb3BlcmF0b3IgKw0KCQkvLyBlbmFibGVzIHN1 bSA9IEMxICsgQzIgd2hlcmUgQzEgYW5kIEMyIGFyZSB0eXBlIENvbXBsZXgN Cg0KCUNvbXBsZXggb3BlcmF0b3IrPShjb25zdCBDb21wbGV4PFQ+ICYgc2Vj b25kTnVtYmVyKTsNCgkJLy8gT3ZlcmxvYWRpbmcgdGhlICs9IG9wZXJhdG9y IGZvciBvcGVyYXRpb25zIHdpdGggY2xhc3MgY29tcGxleA0KDQoJQ29tcGxl eCBvcGVyYXRvci0oY29uc3QgQ29tcGxleDxUPiAmKTsNCgkJLy8gT3Zlcmxv YWRpbmcgYmluYXJ5IG9wZXJhdG9yIC0NCgkJLy8gZW5hYmxlcyBkaWZmZXJl bmNlID0gQzEgLSBDMiB3aGVyZSBDMSBhbmQgQzIgYXJlIHR5cGUgQ29tcGxl eA0KDQoJQ29tcGxleCBvcGVyYXRvci09KGNvbnN0IENvbXBsZXg8VD4gJiBz ZWNvbmROdW1iZXIpOw0KCQkvLyBPdmVybG9hZGluZyB0aGUgLT0gb3BlcmF0 b3IgZm9yIG9wZXJhdGlvbnMgd2l0aCBjbGFzcyBjb21wbGV4DQoNCgkNCglD b21wbGV4IG9wZXJhdG9yKihjb25zdCBDb21wbGV4PFQ+ICYpOw0KCQkvLyBP dmVybG9hZGluZyBiaW5hcnkgb3BlcmF0b3IgKg0KCQkvLyBlbmFibGVzIHBy b2R1Y3QgPSBDMSAqIEMyIHdoZXJlIEMxIGFuZCBDMiBhcmUgdHlwZSBDb21w bGV4DQoNCglDb21wbGV4IG9wZXJhdG9yKj0oY29uc3QgQ29tcGxleDxUPiAm IHNlY29uZE51bWJlcik7DQoJCS8vIE92ZXJsb2FkaW5nIHRoZSAqPSBvcGVy YXRvciBmb3Igb3BlcmF0aW9ucyB3aXRoIGNsYXNzIGNvbXBsZXgNCiANCg0K CUNvbXBsZXggb3BlcmF0b3IvKGNvbnN0IENvbXBsZXg8VD4gJik7DQoJCS8v IE92ZXJsb2FkaW5nIGJpbmFyeSBvcGVyYXRvciAvDQoJCS8vIGVuYWJsZXMg ZGl2aXNpb24gPSBDMSAvIEMyIHdoZXJlIEMxIGFuZCBDMiBhcmUgdHlwZSBD b21wbGV4DQoNCglDb21wbGV4IG9wZXJhdG9yLz0oY29uc3QgQ29tcGxleDxU PiAmIHNlY29uZE51bWJlcik7DQoJCS8vIE92ZXJsb2FkaW5nIHRoZSAvPSBv cGVyYXRvciBmb3Igb3BlcmF0aW9ucyB3aXRoIGNsYXNzIGNvbXBsZXgNCg0K DQoNCg0KCVQgZ2V0UmVhbFBhcnQoKSBjb25zdCB7IHJldHVybiBkX3JlYWxQ YXJ0OyB9DQoJCS8vIE9idGFpbnMgdGhlIHJlYWwgcGFydCBvZiB0aGUgY29t cGxleCBudW1iZXINCgkJDQoJVCBnZXRJbWFnaW5hcnlQYXJ0KCkgY29uc3Qg eyByZXR1cm4gZF9pbWFnaW5hcnlQYXJ0OyB9DQoJCS8vIE9idGFpbnMgdGhl IGltYWdpbmFyeSBwYXJ0IG9mIHRoZSBjb21wbGV4IG51bWJlcg0KCQkNCgl2 b2lkIHNldFJlYWxQYXJ0KFQgcmVhbCkge2RfcmVhbFBhcnQgPSByZWFsOyB9 DQoJCS8vIFNldHMgdGhlIHJlYWwgcGFydCBvZiB0aGUgY29tcGxleCBudW1i ZXINCgkJDQoJdm9pZCBzZXRJbWFnaW5hcnlQYXJ0KFQgaW1hZykge2RfaW1h Z2luYXJ5UGFydCA9IGltYWc7IH0NCgkJLy8gU2V0cyB0aGUgaW1hZ2luYXJ5 IHBhcnQgb2YgdGhlIGNvbXBsZXggbnVtYmUNCgkJDQoJDQoJDQoJCQ0KDQpw cml2YXRlOg0KCVQgZF9yZWFsUGFydDsNCgkJLy9yZWFsIHBhcnQgb2YgdGhl IGNvbXBsZXggbnVtYmVyDQoNCglUIGRfaW1hZ2luYXJ5UGFydDsgIA0KCQkv L2ltYWdpbmFyeSB2YWx1ZSBvZiB0aGUgY29tcGxleCBudW1iZXINCgkNCn07 DQoNCg0KDQovLz09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLy8gVGhlIHJlbWFp bmluZyBwYXJ0IG9mIHRoaXMgZmlsZSBnaXZlcyB0aGUgZGVmaW5pdGlvbnMg Zm9yIGFsbCB0aGUNCi8vIGZ1bmN0aW9ucyBkZWNsYXJlZCBhYm92ZS4NCi8v PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09DQoNCg0KCWZyaWVuZCBvc3RyZWFtICZv cGVyYXRvcjw8KG9zdHJlYW0gJm91dHB1dCwgY29uc3QgQ29tcGxleDxUPiAm bnVtKQ0KDQoJCS8vIFRoaXMgZnVuY3Rpb24gb3ZlcmxvYWRzIHRoZSA8PCBv c3RyZWFtIG9wZXJhdG9yDQoJCS8vIHNvIHRoYXQgJ2NvdXQnIGFjY2VwdHMg dGhlIGRhdGEgdHlwZSAnY29tcGxleCcNCgkJLy8gZW5hYmxlcyBjb3V0IDw8 IHggPDwiKyBqIiA8PCB5DQoNCg0KCXsNCgkJb3V0cHV0IDw8IG51bS5kX3Jl YWxQYXJ0IDw8ICIgKyBqICIgPDwgIigiIDw8IG51bS5kX2ltYWdpbmFyeVBh cnQgPDwgIikiOw0KCQlyZXR1cm4gb3V0cHV0OwkJCQkJDQoJfQ0KDQoJCQ0K CQkNCglmcmllbmQgaXN0cmVhbSAmb3BlcmF0b3I+Pihpc3RyZWFtICZpbnB1 dCwgQ29tcGxleDxUPiAmbnVtKQ0KDQoJCS8vIFRoaXMgZnVuY3Rpb24gb3Zl cmxvYWRzIHRoZSA+PiBpc3RyZWFtIG9wZXJhdG9yDQoJCS8vIHNvIHRoYXQg J2NpbicgYWNjZXB0cyB0aGUgZGF0YSB0eXBlICdjb21wbGV4Jw0KCQkvLyBl bmFibGVzIGNpbiA+PiBYKyBqWQ0KCXsNCgkNCgkNCgkJd2hpbGUoKGNpbi5w ZWVrKCk9PSdcbicpfHwoY2luLnBlZWsoKT09J1xyJykpDQoJCQljaW4uaWdu b3JlKDEpOw0KCQ0KDQoNCgkJaW5wdXQuaWdub3JlKDEpOwkJCQkJDQoJCS8v aWdub3JlICcoJw0KDQoJCWlucHV0ID4+IHNldHcoNCkgPj4gbnVtLmRfcmVh bFBhcnQ7CQkNCgkJLy9pbnB1dCByZWFsIHBhcnQgaW4gMyBkaWdpdHMgb3Ig bW9yZQ0KDQoJCWlucHV0Lmlnbm9yZSgxKTsJCQkJCQ0KCQkvL3NraXAgKCwp DQoNCgkJaW5wdXQgPj4gc2V0dyg0KSA+PiBudW0uZF9pbWFnaW5hcnlQYXJ0 OwkNCgkJLy9pbnB1dCBpbWFnaW5hcnkgcGFydCBpbiAzIGRpZ2l0cyBvciBt b3JlDQoNCgkJaW5wdXQuaWdub3JlKDEpOwkJCQkJDQoJCS8vaWdub3JlICcp JwkNCgkJDQoJCXJldHVybiBpbnB1dDsJCQkJCQ0KCX0NCg0KCQ0KDQp0ZW1w bGF0ZTxjbGFzcyBUPg0KQ29tcGxleDxUPiBDb21wbGV4PFQ+OjpvcGVyYXRv cisoY29uc3QgQ29tcGxleDxUPiAmIHNlY29uZE51bWJlcikNCg0KLy8gT3Zl cmxvYWRpbmcgb3BlcmF0b3IgKyB0byBkaXJlY3RseSBvcGVyYXRlIG9uIGNv bXBsZXggbnVtYmVycw0KLy8gZW5hYmxlcyBzdW0gPSBDMSArIEMyIHdoZXJl IEMxIGFuZCBDMiBhcmUgdHlwZSBDb21wbGV4DQp7DQoJQ29tcGxleDxUPiBz dW07CQ0KCXN1bS5zZXRSZWFsUGFydChnZXRSZWFsUGFydCgpICsgc2Vjb25k TnVtYmVyLmdldFJlYWxQYXJ0KCkpOw0KCXN1bS5zZXRJbWFnaW5hcnlQYXJ0 KGdldEltYWdpbmFyeVBhcnQoKSArIHNlY29uZE51bWJlci5nZXRJbWFnaW5h cnlQYXJ0KCkpOw0KCXJldHVybiAoc3VtKTsNCn0NCg0KDQp0ZW1wbGF0ZTxj bGFzcyBUPg0KQ29tcGxleDxUPiBDb21wbGV4PFQ+OjpvcGVyYXRvcis9KGNv bnN0IENvbXBsZXg8VD4gJiBzZWNvbmROdW1iZXIpDQoNCi8vIE92ZXJsb2Fk aW5nIHRoZSArPSBvcGVyYXRvciBmb3Igb3BlcmF0aW9ucyB3aXRoIGNsYXNz IGNvbXBsZXgNCnsNCgkqdGhpcz0qdGhpcyArIHNlY29uZE51bWJlcjsNCgly ZXR1cm4gKnRoaXM7DQp9DQoNCg0KdGVtcGxhdGU8Y2xhc3MgVD4NCkNvbXBs ZXg8VD4gQ29tcGxleDxUPjo6b3BlcmF0b3ItKGNvbnN0IENvbXBsZXg8VD4g JiBzZWNvbmROdW1iZXIpDQoNCi8vIE92ZXJsb2FkaW5nIG9wZXJhdG9yIC0g dG8gZGlyZWN0bHkgb3BlcmF0ZSBvbiBjb21wbGV4IG51bWJlcnMNCi8vIGVu YWJsZXMgZGlmZmVyZW5jZSA9IEMxIC0gQzIgd2hlcmUgQzEgYW5kIEMyIGFy ZSB0eXBlIENvbXBsZXgNCg0Kew0KCUNvbXBsZXg8VD4gZGlmZmVyZW5jZTsg DQoJZGlmZmVyZW5jZS5zZXRSZWFsUGFydChnZXRSZWFsUGFydCgpIC0gc2Vj b25kTnVtYmVyLmdldFJlYWxQYXJ0KCkpOw0KCWRpZmZlcmVuY2Uuc2V0SW1h Z2luYXJ5UGFydChnZXRJbWFnaW5hcnlQYXJ0KCkgLSBzZWNvbmROdW1iZXIu Z2V0SW1hZ2luYXJ5UGFydCgpKTsNCglyZXR1cm4gKGRpZmZlcmVuY2UpOw0K fQ0KDQoNCnRlbXBsYXRlPGNsYXNzIFQ+DQpDb21wbGV4PFQ+IENvbXBsZXg8 VD46Om9wZXJhdG9yLT0oY29uc3QgQ29tcGxleDxUPiAmIHNlY29uZE51bWJl cikNCg0KLy8gT3ZlcmxvYWRpbmcgdGhlIC09IG9wZXJhdG9yIGZvciBvcGVy YXRpb25zIHdpdGggY2xhc3MgY29tcGxleA0Kew0KCSp0aGlzPSp0aGlzIC0g c2Vjb25kTnVtYmVyOw0KCXJldHVybiAqdGhpczsNCn0NCg0KDQp0ZW1wbGF0 ZTxjbGFzcyBUPg0KQ29tcGxleDxUPiBDb21wbGV4PFQ+OjpvcGVyYXRvciAq KGNvbnN0IENvbXBsZXg8VD4gJiBzZWNvbmROdW1iZXIpDQoNCi8vIE92ZXJs b2FkaW5nIG9wZXJhdG9yICogdG8gZGlyZWN0bHkgb3BlcmF0ZSBvbiBjb21w bGV4IG51bWJlcnMNCi8vIGVuYWJsZXMgcHJvZHVjdCA9IEMxICogQzIgd2hl cmUgQzEgYW5kIEMyIGFyZSB0eXBlIENvbXBsZXgNCg0Kew0KCUNvbXBsZXgg cHJvZHVjdDsNCglwcm9kdWN0LnNldFJlYWxQYXJ0KGdldFJlYWxQYXJ0KCkq c2Vjb25kTnVtYmVyLmdldFJlYWxQYXJ0KCkgLSBnZXRJbWFnaW5hcnlQYXJ0 KCkqc2Vjb25kTnVtYmVyLmdldEltYWdpbmFyeVBhcnQoKSk7DQoJcHJvZHVj dC5zZXRJbWFnaW5hcnlQYXJ0KGdldFJlYWxQYXJ0KCkqc2Vjb25kTnVtYmVy LmdldEltYWdpbmFyeVBhcnQoKSArIGdldEltYWdpbmFyeVBhcnQoKSpzZWNv bmROdW1iZXIuZ2V0UmVhbFBhcnQoKSk7DQoJcmV0dXJuIChwcm9kdWN0KTsN Cn0NCg0KDQp0ZW1wbGF0ZTxjbGFzcyBUPg0KQ29tcGxleDxUPiBDb21wbGV4 PFQ+OjpvcGVyYXRvcio9KGNvbnN0IENvbXBsZXg8VD4gJiBzZWNvbmROdW1i ZXIpDQoNCi8vIE92ZXJsb2FkaW5nIHRoZSArPSBvcGVyYXRvciBmb3Igb3Bl cmF0aW9ucyB3aXRoIGNsYXNzIGNvbXBsZXgNCnsNCgkqdGhpcz0qdGhpcyAq IHNlY29uZE51bWJlcjsNCglyZXR1cm4gKnRoaXM7DQp9DQoNCg0KdGVtcGxh dGU8Y2xhc3MgVD4NCkNvbXBsZXg8VD4gQ29tcGxleDxUPjo6b3BlcmF0b3Ig Lyhjb25zdCBDb21wbGV4PFQ+ICYgc2Vjb25kTnVtYmVyKQ0KDQovLyBPdmVy bG9hZGluZyBvcGVyYXRvciAvIHRvIGRpcmVjdGx5IG9wZXJhdGUgb24gY29t cGxleCBudW1iZXJzDQovLyBlbmFibGVzIHN1bSA9IEMxIC8gQzIgd2hlcmUg QzEgYW5kIEMyIGFyZSB0eXBlIENvbXBsZXgNCg0Kew0KCUNvbXBsZXg8VD4g ZGl2aXNpb247DQoJZGl2aXNpb24uc2V0UmVhbFBhcnQoKGdldFJlYWxQYXJ0 KCkqc2Vjb25kTnVtYmVyLmdldFJlYWxQYXJ0KCkgKyBnZXRJbWFnaW5hcnlQ YXJ0KCkqc2Vjb25kTnVtYmVyLmdldEltYWdpbmFyeVBhcnQoKSkvKHNlY29u ZE51bWJlci5nZXRSZWFsUGFydCgpKnNlY29uZE51bWJlci5nZXRSZWFsUGFy dCgpICsgc2Vjb25kTnVtYmVyLmdldEltYWdpbmFyeVBhcnQoKSpzZWNvbmRO dW1iZXIuZ2V0SW1hZ2luYXJ5UGFydCgpKSk7DQoJZGl2aXNpb24uc2V0SW1h Z2luYXJ5UGFydCgoZ2V0SW1hZ2luYXJ5UGFydCgpKnNlY29uZE51bWJlci5n ZXRSZWFsUGFydCgpIC0gZ2V0UmVhbFBhcnQoKSpzZWNvbmROdW1iZXIuZ2V0 SW1hZ2luYXJ5UGFydCgpKS8oc2Vjb25kTnVtYmVyLmdldFJlYWxQYXJ0KCkq c2Vjb25kTnVtYmVyLmdldFJlYWxQYXJ0KCkgKyBzZWNvbmROdW1iZXIuZ2V0 SW1hZ2luYXJ5UGFydCgpKnNlY29uZE51bWJlci5nZXRJbWFnaW5hcnlQYXJ0 KCkpKTsNCglyZXR1cm4gKGRpdmlzaW9uKTsNCn0NCg0KDQp0ZW1wbGF0ZTxj bGFzcyBUPg0KQ29tcGxleDxUPiBDb21wbGV4PFQ+OjpvcGVyYXRvci89KGNv bnN0IENvbXBsZXg8VD4gJiBzZWNvbmROdW1iZXIpDQoNCi8vIE92ZXJsb2Fk aW5nIHRoZSArPSBvcGVyYXRvciBmb3Igb3BlcmF0aW9ucyB3aXRoIGNsYXNz IGNvbXBsZXgNCnsNCgkqdGhpcz0qdGhpcyAvIHNlY29uZE51bWJlcjsNCgly ZXR1cm4gKnRoaXM7DQp9DQoNCg0K --0-939819582-972916198=:12684-- From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 09:16:46 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 121AA4A0E6 for ; Mon, 30 Oct 2000 09:16:42 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA29581 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 09:11:00 -0800 Date: Mon, 30 Oct 2000 09:11:00 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: The 8139/8129 ethernet driver Message-ID: <20001030091100.A29562@sharmas.dhs.org> References: <003801c04003$3f6902a0$61a5a8c0@wipsys.soft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <003801c04003$3f6902a0$61a5a8c0@wipsys.soft.net>; from vimal.mathew@wipro.com on Fri, Oct 27, 2000 at 04:17:04PM +0530 X-Archive-Number: 200010/215 On Fri, Oct 27, 2000 at 04:17:04PM +0530, Vimal Mathew wrote: > > Could someone pleeeeeeease help me out? It seems like a small problem, > especially since "tcpdump" works so fine!!! Is it possible that the data link layer is just fine and the problem is at the IP level ? Have you checked your routes etc ? -Arun From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 09:59:13 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 6F0AF4A106 for ; Mon, 30 Oct 2000 09:59:06 -0800 (PST) Received: (qmail 19491 invoked by uid 417); 30 Oct 2000 17:57:52 -0000 Received: from unknown (HELO d) (203.197.195.212) by smtpa.softhome.net with SMTP; 30 Oct 2000 17:57:52 -0000 Date: Mon, 30 Oct 2000 23:25:10 +0500 From: Ð ë ê þ ã K Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: compiling X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Message-Id: <20001030175906.6F0AF4A106@www.aunet.org> X-Archive-Number: 200010/216 hi i tried compiling a c program as cc myprog.c & rename a.out to a.out1 . then i complied it with unrelated file cc myprog.c anotherfile.c the file sizes of a.out & a.out1 differ . also the program was written to show some pointer address . each exectable shows different addresses . if same executable is run repeatedly , it shows same addresses . what info did a.out took from anotherfile.c ? ----------------------------- reply soon bye ==== Ð ë ê þ ã K ---- have a great day ICQ 30662394 -- The wise person writes bomb-proof code. From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 13:50:48 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 8A15949FDE for ; Mon, 30 Oct 2000 13:50:39 -0800 (PST) Received: from mail pickup service by eth.net with Microsoft SMTPSVC; Tue, 31 Oct 2000 02:02:37 +0530 Received: from www.aunet.org ([216.103.113.202]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Mon, 30 Oct 2000 12:14:44 +0530 Received: from www.aunet.org (localhost [127.0.0.1]) by www.aunet.org (Postfix) with SMTP id 2133A4A121; Sun, 29 Oct 2000 22:52:11 -0800 (PST) Content-Type: multipart/mixed; boundary="----------=_972888726-16830-4" Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) Subject: linux-india-help digest V1 #35 From: linux-india-programmers-owner@lists.linux-india.org To: linux-india-programmers@lists.linux-india.org Predecence: bulk Message-Id: <20001030065211.2133A4A121@www.aunet.org> Date: Sun, 29 Oct 2000 22:52:11 -0800 (PST) X-Archive-Number: 200010/217 This is a multi-part message in MIME format... ------------=_972888726-16830-4 Content-Type: text/plain Content-Disposition: inline Content-Description: Index Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) linux-india-help digest (mime) - Volume 1 : Issue 35 Today's Topics: Re: Newbie - shell program problem [Dwivedi Ajay kumar ] Introductory AI books ["Arsalan Zaidi" ] Re: Newbie - shell program problem [Raja Subramanian ] Re: Detecting open files [Raja Subramanian ] Re: Help to execute C Program Outputs... and some more [Raja Subramanian ] problems with templates. ["Vilas Kumar Chitrakaran" ] Re: Re: Newbie - shell program problem ["Binand Raj S." ] Re: Re: Newbie - shell program problem [Raja Subramanian ] popen buffersize limit - doubt [Ramesh ] Re: Introductory AI books ["Amit Goel" ] Re: XWindows Programming Using Tcl/Tk [Aravind Sadagopan ] ------------=_972888726-16830-4 Content-Type: multipart/digest; boundary="----------=_972888726-16830-5" Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) This is a multi-part message in MIME format... ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/201 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sat Oct 28 21:24:43 2000 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 487AC4A042 for ; Sat, 28 Oct 2000 21:24:34 -0700 (PDT) Received: from qasid.cc.iitk.ac.in (qasid.cc.iitk.ac.in [172.31.1.16]) by mail.iitk.ac.in (8.9.2/8.9.2) with ESMTP id JAA15805 for ; Sun, 29 Oct 2000 09:53:35 +0530 (IST) Received: from ajayd.hall.iitk.ac.in (IDENT:ajayd@[172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id JAA01689 for ; Sun, 29 Oct 2000 09:43:59 +0530 (IST) Date: Sun, 29 Oct 2000 09:48:06 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-programmers@lists.linux-india.org Subject: Re: Newbie - shell program problem In-Reply-To: <000401c04120$6e31f2e0$2863d6d2@glidemart> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/201 On Sun, 29 Oct 2000, YL Narayana wrote: > --------Program--------- > #!/bin/bash > > function CountMatches { > MATCHES = `ls -d $1 2>/dev/null | wc -l` There should be no spaces after MATCHES. is MATCHES=`ls -d $1 2>/dev/null | wc -l` > echo "$MATCHES" > if [ $MATCHES != 0 ] ; then return 0 ; else return 1 ; fi > } > > function DispMatches { > if MATCHES=`CountMatches "$1"` ; then > echo -n "Number of matches for $1: " > echo $MATCHES > else > echo "$1 is not a valid pattern." > fi > } > > DispMatches '/dev/hda*' > DispMatches '/proc/*' > DispMatches '/foo/*' > The output on my box after the above change: Number of matches for /dev/hda*: 17 Number of matches for /proc/*: 103 /foo/* is not a valid pattern (I don't have a /foo directory :-) Bye and Enjoy Life... -- #!!! If anything can go wrong, _FIX_ it. (To hell with MURPHY) Ajay kumar Dwivedi ajayd@iitk.ac.in ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/202 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 11:11:13 2000 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id 2B0374A00D for ; Sun, 29 Oct 2000 11:11:08 -0800 (PST) Received: from noname (PPP-203-197-8-199.bom.vsnl.net.in [203.197.8.199]) by bom8.vsnl.net.in (Postfix) with ESMTP id BAC785C80 for ; Mon, 30 Oct 2000 00:32:31 +0500 (GMT+0500) Message-ID: <003e01c041db$bcf092e0$c708c5cb@noname> From: "Arsalan Zaidi" To: Subject: Introductory AI books Date: Mon, 30 Oct 2000 00:33:25 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/202 Hi. Could someone suggest a couple of good intro books to AI? --Arsalan. ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/203 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 12:11:37 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 94C264A00B for ; Sun, 29 Oct 2000 12:11:31 -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 e9TK7jh21092 for ; Mon, 30 Oct 2000 07:07:46 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9TK7kv1486987 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 07:07:46 +1100 (EDT) Date: Mon, 30 Oct 2000 07:07:46 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Newbie - shell program problem Message-ID: <20001030070746.A1446658@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Archive-Number: 200010/203 Hello, A more exhaustive explanation of the problem... (experts can look away:) The following line does not produce intended output because of the space around the = sign (a previous poster had already mentioned this). On Sun, 29 Oct 2000, YL Narayana wrote: > MATCHES = `ls -d $1 2>/dev/null | wc -l` Well, what exactly is happening here?? Consider the following shell code... VAR=foo prog This sets the environment variable VAR to the value "foo" and runs the program prog. Where can this be usefull?? http_proxy="10.0.0.1:8000" wget http://www.python.org Now, I have set the environ variable "http_proxy" to point to my proxy and I've run wget to download the given URL through the proxy. A usefull trick. In your case, you set the environment variable MATCHES to an empty string and tried to run the output of `ls -d ......` as a program. Not what you expected. While debugging shell scripts, use set -x and set -v. It seems that shell programmers know little about coding style... What you are probably thinking now is correct, "the shell is stupid!". True, the shell merely does string manipulation and is quirky and you will have to live with it. Unfortunately so. For more complex shell scripts, I tend to use python instead. Python is a very clean language with a simple syntax that programmers proficient in other languages can learn very quickly. Give it a try (www.python.org), I'm sure you'll love it. - Raja Supe ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/204 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 12:20:29 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 8B7404A04C for ; Sun, 29 Oct 2000 12:20:23 -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 e9TKGbh21162 for ; Mon, 30 Oct 2000 07:16:37 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9TKGci1474364 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 07:16:38 +1100 (EDT) Date: Mon, 30 Oct 2000 07:16:38 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Detecting open files Message-ID: <20001030071637.A1472098@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Archive-Number: 200010/204 Hello, Delip Rao wrote: > How do I detect a file already been opened by someother process? Use fuser or lsof. On debian boxes, fuser is bundled with the psmisc package and lsof is in a package of its own. If your are looking for some code, check the sources of the mentioned programs. - Raja Supe ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/205 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 13:09:11 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 7B60D4A047 for ; Sun, 29 Oct 2000 13:09:05 -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 e9TL5Kh21450 for ; Mon, 30 Oct 2000 08:05:20 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9TL5K01487270 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 08:05:20 +1100 (EDT) Date: Mon, 30 Oct 2000 08:05:20 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Help to execute C Program Outputs... and some more Message-ID: <20001030080519.B1472098@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Archive-Number: 200010/205 Hello, This is a followup post about executing programs in the current directory. This post hilights the dangers in careless PATH handling in unix and also hilights the differences btwn DOS and UNIX PATH handling. This is off topic, but I think that it's worth mentioning. The DOS shell (command.com) searches for the named program in the current dir first. Failing that, it searches through the PATH environ variable until it finds the required program and the first match is used. Unix shells search only in the dirs listed in the PATH variable. They do not make any assumptions about the current dir. This is with good reason. Say the unix shell executed programs from the current dir first (like DOS), if you changed to my home dir (cd ~username) and tried to list it's contents (ls). If I had an executable named ls in this dir you would end up running my ls instead of the system /bin/ls program. My ls program could make a copy of your shell to some hidden location and make it set uid (and I have hacked your account). After all this, it can list the dir contents as usual (skipping my trojan ls ofcourse) and you would notice nothing unusual. The standard practice is therefore never to include the current dir in the PATH. Use ./prog to run progs in the curr dir. For those security minded sys admins the PATH must be set up as follows: 1) Users bin dir (if exists) eg. ~/bin 2) Site local bin dirs eg. /usr/loca/bin 3) System bin dirs eg. /usr/bin, /bin, etc 4) Current dir. Optional... You should not be doing this. You should end up with something like... PATH=/home/user/bin:/usr/local/bin:/usr/bin:/bin Several documents have been written about this issue... search your favourite unix security website (securityfocus, cert, rootprompt, etc) on this. Another tip for unix sys admins which renders such trojan attacks useless is to mount all user writable filesystems (/home, /tmp, /var) with nosuid and nodev mount flags. Check man pages for mount, fstab for details. - Raja Supe PS: I should appologise for emailing you all repeatedly. I have woken up on Monday morning and found that linux in India is flourishing... Linux-india is great! I was just tempted to help:) ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/206 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 14:32:39 2000 Received: from CLEMSON.EDU (mail.clemson.edu [130.127.28.87]) by www.aunet.org (Postfix) with ESMTP id B7EFF4A014 for ; Sun, 29 Oct 2000 14:32:33 -0800 (PST) Received: from crb69 (crb69.ces.clemson.edu [130.127.172.79]) by CLEMSON.EDU (8.11.0/8.11.0) with SMTP id e9TMSob15693 for ; Sun, 29 Oct 2000 17:28:50 -0500 (EST) Message-ID: <008301c04208$319035c0$4fac7f82@ces.clemson.edu> From: "Vilas Kumar Chitrakaran" To: "linux-india-programmers" Subject: problems with templates. Date: Sun, 29 Oct 2000 16:27:32 -0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0080_01C041C5.2332D2F0" 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: 200010/206 This is a multi-part message in MIME format. ------=_NextPart_000_0080_01C041C5.2332D2F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi programmers, I am quite a novice C++ programmer trying to make some sense out of templates. I have atached a program here that compiles well in MSvisual C++ but does not compile in GNU C++ compiler. The program compiles without problems in both the compilers if I dont define the class as a template...ie, I use the class only for defining complex numbers whose real and imaginary parts are type 'double'.....no templates used. There is something wrong I am doing with the overloading of ostream and istream operators. Can anybody help? Vilas Kumar Chitrakaran ------=_NextPart_000_0080_01C041C5.2332D2F0 Content-Type: application/octet-stream; name="Complex.hpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Complex.hpp" //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D // Project : Library for Complex Numbers //------------------------------------------------------------------ // Package :=20 // Authors : Villi=20 // Start date : // Compiler : GNU C++ // Operating System : any //------------------------------------------------------------------ // File : Complex.hpp // Header file for the class Complex. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #include #include #include #include //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D //=20 // class Complex //------------------------------------------------------------------ // The following is a definition of class template for complex numbers. // Class methods include functions to get/set real and imaginary parts=20 // of the complex number. // // The arithmetic and istream/ostream operators are overloaded to=20 // allow direct manipulation on the data of type Complex just as=20 // built in types. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D template class Complex { public: Complex(){ d_realPart=3D0; d_imaginaryPart=3D0;} // The default Constructor Complex(T realPart, T imaginaryPart){d_realPart=3DrealPart; d_imaginaryPar= t=3DimaginaryPart; } // A Constructor that allows the user to initialise // the data type ~Complex() {} // The Destructor =09=09 =09 friend ostream &operator<<(ostream&, const Complex &); // Overloading ostream operator << to directly accept complex type =09 friend istream &operator>>(istream&, Complex &); // Overloading istream operator >> to directly accept complex type =09 =09 Complex operator+(const Complex &); // Overloading binary operator + // enables sum =3D C1 + C2 where C1 and C2 are type Complex Complex operator+=3D(const Complex & secondNumber); // Overloading the +=3D operator for operations with class complex Complex operator-(const Complex &); // Overloading binary operator - // enables difference =3D C1 - C2 where C1 and C2 are type Complex Complex operator-=3D(const Complex & secondNumber); // Overloading the -=3D operator for operations with class complex =09 Complex operator*(const Complex &); // Overloading binary operator * // enables product =3D C1 * C2 where C1 and C2 are type Complex Complex operator*=3D(const Complex & secondNumber); // Overloading the *=3D operator for operations with class complex =20 Complex operator/(const Complex &); // Overloading binary operator / // enables division =3D C1 / C2 where C1 and C2 are type Complex Complex operator/=3D(const Complex & secondNumber); // Overloading the /=3D operator for operations with class complex T getRealPart() const { return d_realPart; } // Obtains the real part of the complex number =09=09 T getImaginaryPart() const { return d_imaginaryPart; } // Obtains the imaginary part of the complex number =09=09 void setRealPart(T real) {d_realPart =3D real; } // Sets the real part of the complex number =09=09 void setImaginaryPart(T imag) {d_imaginaryPart =3D imag; } // Sets the imaginary part of the complex numbe =09=09 =09 =09 =09=09 private: T d_realPart; //real part of the complex number T d_imaginaryPart;=20=20 //imaginary value of the complex number =09 }; //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D // The remaining part of this file gives the definitions for all the // functions declared above. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D friend ostream &operator<<(ostream &output, const Complex &num) // This function overloads the << ostream operator // so that 'cout' accepts the data type 'complex' // enables cout << x <<"+ j" << y { output << num.d_realPart << " + j " << "(" << num.d_imaginaryPart << ")"; return output;=09=09=09=09=09 } =09=09 =09=09 friend istream &operator>>(istream &input, Complex &num) // This function overloads the >> istream operator // so that 'cin' accepts the data type 'complex' // enables cin >> X+ jY { =09 =09 while((cin.peek()=3D=3D'\n')||(cin.peek()=3D=3D'\r')) cin.ignore(1); =09 input.ignore(1);=09=09=09=09=09 //ignore '(' input >> setw(4) >> num.d_realPart;=09=09 //input real part in 3 digits or more input.ignore(1);=09=09=09=09=09 //skip (,) input >> setw(4) >> num.d_imaginaryPart;=09 //input imaginary part in 3 digits or more input.ignore(1);=09=09=09=09=09 //ignore ')'=09 =09=09 return input;=09=09=09=09=09 } =09 template Complex Complex::operator+(const Complex & secondNumber) // Overloading operator + to directly operate on complex numbers // enables sum =3D C1 + C2 where C1 and C2 are type Complex { Complex sum;=09 sum.setRealPart(getRealPart() + secondNumber.getRealPart()); sum.setImaginaryPart(getImaginaryPart() + secondNumber.getImaginaryPart()); return (sum); } template Complex Complex::operator+=3D(const Complex & secondNumber) // Overloading the +=3D operator for operations with class complex { *this=3D*this + secondNumber; return *this; } template Complex Complex::operator-(const Complex & secondNumber) // Overloading operator - to directly operate on complex numbers // enables difference =3D C1 - C2 where C1 and C2 are type Complex { Complex difference;=20 difference.setRealPart(getRealPart() - secondNumber.getRealPart()); difference.setImaginaryPart(getImaginaryPart() - secondNumber.getImaginary= Part()); return (difference); } template Complex Complex::operator-=3D(const Complex & secondNumber) // Overloading the -=3D operator for operations with class complex { *this=3D*this - secondNumber; return *this; } template Complex Complex::operator *(const Complex & secondNumber) // Overloading operator * to directly operate on complex numbers // enables product =3D C1 * C2 where C1 and C2 are type Complex { Complex product; product.setRealPart(getRealPart()*secondNumber.getRealPart() - getImaginar= yPart()*secondNumber.getImaginaryPart()); product.setImaginaryPart(getRealPart()*secondNumber.getImaginaryPart() + g= etImaginaryPart()*secondNumber.getRealPart()); return (product); } template Complex Complex::operator*=3D(const Complex & secondNumber) // Overloading the +=3D operator for operations with class complex { *this=3D*this * secondNumber; return *this; } template Complex Complex::operator /(const Complex & secondNumber) // Overloading operator / to directly operate on complex numbers // enables sum =3D C1 / C2 where C1 and C2 are type Complex { Complex division; division.setRealPart((getRealPart()*secondNumber.getRealPart() + getImagin= aryPart()*secondNumber.getImaginaryPart())/(secondNumber.getRealPart()*seco= ndNumber.getRealPart() + secondNumber.getImaginaryPart()*secondNumber.getIm= aginaryPart())); division.setImaginaryPart((getImaginaryPart()*secondNumber.getRealPart() -= getRealPart()*secondNumber.getImaginaryPart())/(secondNumber.getRealPart()= *secondNumber.getRealPart() + secondNumber.getImaginaryPart()*secondNumber.= getImaginaryPart())); return (division); } template Complex Complex::operator/=3D(const Complex & secondNumber) // Overloading the +=3D operator for operations with class complex { *this=3D*this / secondNumber; return *this; } ------=_NextPart_000_0080_01C041C5.2332D2F0 Content-Type: application/octet-stream; name="Complex.t.cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Complex.t.cpp" //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D // Project : Library for Complex Numbers //------------------------------------------------------------------ // Package :=20 // Authors : Villi=20 // Start date : // Compiler : GNU C++ // Operating System : any //------------------------------------------------------------------ // File : Complex.t.cpp // This file tests the Class 'Complex'. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #include #include"Complex.hpp" int main() { Complex firstComplexNumber; Complex secondComplexNumber; Complex thirdComplexNumber; Complex fourthComplexNumber; =09 cout<< " Give me the first complex number as (x,y)" <> firstComplexNumber; cout <> secondComplexNumber; cout <> thirdComplexNumber; cout <> fourthComplexNumber; cout <; Sun, 29 Oct 2000 14:45:05 -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 EAA24321 for ; Mon, 30 Oct 2000 04:11:46 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id EAA22443 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 04:07:59 +0530 Date: Mon, 30 Oct 2000 04:07:58 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: Newbie - shell program problem Message-ID: <20001030040758.B21866@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001030070746.A1446658@ecr.mu.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <20001030070746.A1446658@ecr.mu.oz.au>; from rsubr@ecr.mu.oz.au on Mon, Oct 30, 2000 at 07:07:46AM +1100 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: 200010/207 I don't want to be nitpicking, but here goes... Anyway, the original query has been answered, so it is time for us flame mongers to take over... Raja Subramanian forced the electrons to say: > On Sun, 29 Oct 2000, YL Narayana wrote: > > MATCHES = `ls -d $1 2>/dev/null | wc -l` > In your case, you set the environment variable MATCHES to an empty string and > tried to run the output of `ls -d ......` as a program. Not what you > expected. Not exactly - he tries to run the program MATCHES, which might or might not be in his path, with $1 as '=' and $2 as the number of files in the directory passed as an argument to his shell function. > It seems that shell programmers know little about coding style... > What you are probably thinking now is correct, "the shell is stupid!". True, > the shell merely does string manipulation and is quirky and you will have to > live with it. Unfortunately so. We can have a long flame war about this, but LIH is better off without it. I would suggest bash2(1) for background reading. Binand -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/208 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 14:52:14 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 A30894A021 for ; Sun, 29 Oct 2000 14:52:08 -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 e9TMmN523129 for ; Mon, 30 Oct 2000 09:48:23 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9TMmN21426972 for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 09:48:23 +1100 (EDT) Date: Mon, 30 Oct 2000 09:48:23 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: Newbie - shell program problem Message-ID: <20001030094822.B1509934@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001030070746.A1446658@ecr.mu.oz.au> <20001030040758.B21866@bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20001030040758.B21866@bombay.retortsoft.com>; from binand@bombay.retortsoft.com on Mon, Oct 30, 2000 at 04:07:58AM +0530 X-Archive-Number: 200010/208 Binand Raj S. wrote (binand@bombay.retortsoft.com): > > > It seems that shell programmers know little about coding style... > > What you are probably thinking now is correct, "the shell is stupid!". True, > > the shell merely does string manipulation and is quirky and you will have to > > live with it. Unfortunately so. > > We can have a long flame war about this, but LIH is better off without it. > I would suggest bash2(1) for background reading. > My appologies... that was asking for trouble :) - Raja Supe ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/209 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 20:56:45 2000 Received: from web4504.mail.yahoo.com (web4504.mail.yahoo.com [216.115.105.65]) by www.aunet.org (Postfix) with SMTP id E47A04A0AB for ; Sun, 29 Oct 2000 20:56:43 -0800 (PST) Message-ID: <20001030045259.2221.qmail@web4504.mail.yahoo.com> Received: from [202.9.174.7] by web4504.mail.yahoo.com; Sun, 29 Oct 2000 20:52:59 PST Date: Sun, 29 Oct 2000 20:52:59 -0800 (PST) From: Ramesh Subject: popen buffersize limit - doubt To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/209 hi all, what is the buffer limit for a popen call. suppose u want to pipe the ouptput of a command means and the output of the command is 350KB means does this will work.. then what is the limit of the buffer size of the popen function. does it depends on any the system runtime availability of resources.... can anybody help me... ramesh __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/210 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 21:54:50 2000 Received: from netacrossb65e.netacross.stpn.soft.net (unknown [12.10.198.124]) by www.aunet.org (Postfix) with ESMTP id B74414A432 for ; Sun, 29 Oct 2000 21:46:02 -0800 (PST) Received: from AGOEL ([172.16.0.48]) by netacrossb65e.netacross.stpn.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id VRA3QAGF; Mon, 30 Oct 2000 11:11:50 +0530 Message-ID: <017701c04235$0b3b27e0$300010ac@agoel> From: "Amit Goel" To: References: <003e01c041db$bcf092e0$c708c5cb@noname> Subject: Re: Introductory AI books Date: Mon, 30 Oct 2000 11:18:12 +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.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Archive-Number: 200010/210 AI by Rich et. all. from McGrawHill / Tata McGrawHill AI by N.J. Nisson from Narosa Pub. AI & ES by patterson from PHI amit From: Arsalan Zaidi > Could someone suggest a couple of good intro books to AI? > > --Arsalan. ------------=_972888726-16830-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Description: 200010/211 Mime-Version: 1.0 X-Mailer: MIME-tools 4.103 (Entity 4.115) From linux-india-programmers-owner@lists.linux-india.org Sun Oct 29 22:52:04 2000 Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by www.aunet.org (Postfix) with ESMTP id 4BBE54A0BD for ; Sun, 29 Oct 2000 22:52:02 -0800 (PST) Received: from mbb5.ericsson.se (mbb5.ericsson.se [136.225.151.210]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id e9U6mGt09129 for ; Mon, 30 Oct 2000 07:48:16 +0100 (MET) Received: from CONVERSION-DAEMON by mbb1.ericsson.se (PMDF V5.2-29 #39352) id <0G3800M01DKF5L@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 07:48:16 +0100 (MET) Received: from eno.ericsson.se (bombay.sg.ao.ericsson.se [150.236.110.78]) by mbb1.ericsson.se (PMDF V5.2-29 #39352) with ESMTP id <0G38007PFDK6FV@mbb1.ericsson.se> for linux-india-programmers@lists.linux-india.org; Mon, 30 Oct 2000 07:48:15 +0100 (MET) Date: Mon, 30 Oct 2000 14:50:48 +0800 From: Aravind Sadagopan Subject: Re: XWindows Programming Using Tcl/Tk To: linux-india-programmers@lists.linux-india.org Message-id: <39FD1A46.E48955E4@eno.ericsson.se> MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: X-Archive-Number: 200010/211 Hi Srinivasan The samples that come with the binary download of TCL/TK are one of the best and a great way to get started Cheers Aravind S srinivasan ranganathan wrote: > Hi all > > Can anyone point me to some FREE resources on the Net that i can use to > learn tcl/tk programming for XWindows? I am a student, so i have only > limited access to the Net...so a PDF or a ZIP file download will be a help. > > Thanx in advance. > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/LIP -- Living on Earth is expensive, but it does include a free trip round the sun ------------=_972888726-16830-5-- ------------=_972888726-16830-4-- From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 17:15:15 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 ED2EF4A01B for ; Mon, 30 Oct 2000 17:15:07 -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 e9V1BH316038 for ; Tue, 31 Oct 2000 12:11:17 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9V1BHK1518499 for linux-india-programmers@lists.linux-india.org; Tue, 31 Oct 2000 12:11:17 +1100 (EDT) Date: Tue, 31 Oct 2000 12:11:17 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: popen buffersize limit - doubt Message-ID: <20001031121116.A1550314@ecr.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20001030045259.2221.qmail@web4504.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20001030045259.2221.qmail@web4504.mail.yahoo.com>; from ramesh_tnj@yahoo.com on Sun, Oct 29, 2000 at 08:52:59PM -0800 X-Archive-Number: 200010/218 Ramesh wrote (ramesh_tnj@yahoo.com): > what is the buffer limit for a popen call. suppose u > want to pipe the ouptput of a command means and the > output of the command is 350KB means does this will > work.. then what is the limit of the buffer size of > the popen function. does it depends on any the system > runtime availability of resources.... > I think that you have a misconcepetion here.... popen creates a pipe, and the output of the child process is buffered here. The buffer associated with a pipe is usually very small (size of a VM page in most implementations; 4kb x86, 8kb alpha). When the child has filled up the buffer with output it is suspended. Writing to a full pipe suspends the writer and reading from an empty pipe suspends the reader. There is no danger of overflowing the buffer, but if you want the child process to run (no get suspended/blocked) you will have to ensure that the pipe is never full (keep reading from the pipe). This is important if the child is vaguely time critical. Refer to the code posted by a previous poster which illustrates exactly how to handle pipes/popen. For an exhaustive discussion of the theory and implementation of pipes refer to "Design and Implementation of the 4.4 BSD Operating system" Quarterman, or APUE by Rich Stevens (which seems to need no futher intro to LIP :), or most BSD OS text books. - Raja From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 20:21:14 2000 Received: from fsnt.future.futsoft.com (unknown [203.197.140.35]) by www.aunet.org (Postfix) with ESMTP id 1797349F48 for ; Mon, 30 Oct 2000 20:21:11 -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, 31 Oct 2000 09:50:05 +0530 Received: from senthildr ([172.16.1.175]) by kailash.future.futsoft.com (8.7.1/8.7.1) with SMTP id JAA19351 for ; Tue, 31 Oct 2000 09:33:59 +0530 Reply-To: From: "senthil devan" To: "'linux-india'" Subject: IP forwarding in linux Date: Tue, 31 Oct 2000 09:44:22 +0530 Message-Id: <000a01c042f1$0f0c74c0$af0110ac@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: 200010/219 Hi, Can any one tell me as to how IP forwarding in Linux is done. I was told that Linux has drivers for this. Thanks Dev From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:04:25 2000 Received: from bgl.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id DA9294A0B0 for ; Mon, 30 Oct 2000 20:52:14 -0800 (PST) Received: from linux.local (PPP-174-110.bng.vsnl.net.in [203.197.174.110]) by bgl.vsnl.net.in (Postfix) with ESMTP id DD8B563D5 for ; Tue, 31 Oct 2000 10:11:48 +0530 (IST) Received: from keerthi (unknown [192.168.0.12]) by linux.local (Postfix) with SMTP id 1DB08B83 for ; Tue, 31 Oct 2000 10:16:21 +0530 (IST) Message-ID: <001601c042f5$3606a600$0c00a8c0@bng.indvalley.com> From: "demon" To: References: <20001030175906.6F0AF4A106@www.aunet.org> Subject: sound configuration Date: Tue, 31 Oct 2000 10:14:08 +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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200010/220 Hello all, I have a Calderra, but unlike my earlier copy of Redhat, this does not have any command like sndconfig. And is lisa the only option i have for administration? Thanks, Keerthi From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:25:11 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.147]) by www.aunet.org (Postfix) with ESMTP id DFCA04A010 for ; Mon, 30 Oct 2000 21:25:03 -0800 (PST) Received: (from amarg@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id KAA17717 for linux-india-programmers@lists.linux-india.org; Tue, 31 Oct 2000 10:22:03 +0530 Date: Tue, 31 Oct 2000 10:22:03 +0530 From: Amarendra GODBOLE To: linux-india-programmers@lists.linux-india.org Subject: Re: IP forwarding in linux Message-ID: <20001031102203.A17579@alice.bombay.retortsoft.com> References: <000a01c042f1$0f0c74c0$af0110ac@future.futsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <000a01c042f1$0f0c74c0$af0110ac@future.futsoft.com> X-Quote: "If you don't try to succeed, nobody will try to stop you." X-Friends: Shailesh, Shantanu, Sameer, Prachi, Dinesh. X-Home: amar.gnu-linux.net X-Organisation: Retort Software Pvt. Ltd., Powai, Mumbai. INDIA. X-Archive-Number: 200010/221 On Tue, Oct 31, 2000, the greycells of senthil devan expressed: > Hi, > > > Can any one tell me as to how IP forwarding in Linux is done. I was told > that Linux has drivers for this. > > Thanks > > Dev ##################################################################### Hi, echo 1 >/proc/sys/net/ipv4/ip_forward This enables ip forwarding. Regards, Amar :-) -- Amarendra GODBOLE http://www.crosswinds.net/~amargod The Kick Ass phenomenon. 100% INDIAN. From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:40:17 2000 Received: from web4504.mail.yahoo.com (web4504.mail.yahoo.com [216.115.105.65]) by www.aunet.org (Postfix) with SMTP id 4C7BD4A053 for ; Mon, 30 Oct 2000 21:40:16 -0800 (PST) Message-ID: <20001031053627.10185.qmail@web4504.mail.yahoo.com> Received: from [202.9.174.7] by web4504.mail.yahoo.com; Mon, 30 Oct 2000 21:36:27 PST Date: Mon, 30 Oct 2000 21:36:27 -0800 (PST) From: Ramesh Subject: what will happen on Jan1st 2038 To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/222 hi all... i have a doubt. what will happen on 2038 Jan first when the Epoch time value increases bya sec.. it will get overflow since the size cannot hold that value... (2 pow 32) -1. what will happen to the unix flavoured systems ramesh __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:41:28 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id B05444A098 for ; Mon, 30 Oct 2000 21:41:19 -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 LAA04259 for ; Tue, 31 Oct 2000 11:16:41 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA696E for ; Tue, 31 Oct 2000 10:58:35 +0530 Message-ID: <39FE5B8D.945AD829@wipro.com> Date: Tue, 31 Oct 2000 11:11:33 +0530 From: "Vibhu Rishi" X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Linux India Subject: bounds checker ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/223 Hi , Is there some tool available for finding memory leaks ? ( e.g. Bounds checker is there for Windows). regards Vibhu.. -- .......................................................................... Who, being loved, is poor? -Oscar Wilde, writer (1854-1900) -------------------------------------------------------------------------- Vibhu Rishi e@ vibhu.rishi@wipro.com Sr. Systems Engineer ring@ 8520408/416/419/420/424/425 WIPRO ext.: 2115 Electronic City - Bangalore -------------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:48:10 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id AC6A44A0D7 for ; Mon, 30 Oct 2000 21:48:02 -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 LAA05737 for ; Tue, 31 Oct 2000 11:23:22 GMT Received: from wipro.com ([192.168.174.72]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA417 for ; Tue, 31 Oct 2000 11:05:17 +0530 Message-ID: <39FE5AEA.74286C64@wipro.com> Date: Tue, 31 Oct 2000 11:08:51 +0530 From: "Rajani K" Reply-To: rajani.jay@wipro.com Organization: Enterprise Solutions X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux Subject: Re; Bounds Checking Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/224 Hi vibhu, U can try Purify which is one of the tools largely used on unix platforms!!! Cheers Rajani -- -------------------------------------------------- "The only reward of virtue is virtue; the only way to have a friend is to be one." -------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:49:20 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 9B4434A13C for ; Mon, 30 Oct 2000 21:49:18 -0800 (PST) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id e9V5jQY03003 for ; Tue, 31 Oct 2000 05:45:26 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8019.fe.bosch.de(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma002844; Tue, 31 Oct 00 05:44:32 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id ; Tue, 31 Oct 2000 06:44:19 +0100 Message-ID: From: "Harpreet Singh (RBIN/DCA-NMP)" To: linux-india-programmers@lists.linux-india.org Subject: RE: bounds checker ? Date: Tue, 31 Oct 2000 06:44:30 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain X-Archive-Number: 200010/225 Yes there are. You can use Insure++ It can also be used for code coverage etc etc ..... > -----Original Message----- > From: Vibhu Rishi [SMTP:vibhu.rishi@wipro.com] > Sent: Tuesday, October 31, 2000 11:12 AM > To: Linux India > Subject: [LIP] bounds checker ? > > Hi , > Is there some tool available for finding memory leaks ? ( e.g. Bounds > checker is there for Windows). > > regards > Vibhu.. > > -- > .......................................................................... > > Who, being loved, is poor? -Oscar Wilde, writer (1854-1900) > -------------------------------------------------------------------------- > > Vibhu Rishi e@ vibhu.rishi@wipro.com > Sr. Systems Engineer ring@ 8520408/416/419/420/424/425 > WIPRO ext.: 2115 > Electronic City - Bangalore > -------------------------------------------------------------------------- > > > > > --------------------------------------------- > 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 Oct 30 21:51:49 2000 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by www.aunet.org (Postfix) with ESMTP id E70534A132 for ; Mon, 30 Oct 2000 21:51:42 -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 LAA26285 for ; Tue, 31 Oct 2000 11:26:14 +0530 Received: from localhost (narain.cr@localhost) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with ESMTP id LAA20737 for ; Tue, 31 Oct 2000 11:27:53 +0530 Date: Tue, 31 Oct 2000 11:27:53 +0530 (IST) From: Narain CR X-Sender: narain.cr@blrmail.in.tatainfotech.com To: Linux India Subject: Re: bounds checker ? In-Reply-To: <39FE5B8D.945AD829@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/226 Electric Fence is what U are looking for my friend... What's more U can find it with some standard distributions (RH at least), no going around for downloads!!! Cheers, Narain. On Tue, 31 Oct 2000, Vibhu Rishi wrote: Hi , Is there some tool available for finding memory leaks ? ( e.g. Bounds checker is there for Windows). From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:53:10 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.147]) by www.aunet.org (Postfix) with ESMTP id BF1FB4A166 for ; Mon, 30 Oct 2000 21:53:04 -0800 (PST) Received: (from amarg@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id LAA18841 for linux-india-programmers@lists.linux-india.org; Tue, 31 Oct 2000 11:22:04 +0530 Date: Tue, 31 Oct 2000 11:22:04 +0530 From: Amarendra GODBOLE To: linux-india-programmers@lists.linux-india.org Subject: Re: what will happen on Jan1st 2038 Message-ID: <20001031112204.A18802@alice.bombay.retortsoft.com> References: <20001031053627.10185.qmail@web4504.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <20001031053627.10185.qmail@web4504.mail.yahoo.com> X-Quote: "If you don't try to succeed, nobody will try to stop you." X-Friends: Shailesh, Shantanu, Sameer, Prachi, Dinesh. X-Home: amar.gnu-linux.net X-Organisation: Retort Software Pvt. Ltd., Powai, Mumbai. INDIA. X-Archive-Number: 200010/227 On Mon, Oct 30, 2000 at 09:36:27PM -0800, the greycells of Ramesh expressed: > hi all... > > i have a doubt. what will happen on 2038 Jan first > when the Epoch time value increases bya sec.. it will > get overflow since the size cannot hold that value... > (2 pow 32) -1. > > what will happen to the unix flavoured systems > > ramesh ############################################################################ Do not worry my friend. 2038 if far away. Also, by that time the size of the reg. will be doubled (say) ;-) -- Amarendra GODBOLE http://www.crosswinds.net/~amargod CBI report on Match Fixing. An excellent example of our NON-TRANSPARENT system. From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:57:06 2000 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.147]) by www.aunet.org (Postfix) with ESMTP id 7904E4A0AD for ; Mon, 30 Oct 2000 21:57:01 -0800 (PST) Received: (from amarg@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id LAA18859 for linux-india-programmers@lists.linux-india.org; Tue, 31 Oct 2000 11:23:11 +0530 Date: Tue, 31 Oct 2000 11:23:11 +0530 From: Amarendra GODBOLE To: linux-india-programmers@lists.linux-india.org Subject: Re: bounds checker ? Message-ID: <20001031112311.B18802@alice.bombay.retortsoft.com> References: <39FE5B8D.945AD829@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <39FE5B8D.945AD829@wipro.com> X-Quote: "If you don't try to succeed, nobody will try to stop you." X-Friends: Shailesh, Shantanu, Sameer, Prachi, Dinesh. X-Home: amar.gnu-linux.net X-Organisation: Retort Software Pvt. Ltd., Powai, Mumbai. INDIA. X-Archive-Number: 200010/228 On Tue, Oct 31, 2000 at 11:11:33AM +0530, the greycells of Vibhu Rishi expressed: > Hi , > Is there some tool available for finding memory leaks ? ( e.g. Bounds > checker is there for Windows). > > regards > Vibhu.. > AFAIK, no. Correct me if I am wrong. -- Amarendra GODBOLE http://www.crosswinds.net/~amargod "The elevator to success is out of order. You'll have to use the stairs...one step at a time." - Joe Girard From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 21:57:21 2000 Received: from natsemi-bh.nsc.com (natsemi-bh.nsc.com [204.163.202.66]) by www.aunet.org (Postfix) with ESMTP id DD6A84A172 for ; Mon, 30 Oct 2000 21:57:18 -0800 (PST) Received: (from uucp@localhost) by natsemi-bh.nsc.com (8.8.8/8.6.11) id VAA05975 for ; Mon, 30 Oct 2000 21:53:28 -0800 (PST) From: sojan@malkauns.nsc.com Received: from nsc.nsc.com(139.187.81.1) by natsemi-bh.nsc.com via smap (4.1) id xma005875; Mon, 30 Oct 00 21:53:11 -0800 Received: from malkauns.malkauns.nsc.com (malkauns.nsc.com [139.187.83.131]) by nsc.nsc.com (8.9.3+Sun/8.9.3) with SMTP id VAA01747 for ; Mon, 30 Oct 2000 21:53:05 -0800 (PST) Received: from chakravakam by malkauns.malkauns.nsc.com (SMI-8.6/SMI-SVR4) id LAA00115; Tue, 31 Oct 2000 11:31:45 GMT Date: Tue, 31 Oct 2000 11:32:08 +0500 (GMT-5) X-Sender: sojan@idc-sw1.nsc.com To: linux-india-programmers@lists.linux-india.org Subject: Re: what will happen on Jan1st 2038 In-Reply-To: <20001031053627.10185.qmail@web4504.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/229 2038 is a long way off and hopefully by then, all of us will be zipping away on 64bit (or more) systems...and of course linux will be on them, guess we'll be safe for a long time. Soj. On Mon, 30 Oct 2000, Ramesh wrote: > hi all... > > i have a doubt. what will happen on 2038 Jan first > when the Epoch time value increases bya sec.. it will > get overflow since the size cannot hold that value... > (2 pow 32) -1. > > what will happen to the unix flavoured systems > > ramesh > > __________________________________________________ > Do You Yahoo!? > Yahoo! Messenger - Talk while you surf! It's FREE. > http://im.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 Mon Oct 30 21:58:07 2000 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by www.aunet.org (Postfix) with ESMTP id 3855F49F47 for ; Mon, 30 Oct 2000 21:57:57 -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 LAA26434 for ; Tue, 31 Oct 2000 11:32:41 +0530 Received: from localhost (narain.cr@localhost) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with ESMTP id LAA21691 for ; Tue, 31 Oct 2000 11:34:21 +0530 Date: Tue, 31 Oct 2000 11:34:21 +0530 (IST) From: Narain CR X-Sender: narain.cr@blrmail.in.tatainfotech.com To: linux-india-programmers@lists.linux-india.org Subject: Re: what will happen on Jan1st 2038 In-Reply-To: <20001031053627.10185.qmail@web4504.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/230 Since a lot of time is still left for this to happen, the most likely event, friend is that we may have a 64bit counter by then (or who knows even a 128 or 256 bit one)... So we can start calculating (2 pow 64) - 1 etc... Cheers, Narain. On Mon, 30 Oct 2000, Ramesh wrote: hi all... i have a doubt. what will happen on 2038 Jan first when the Epoch time value increases bya sec.. it will get overflow since the size cannot hold that value... (2 pow 32) -1. what will happen to the unix flavoured systems From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 22:02:25 2000 Received: from arianne.in.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id 7DDB74A130 for ; Mon, 30 Oct 2000 22:02:14 -0800 (PST) Received: from kedar.in.ishoni.com (IDENT:kedar@kedar [192.168.1.75]) by arianne.in.ishoni.com (8.9.3/8.9.3) with ESMTP id LAA10363 for ; Tue, 31 Oct 2000 11:32:46 +0530 Date: Tue, 31 Oct 2000 11:36:19 +0530 (IST) From: Kedar Patankar X-Sender: kedar@kedar.in.ishoni.com To: Linux India Subject: Re: bounds checker ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/231 > Electric Fence is what U are looking for my friend... What's more U can > find it with some standard distributions (RH at least), no going around AFAIK, electric fence won't tell you *where* there is a memory leak. It will definitely show you where you overrun buffers (by making the code seg fault at that place). However you can use electric fence to do memory leak *detection*. Because electric fence allocates 1 read-only page before and after each malloc'ed chunk, any tiny memory leaks would be very easy to find using plain old "top". THe problem of finding where exactly are you forgetting to free the leaked buffer is tough. And I am not aware of anything other than thorough code walk through to fix this. Kedar. ---------------------------------------------------------------- Kedar N. Patankar. Senior Software Engineer. ishoni Networks ...Broadband for everyone http://www.ishoni.com email - kedar@ishoni.com Phone: +91-80-6676108/09 (Work) ---------------------------------------------------------------- Be regular and orderly in your life, so that you may be violent and original in your work. From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 22:11:43 2000 Received: from web1102.mail.yahoo.com (web1102.mail.yahoo.com [128.11.23.122]) by www.aunet.org (Postfix) with SMTP id D63924A17D for ; Mon, 30 Oct 2000 22:11:41 -0800 (PST) Received: (qmail 1629 invoked by uid 60001); 31 Oct 2000 06:07:51 -0000 Message-ID: <20001031060751.1628.qmail@web1102.mail.yahoo.com> Received: from [216.6.88.34] by web1102.mail.yahoo.com; Mon, 30 Oct 2000 22:07:51 PST Date: Mon, 30 Oct 2000 22:07:51 -0800 (PST) From: Rudraashish Subject: Re: bounds checker ? To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200010/232 There is one tool "electic fence" which provides this feature. this is the short note from it's doc " Electric Fence is a different kind of malloc() debugger. It uses the virtual memory hardware of your system to detect when software overruns the boundaries of a malloc() buffer. It will also detect any accesses of memory that has been released by free(). Because it uses the VM hardware for detection, Electric Fence stops your program on the first instruction that causes a bounds violation. It's then trivial to use a debugger to display the offending statement. " I haven't used it so can't say anything further Regards, Rudra __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Oct 30 22:25:54 2000 Received: from inet-smtp3.oracle.com (inet-smtp3.oracle.com [205.227.43.23]) by www.aunet.org (Postfix) with ESMTP id 487344A190 for ; Mon, 30 Oct 2000 22:25:52 -0800 (PST) Received: from gmgw02.oraclecorp.com (gmgw02.us.oracle.com [130.35.60.93]) by inet-smtp3.oracle.com (8.9.3/8.9.3) with ESMTP id WAA05919 for ; Mon, 30 Oct 2000 22:22:03 -0800 (PST) Received: from oracle.com ([152.69.193.218]) by gmgw02.oraclecorp.com (8.8.8+Sun/8.8.8) with ESMTP id WAA21964 for ; Mon, 30 Oct 2000 22:22:01 -0800 (PST) Message-ID: <39FE63ED.9E970775@oracle.com> Date: Tue, 31 Oct 2000 11:47:17 +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: what will happen on Jan1st 2038 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/233 ...and man asked GOD , " what will we do when the epoch time value increases by one second on Jan 1 584942419355 AD . it will get overflow since the size cannot hold that value... ( 2 pow 64 ) - 1. " ? What will happen to the Unix flavoured systems ? and God thought ... then he frowned ... and then he said.. Oh my Gosh... I better save all my data fast and reincarnate old chap Linus again. :-) Saju -- the unbeliever ( really ?? ) Narain CR wrote: > Since a lot of time is still left for this to happen, the most likely > event, friend is that we may have a 64bit counter by then (or who knows > even a 128 or 256 bit one)... So we can start calculating (2 pow 64) - 1 > etc... > > Cheers, > Narain. > > On Mon, 30 Oct 2000, Ramesh wrote: > > hi all... > > i have a doubt. what will happen on 2038 Jan first > when the Epoch time value increases bya sec.. it will > get overflow since the size cannot hold that value... > (2 pow 32) -1. > > what will happen to the unix flavoured systems > > --------------------------------------------- > 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 Mon Oct 30 23:55:48 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 E354C4A01A for ; Mon, 30 Oct 2000 23:55:41 -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 e9V7pm324035 for ; Tue, 31 Oct 2000 18:51:48 +1100 (EST) Received: (from rsubr@localhost) by gromit.ecr.mu.oz.au (8.10.0/8.8.5) id e9V7pnG1505956 for linux-india-programmers@lists.linux-india.org; Tue, 31 Oct 2000 18:51:49 +1100 (EDT) Date: Tue, 31 Oct 2000 18:51:49 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: compiling Message-ID: <20001031185148.A1558455@ecr.mu.oz.au> Mail-Followup-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-Mailer: Mutt 1.0.1i X-Archive-Number: 200010/234 Ð ë ê þ ã K wrote (deepak2000@softhome.net): > i tried compiling a c program as > cc myprog.c This is slightly unrelated, but still worth knowing. _Never_ compile you program without including any warning flags. "cc foo.c" or "gcc foo.c" will silently compile nearly anything you throw at it. Here is a simple replacement... this script is named "gnuc" and you use it by doing "gnuc foo.c" instead of "gcc foo.c". Note that this scripts puts gcc in ansi compilant mode (and paranoid warning level:) and is very restrictive. It also enables debugging properly (-g -00; try stepping through optimized code and you will realise) (this also relates to some previous posts). This script is a real overkill, and may even refuse to compile some legitimate C progs (it is primarily used to compile 1st yr under grad projects). Do not compile production code with this, only debugging code. Use wisely! - Raja PS: Appologies for a possible double post... I think I stuffed up my first post (bugger). <<<<<<>>>>>> #!/bin/sh # File: gnuc # This runs gcc with all warnings enabled, except for the following # exceptions: # # -Wredundant-decls causes too many complaints in system header files # -Wconversion really only intended to help people using `unprotoize' # -Waggregate-return not useful, IMHO # -Wenum-clash doesn't work with gcc 2.7.x # # fjh, Tue Oct 29 1996 OPTS="-ansi -pedantic -D_LONGLONG -Wall -Wwrite-strings -Wid-clash-31 -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Woverloaded-virtual -Winline -O -felide-constructors -fnonnull-objects " exec gcc $OPTS "$@" <<<<<<>>>>>> From linux-india-programmers-owner@lists.linux-india.org Tue Oct 31 06:28:13 2000 Received: from CLEMSON.EDU (mail.clemson.edu [130.127.28.87]) by www.aunet.org (Postfix) with ESMTP id A75194A14A for ; Tue, 31 Oct 2000 06:20:50 -0800 (PST) Received: from crb69 (crb69.ces.clemson.edu [130.127.172.79]) by CLEMSON.EDU (8.11.0/8.11.0) with SMTP id e9VEGlb12528; Tue, 31 Oct 2000 09:16:48 -0500 (EST) Message-ID: <000f01c0435e$2b177bc0$4fac7f82@ces.clemson.edu> From: "Vilas Kumar Chitrakaran" To: "Shridhar Daithankar" , "linux-india-programmers" References: <008301c04208$319035c0$4fac7f82@ces.clemson.edu> <39FD27F4.20F21843@pspl.co.in> Subject: Re: problems with templates. Date: Tue, 31 Oct 2000 09:15:29 -0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000C_01C0431B.1CB277D0" 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: 200010/235 This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C0431B.1CB277D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit The error messages are in the attached file... > What's the exact error message? > > Bye > Shridhar > > Vilas Kumar Chitrakaran wrote: > > > Hi programmers, > > > > I am quite a novice C++ programmer trying to make some sense out of > > templates. I have atached a program here that compiles well in MSvisual C++ > > but does not compile in GNU C++ compiler. > > > ------=_NextPart_000_000C_01C0431B.1CB277D0 Content-Type: application/octet-stream; name="errors" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="errors" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D compiler output =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In file included from Complex.t.cpp:16: Complex.hpp:51: warning: friend declaration `class ostream & operator <<(os= tream &, const Complex &)' Complex.hpp:51: warning: declares a non-template function Complex.hpp:51: warning: (if this is not what you intended, make sure Complex.hpp:51: warning: the function template has already been declared, Complex.hpp:51: warning: