From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 00:14:53 2001 Received: from venus.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id 826B74A120 for ; Thu, 1 Feb 2001 00:13:31 -0800 (PST) Received: from ramakrishna.roc.com (rkp.roc.com [172.16.5.88]) by venus.roc.com (8.9.3/8.9.3) with SMTP id BAA05670; Thu, 1 Feb 2001 01:47:05 +0530 From: Ch Rama Krishna Prasad Organization: Intoto Inc To: linux-india-programmers@lists.linux-india.org, "V Kugan" , Subject: Re: device driver programming Date: Thu, 1 Feb 2001 13:29:42 +0530 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01020113321300.01742@ramakrishna.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/1 X-Sequence-Number: 1456 Hi, You will find the some example source code in your linux machine. By seeing the code only you will learn more than reading. The example source code is in /usr/src/linux/drivers/block or /usr/src/linux/drivers/char. The above two types of drivers one is block device drivers, another one is character device drivers. It is help full to write new device drivers. From Ch.R.K.Prasad On Thu, 01 Feb 2001, V Kugan wrote: > Hi every one > I am also intersted in device driver programming. > In this regard I have done some reading, Now I am very eager to have a look > at some real code. > Can any one please point me to a simple serial driver . > Thnk u very much > Kugan > > > --------------------------------------------- > 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 Feb 1 00:37:03 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.149]) by www.aunet.org (Postfix) with ESMTP id 7AFC44A1AF for ; Thu, 1 Feb 2001 00:36:49 -0800 (PST) Received: from jediland.home.retortsoft.com (jediland.home.retortsoft.com [192.168.111.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id OAA08688 for ; Thu, 1 Feb 2001 14:10:16 +0530 Received: (from binand@localhost) by jediland.home.retortsoft.com (8.9.3/8.9.3) id NAA24481 for linux-india-programmers@lists.linux-india.org; Thu, 1 Feb 2001 13:54:45 +0530 Date: Thu, 1 Feb 2001 13:54:45 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: C in linux - bios calls, graphics Message-ID: <20010201135445.A23440@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <01013122463800.01174@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <01013122463800.01174@localhost.localdomain>; from holysmoke@satyam.net.in on Wed, Jan 31, 2001 at 10:36:07PM +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: 200102/2 X-Sequence-Number: 1457 Sukrit K Mehra forced the electrons to say: > i know this has been going on recently but tell me .. tools like > setup in linux, what languages are they developed in? The tool setup that comes with RedHat Linux, IIRC, is written in C. > i want the basic functionality of graphics.h in dos. curses is clumsy, imho. > And i don't fully understand if vga.h is supposed to do the trick. if yes, then > please guide me to some tutorial/how-to/faq/etc on the web. I have the sgva > documentation but it is cryptic. Absolutely no idea about graphics.h. But your opinion that curses is clumsy might not find many takers. There are a host of extremely popular console tools that link to curses - mutt, pine, slrn, tin, lynx, vim, emacs... just try convincing the users of these programs that curses sucks. :-) > Also, int86() in dos... these are bios calls i guess.. i did some readying up > and i could find this. Please help with this too. > AFAICT, Linux does not support bios calls from user level programs. There are system calls and ioctl's that implement bios calls. If you tell use what you want to achieve, then maybe we can help you. Binand From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 00:57:14 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 84DAC4A374 for ; Thu, 1 Feb 2001 00:57:10 -0800 (PST) Received: from Basel (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with SMTP id f118wPB26409 for ; Thu, 1 Feb 2001 14:28:25 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Shridhar Daithankar To: linux-india-programmers@lists.linux-india.org Subject: Re: C in linux - bios calls, graphics Date: Thu, 1 Feb 2001 14:28:37 +0530 X-Mailer: KMail [version 1.2] References: <01013122463800.01174@localhost.localdomain> <20010201135445.A23440@bombay.retortsoft.com> In-Reply-To: <20010201135445.A23440@bombay.retortsoft.com> MIME-Version: 1.0 Message-Id: <01020114283701.00738@Basel> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/3 X-Sequence-Number: 1458 On Thursday 01 February 2001 13:54, you wrote: > The tool setup that comes with RedHat Linux, IIRC, is written in C. Oh I thought it was just a wrapper like linuxconf. Anyway that's a good tool. > > > i want the basic functionality of graphics.h in dos. curses is clumsy, > > imho. And i don't fully understand if vga.h is supposed to do the trick. > > if yes, then please guide me to some tutorial/how-to/faq/etc on the web. > > I have the sgva documentation but it is cryptic. > Curses.h is no answer to graphics.h. You need to use svgalib or SDL if you find svgalib insufficient. I have used graphics.h and a start from 'info svgalib' gives you enough to use. Then you can search for online documentation. Never used SDL though but have heard often about it. > AFAICT, Linux does not support bios calls from user level programs. > There are system calls and ioctl's that implement bios calls. Same here. Write a device driver doing the same thing and read and write to that file. It's a cleaner interface. If you are looking to manipulate graphics at low level, you may not need it after you have used svgalib etc. Every other standard interrupt call has to have a device associated with it. So once again, you are at read and write... Bye Shridhar From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 01:20:52 2001 Received: from dellbian (unknown [202.9.144.246]) by www.aunet.org (Postfix) with ESMTP id 9CF034A26C for ; Thu, 1 Feb 2001 01:20:46 -0800 (PST) Received: from dellbian ([127.0.0.1] helo=localhost ident=pasokan) by dellbian with esmtp (Exim 3.12 #1 (Debian)) id 14OFvE-0000N0-00 for ; Thu, 01 Feb 2001 14:50:56 +0530 Date: Thu, 1 Feb 2001 14:50:12 +0530 (IST) From: Pichai Asokan X-Sender: pasokan@dellbian To: linux-india-programmers@lists.linux-india.org Subject: Re: C in linux - bios calls, graphics In-Reply-To: <20010201135445.A23440@bombay.retortsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/4 X-Sequence-Number: 1459 On Thu, 1 Feb 2001, Binand Raj S. wrote: > Sukrit K Mehra forced the electrons to say: > > i know this has been going on recently but tell me .. tools like > > setup in linux, what languages are they developed in? > > The tool setup that comes with RedHat Linux, IIRC, is written in C. > > > i want the basic functionality of graphics.h in dos. curses is clumsy, imho. > > And i don't fully understand if vga.h is supposed to do the trick. if yes, then > > please guide me to some tutorial/how-to/faq/etc on the web. I have the sgva > > documentation but it is cryptic. > > Absolutely no idea about graphics.h. But your opinion that curses is > clumsy might not find many takers. There are a host of extremely popular > console tools that link to curses - mutt, pine, slrn, tin, lynx, vim, > emacs... just try convincing the users of these programs that curses > sucks. :-) Exactly. in particular I would like to see our friend arguing with a emacs user and a vim guru. (for emacs, user = guru). > > > Also, int86() in dos... these are bios calls i guess.. i did some readying up > > and i could find this. Please help with this too. > > > > AFAICT, Linux does not support bios calls from user level programs. > There are system calls and ioctl's that implement bios calls. > > If you tell use what you want to achieve, then maybe we can help you. I second that. Also look up newt and dialog. In addition there are more libraries built on top of curses - panel, menu and forms that ease a lot of coding by providing higher level 'widgets'. There is cdk - curses development kit with a similar higher level abstractions built on top of curses. It is difficult to imagine a text mode app that finds all these insufficient. P Asokan From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 02:32:40 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.149]) by www.aunet.org (Postfix) with ESMTP id 611344A113 for ; Thu, 1 Feb 2001 02:02:20 -0800 (PST) Received: from jediland.home.retortsoft.com (jediland.home.retortsoft.com [192.168.111.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id PAA11951 for ; Thu, 1 Feb 2001 15:35:42 +0530 Received: (from binand@localhost) by jediland.home.retortsoft.com (8.9.3/8.9.3) id PAA25036 for linux-india-programmers@lists.linux-india.org; Thu, 1 Feb 2001 15:20:12 +0530 Date: Thu, 1 Feb 2001 15:20:11 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: C in linux - bios calls, graphics Message-ID: <20010201152011.A24778@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <01013122463800.01174@localhost.localdomain> <20010201135445.A23440@bombay.retortsoft.com> <01020114283701.00738@Basel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <01020114283701.00738@Basel>; from shridhar_daithankar@pspl.co.in on Thu, Feb 01, 2001 at 02:28:37PM +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: 200102/5 X-Sequence-Number: 1460 Shridhar Daithankar forced the electrons to say: > On Thursday 01 February 2001 13:54, you wrote: > > The tool setup that comes with RedHat Linux, IIRC, is written in C. > Oh I thought it was just a wrapper like linuxconf. You can call it a wrapper to other RedHat's own configuration tools. It is a C program that calls other C programs (mouseconfig, netconfig, Xconfigurator and so on) depending on command line options. I ran an ltrace and figured out that it executes system (/usr/sbin/sndconfig) or whatever. Binand From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 03:25:21 2001 Received: from c008.sfo.cp.net (c008-h004.c008.sfo.cp.net [209.228.14.193]) by www.aunet.org (Postfix) with SMTP id 32D264A140 for ; Thu, 1 Feb 2001 03:10:56 -0800 (PST) Received: (cpmta 24825 invoked from network); 1 Feb 2001 03:06:55 -0800 Date: 1 Feb 2001 03:06:55 -0800 Message-ID: <20010201110655.24824.cpmta@c008.sfo.cp.net> X-Sent: 1 Feb 2001 11:06:55 GMT Received: from [202.56.224.11] by mail.123india.com with HTTP; 01 Feb 2001 03:06:54 PST Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: linux-india-programmers@lists.linux-india.org From: shantanu_gwl@123india.com X-Mailer: Web Mail 3.8.1.2 Subject: Help invited on Network programming X-Archive-Number: 200102/6 X-Sequence-Number: 1461 Hi all, Can any of you kindly throw in a pointer to how do i begin to write a dial-up server. My problem is simple. I want to connect to my friend's machine in the same city, exactly in the way I connect to the ISP. But don't want to go thru the ISP. Hence this question is here. Any extra complications in Linux versus Windoze ? One more thing. Can any of you please let me know where can I find the references for protocol/ports regarding the popular messenger protocols like Yahoo, MSN, AOL, Rediff etc. ? Thanks in advance. Shantanu. (shantanu_gwl@yahoo.com) ______________________________________________________ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 03:25:41 2001 Received: from mini.lucid.co.in (unknown [203.197.157.2]) by www.aunet.org (Postfix) with ESMTP id B40D94A344 for ; Thu, 1 Feb 2001 03:16:42 -0800 (PST) Received: by MINI with Internet Mail Service (5.5.2650.21) id ; Thu, 1 Feb 2001 16:44:21 +0530 Message-ID: <7855DFB1AAE8D411B84500B0D0795FEA05D5B7@MINI> From: Mohanasundaram C To: "'linux-india-programmers@lists.linux-india.org'" Subject: Date: Thu, 1 Feb 2001 16:42:19 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/7 X-Sequence-Number: 1462 In Linux how to get the values for the following The utilisation of hard disk The no of reads No of writes Transfers on per disk, per partition, per array basis From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 04:56:37 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id A43FF4A557 for ; Thu, 1 Feb 2001 04:29:15 -0800 (PST) Received: from Basel (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with SMTP id f11CUiB31592 for ; Thu, 1 Feb 2001 18:00:44 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Shridhar Daithankar To: linux-india-programmers@lists.linux-india.org Subject: Re: Help invited on Network programming Date: Thu, 1 Feb 2001 18:00:56 +0530 X-Mailer: KMail [version 1.2] References: <20010201110655.24824.cpmta@c008.sfo.cp.net> In-Reply-To: <20010201110655.24824.cpmta@c008.sfo.cp.net> MIME-Version: 1.0 Message-Id: <01020118005604.00686@Basel> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/8 X-Sequence-Number: 1463 So you want to setup a dial up server. It's easy. Install mgetty package and use Jiju's script. I forgot the url. But search in archives for Jiju Thomas mathew. The url is in the signature. As far as extra complication against windoze is concerned, yes it's far more complicated on windoZZZe. It does not work if GUI does not work... :-(( HTH Bye Shridhar On Thursday 01 February 2001 16:36, you wrote: > Can any of you kindly throw in a pointer to how do i begin to write a > dial-up server. My problem is simple. I want to connect to my friend's > machine in the same city, exactly in the way I connect to the ISP. But > don't want to go thru the ISP. Hence this question is here. Any extra > complications in Linux versus Windoze ? From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 05:31:48 2001 Received: from www.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id 35D2D4A015 for ; Thu, 1 Feb 2001 05:31:23 -0800 (PST) Received: (from upn@localhost) by www.roc.com (8.9.3/8.8.7) id TAA10467 for linux-india-programmers@lists.linux-india.org; Thu, 1 Feb 2001 19:07:54 +0530 Date: Thu, 1 Feb 2001 19:07:54 +0530 From: Upendra To: linux-india-programmers@lists.linux-india.org Subject: Re: C in linux - bios calls, graphics Message-ID: <20010201190754.A10327@brahma.roc.com> Mail-Followup-To: Upendra , linux-india-programmers@lists.linux-india.org References: <01013122463800.01174@localhost.localdomain> <20010201135445.A23440@bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010201135445.A23440@bombay.retortsoft.com>; from binand@bombay.retortsoft.com on Thu, Feb 01, 2001 at 01:54:45PM +0530 X-Archive-Number: 200102/9 X-Sequence-Number: 1464 On Thu, Feb 01, 2001 at 01:54:45PM +0530, Binand Raj S. wrote: > > > Also, int86() in dos... these are bios calls i guess.. i did some readying up > > and i could find this. Please help with this too. > > > > AFAICT, Linux does not support bios calls from user level programs. > There are system calls and ioctl's that implement bios calls. > Somewhere there is a kernel patch to support bios calls, done just for fun. However modern OSes dont need bios calls and that is why we have system calls. -Upendra From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 09:51:42 2001 Received: from inbound.satyam.net.in (unknown [202.144.76.6]) by www.aunet.org (Postfix) with ESMTP id 42D264A1FB for ; Thu, 1 Feb 2001 09:51:36 -0800 (PST) Received: from isocor.satyam.net.in (202.144.76.4) by inbound.satyam.net.in (NPlex 4.5.051) id 3A6A2B56000DD25A for linux-india-programmers@lists.linux-india.org; Thu, 1 Feb 2001 17:41:03 +0000 Received: from localhost.localdomain (210.214.24.32) by isocor.satyam.net.in (NPlex 4.5.051) id 3A750BA1000E6BFA for linux-india-programmers@lists.linux-india.org; Thu, 1 Feb 2001 17:44:56 +0000 Received: from localhost.localdomain (IDENT:sukrit@localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id XAA00576 for ; Thu, 1 Feb 2001 23:16:57 +0530 From: Sukrit K Mehra Reply-To: sukrit@whoever.com To: linux-india-programmers@lists.linux-india.org Subject: Re: C in linux - bios calls, graphics Date: Thu, 1 Feb 2001 21:49:54 +0530 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain References: <01013122463800.01174@localhost.localdomain> <20010201135445.A23440@bombay.retortsoft.com> In-Reply-To: <20010201135445.A23440@bombay.retortsoft.com> MIME-Version: 1.0 Message-Id: <01020122351700.00478@localhost.localdomain> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/10 X-Sequence-Number: 1465 > Absolutely no idea about graphics.h. But your opinion that curses is > clumsy might not find many takers. There are a host of extremely popular > console tools that link to curses - mutt, pine, slrn, tin, lynx, vim, > emacs... just try convincing the users of these programs that curses > sucks. :-) accepted, forgive my naiveness. :-) > If you tell use what you want to achieve, then maybe we can help you. actually i don't want anything specfic, i just want to learn to do that i am making a program (for my nephew) to drill him on multipication tables. I find that the interface makes him wary. these are the things I want to do... 1. beep() actually i know how to this one but it doesn't work as i want it to (which means i don't know how to use it ;-)... endwin() well, the console goes dead. I have to ctrl-c to stop the program. 2. I want to change the background colour, draw a rectangle. 3. I want to get the scan codes for the key pressed. Also, this whole getchar() gets() getch() thing is very confusing... cause the books for C have dos in mind. {i got k&R, its a good book but doesn't serve my purpose} { I did some checking up on ioctl() "the swiss army knife" well, all I could make out is this much only. that its the swiss army knife... the functions are randomly given and just function names are mentioned and the parameters are given somewhere and somewhere they are not. } 4. I want to print something on a particular point on the screen without using curses. 5. vga.h can it be used. Its just that i am a little frustated with this whole thing. Obviously my energy is miss used. Obviously these are too much for a single post i understand that you can't answer all of them but what would be nice is that if you could tell me where to look for these sort of things. I have already tried K&R, the documentation for curses and svga.libpackage (i am using RedHat pcq's last distro), ldp's lpg. Thanks for your time. & Sorry for an inchorent mail. Sukrit From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 10:29:03 2001 Received: from mail.cse.iitk.ac.in (unknown [210.212.54.4]) by www.aunet.org (Postfix) with ESMTP id 8D3BA4A2BD for ; Thu, 1 Feb 2001 10:28:42 -0800 (PST) Received: from cseultra2.cse.iitk.ac.in (cseultra2 [172.31.16.2]) by mail.cse.iitk.ac.in (8.9.3/8.9.3) with ESMTP id XAA22100 for ; Thu, 1 Feb 2001 23:52:26 +0530 Received: from csews29.cse.iitk.ac.in (IDENT:saugata@csews29.cse.iitk.ac.in [172.31.18.29]) by cseultra2.cse.iitk.ac.in (8.10.1/8.10.1) with ESMTP id f11IIqJ26016 for ; Thu, 1 Feb 2001 23:48:52 +0530 (IST) Date: Thu, 1 Feb 2001 23:48:18 +0530 (IST) From: Saugata Das Purkayastha To: linux-india-programmers@lists.linux-india.org Subject: Question About Job Control Shell.... In-Reply-To: <008a01c07bbc$ef70f780$2eef87c0@cisco.com> Message-ID: Organization: Dept of Computer Science IIT Kanpur MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/11 X-Sequence-Number: 1466 Hi all, setsid function creates a new session and the calling process becomes the session leader. But, the new process have no control terminal. How, can i assign a control terminal to the new session. Or, is it possible to reassign a control terminal from one session to other??? bye, saugata From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 14:13:06 2001 Received: from hotmail.com (f66.law4.hotmail.com [216.33.149.66]) by www.aunet.org (Postfix) with ESMTP id 9E86E4A307 for ; Thu, 1 Feb 2001 14:13:02 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Feb 2001 14:08:59 -0800 Received: from 203.200.0.140 by lw4fd.law4.hotmail.msn.com with HTTP; Thu, 01 Feb 2001 22:08:59 GMT X-Originating-IP: [203.200.0.140] From: "Rajeev Rao" To: linux-india-programmers@lists.linux-india.org Subject: terminal snapshots Date: Thu, 01 Feb 2001 22:08:59 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Feb 2001 22:08:59.0784 (UTC) FILETIME=[94097080:01C08C9B] X-Archive-Number: 200102/12 X-Sequence-Number: 1467 Hello, Is there anyway to obtain snapshot images of a terminal, running a program? I have to submit a project done in Linux, and I need to include these snapshots in my report. Rajeev _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 20:04:13 2001 Received: from cello.cs.iitm.ernet.in (cello.cs.iitm.ernet.in [202.141.24.3]) by www.aunet.org (Postfix) with ESMTP id 619D049F5F for ; Thu, 1 Feb 2001 20:04:08 -0800 (PST) Received: from eagle.iitm.ernet.in (IDENT:root@eagle.iitm.ernet.in [144.16.241.142]) by cello.cs.iitm.ernet.in (8.11.0/8.11.0) with ESMTP id f1247gF24194 for ; Fri, 2 Feb 2001 09:37:42 +0530 Received: from localhost (vinod@localhost) by eagle.iitm.ernet.in (8.9.3/8.9.3) with ESMTP id LAA06894 for ; Fri, 2 Feb 2001 11:12:33 +0530 Date: Fri, 2 Feb 2001 11:12:32 +0530 (IST) From: Vinod Pathangay To: linux-india-programmers@lists.linux-india.org Subject: Re: terminal snapshots In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/13 X-Sequence-Number: 1468 Rajeev: U can use GIMP...it has a scrren capture option in one of the menus.. vinu... On Thu, 1 Feb 2001, Rajeev Rao wrote: > Hello, > Is there anyway to obtain snapshot images of a terminal, running a > program? I have to submit a project done in Linux, and I need to include > these snapshots in my report. > > Rajeev > > > From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 21:44:07 2001 Received: from mail.mailmetoday.com (unknown [64.14.239.250]) by www.aunet.org (Postfix) with SMTP id 3C62E4A39C for ; Thu, 1 Feb 2001 21:44:00 -0800 (PST) Received: (qmail 29848 invoked from network); 2 Feb 2001 00:35:53 -0000 Received: from localhost (HELO mailmetoday.com) (127.0.0.1) by localhost with SMTP; 2 Feb 2001 00:35:53 -0000 From: "No Name" To: linux-india-programmers@lists.linux-india.org Importance: Normal Subject: writing a MP3 player Mime-Version: 1.0 Content-type: text/plain; charset="iso-8859-1" Message-Id: <20010202054400.3C62E4A39C@www.aunet.org> Date: Thu, 1 Feb 2001 21:44:00 -0800 (PST) X-Archive-Number: 200102/14 X-Sequence-Number: 1469 Hi all, I wish to write a MP3 Player as part of my academic project, which will graphical interface. Can some body tell me how should I start by giving me details of books and links, and I'd also like to know which language I should use. My knowledge of Linux is limited and know only c/c++, but I'll learn what ever required. Bye Rana From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 22:14:11 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id 22DC64A24F for ; Thu, 1 Feb 2001 22:14:09 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id FAA19043 for ; Fri, 2 Feb 2001 05:42:12 GMT Received: from smtpscan.wilco-int.com ([194.62.147.46]) by wilco-fw3.wilco-int.com; Fri, 02 Feb 2001 05:54:58 +0000 (GMT) Received: FROM mailsweeper.wilco-int.com BY smtpscan.wilco-int.com ; Fri Feb 02 05:53:45 2001 0000 Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Fri, 2 Feb 2001 05:51:02 +0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id D7J9BWLF; Fri, 2 Feb 2001 05:49:23 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id <1BHBC1KN>; Fri, 2 Feb 2001 11:20:50 +0530 Message-ID: From: Prashant Ramachandra To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: writing a MP3 player Date: Fri, 2 Feb 2001 11:20:49 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/15 X-Sequence-Number: 1470 On Friday, February 02, 2001 11:14 AM, No Name [SMTP:brana@mailmetoday.com] wrote: | I wish to write a MP3 Player as part of my academic project, which | will graphical interface. Can some body tell me how should I start | by giving me details of books and links, and I'd also like to know | which language I should use. My knowledge of Linux is limited and | know only c/c++, but I'll learn what ever required. C would do. http://www.wotsit.org/ -- Prashant TR Web: http://www.midpec.com/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 22:26:40 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 394754A225 for ; Thu, 1 Feb 2001 22:26:36 -0800 (PST) Received: from Basel (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with SMTP id f126RxB21489 for ; Fri, 2 Feb 2001 11:57:59 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Shridhar Daithankar To: linux-india-programmers@lists.linux-india.org Subject: Re: writing a MP3 player Date: Fri, 2 Feb 2001 11:58:15 +0530 X-Mailer: KMail [version 1.2] References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01020211581508.18691@Basel> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/16 X-Sequence-Number: 1471 Hi You can start with any open source MP3 player. Freeamp/KMP3/XMMS. I would advice you to use kmp3. It's has smallest code I have come acroos. So it will be less of work for you. Plus GUI etc. is damn good... Shridhar On Friday 02 February 2001 11:20, you wrote: > wrote: > | I wish to write a MP3 Player as part of my academic project, which > | will graphical interface. Can some body tell me how should I start > | by giving me details of books and links, and I'd also like to know > | which language I should use. My knowledge of Linux is limited and > | know only c/c++, but I'll learn what ever required. > > C would do. > > http://www.wotsit.org/ > -- From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 22:41:37 2001 Received: from cello.cs.iitm.ernet.in (cello.cs.iitm.ernet.in [202.141.24.3]) by www.aunet.org (Postfix) with ESMTP id AC4464A012 for ; Thu, 1 Feb 2001 22:41:23 -0800 (PST) Received: from eagle.iitm.ernet.in (IDENT:root@eagle.iitm.ernet.in [144.16.241.142]) by cello.cs.iitm.ernet.in (8.11.0/8.11.0) with ESMTP id f126j2F26371 for ; Fri, 2 Feb 2001 12:15:02 +0530 Received: from localhost (vinod@localhost) by eagle.iitm.ernet.in (8.9.3/8.9.3) with ESMTP id NAA07170 for ; Fri, 2 Feb 2001 13:49:53 +0530 Date: Fri, 2 Feb 2001 13:49:53 +0530 (IST) From: Vinod Pathangay To: linux-india-programmers@lists.linux-india.org Subject: Re: writing a MP3 player In-Reply-To: <20010202054400.3C62E4A39C@www.aunet.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/17 X-Sequence-Number: 1472 rana: u need to have a some knowledge of DSP 1st. (Digital Signal Processing) Writing the graphical interface, file i/o is a trivial affair (i dont know much abt sound i/o though)... U will have to implement Inverse DCT (Discrete cosine transform).. This is a good project to start with if u want to get ur DSP fundaes straight.. best of luck!!! vinu... On Thu, 1 Feb 2001, No Name wrote: > Hi all, > I wish to write a MP3 Player as part of my academic project, which will graphical interface. Can some body tell me how should I start by giving me details of books and links, and I'd also like to know which language I should use. My knowledge of Linux is limited and know only c/c++, but I'll learn what ever required. > Bye > Rana From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 22:48:02 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id D90914A158 for ; Thu, 1 Feb 2001 22:47:38 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id GAA20865 for ; Fri, 2 Feb 2001 06:26:42 GMT Received: from smtpscan.wilco-int.com ([194.62.147.46]) by wilco-fw3.wilco-int.com; Fri, 02 Feb 2001 06:39:26 +0000 (GMT) Received: FROM mailsweeper.wilco-int.com BY smtpscan.wilco-int.com ; Fri Feb 02 06:38:17 2001 0000 Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Fri, 2 Feb 2001 06:35:33 +0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id D7J9BW5Q; Fri, 2 Feb 2001 06:33:55 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id <1BHBC13Y>; Fri, 2 Feb 2001 12:05:21 +0530 Message-ID: From: Prashant Ramachandra To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: writing a MP3 player Date: Fri, 2 Feb 2001 12:05:20 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/18 X-Sequence-Number: 1473 On Friday, February 02, 2001 11:58 AM, Shridhar Daithankar [SMTP:shridhar_daithankar@pspl.co.in] wrote: | | You can start with any open source MP3 player. Freeamp/KMP3/XMMS. I | would | advice you to use kmp3. It's has smallest code I have come acroos. There's also a library called libamp. You might want to check that out as well. Don't know where you can get that. But you could try looking for it on Google. -- Prashant TR Web: http://www.midpec.com/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 23:42:52 2001 Received: from aukbc3.aukbc.org (unknown [203.197.142.200]) by www.aunet.org (Postfix) with ESMTP id 853C44A2C9 for ; Thu, 1 Feb 2001 23:42:46 -0800 (PST) Received: from hanuman.aukbc.org (IDENT:mksarav@[192.168.2.37]) by aukbc3.aukbc.org (8.9.3/8.9.3) with ESMTP id NAA10381; Fri, 2 Feb 2001 13:19:04 +0530 Date: Fri, 2 Feb 2001 13:18:25 +0530 (IST) From: M K Saravanan To: Indian Linux User Group - Chennai Cc: linux-india-programmers@lists.linux-india.org Subject: any tutorial/guide on linux system calls? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/19 X-Sequence-Number: 1474 hi, I have to take few hours of lectures on Linux system calls to the undergraduate students. Practically I have only used very few system calls. Is there any guide/tutorial on Linux System calls? any ptr. please. -- mks -- From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 23:54:22 2001 Received: from annauniv.edu (unknown [203.197.138.163]) by www.aunet.org (Postfix) with ESMTP id 1853349EFC for ; Thu, 1 Feb 2001 23:54:16 -0800 (PST) Received: from localhost (linux@localhost) by annauniv.edu (8.9.3/8.9.3) with ESMTP id NAA06156; Fri, 2 Feb 2001 13:16:09 +0530 Date: Fri, 2 Feb 2001 13:16:09 +0530 (IST) From: Linux To: Indian Linux User Group - Chennai Cc: linux-india-programmers@lists.linux-india.org Subject: Re: any tutorial/guide on linux system calls? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/20 X-Sequence-Number: 1475 Dear luggies, 'Advanced Programming in Unix Environment' by Ricard Stevens is a good book which deals with Unix System Calls. It is also applicable to Linux system calls. But it is better to check it with the man page as well. (For eg: In Linux vfork is just an alias for fork ) -George Samuel On Fri, 2 Feb 2001, M K Saravanan wrote: > hi, > > I have to take few hours of lectures on Linux system calls to the > undergraduate students. Practically I have only used very few system calls. > Is there any guide/tutorial on Linux System calls? any ptr. please. > > -- mks -- > > --- > Visit our home page at: www.chennailug.org > Send e-mail to 'ilugc-request@aero.iitm.ernet.in' with 'unsubscribe' > in either the subject or the body to unsubscribe from this list. > From linux-india-programmers-owner@lists.linux-india.org Thu Feb 1 23:58:25 2001 Received: from saugatac.naturesoft.com (unknown [202.9.161.6]) by www.aunet.org (Postfix) with ESMTP id 7047149EFC for ; Thu, 1 Feb 2001 23:58:21 -0800 (PST) Received: from cal2.vsnl.net.in (localhost.localdomain [127.0.0.1]) by saugatac.naturesoft.com (Postfix) with ESMTP id 2A99363212 for ; Fri, 2 Feb 2001 13:34:06 +0530 (IST) Message-ID: <3A7A69F4.2CED4334@cal2.vsnl.net.in> Date: Fri, 02 Feb 2001 13:34:04 +0530 From: Saugata Chakrabarti Reply-To: scap@cal2.vsnl.net.in Organization: Open Mind X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.15-4mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: writing a MP3 player References: <20010202054400.3C62E4A39C@www.aunet.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/21 X-Sequence-Number: 1476 Hey Rana, Are U really want to do something .. ?? .. Rana wrote: > Hi all, > I wish to write a MP3 Player as part of my academic project, Great wishes ... los of MP3 players are available ... you can have glimps of their source code. > which will graphical interface. Can some body tell me how should I start by giving me details of books and links, and I'd also like to know which language I should use. Better you visit this site: http://osalp.sourceforge.net/ ,.^^^^^^^^^^^^^^^^^^^^^^^ It is an Open Source Audio Library Project. This is a project designed to implement a world class set of classes in C++ that will handle all of the audio functions one would like. It is designed to be multi-platform with UNIX based platforms as the base > My knowledge of Linux is limited and know only c/c++, but I'll learn what ever required. :-) Req Knowledge .............. !! MP3 using Blade encoder and MP3 using Lame encoder .................... ^^^^^^^^^^^^ ......... ^^^^^^^^^^^^ ... and for front end; use QT [I prefer; ..] or GTK to build interface like M$ Media Player. :-) > > Bye > Rana If you are really going to start this preoject You have to have a minimum sound Card in your development m/c ... :-0 ........ iti Saugata From linux-india-programmers-owner@lists.linux-india.org Fri Feb 2 00:06:38 2001 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id 10A774A199 for ; Fri, 2 Feb 2001 00:06:36 -0800 (PST) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id DAA00675 for ; Fri, 2 Feb 2001 03:02:34 -0500 (EST) Message-ID: <00a301c08cee$94421e00$8900000a@aclindia.com> From: "Ambar Roy" To: References: <20010201110655.24824.cpmta@c008.sfo.cp.net> Subject: Re: Help invited on Network programming Date: Fri, 2 Feb 2001 13:32:47 +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: 200102/22 X-Sequence-Number: 1477 > Can any of you kindly throw in a pointer to how do i begin to write a dial-up server. My problem is simple. I want to connect to my friend's machine in the same city, exactly in the way I connect to the ISP. But don't want to go thru the ISP. Hence this question is here. Any extra complications in Linux versus Windoze ? both are equally simple/difficult... though personally i wud recommend u to use linux... also i guess programs are available for both platforms by default, so i don't know why you wud like to > One more thing. Can any of you please let me know where can I find the references for protocol/ports regarding the popular messenger protocols like Yahoo, MSN, AOL, Rediff etc. ? search freshmeat for libraries that implement these protocols... or better yet chk out everybuddy.. they hav it implemented for yahoo,msn,aol and icq!! Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Fri Feb 2 01:55:09 2001 Received: from imcwipro.wipro.co.in (imcaks.wipro.co.in [202.177.129.163]) by www.aunet.org (Postfix) with ESMTP id 8FCD24A572 for ; Fri, 2 Feb 2001 01:55:03 -0800 (PST) Received: by IMCWIPRO with Internet Mail Service (5.5.2650.21) id ; Fri, 2 Feb 2001 15:33:25 +0530 Message-ID: From: adubey@wipro.co.in To: linux-india-programmers@lists.linux-india.org Subject: how do we use raw sockets? Date: Fri, 2 Feb 2001 15:30:56 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/23 X-Sequence-Number: 1478 Hi i ran this quey a long time ack.. does anyone here know how to use raw sockets? i am working on solaris.. but i guess it cant be very different.. there is no way i could find any docs on the same.. Alok From linux-india-programmers-owner@lists.linux-india.org Fri Feb 2 02:34:36 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id 2331C4A75B for ; Fri, 2 Feb 2001 02:21:17 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id JAA28886 for ; Fri, 2 Feb 2001 09:52:30 GMT Received: from smtpscan.wilco-int.com ([194.62.147.46]) by wilco-fw3.wilco-int.com; Fri, 02 Feb 2001 10:05:15 +0000 (GMT) Received: FROM mailsweeper.wilco-int.com BY smtpscan.wilco-int.com ; Fri Feb 02 10:04:07 2001 0000 Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Fri, 2 Feb 2001 10:01:22 +0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id D7J9BZ2P; Fri, 2 Feb 2001 09:59:44 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id <1BHBC184>; Fri, 2 Feb 2001 15:31:10 +0530 Message-ID: From: Prashant Ramachandra To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: how do we use raw sockets? Date: Fri, 2 Feb 2001 15:31:09 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/24 X-Sequence-Number: 1479 On Friday, February 02, 2001 3:31 PM, adubey@wipro.co.in [SMTP:adubey@wipro.co.in] wrote: | i ran this quey a long time ack.. does anyone here know how to use | raw | sockets? There's a library called libsocket. That should probably be of help. It should be in any standard Linux installation. Don't know about Solaris. -- Prashant TR Web: http://www.midpec.com/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From linux-india-programmers-owner@lists.linux-india.org Fri Feb 2 02:35:26 2001 Received: from hwembmnvw001 (unknown [129.30.244.31]) by www.aunet.org (Postfix) with SMTP id 1D8734A749 for ; Fri, 2 Feb 2001 02:32:07 -0800 (PST) Received: from 129.30.244.21 by hwembmnvw001 (InterScan E-Mail VirusWall NT); Fri, 02 Feb 2001 04:27:26 -0600 (Central Standard Time) Received: by HWEMNMN2601 with Internet Mail Service (5.5.2650.21) id <1A96Q5SF>; Fri, 2 Feb 2001 04:28:14 -0600 Message-ID: From: "Kondaiah (IE10)" To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: how do we use raw sockets? Date: Fri, 2 Feb 2001 04:27:41 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/25 X-Sequence-Number: 1480 Some where I read the raw socket programming(I think it is there in Richard Steven's 3rd edition). Kondaiah > -----Original Message----- > From: adubey@wipro.co.in [SMTP:adubey@wipro.co.in] > Sent: Friday, February 02, 2001 3:31 PM > To: linux-india-programmers@lists.linux-india.org > Subject: [LIP] how do we use raw sockets? > > Hi > i ran this quey a long time ack.. does anyone here know how to use raw > sockets? > > i am working on solaris.. but i guess it cant be very different.. > > there is no way i could find any docs on the same.. > > Alok > > > --------------------------------------------- > 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 Feb 2 02:47:21 2001 Received: from brahma01.netbrahma.com (unknown [164.164.70.67]) by www.aunet.org (Postfix) with ESMTP id 9BC344A85A for ; Fri, 2 Feb 2001 02:35:36 -0800 (PST) Received: from abiligiri.netbrahma.com (172.16.72.99 [172.16.72.99]) by brahma01.netbrahma.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id D9S16Y7H; Fri, 2 Feb 2001 16:04:02 +0530 Received: from NetBrahma.com (abiligiri.netbrahma.com [127.0.0.1]) (authenticated) by abiligiri.netbrahma.com (8.11.2/8.11.2) with ESMTP id f12AY2I19758 for ; Fri, 2 Feb 2001 16:04:04 +0530 Message-ID: <3A7A8D1A.4186A580@NetBrahma.com> Date: Fri, 02 Feb 2001 16:04:02 +0530 From: Anand Biligiri S Organization: NetBrahma X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: how do we use raw sockets? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/26 X-Sequence-Number: 1481 adubey@wipro.co.in wrote: > > Hi > i ran this quey a long time ack.. does anyone here know how to use raw > sockets? http://www.whitefang.com/rin/index.html HTH -- Anand Biligiri S (AnandS@NetBrahma.com) Member Technical Staff Net Brahma Technologies(www.netbrahma.com),Internext Networking Software Tel: 91.80. 552 1451 Fax: 91.80. 553 7233 From linux-india-programmers-owner@lists.linux-india.org Fri Feb 2 03:04:49 2001 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id AAA094A69E for ; Fri, 2 Feb 2001 02:44:57 -0800 (PST) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id FAA22443 for ; Fri, 2 Feb 2001 05:40:56 -0500 (EST) Message-ID: <00eb01c08d04$b3130e50$8900000a@aclindia.com> From: "Ambar Roy" To: References: Subject: Re: how do we use raw sockets? Date: Fri, 2 Feb 2001 16:11:13 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200102/27 X-Sequence-Number: 1482 using programs, or using code.. using code i guess it wud be pretty standard...read any code on networking, if u just wan't to access a server on any tcp socket, then just telnet to that port, e.g telnet localhost 25 for smtp!!! Bye, /\ |\/| |3 /\ r > i ran this quey a long time ack.. does anyone here know how to use raw > sockets? > > i am working on solaris.. but i guess it cant be very different.. > > there is no way i could find any docs on the same.. From linux-india-programmers-owner@lists.linux-india.org Fri Feb 2 03:09:15 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.149]) by www.aunet.org (Postfix) with ESMTP id CA1834A63A for ; Fri, 2 Feb 2001 02:53:08 -0800 (PST) Received: from jediland.home.retortsoft.com (jediland.home.retortsoft.com [192.168.111.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id QAA29896 for ; Fri, 2 Feb 2001 16:26:25 +0530 Received: (from binand@localhost) by jediland.home.retortsoft.com (8.9.3/8.9.3) id QAA30519 for linux-india-programmers@lists.linux-india.org; Fri, 2 Feb 2001 16:10:42 +0530 Date: Fri, 2 Feb 2001 16:10:42 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: C in linux - bios calls, graphics Message-ID: <20010202161042.B30294@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <01013122463800.01174@localhost.localdomain> <20010201135445.A23440@bombay.retortsoft.com> <01020122351700.00478@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <01020122351700.00478@localhost.localdomain>; from holysmoke@satyam.net.in on Thu, Feb 01, 2001 at 09:49:54PM +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: 200102/28 X-Sequence-Number: 1483 Sukrit K Mehra forced the electrons to say: > { I did some checking up on ioctl() "the swiss army knife" well, all I could > make out is this much only. that its the swiss army knife... the functions are > randomly given and just function names are mentioned and the parameters are > given somewhere and somewhere they are not. } Admitted. ioctls are not documented at all. There is an obsolete ioctl_list(2) man page, which usually serves no purpose. Most of the time I find I have to browse through the kernel source code to figure out the ioctl I want. > I have already tried K&R, the documentation for curses and svga.libpackage (i > am using RedHat pcq's last distro), ldp's lpg. If you find curses intimidating, try the newt library that comes with RedHat. It is the code used by many RedHat applications, including its installation program. It is easy to learn, but you might find the documentation lacking a bit there also. The best would be to open up the source of the installation program (or any utility like Xconfigurator or whatever). I feel newt suits your purpose. You need the newt-devel RPM installed. Binand From linux-india-programmers-owner@lists.linux-india.org Fri Feb 2 04:27:51 2001 Received: from bom4.vsnl.net.in (bom4.vsnl.net.in [202.54.4.116]) by www.aunet.org (Postfix) with ESMTP id 228BF4A706 for ; Fri, 2 Feb 2001 04:15:47 -0800 (PST) Received: from alice.bombay.retortsoft.com (unknown [203.199.65.149]) by bom4.vsnl.net.in (Postfix) with ESMTP id F1A627D68 for ; Fri, 2 Feb 2001 17:39:45 +0500 (GMT+0500) Received: (from shishir@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id RAA01316 for linux-india-programmers@lists.linux-india.org; Fri, 2 Feb 2001 17:47:19 +0530 Date: Fri, 2 Feb 2001 17:47:19 +0530 From: Shishir Pandey To: linux-india-programmers@lists.linux-india.org Subject: Re: how do we use raw sockets? Message-ID: <20010202174719.A925@alice.bombay.retortsoft.com> Mail-Followup-To: Shishir Pandey , linux-india-programmers@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from adubey@wipro.co.in on Fri, Feb 02, 2001 at 03:30:56PM +0530 X-Archive-Number: 200102/29 X-Sequence-Number: 1484 adubey@wipro.co.in molested the spacetime to project in our dimension: > Hi > i ran this quey a long time ack.. does anyone here know how to use raw > sockets? Try the newsgroup comp.unix.programmer,or the archives of the same you may find the faqs on raw sockets. The url for the archives I think is : http://www.whitefang.com/rin/ I hope this helps. Shishir -- "That's the problem with nature, something's always stinging you or oozing mucous all over you. Let's go and watch TV." --- Calvin From linux-india-programmers-owner@lists.linux-india.org Fri Feb 2 09:47:22 2001 Received: from bom6.vsnl.net.in (bom6.vsnl.net.in [202.54.4.38]) by www.aunet.org (Postfix) with ESMTP id 8AFB94A190 for ; Fri, 2 Feb 2001 09:46:52 -0800 (PST) Received: from default (unknown [202.54.95.119]) by bom6.vsnl.net.in (Postfix) with ESMTP id E291C55FFB for ; Fri, 2 Feb 2001 23:12:33 +0500 (IST) Message-ID: <001b01c08d3f$fb986ae0$775f36ca@default> From: "Vikrant Dhawale" To: References: Subject: Re: any tutorial/guide on linux system calls? Date: Fri, 2 Feb 2001 23:11:34 +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: 200102/30 X-Sequence-Number: 1485 A list of system calls for linux can be found here : http://quaff.port5.com/syscall_offline.html From linux-india-programmers-owner@lists.linux-india.org Sat Feb 3 01:31:14 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 23A3F4A2F8; Sat, 3 Feb 2001 01:30:58 -0800 (PST) Received: from rahul ([61.11.246.72]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f139Ub600825; Sat, 3 Feb 2001 15:00:38 +0530 Message-ID: <001001c08dc3$38f519a0$48f60b3d@rahul> From: "Rahul Jindal" To: , Subject: Stevens book Date: Sat, 3 Feb 2001 14:55:15 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/31 X-Sequence-Number: 1486 Hello world, i've just started with the stevens unix network prog. book. i need the source code for the book - first edition. i downloaded it from a site but that does not work or may be i'm not able to make it work. it says the file systype.sh needs to be modified but how it does not tell. please give me some link to the source code or how do i make the one i have work. TIA Rahul r /\ |-| |_| |_ =============================== With all sanity you can't reach your destination =============================== From linux-india-programmers-owner@lists.linux-india.org Sat Feb 3 05:55:13 2001 Received: from mulga.cs.mu.OZ.AU (mulga.cs.mu.OZ.AU [128.250.1.22]) by www.aunet.org (Postfix) with ESMTP id 0140C4A143 for ; Sat, 3 Feb 2001 05:55:06 -0800 (PST) Received: from queeg.cs.mu.OZ.AU (queeg.cs.mu.OZ.AU [128.250.26.136]) by mulga.cs.mu.OZ.AU with ESMTP id AAA07368 for ; Sun, 4 Feb 2001 00:50:54 +1100 (EST) Received: (from rsubr@localhost) by queeg.cs.mu.OZ.AU (8.9.3+Sun/8.9.3) id AAA07858 for linux-india-programmers@lists.linux-india.org; Sun, 4 Feb 2001 00:50:54 +1100 (EST) Date: Sun, 4 Feb 2001 00:50:54 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: any tutorial/guide on linux system calls? Message-ID: <20010204005054.A6903@students.cs.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from mksarav@mail.mitindia.edu on Fri, Feb 02, 2001 at 01:18:25PM +0530 X-Archive-Number: 200102/32 X-Sequence-Number: 1487 M K Saravanan wrote (mksarav@mail.mitindia.edu): > I have to take few hours of lectures on Linux system calls to the > undergraduate students. Practically I have only used very few system calls. > Is there any guide/tutorial on Linux System calls? any ptr. please. > I would recommend against only iterating all avail syscalls and describing them. Afterall, students can read manuals and textbooks too :) Your students may also find it interesting to know _what_ happens during a syscall and _how_ unix/linux implements them (how the user->kernel mode switch occurs, etc). I made my students bypass the C wrappers and use gcc assembly to call syscalls directly. It went well and we all had fun creating 600byte binaries which called the pause syscall :-P A blow by blow description of syscall implementation is at - http://www.linuxdoc.org/LDP/lki/lki-2.html#ss2.11 Asm tricks to use syscalls - http://www.linuxassembly.org/linasm.html#Syscalls Lastly, calling syscalls from within the kernel - http://www.linuxdoc.org/LDP/lkmpg/node20.html - Raja From linux-india-programmers-owner@lists.linux-india.org Sat Feb 3 06:44:03 2001 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id EBD944A13B for ; Sat, 3 Feb 2001 06:43:35 -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 UAA13189 for ; Sat, 3 Feb 2001 20:19:02 GMT Received: from vibhu ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with SMTP id AAA490A for ; Sat, 3 Feb 2001 20:09:20 +0530 Message-ID: <006001c08def$8c52ca30$3147a8c0@wipro.com> From: "Vibhu Rishi" To: References: <20010204005054.A6903@students.cs.mu.oz.au> Subject: delete key not enabled Date: Sat, 3 Feb 2001 20:07:43 +0530 Organization: Wipro MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200102/33 X-Sequence-Number: 1488 Hi i recently installed RH7.0. Everything is fine, but the delete & backspace keys are not working. can you help me out ? vibhu.. From linux-india-programmers-owner@lists.linux-india.org Sat Feb 3 07:23:12 2001 Received: from aukbc3.aukbc.org (unknown [203.197.142.200]) by www.aunet.org (Postfix) with ESMTP id B70744A171 for ; Sat, 3 Feb 2001 07:23:08 -0800 (PST) Received: from hanuman.aukbc.org (IDENT:mksarav@[192.168.2.37]) by aukbc3.aukbc.org (8.9.3/8.9.3) with ESMTP id UAA13268 for ; Sat, 3 Feb 2001 20:59:36 +0530 Date: Sat, 3 Feb 2001 20:58:54 +0530 (IST) From: M K Saravanan To: linux-india-programmers@lists.linux-india.org Subject: Re: delete key not enabled In-Reply-To: <006001c08def$8c52ca30$3147a8c0@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/34 X-Sequence-Number: 1489 On Sat, 3 Feb 2001, Vibhu Rishi wrote: > i recently installed RH7.0. Everything is fine, but the delete & backspace > keys are not working. go thru "BackspaceDelete" mini HOWTO avl. at http://www.linuxdoc.org -- mks -- From linux-india-programmers-owner@lists.linux-india.org Sat Feb 3 08:59:05 2001 Received: from inbound2.maa.sify.net (unknown [202.144.76.8]) by www.aunet.org (Postfix) with ESMTP id BBEEA4A17C for ; Sat, 3 Feb 2001 08:58:59 -0800 (PST) Received: from mgs (210.214.146.84) by inbound2.maa.sify.net (5.0.048) id 3A6ED051001D3D65 for linux-india-programmers@lists.linux-india.org; Sat, 3 Feb 2001 16:54:01 +0000 Message-ID: <000f01c08e02$b79be560$5492d6d2@mgs> From: "Amey" To: "linux india list" Subject: Date: Sat, 3 Feb 2001 22:29:43 +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: 200102/35 X-Sequence-Number: 1490 Hi friends... I would just like to know about a few good resoureful unix network programming links. regards, Amey From linux-india-programmers-owner@lists.linux-india.org Sat Feb 3 22:45:47 2001 Received: from venus.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id 799044A0BC for ; Sat, 3 Feb 2001 22:45:23 -0800 (PST) Received: from ramakrishna.roc.com (rkp.roc.com [172.16.5.88]) by venus.roc.com (8.9.3/8.9.3) with SMTP id AAA08985; Sun, 4 Feb 2001 00:18:38 +0530 From: Ch Rama Krishna Prasad Organization: Intoto Inc To: linux-india-programmers@lists.linux-india.org, adubey@wipro.co.in, linux-india-programmers@lists.linux-india.org Subject: Re: how do we use raw sockets? Date: Sun, 4 Feb 2001 11:59:14 +0530 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01020412034000.07218@ramakrishna.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/36 X-Sequence-Number: 1491 #include #include #include //#include #include #include #include #include #include #include #include #include struct sockaddr_in sockaddr; T_INT32 lSockid,ulRt_Value; T_INT32 flags; /* * Create a socket As Family AF_INET in stream mode */ lSockid = socket(AF_INET,SOCK_RAW,IPPROTO_ICMP); if(lSockid == -1) { perror("Create Socket():Socket creation failed "); return(-1); } This one example how to use raw sockets. This will help You From Ch.Rama Krishna Prasad. On Fri, 02 Feb 2001, adubey@wipro.co.in wrote: > Hi > i ran this quey a long time ack.. does anyone here know how to use raw > sockets? > > i am working on solaris.. but i guess it cant be very different.. > > there is no way i could find any docs on the same.. > > Alok > > > --------------------------------------------- > 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 Feb 4 08:10:29 2001 Received: from inbound2.maa.sify.net (unknown [202.144.76.8]) by www.aunet.org (Postfix) with ESMTP id 492FB4A0FF for ; Sun, 4 Feb 2001 08:10:23 -0800 (PST) Received: from mgs (210.214.146.162) by inbound2.maa.sify.net (5.0.048) id 3A6ED051001F374F for linux-india-programmers@lists.linux-india.org; Sun, 4 Feb 2001 16:05:20 +0000 Message-ID: <002901c08ec5$12f19e60$a292d6d2@mgs> From: "Amey" To: "linux india list" Subject: network programming links.. Date: Sun, 4 Feb 2001 21:39: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.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200102/37 X-Sequence-Number: 1492 Hello friends.. Could anyone point me to some resourceful links on network programming. regards Amey From linux-india-programmers-owner@lists.linux-india.org Sun Feb 4 08:11:11 2001 Received: from mailweb13.rediffmail.com (unknown [203.199.83.21]) by www.aunet.org (Postfix) with SMTP id ED1AB4A143 for ; Sun, 4 Feb 2001 08:11:08 -0800 (PST) Received: (qmail 6616 invoked by uid 510); 4 Feb 2001 16:00:00 -0000 Date: 4 Feb 2001 16:00:00 -0000 Message-ID: <20010204160000.6614.qmail@mailweb13.rediffmail.com> Received: from unknown (202.144.64.4) by rediffmail.com via HTTP; 04 Feb 2001 16:00:00 -0000 MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: GTK query From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/38 X-Sequence-Number: 1493 Hello! I am working with GTK in Linux. I would like to know how to 1. Create a pop-up window to confirm some action. This must lead to the main window becoming insensitive to events, which I am unable to do. 2. Create the pop-up window as above without the property to be resized. I have created an application with multiple windows. I have created 2 separate files (programs), one for window1 and another for window2. Suppose after window1 is opened, window2 (an independent window, not child) will open. I have hidden window1 so that window2 alone is visible. I am not able to destroy window2 and *return* to window1, which has been hidden. Control does not seem to quit gtk_main() of window2 and return *automatically* to window1. I tried to "include" program1 in program2, but it led to mutual inclusion of the 2 programs (files). However, if both the window creation-programs are in the same file, I get the required behaviour. Is this problem because of the occurrence of gtk_main() in both the files (in the former case)? Anyway, it works in the latter case. How can I overcome it? Thanking you for your attention. Waiting for an answer, - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Sun Feb 4 08:22:55 2001 Received: from c008.sfo.cp.net (c008-h003.c008.sfo.cp.net [209.228.14.192]) by www.aunet.org (Postfix) with SMTP id 3A7FE4A187 for ; Sun, 4 Feb 2001 08:22:54 -0800 (PST) Received: (cpmta 5914 invoked from network); 4 Feb 2001 08:18:39 -0800 Date: 4 Feb 2001 08:18:39 -0800 Message-ID: <20010204161839.5913.cpmta@c008.sfo.cp.net> X-Sent: 4 Feb 2001 16:18:39 GMT Received: from [61.1.28.109] by mail.123india.com with HTTP; 04 Feb 2001 08:18:39 PST Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: linux-india-programmers@lists.linux-india.org From: shantanu_gwl@123india.com X-Mailer: Web Mail 3.8.1.2 Subject: Re: network programming links.. X-Archive-Number: 200102/39 X-Sequence-Number: 1494 > Could anyone point me to some resourceful links on network programming. Stevens books (there are 4 volumes in total) are incredibly informative, irrespective of whether you're a newbie or a geek. Or check out at google.com with keywords "network programming" or "RFC". Refer to the RFCs for the latest. For Java specific work, the book "Java Network Programming" from O'Reilly is okay but little old. Shantanu. ______________________________________________________ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com From linux-india-programmers-owner@lists.linux-india.org Sun Feb 4 17:17:29 2001 Received: by www.aunet.org (Postfix, from userid 1000) id 2B2DB4A3A9; Sun, 4 Feb 2001 17:17:26 -0800 (PST) To: linux-india-programmers@lists.linux-india.org Subject: List Statistics for linux-india-programmers for 01/2001 Message-Id: <20010205011726.2B2DB4A3A9@www.aunet.org> Date: Sun, 4 Feb 2001 17:17:26 -0800 (PST) From: thaths@aunet.org (Sudhakar Chandra) X-Archive-Number: 200102/40 X-Sequence-Number: 1495 ************************************************************** List: linux-india-programmers ************************************************************** Number of subscribers Total: 360 Digest: 13 (3.61 %) Each: 347 (96.39 %) ************************************************************** By TLD .com: 243 (67.50 %) .net: 42 (11.67 %) .edu: 3 (0.83 %) .org: 5 (1.39 %) .in: 66 (18.33 %) ************************************************************** By domain name .vsnl.net.in: 11 (3.06 %) .vsnl.com: 7 (1.94 %) .vsnl.net: 1 (0.28 %) .hotmail.com: 17 (4.72 %) .yahoo.com: 69 (19.17 %) .usa.net: 13 (3.61 %) .softhome.net: 5 (1.39 %) .eth.net: 10 (2.78 %) .netscape.net: 0 (0.00 %) .exocore.com: 0 (0.00 %) ************************************************************** Signal to noise ratio of top posters Total Messages: 308 Total Original Body Lines: 3866 Total Body Lines: 9250 (59% noise) Sorted by messages posted: Total Total Total Messages Original Lines: Posted: Lines: 1: Shridhar Daithankar 24 214 552 (62% noise) 2: Arun Sharma 18 108 324 (67% noise) 3: Prashant Ramachandra 15 368 493 (26% noise) 4: archan 14 116 427 (73% noise) 5: Rahul Jindal 12 169 585 (72% noise) 6: Sreeji K Das 12 137 335 (60% noise) 7: Binand Raj S. 11 138 305 (55% noise) 8: =?iso-8859-1?q?sindhoor=20pangal?= 10 165 432 (62% noise) 9: shubhendu 9 140 317 (56% noise) 10: sreangsu acharyya 9 61 195 (69% noise) 11: Sreeramkr 8 142 243 (42% noise) 12: V Kugan 7 96 129 (26% noise) 13: Sumit Rangawala 7 43 231 (82% noise) 14: Rajeev Rao 7 137 349 (61% noise) 15: deepak 7 74 220 (67% noise) 16: Aditya Rao 6 96 224 (58% noise) 17: Deepak Joglekar 6 42 158 (74% noise) 18: Adityan Murthy 6 57 101 (44% noise) 19: Ambar Roy 5 43 93 (54% noise) 20: G.L.Suresh 5 42 162 (75% noise) Sorted by original lines posted: Total Total Total Messages Original Lines: Posted: Lines: 1: Prashant Ramachandra 15 368 493 (26% noise) 2: Shridhar Daithankar 24 214 552 (62% noise) 3: Rahul Jindal 12 169 585 (72% noise) 4: =?iso-8859-1?q?sindhoor=20pangal?= 10 165 432 (62% noise) 5: Sreeramkr 8 142 243 (42% noise) 6: shubhendu 9 140 317 (56% noise) 7: Binand Raj S. 11 138 305 (55% noise) 8: Rajeev Rao 7 137 349 (61% noise) 9: Sreeji K Das 12 137 335 (60% noise) 10: archan 14 116 427 (73% noise) 11: Moyukh 4 108 181 (41% noise) 12: Arun Sharma 18 108 324 (67% noise) 13: V Kugan 7 96 129 (26% noise) 14: Aditya Rao 6 96 224 (58% noise) 15: deepak 7 74 220 (67% noise) 16: Nick Hill 4 70 141 (51% noise) 17: Devdas Bhagat 4 65 120 (46% noise) 18: Sukrit K Mehra 3 62 87 (29% noise) 19: sreangsu acharyya 9 61 195 (69% noise) 20: Amarendra GODBOLE 4 58 108 (47% noise) Sorted by total lines posted: Total Total Total Messages Original Lines: Posted: Lines: 1: Rahul Jindal 12 169 585 (72% noise) 2: Shridhar Daithankar 24 214 552 (62% noise) 3: Prashant Ramachandra 15 368 493 (26% noise) 4: =?iso-8859-1?q?sindhoor=20pangal?= 10 165 432 (62% noise) 5: archan 14 116 427 (73% noise) 6: Rajeev Rao 7 137 349 (61% noise) 7: Sreeji K Das 12 137 335 (60% noise) 8: Arun Sharma 18 108 324 (67% noise) 9: shubhendu 9 140 317 (56% noise) 10: Binand Raj S. 11 138 305 (55% noise) 11: Sreeramkr 8 142 243 (42% noise) 12: Sumit Rangawala 7 43 231 (82% noise) 13: Aditya Rao 6 96 224 (58% noise) 14: deepak 7 74 220 (67% noise) 15: sreangsu acharyya 9 61 195 (69% noise) 16: Moyukh 4 108 181 (41% noise) 17: john slater 3 47 180 (74% noise) 18: G.L.Suresh 5 42 162 (75% noise) 19: Deepak Joglekar 6 42 158 (74% noise) 20: Ch Rama Krishna Prasad 3 58 151 (62% noise) Notes: "Total Lines" does not count attachments, only the main body of the message. Messages which contain only attachments count as 0 lines. "Original lines" are the subset of "Total Lines" that are not preceeded by ">". "Noise" is the other part -- the quoted material. This script doesn't do anything clever with HTML, so the stats will be off for HTML messages (no detection of quoted material, and bloated line counts.) ************************************************************** From linux-india-programmers-owner@lists.linux-india.org Sun Feb 4 22:02:19 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 96CAE4A011 for ; Sun, 4 Feb 2001 22:01:43 -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 f15654b07073 for ; Mon, 5 Feb 2001 11:35:04 +0530 Message-ID: <3A7E421F.E47A329E@pspl.co.in> Date: Mon, 05 Feb 2001 11:33:11 +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: network programming links.. References: <20010204161839.5913.cpmta@c008.sfo.cp.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/41 X-Sequence-Number: 1496 This is not a reference but a handy guide.... http://www.cs.cf.ac.uk/Dave/C/CE.html Shridhar shantanu_gwl@123india.com wrote: > Stevens books (there are 4 volumes in total) are incredibly informative, irrespective of whether you're a newbie or a geek. > > Or check out at google.com with keywords "network programming" or "RFC". Refer to the RFCs for the latest. For Java specific work, the book "Java Network Programming" from O'Reilly is okay but little old. From linux-india-programmers-owner@lists.linux-india.org Sun Feb 4 22:49:42 2001 Received: from donald.bk (unknown [203.145.133.2]) by www.aunet.org (Postfix) with ESMTP id 3B7734A34D for ; Sun, 4 Feb 2001 22:49:31 -0800 (PST) Received: from Larry.bk (root@larry.bk [200.2.1.10]) by donald.bk (8.8.5/8.8.5) with ESMTP id MAA19158 for ; Mon, 5 Feb 2001 12:11:31 +0530 Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id MAA02367 for ; Mon, 5 Feb 2001 12:10:14 +0530 Date: Mon, 5 Feb 2001 12:10:14 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com Cc: linux-india-programmers@lists.linux-india.org Subject: Re: C in linux - bios calls, graphics In-Reply-To: <01013122463800.01174@localhost.localdomain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/42 X-Sequence-Number: 1497 On Wed, 31 Jan 2001, Sukrit K Mehra wrote: > Hi! > i know this has been going on recently but tell me .. tools like > setup in linux, what languages are they developed in? > > i want the basic functionality of graphics.h in dos. curses is clumsy, imho. > And i don't fully understand if vga.h is supposed to do the trick. if yes, then > please guide me to some tutorial/how-to/faq/etc on the web. I have the sgva > documentation but it is cryptic. What exactly is the type of app. that you want to write ? Curses should be quite good. mc is written using ncurses & it looks cool. Or u can use newt (I dunno whether it uses curses), which is the setup tool for redhat. Search redhat site for details. Sreeji From linux-india-programmers-owner@lists.linux-india.org Sun Feb 4 22:57:54 2001 Received: from aukbc3.aukbc.org (unknown [203.197.142.200]) by www.aunet.org (Postfix) with ESMTP id D44B74A11C for ; Sun, 4 Feb 2001 22:57:46 -0800 (PST) Received: from hanuman.aukbc.org (IDENT:mksarav@[192.168.2.37]) by aukbc3.aukbc.org (8.9.3/8.9.3) with ESMTP id MAA22806 for ; Mon, 5 Feb 2001 12:34:05 +0530 Date: Mon, 5 Feb 2001 12:33:06 +0530 (IST) From: M K Saravanan To: linux india list Subject: Re: network programming links.. In-Reply-To: <002901c08ec5$12f19e60$a292d6d2@mgs> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/43 X-Sequence-Number: 1498 On Sun, 4 Feb 2001, Amey wrote: > Could anyone point me to some resourceful links on network programming. * Unix network programming (Prev. single vol. edition) * Unix network programming - Vol.I (New expanded edition) * Unix Network PRogramming - Vol.II (ditto) * Advanced Programming in Unix Environment all by Richard Stevens and all are avl. in Indian Edition. -- mks -- From linux-india-programmers-owner@lists.linux-india.org Sun Feb 4 23:17:34 2001 Received: from donald.bk (unknown [203.145.133.2]) by www.aunet.org (Postfix) with ESMTP id 482B74A20D for ; Sun, 4 Feb 2001 23:17:23 -0800 (PST) Received: from Larry.bk (root@larry.bk [200.2.1.10]) by donald.bk (8.8.5/8.8.5) with ESMTP id MAA19306 for ; Mon, 5 Feb 2001 12:39:29 +0530 Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id MAA03784 for ; Mon, 5 Feb 2001 12:38:12 +0530 Date: Mon, 5 Feb 2001 12:38:12 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: linux-india-programmers@lists.linux-india.org Subject: Re: terminal snapshots In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/44 X-Sequence-Number: 1499 On Thu, 1 Feb 2001, Rajeev Rao wrote: > Hello, > Is there anyway to obtain snapshot images of a terminal, running a > program? I have to submit a project done in Linux, and I need to include > these snapshots in my report. > > Rajeev Use setterm -dump Eg. Run your program in tty1 - just login at Alt-F1 & run the program. Now from another terminal give the command as: setterm -dump 1 Now the output would be stored in screen.dmp. (It works only for dumping text o/p !) Sreeji From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 05:26:19 2001 Received: from mailweb11.rediffmail.com (unknown [203.199.83.27]) by www.aunet.org (Postfix) with SMTP id E060149F45 for ; Mon, 5 Feb 2001 05:26:13 -0800 (PST) Received: (qmail 1374 invoked by uid 510); 5 Feb 2001 12:40:04 -0000 Date: 5 Feb 2001 12:40:04 -0000 Message-ID: <20010205124004.1373.qmail@mailweb11.rediffmail.com> Received: from unknown (202.144.64.4) by rediffmail.com via HTTP; 05 Feb 2001 12:40:04 -0000 MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: X Window programming query From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/45 X-Sequence-Number: 1500 Hello! I am developing a monitoring project in X Window. For a particular window whose ID I have obtained, I would like to know 1. When that window was opened (created). Can I find this by looking out for some specific event? How can I conclude that the window was opened as the result of some command (or click on an icon)? 2. How can I associate a window to the program that runs it? For example, for the caption "Media Player", the corresponding program is "kmidi". Will these details be available in some system file? Thanks for your kind attention. Waiting for a reply, - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 06:53:30 2001 Received: from inbound2.maa.sify.net (unknown [202.144.76.8]) by www.aunet.org (Postfix) with ESMTP id 92ED94A1A2 for ; Mon, 5 Feb 2001 06:53:16 -0800 (PST) Received: from kagha (210.214.105.209) by inbound2.maa.sify.net (5.0.048) id 3A7E9B6100009299 for linux-india-programmers@lists.linux-india.org; Mon, 5 Feb 2001 14:48:05 +0000 Message-ID: <028201c08f83$213086d0$d169d6d2@kagha> From: "maricha" To: References: <01020412034000.07218@ramakrishna.roc.com> Subject: I cannot access my Root account after installing Mandrake Date: Mon, 5 Feb 2001 20:04:21 +0530 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 Disposition-Notification-To: "maricha" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200102/46 X-Sequence-Number: 1501 Hi all, I faced a peculiar problem today.. I installed Mandrake 7.0 onto my PIII 550 system on an exclusive ex2fs partition.. The machine is connected to five more Pc's and a HP-Unix server.. While installing Mandrake I made my system to participate in that network along with the HP Unix server.. Now all th installation is over and I rebooted..My machine has also a Host name.. Now after i rebooted i could not log into my Root account.. But i could access my other user accounts.. I used the console mode and not the X-window login.. I reinstalled again and found the same problem.. I have installed Linux many a times, but never let it participate in a network.. This is the first time i connected it to a network..( or rather had an oppurtunity to experiment with networking) ALso when i logged into linux using my other login , i could ping into the server and also do "ftp"... But no root access.. I am highly puzzled.. Can any one help me..??? thanks suri Vizag From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 11:15:12 2001 Received: from inbound.satyam.net.in (unknown [202.144.76.6]) by www.aunet.org (Postfix) with ESMTP id C6D444A0EB for ; Mon, 5 Feb 2001 11:15:06 -0800 (PST) Received: from mgs (210.214.146.186) by inbound.satyam.net.in (NPlex 4.5.051) id 3A7E9A2F00008C8C for linux-india-programmers@lists.linux-india.org; Mon, 5 Feb 2001 19:04:14 +0000 Message-ID: <000e01c08fa8$25b6f980$ba92d6d2@mgs> From: "Amey" To: References: <20010204161839.5913.cpmta@c008.sfo.cp.net> Subject: Re: network programming links.. Date: Mon, 5 Feb 2001 20:11:34 +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: 200102/47 X-Sequence-Number: 1502 thanks.. i'll try that ... but if anyone comes across any good programming oriented network links ... pls point me to it... Regards, Amey :-) ----- Original Message ----- From: To: Sent: Sunday, February 04, 2001 9:48 PM Subject: Re: [LIP] network programming links.. > > Could anyone point me to some resourceful links on network programming. > > Stevens books (there are 4 volumes in total) are incredibly informative, irrespective of whether you're a newbie or a geek. > > Or check out at google.com with keywords "network programming" or "RFC". Refer to the RFCs for the latest. For Java specific work, the book "Java Network Programming" from O'Reilly is okay but little old. > > Shantanu. > > > ______________________________________________________ > 123India.com - India's Premier Portal > Get your Free Email Account at http://www.123india.com > > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 11:43:46 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 42E6A4A178 for ; Mon, 5 Feb 2001 11:43:41 -0800 (PST) Received: from rahul ([61.11.246.132]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f15JgT619694 for ; Tue, 6 Feb 2001 01:12:35 +0530 Message-ID: <009f01c08fab$2215af80$84f60b3d@rahul> From: "Rahul Jindal" To: References: Subject: Re: network programming links.. Date: Tue, 6 Feb 2001 01:07:17 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/48 X-Sequence-Number: 1503 i caution you don't go for the single vol edition of stevens. though it is cheaper but would do you little good, its just too old. the progs don;t compile and the source code won't get ~~make~~ed. try if you can buy the new vol1. code for this, of course works r /\ |-| |_| |_ ============================================================== What a man has to go through for a piece of ass in this world is highly ridiculous ============================================================== ----- Original Message ----- From: "M K Saravanan" To: "linux india list" Sent: Monday, February 05, 2001 12:33 PM Subject: Re: [LIP] network programming links.. > On Sun, 4 Feb 2001, Amey wrote: > > > Could anyone point me to some resourceful links on network programming. > > * Unix network programming (Prev. single vol. edition) > * Unix network programming - Vol.I (New expanded edition) > * Unix Network PRogramming - Vol.II (ditto) > * Advanced Programming in Unix Environment > > all by Richard Stevens and all are avl. in Indian Edition. > > -- mks -- > > > > --------------------------------------------- > 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 Feb 5 11:54:04 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id A17B94A1B6; Mon, 5 Feb 2001 11:53:44 -0800 (PST) Received: from rahul ([61.11.246.132]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f15JO9617644; Tue, 6 Feb 2001 00:54:09 +0530 Message-ID: <006101c08fa8$9864e280$84f60b3d@rahul> From: "Rahul Jindal" To: , "shubhendu" <97co266@svrec.ernet.in>, "Sandeep Rikhi" , "pooja parkash" , , , , , , , "Dwivedi Ajay kumar" Subject: Date: Tue, 6 Feb 2001 00:49:12 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/49 X-Sequence-Number: 1504 hello world, just a small simple stupid query. i've started with stevens vol1 (networking apis). but i've realized that i do not have a previous experience programming in linux. can some of you suggest some books for the same. i did read tomswan's gnu c++ for linux, but it has nothing different from the "usual" c++. i mean where do i read about things like fork, ioctl exec et. al. also what toolkit do you suggest for building guis in linux. my current refernce on perl does not mention anything about guis. please mention some good books for the same, online tutorials as i have found of now are not very satisfying. hoping for a reply soon r /\ |-| |_| |_ ================================================ What a man has to do for a piece of ass in this world is highly ridiculous ================================================ From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 12:01:37 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 466594A28A; Mon, 5 Feb 2001 12:00:59 -0800 (PST) Received: from rahul ([61.11.246.132]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f15Jxo621364; Tue, 6 Feb 2001 01:29:54 +0530 Message-ID: <00bd01c08fad$8db77aa0$84f60b3d@rahul> From: "Rahul Jindal" To: Cc: Subject: lint Date: Tue, 6 Feb 2001 01:24:40 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/50 X-Sequence-Number: 1505 Can anyone please give a link to lint downloads. i have tried at many places including redhat.com but it does not work. r /\ |-| |_| |_ ============================================================== What a man has to go through for a piece of ass in this world is highly ridiculous ============================================================== From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 15:29:28 2001 Received: from cyrus.au.efi.com (unknown [192.68.228.4]) by www.aunet.org (Postfix) with ESMTP id 110E24A1D3; Mon, 5 Feb 2001 15:29:22 -0800 (PST) Received: from cyrus by cyrus.au.efi.com with local (Exim 3.22 #1 (Debian)) id 14PuxE-0002av-00; Tue, 06 Feb 2001 10:21:52 +1100 Date: Tue, 6 Feb 2001 10:21:52 +1100 From: Cyrus Patel To: Rahul Jindal Cc: linux-india-programmers@lists.linux-india.org, linux-india-general@lists.linux-india.org Subject: Re: lint Message-ID: <20010206102152.A9931@localhost> References: <00bd01c08fad$8db77aa0$84f60b3d@rahul> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <00bd01c08fad$8db77aa0$84f60b3d@rahul>; from rahulj@glide.net.in on Tue, Feb 06, 2001 at 01:24:40AM +0530 X-Archive-Number: 200102/51 X-Sequence-Number: 1506 Hi Rahul, I sugguest you to check out lclint. It's a standard part of Debian so I assume you should have no problems finding rpms for it. This is a description: Description: A tool for statically checking C programs. LCLint is a tool for statically checking C programs. With minimal effort, LCLint can be used as a better lint. If additional effort is invested adding annotations to programs, LCLint can perform stronger checks than can be done by any standard lint. LCLint does many of the traditional lint checks including unused declarations, type inconsistencies, use-before-definition, unreachable code, ignored return values, execution paths with no return, likely infinite loops, and fall-through cases. Our main focus, however, is on more powerful checks that are made possible by additional information given in source code annotations. Annotations are stylized comments that document certain assumptions about functions, variables, parameters, and types. They may be used to indicate where the representation of a user-defined type is hidden, to limit where a global variable may be used or modified, to constrain what a function implementation may do to its parameters, and to express checked assumptions about variables, types, structure fields, function parameters, and function results. In addition to the checks specifically enabled by annotations, many of the traditional lint checks are improved by exploiting this additional information. Rahul Jindal [rahulj@glide.net.in] wrote: > Can anyone please give a link to lint downloads. i have tried at many places > including redhat.com but it does not work. -- Cyrus Patel - cyrus.patel@efi.com Software Engineer Debian GNU/Linux Electronics for Imaging (EFI) (Woody) Sydney, Australia. ICQ: 50738541 http://www.cyrusp.com Mobile: +61 0402 266 731 cyrusmobile@linuxfreak.com From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 20:51:31 2001 Received: from debian (unknown [202.9.161.7]) by www.aunet.org (Postfix) with ESMTP id EECDB4A23E for ; Mon, 5 Feb 2001 20:51:22 -0800 (PST) Received: from bigfoot.com (localhost.localdomain [127.0.0.1]) by debian (Postfix) with ESMTP id 3B9C2732B9 for ; Tue, 6 Feb 2001 10:17:02 +0530 (IST) Message-ID: <3A7F81C6.9050108@bigfoot.com> Date: Tue, 06 Feb 2001 10:17:02 +0530 From: archan Organization: Open Source Software User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17 i686; en-US; 0.7) Gecko/20010119 X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: References: <006101c08fa8$9864e280$84f60b3d@rahul> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/52 X-Sequence-Number: 1507 Hi Rahul, Rahul Jindal wrote: > hello world, > just a small simple stupid query. > > i've started with stevens vol1 (networking apis). but i've realized that i > do not have a previous experience programming in linux. > can some of you suggest some books for the same. i did read tomswan's gnu > c++ for linux, but it has nothing different from the "usual" c++. > i mean where do i read about things like fork, ioctl exec et. al. First u read "Advanced Unix Programming" by stevens then "Unix Network Programming" .... > > also what toolkit do you suggest for building guis in linux. my current > refernce on perl does not mention anything about guis. > please mention some good books for the same, online tutorials as i have > found of now are not very satisfying. > I feel QT tool kit is the best one as it is completely in C++ and the concept of OOP is cool archan devrootp@bigfoot.com From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 21:05:07 2001 Received: from debian (unknown [202.9.161.7]) by www.aunet.org (Postfix) with ESMTP id 1821449F15 for ; Mon, 5 Feb 2001 21:04:35 -0800 (PST) Received: from bigfoot.com (localhost.localdomain [127.0.0.1]) by debian (Postfix) with ESMTP id 7F442732B9; Tue, 6 Feb 2001 10:30:19 +0530 (IST) Message-ID: <3A7F84E3.2080503@bigfoot.com> Date: Tue, 06 Feb 2001 10:30:19 +0530 From: archan Organization: Open Source Software User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17 i686; en-US; 0.7) Gecko/20010119 X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org, maricha Subject: Re: I cannot access my Root account after installing Mandrake References: <01020412034000.07218@ramakrishna.roc.com> <028201c08f83$213086d0$d169d6d2@kagha> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/53 X-Sequence-Number: 1508 This is because u have made the security of the system as High. So, login to one user account, then su to root and then use draksec to made the security as medium. then add the follwoing lines to /etc/securetty # # Mandrake-Security : if you remove this comment. remove the next line too. tty1 # Mandrake-Security : if you remove this comment. remove the next line too. tty2 # Mandrake-Security : if you remove this comment. remove the next line too. tty3 # Mandrake-Security : if you remove this comment. remove the next line too. tty4 # Mandrake-Security : if you remove this comment. remove the next line too. tty5 # Mandrake-Security : if you remove this comment. remove the next line too. tty6 archan devrootp@bigfoot.com maricha wrote: > Hi all, > I faced a peculiar problem today.. I installed Mandrake 7.0 onto my PIII 550 > system on an exclusive ex2fs partition.. > The machine is connected to five more Pc's and a HP-Unix server.. While > installing Mandrake I made my system to participate in that network along > with the HP Unix server.. Now all th installation is over and I rebooted..My > machine has also a Host name.. > Now after i rebooted i could not log into my Root account.. But i could > access my other user accounts.. I used the console mode and not the X-window > login.. > I reinstalled again and found the same problem.. I have installed Linux many > a times, but never let it participate in a network.. This is the first time > i connected it to a network..( or rather had an oppurtunity to experiment > with networking) > ALso when i logged into linux using my other login , i could ping into the > server and also do "ftp"... > But no root access.. I am highly puzzled.. > Can any one help me..??? > thanks > suri > Vizag From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 21:18:45 2001 Received: from donald.bk (unknown [203.145.133.2]) by www.aunet.org (Postfix) with ESMTP id DC7974A23E for ; Mon, 5 Feb 2001 21:18:40 -0800 (PST) Received: from Larry.bk (root@larry.bk [200.2.1.10]) by donald.bk (8.8.5/8.8.5) with ESMTP id KAA00220 for ; Tue, 6 Feb 2001 10:39:09 +0530 Received: from localhost (sreeji@localhost) by Larry.bk (8.9.3/8.8.5) with ESMTP id KAA06743 for ; Tue, 6 Feb 2001 10:39:14 +0530 Date: Tue, 6 Feb 2001 10:39:14 +0530 (IST) From: Sreeji K Das Reply-To: sreeji_k@yahoo.com To: "linux-india-programmers@lists.linux-india.org" Subject: Re: X Window programming query In-Reply-To: <20010205124004.1373.qmail@mailweb11.rediffmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/54 X-Sequence-Number: 1509 On 5 Feb 2001, Karthika Sivaramakrishnan wrote: > Hello! > I am developing a monitoring project in X Window. For a particular window whose ID I have obtained, I would like to know > > 1. When that window was opened (created). Can I find this by looking out for some specific event? How can I conclude that the window was opened as the result of some command (or click on an icon)? > 2. How can I associate a window to the program that runs it? For example, for the caption "Media Player", the corresponding program is "kmidi". Will these details be available in some system file? xwininfo (man xwininfo) may give u a lot of information about windows. But I don't think it gives any of the info which u need. But it may be worth having a look. Sreeji From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 21:26:07 2001 Received: from aukbc3.aukbc.org (unknown [203.197.142.200]) by www.aunet.org (Postfix) with ESMTP id 18BA14A01A for ; Mon, 5 Feb 2001 21:26:02 -0800 (PST) Received: from hanuman.aukbc.org (IDENT:mksarav@[192.168.2.37]) by aukbc3.aukbc.org (8.9.3/8.9.3) with ESMTP id LAA25229 for ; Tue, 6 Feb 2001 11:02:15 +0530 Date: Tue, 6 Feb 2001 11:02:16 +0530 (IST) From: M K Saravanan To: linux-india-programmers@lists.linux-india.org Subject: what is the meaning of "vertical tab" in C? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/55 X-Sequence-Number: 1510 hi, In all C books i found the term "vertical tab" '\v' while reading escape sequences. Horizontal tab i am able to understand. What is this vertical tab stands for? Where it is actually used? -- mks -- From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 22:12:52 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 6FA754A01D for ; Mon, 5 Feb 2001 22:12:50 -0800 (PST) Received: from (jace.imeme.net) [210.214.146.93] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14Q1IV-0006Fl-00; Mon, 05 Feb 2001 23:08:29 -0700 Message-Id: <5.0.2.1.0.20010206112418.00a86dd8@imeme.net> X-Sender: jace@imeme.net X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Tue, 06 Feb 2001 11:41:28 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: what is the meaning of "vertical tab" in C? In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/56 X-Sequence-Number: 1511 At 11:02 AM 2/6/2001 +0530, you wrote: >hi, > >In all C books i found the term "vertical tab" '\v' while reading escape >sequences. Horizontal tab i am able to understand. What is this vertical tab >stands for? Where it is actually used? Vertical tab is ASCII 12, also known as clear screen. Probably because in the old days it would tab downwards by 24 rows (the size of a standard Unix console), thereby making the screen go blank. This page has some info: http://dev.perl.org/archive/22/060 -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Mon Feb 5 22:13:06 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 688C84A32B for ; Mon, 5 Feb 2001 22:13:02 -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 f166GIb04008 for ; Tue, 6 Feb 2001 11:46:18 +0530 Message-ID: <3A7F9647.362F2989@pspl.co.in> Date: Tue, 06 Feb 2001 11:44:31 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: what is the meaning of "vertical tab" in C? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/57 X-Sequence-Number: 1512 It's page up and page down if I understand it correctly... Shridhar M K Saravanan wrote: > hi, > > In all C books i found the term "vertical tab" '\v' while reading escape > sequences. Horizontal tab i am able to understand. What is this vertical tab > stands for? Where it is actually used? From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 06:37:42 2001 Received: from mailweb22.rediffmail.com (unknown [203.199.83.146]) by www.aunet.org (Postfix) with SMTP id 2636E4A476 for ; Tue, 6 Feb 2001 06:16:24 -0800 (PST) Received: (qmail 2912 invoked by uid 510); 6 Feb 2001 14:04:40 -0000 Date: 6 Feb 2001 14:04:40 -0000 Message-ID: <20010206140440.2911.qmail@mailweb22.rediffmail.com> Received: from unknown (210.214.6.73) by rediffmail.com via HTTP; 06 Feb 2001 14:04:40 -0000 MIME-Version: 1.0 To: LIP Subject: Re: From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/58 X-Sequence-Number: 1513 ------------- Original Message -------------- "Rahul Jindal" wrote: From:"Rahul Jindal" Date:Tue, 6 Feb 2001 00:49:12 +0530 Subject: [LIP] i've started with stevens vol1 (networking apis). but i've realized that i do not have a previous experience programming in linux. can some of you suggest some books for the same. i did read tomswan's gnu c++ for linux, but it has nothing different from the "usual" c++. i mean where do i read about things like fork, ioctl exec et. al. also what toolkit do you suggest for building guis in linux. my current refernce on perl does not mention anything about guis. please mention some good books for the same, online tutorials as i have found of now are not very satisfying. hoping for a reply soon r /\ |-| |_| |_ ================================================ Here are the names of some books and links for X Window programming. 1. R. Scheifler and J. Gettys, "X Window System", Prentice-Hall of India - This is the X Window manual. Technical reference to Xlib, X protocol, ... 2. Eric F. Johnson & Kevin Reichard, "X Windows Applications Programming". 3. Johnson & Reichard, "Advanced X Window Application Programming", MIS Press. 4. "Teach yourself C for Linux Programming in 21 days", which comes with a CD full of exercises for 21 days! 5. www.rahul.net/kenton (for X Window). 6. http://toomuchlinux.org/ (for Linux). Regarding the toolkits, there are many of them. "gtk" and "Qt" are a few. These are available in the RedHat CD, along with extensive tutorial. - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 12:04:18 2001 Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61]) by www.aunet.org (Postfix) with ESMTP id 88C3B4A762 for ; Tue, 6 Feb 2001 11:38:12 -0800 (PST) Received: from dlep8.itg.ti.com ([157.170.134.88]) by gatekeep.ti.com (8.11.1/8.11.1) with ESMTP id f16JXnr00274 for ; Tue, 6 Feb 2001 13:33:49 -0600 (CST) Received: from dlep8.itg.ti.com (localhost [127.0.0.1]) by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id NAA20914 for ; Tue, 6 Feb 2001 13:33:48 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id NAA20868 for ; Tue, 6 Feb 2001 13:33:47 -0600 (CST) Received: from india.ti.com (apdsparc089 [157.87.88.140]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id BAA02682 for ; Wed, 7 Feb 2001 01:03:10 +0530 (IST) Message-ID: <3A805199.729F2010@india.ti.com> Date: Wed, 07 Feb 2001 01:03:45 +0530 From: Sumit Rangawala Organization: Texas Instruments X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers Subject: Book on Compiler Design Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/59 X-Sequence-Number: 1514 Hi Can anyone give me name of nice book to start with the concepts of Compiler Design . Any pointers would be an additional help. TIA Regards Sumit From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 12:04:33 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 1E01F4A77E; Tue, 6 Feb 2001 11:42:33 -0800 (PST) Received: from rahul ([61.11.246.59]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f16Ji0b01579; Wed, 7 Feb 2001 01:14:04 +0530 Message-ID: <001301c09074$23df0b80$3bf60b3d@rahul> From: "Rahul Jindal" To: Cc: Subject: 4 queries Date: Wed, 7 Feb 2001 01:06:10 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/60 X-Sequence-Number: 1515 1. difference b/w files rep. as fixed length records and variable length records. 2. diff b/w the tcp options MSS and Window Scale. 3. i think that "port numbers" are merely numbers, do i think right? 4. how do we set path in linux; what is the analogous to this (this is in windoze) PATH=%PATH%;. i don't want to overwrite the previous path. Answers to any of the above awaited Regards r /\ |-| |_| |_ ============================================================== What a man has to go through for a piece of ass in this world is highly ridiculous ============================================================== From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 19:06:16 2001 Received: from prv-mail25.provo.novell.com (prv-mail25.provo.novell.com [137.65.81.121]) by www.aunet.org (Postfix) with SMTP id 1E4094A17B for ; Tue, 6 Feb 2001 19:06:14 -0800 (PST) Received: from INET-PRV1-Message_Server by prv-mail25.provo.novell.com with Novell_GroupWise; Tue, 06 Feb 2001 20:01:36 -0700 Message-Id: X-Mailer: Novell GroupWise Internet Agent 5.5.5.1 Date: Tue, 06 Feb 2001 20:01:33 -0700 From: "Hari Krishna Pammi" To: Subject: Re: Book on Compiler Design Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Archive-Number: 200102/61 X-Sequence-Number: 1516 The best book is Aho Ullman and Ravi Sethi.=20 >>> sumitr@india.ti.com 02/07/01 01:03AM >>> Hi Can anyone give me name of nice book to start with the concepts of Compiler Design . Any pointers would be an additional help. TIA Regards Sumit --------------------------------------------- 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 Feb 6 19:27:34 2001 Received: from raksha.wipro.com (unknown [203.197.141.34]) by www.aunet.org (Postfix) with ESMTP id 749EB4A1DE for ; Tue, 6 Feb 2001 19:27:30 -0800 (PST) Received: from cdc2vwall (cdc2vwall.wipro.com [10.145.0.23]) by raksha.wipro.com (8.9.3/8.9.3) with SMTP id IAA16084 for ; Wed, 7 Feb 2001 08:54:38 +0530 (IST) Received: from 107664 ([10.145.2.22]) by arabhi.mail.wipro.com (Netscape Messaging Server 3.6) with SMTP id AAA33C3 for ; Wed, 7 Feb 2001 08:54:47 +0530 Message-ID: <001a01c090b7$ef57d6a0$1602910a@wipro.com> From: "Balaji Ankem" To: References: <3A805199.729F2010@india.ti.com> Subject: Re: Book on Compiler Design Date: Wed, 7 Feb 2001 09:12: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.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200102/62 X-Sequence-Number: 1517 Hi! the best book is Aho,Ullman and Ravisethi( Dragon book). ----- Original Message ----- From: Sumit Rangawala To: linux-india-programmers Sent: Wednesday, February 07, 2001 1:03 AM Subject: [LIP] Book on Compiler Design > Hi > Can anyone give me name of nice book to start with the concepts of > Compiler Design . > Any pointers would be an additional help. > > TIA > > Regards > Sumit > > > --------------------------------------------- > 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 Feb 6 20:00:19 2001 Received: from mulga.cs.mu.OZ.AU (mulga.cs.mu.OZ.AU [128.250.1.22]) by www.aunet.org (Postfix) with ESMTP id 18F6049F43 for ; Tue, 6 Feb 2001 20:00:11 -0800 (PST) Received: from queeg.cs.mu.OZ.AU (queeg.cs.mu.OZ.AU [128.250.26.136]) by mulga.cs.mu.OZ.AU with ESMTP id OAA08434 for ; Wed, 7 Feb 2001 14:55:44 +1100 (EST) Received: (from rsubr@localhost) by queeg.cs.mu.OZ.AU (8.9.3+Sun/8.9.3) id OAA28511 for linux-india-programmers@lists.linux-india.org; Wed, 7 Feb 2001 14:55:44 +1100 (EST) Date: Wed, 7 Feb 2001 14:55:44 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: Book on Compiler Design Message-ID: <20010207145544.A28296@students.cs.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from PHari@novell.com on Tue, Feb 06, 2001 at 08:01:33PM -0700 X-Archive-Number: 200102/63 X-Sequence-Number: 1518 Hari Krishna Pammi wrote (PHari@novell.com): >>> sumitr@india.ti.com 02/07/01 01:03AM >>> > Can anyone give me name of nice book to start with the concepts of > Compiler Design . > Any pointers would be an additional help. > > The best book is Aho Ullman and Ravi Sethi. > They're the authors; the bible is titled "Compilers: principles, techniques, and tools", Addison-Wesley. Make sure you grab the 2nd edition. IMHO, the APUE equivalent in compiler design is "Compiler Design in C", by Allen Holub, Prentice Hall pub. Extremely well organised and loaded with great examples. Both the books are a must read anyway. Good Luck! - Raja From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 20:42:31 2001 Received: from debian (unknown [202.9.161.7]) by www.aunet.org (Postfix) with ESMTP id AAB844A1DF for ; Tue, 6 Feb 2001 20:42:28 -0800 (PST) Received: from bigfoot.com (localhost.localdomain [127.0.0.1]) by debian (Postfix) with ESMTP id 38F9A73279 for ; Wed, 7 Feb 2001 10:08:02 +0530 (IST) Message-ID: <3A80D12A.1010401@bigfoot.com> Date: Wed, 07 Feb 2001 10:08:02 +0530 From: archan Organization: Open Source Software User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17 i686; en-US; 0.7) Gecko/20010119 X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Book on Compiler Design References: <3A805199.729F2010@india.ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/64 X-Sequence-Number: 1519 compiler design by "Holub". It is from PHI archan devrootp@bigfoot.com archanp@bigfoot.com Sumit Rangawala wrote: > Hi > Can anyone give me name of nice book to start with the concepts of > Compiler Design . > Any pointers would be an additional help. > > TIA > > Regards > Sumit > From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 22:01:35 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 898D84A51C for ; Tue, 6 Feb 2001 22:01:18 -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 f1764Rb32348 for ; Wed, 7 Feb 2001 11:34:27 +0530 Message-ID: <3A80E505.E409F3B9@pspl.co.in> Date: Wed, 07 Feb 2001 11:32:45 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: 4 queries References: <001301c09074$23df0b80$3bf60b3d@rahul> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/65 X-Sequence-Number: 1520 Hi Rahul Jindal wrote: > 1. difference b/w files rep. as fixed length records and variable length > records. Not any more. Basically you need to identify the file as sequential, indexed sequential or random access to have those terms any meaning. No modern OS except mainframe ones offer such feature. So this classification is no longer valid. It's same as binary v/s ASCII on unix. Dead as dodo.. > 3. i think that "port numbers" are merely numbers, do i think right? Well, yes. it's one of the parameters that identify a connection between machine A and machine B machine A i/p machine A port no. machine B i/p machine B port no.. IIRC, there are five right? Which one I left? > 4. how do we set path in linux; what is the analogous to this (this is in > windoze) PATH=%PATH%;. i don't want to overwrite the previous > path. > No idea... Anyway not a welcome question on a LI list... Bye Shridhar From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 22:08:38 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id D81DC4A23C for ; Tue, 6 Feb 2001 22:08:24 -0800 (PST) Received: from (jace.pobox.com) [210.212.160.84] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14QNht-0004N8-00; Tue, 06 Feb 2001 23:03:58 -0700 Message-Id: <5.0.2.1.0.20010207113048.00abfd90@imeme.net> X-Sender: (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 07 Feb 2001 11:32:25 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: Book on Compiler Design In-Reply-To: <20010207145544.A28296@students.cs.mu.oz.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/66 X-Sequence-Number: 1521 At 02:55 PM 2/7/2001 +1100, you wrote: >IMHO, the APUE equivalent in compiler design is "Compiler Design in C", by >Allen Holub, Prentice Hall pub. Extremely well organised and loaded with great >examples. The book's out of print in the US. Is the Indian edition still published? Someone was asking for a good book a few weeks back, and I didn't know if this was still available. -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 22:08:59 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.149]) by www.aunet.org (Postfix) with ESMTP id 49E194A69A for ; Tue, 6 Feb 2001 22:08:54 -0800 (PST) Received: (from amarg@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id LAA01761 for linux-india-programmers@lists.linux-india.org; Wed, 7 Feb 2001 11:41:59 +0530 Date: Wed, 7 Feb 2001 11:41:59 +0530 From: Amarendra GODBOLE To: linux-india-programmers@lists.linux-india.org Subject: Re: Book on Compiler Design Message-ID: <20010207114159.A1625@alice.bombay.retortsoft.com> References: <20010207145544.A28296@students.cs.mu.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010207145544.A28296@students.cs.mu.oz.au>; from rsubr@ecr.mu.oz.au on Wed, Feb 07, 2001 at 02:55:44PM +1100 X-Quote: "If you don't try to succeed, nobody will try to stop you." X-Friends: Shailesh, Shantanu, Sameer, Prachi, Dinesh, Sujeet. X-Home: http://ag.dnsq.org X-Organisation: Retort Software Pvt. Ltd., Mumbai. INDIA. X-Archive-Number: 200102/67 X-Sequence-Number: 1522 On Wed, Feb 07, 2001, the greycells of Raja Subramanian expressed: > IMHO, the APUE equivalent in compiler design is "Compiler Design in C", by > Allen Holub, Prentice Hall pub. Extremely well organised and loaded with great > examples. Hi, Could not find this book in any shop in Mumbai. Out of print. If anybody has a copy and stays in or around Mumbai, Pune, I would appreciate if he/she can loan it to me for a couple of days. Binand, do you have this book ? Cheers, -amar- (pronounced amunix) -- inspired by Binand's words. :-) -- ... and remember is is spelled L-I-N-U-X, but pronounced LEE-NUX --L.T. From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 22:40:59 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id 0D15A4A2FD for ; Tue, 6 Feb 2001 22:27:34 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id GAA11225 for ; Wed, 7 Feb 2001 06:05:46 GMT Received: from mailsweeper.wilco-int.com ([194.62.147.25]) by wilco-fw3.wilco-int.com; Wed, 07 Feb 2001 06:18:41 +0000 (GMT) Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Wed, 7 Feb 2001 06:15:23 +0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1LSF7WXQ; Wed, 7 Feb 2001 06:12:57 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id <1NW2FAM8>; Wed, 7 Feb 2001 11:44:26 +0530 Message-ID: From: Prashant Ramachandra To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: 4 queries Date: Wed, 7 Feb 2001 11:44:25 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/68 X-Sequence-Number: 1523 On Wednesday, February 07, 2001 11:33 AM, Shridhar Daithankar wrote: | > 4. how do we set path in linux; what is the analogous to this | > (this is in | > windoze) PATH=%PATH%;. i don't want to overwrite the | > previous | > path. | | No idea... Anyway not a welcome question on a LI list... PATH=$PATH:new_path -- Prashant TR Web: http://www.midpec.com/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From linux-india-programmers-owner@lists.linux-india.org Tue Feb 6 23:10:59 2001 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 304F44AA6A for ; Tue, 6 Feb 2001 22:35:32 -0800 (PST) Received: from accord-products.com (Vani [192.168.1.32]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id MAA09759 for ; Wed, 7 Feb 2001 12:00:02 +0530 Message-ID: <3A80EBBC.6F9832F5@accord-products.com> Date: Wed, 07 Feb 2001 12:01:24 +0530 From: "Vani R." Organization: Accord Software & Systems Pvt Ltd., X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: shared library problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/69 X-Sequence-Number: 1524 Hi All, I have a small problem linking to shared library. I have created a shared library using " gcc -shared -o mylib.so test.c" when i try to link it using the -L option specifying the directory where this library is along with -l option specifying the library name , it says , No such file or directory.Can anybody please help me in using shared libraries created by us. Thanking in advance, --vani-- -- Many of the life's failures are people who didn't realize how close they were to success when they gave up --Thomus Edison From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 00:18:17 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 918A64A602 for ; Tue, 6 Feb 2001 23:38:37 -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 f177fkb02058 for ; Wed, 7 Feb 2001 13:11:46 +0530 Message-ID: <3A80FBD3.61B94029@pspl.co.in> Date: Wed, 07 Feb 2001 13:10: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: 4 queries References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/70 X-Sequence-Number: 1525 Pardon me but does this work on windows? Shridhar Prashant Ramachandra wrote: > On Wednesday, February 07, 2001 11:33 AM, Shridhar Daithankar wrote: > | > 4. how do we set path in linux; what is the analogous to this > | > (this is in > | > windoze) PATH=%PATH%;. i don't want to overwrite the > | > previous > | > path. > | > | No idea... Anyway not a welcome question on a LI list... > > PATH=$PATH:new_path From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 00:35:27 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 3ECC04A4E0 for ; Wed, 7 Feb 2001 00:12:55 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id f178G3b02815 for ; Wed, 7 Feb 2001 13:46:03 +0530 Message-ID: <3A8103DD.12C1210@pspl.co.in> Date: Wed, 07 Feb 2001 13:44:21 +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 library problem References: <3A80EBBC.6F9832F5@accord-products.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/71 X-Sequence-Number: 1526 use '-soname name -olibname.so' in flags and then try to link it with -lname. HTH Bye Shridhar "Vani R." wrote: > Hi All, > > I have a small problem linking to shared library. > I have created a shared library using " gcc -shared -o mylib.so test.c" > when i try to link it using the -L option specifying the directory where > this library is along with -l option specifying the library name , it > says , No such file or directory.Can anybody please help me in using > shared libraries created by us. From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 01:01:40 2001 Received: from cantor.morelinux.net (cantor.morelinux.net [203.197.87.98]) by www.aunet.org (Postfix) with ESMTP id 298CA4A30A for ; Wed, 7 Feb 2001 00:53:14 -0800 (PST) Received: from morelinux.com (cygnus.morelinux.co.in [192.168.1.66]) by cantor.morelinux.net (8.9.3/8.9.3) with ESMTP id OAA10263 for ; Wed, 7 Feb 2001 14:43:34 +0530 Message-ID: <3A810934.2FB4441@morelinux.com> Date: Wed, 07 Feb 2001 14:07:08 +0530 From: ambarish pathak X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.13-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: [OT] Re: 4 queries References: <3A80FBD3.61B94029@pspl.co.in> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/72 X-Sequence-Number: 1527 [aded OT to subject] Shridhar Daithankar wrote: > Pardon me but does this work on windows? let initial PATH hav "c:\windows" now to add "c:\dos" to the path, i do PATH=%PATH%;c:\dos; From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 01:02:56 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 1D0654A1EC for ; Wed, 7 Feb 2001 00:58:22 -0800 (PST) Received: from (jace.pobox.com) [210.214.146.20] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14QQMC-0006F9-00; Wed, 07 Feb 2001 01:53:56 -0700 Message-Id: <5.0.2.1.0.20010207142605.00ac6638@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 07 Feb 2001 14:27:03 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: 4 queries In-Reply-To: <3A80FBD3.61B94029@pspl.co.in> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/73 X-Sequence-Number: 1528 At 01:10 PM 2/7/2001 +0530, you wrote: >Pardon me but does this work on windows? > > PATH=$PATH:new_path Windows is PATH=%PATH%;new_path But Rahul was quoting that as an example and asking for the equivalent on Linux, which is PATH=$PATH:new_path -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 01:02:57 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 5F1CF4A457 for ; Wed, 7 Feb 2001 00:55:53 -0800 (PST) Received: from (jace.pobox.com) [210.214.146.20] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14QQJv-0006Ew-00; Wed, 07 Feb 2001 01:51:27 -0700 Message-Id: <5.0.2.1.0.20010207141034.00aca288@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 07 Feb 2001 14:11:31 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: Book on Compiler Design In-Reply-To: <20010207114159.A1625@alice.bombay.retortsoft.com> References: <20010207145544.A28296@students.cs.mu.oz.au> <20010207145544.A28296@students.cs.mu.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/74 X-Sequence-Number: 1529 At 11:41 AM 2/7/2001 +0530, you wrote: >Could not find this book in any shop in Mumbai. Out of print. If anybody >has a >copy and stays in or around Mumbai, Pune, I would appreciate if he/she can >loan >it to me for a couple of days. I have a copy, but someone has already asked for it. Only problem is, I'm in Goa, the book's in Bombay, and the guy I'm giving it to is in Bangalore. -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 01:03:09 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 4DBAD4A188 for ; Wed, 7 Feb 2001 00:55:39 -0800 (PST) Received: from (jace.pobox.com) [210.214.146.20] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14QQJL-0006Ew-00; Wed, 07 Feb 2001 01:51:03 -0700 Message-Id: <5.0.2.1.0.20010207140603.00a5ce08@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 07 Feb 2001 14:09:56 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: 4 queries In-Reply-To: <3A80E505.E409F3B9@pspl.co.in> References: <001301c09074$23df0b80$3bf60b3d@rahul> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/75 X-Sequence-Number: 1530 At 11:32 AM 2/7/2001 +0530, you wrote: >Rahul Jindal wrote: > > > 1. difference b/w files rep. as fixed length records and variable length > > records. > >Not any more. Basically you need to identify the file as sequential, indexed >sequential or random access to have those terms any meaning. No modern OS >except >mainframe ones offer such feature. So this classification is no longer valid. Holy Molly! We used to work with "record" type of files at one time. It's all coming back to me now... :) > > 4. how do we set path in linux; what is the analogous to this (this is in > > windoze) PATH=%PATH%;. i don't want to overwrite the previous > > path. > > > >No idea... Anyway not a welcome question on a LI list... Now I know why my attempts to try "echo $PATH$" in Windows weren't working... Anyway: export PATH="$PATH:/path/to/timbuktu" -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 01:03:19 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id DE34D4A296 for ; Wed, 7 Feb 2001 00:58:41 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id IAA15300 for ; Wed, 7 Feb 2001 08:40:12 GMT Received: from mailsweeper.wilco-int.com ([194.62.147.25]) by wilco-fw3.wilco-int.com; Wed, 07 Feb 2001 08:53:07 +0000 (GMT) Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Wed, 7 Feb 2001 08:49:49 +0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1LSF7YSQ; Wed, 7 Feb 2001 08:47:23 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id <1NW2FAWK>; Wed, 7 Feb 2001 14:18:52 +0530 Message-ID: From: Prashant Ramachandra To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: 4 queries Date: Wed, 7 Feb 2001 14:18:51 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/74 X-Sequence-Number: 1531 On Wednesday, February 07, 2001 1:10 PM, Shridhar Daithankar wrote: | Pardon me but does this work on windows? | | Shridhar | | Prashant Ramachandra wrote: | | > PATH=$PATH:new_path Oh, sorry. I _assumed_ we were talking about Linux. Should have read it more carefully. Anyway, PATH=%PATH%;new_path is the right one for Windows. -- Prashant TR Web: http://www.midpec.com/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 01:03:20 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 879244A690 for ; Wed, 7 Feb 2001 00:56:16 -0800 (PST) Received: from (jace.pobox.com) [210.214.146.20] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14QQKH-0006Ew-00; Wed, 07 Feb 2001 01:51:50 -0700 Message-Id: <5.0.2.1.0.20010207141208.00ad2b98@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 07 Feb 2001 14:14:06 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: shared library problem In-Reply-To: <3A80EBBC.6F9832F5@accord-products.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/76 X-Sequence-Number: 1532 At 12:01 PM 2/7/2001 +0530, you wrote: >I have a small problem linking to shared library. >I have created a shared library using " gcc -shared -o mylib.so test.c" >when i try to link it using the -L option specifying the directory where >this library is along with -l option specifying the library name , it >says , No such file or directory.Can anybody please help me in using >shared libraries created by us. Library files should be prefixed with "lib". Make your file libmylib.so, and try your command again (without prefixing "lib" in the command line). -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 05:48:37 2001 Received: from alice.pune.retortsoft.com (unknown [202.54.80.104]) by www.aunet.org (Postfix) with ESMTP id F09294A00F for ; Wed, 7 Feb 2001 05:39:21 -0800 (PST) Received: from jediland.pune.retortsoft.com (jediland.pune.retortsoft.com.200.168.192.in-addr.arpa [192.168.200.33] (may be forged)) by alice.pune.retortsoft.com (8.9.3/8.9.3) with ESMTP id SAA07680 for ; Wed, 7 Feb 2001 18:54:29 +0530 Received: (from binand@localhost) by jediland.pune.retortsoft.com (8.9.3/8.9.3) id SAA02020 for linux-india-programmers@lists.linux-india.org; Wed, 7 Feb 2001 18:54:45 +0530 Date: Wed, 7 Feb 2001 18:54:45 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: Book on Compiler Design Message-ID: <20010207185445.D1822@pune.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20010207145544.A28296@students.cs.mu.oz.au> <20010207114159.A1625@alice.bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <20010207114159.A1625@alice.bombay.retortsoft.com>; from amarg@bombay.retortsoft.com on Wed, Feb 07, 2001 at 11:41:59AM +0530 X-Operating-System: Linux 2.2.16-1 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200102/77 X-Sequence-Number: 1533 Amarendra GODBOLE forced the electrons to say: > > IMHO, the APUE equivalent in compiler design is "Compiler Design in C", by > > Allen Holub, Prentice Hall pub. Extremely well organised and loaded with great > > examples. > > Hi, > > Could not find this book in any shop in Mumbai. Out of print. If anybody has a > copy and stays in or around Mumbai, Pune, I would appreciate if he/she can loan > it to me for a couple of days. > > Binand, do you have this book ? No. But you can find it in IITB central library. But most likely it won't be available - being the authoritative text for Compiler Design, and IITB is running a course this semester on Compilers. :-) Binand From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 06:39:04 2001 Received: from mailweb15.rediffmail.com (unknown [203.199.83.27]) by www.aunet.org (Postfix) with SMTP id 86D674A11E for ; Wed, 7 Feb 2001 06:08:06 -0800 (PST) Received: (qmail 17124 invoked by uid 510); 7 Feb 2001 13:55:33 -0000 Date: 7 Feb 2001 13:55:33 -0000 Message-ID: <20010207135533.17123.qmail@mailweb15.rediffmail.com> Received: from unknown (202.144.64.4) by rediffmail.com via HTTP; 07 Feb 2001 13:55:33 -0000 MIME-Version: 1.0 To: LIP Subject: Keytable and event queue From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/78 X-Sequence-Number: 1534 Hello! What does "keytable" mean in Linux? What is the bit vector of the keyboard and what is its significance? How can I associate a keypress with the actual value? Also, I would like to get the following clarified. I have written a program in C to find the length of the event queue using Xlib. #include #include #include int main() { char *displayname = NULL; Display *dpy; dpy = XOpenDisplay (displayname); if (!dpy) { printf("Error opening display.\n"); exit(1); } printf("%d",dpy->qlen); XCloseDisplay(dpy); return 0; } The program does not compile and I get the error "Dereferencing pointer to incomplete type" in the printf statement. Am I not allowed access to the event queue? What is the mistake in the above program? Waiting for a reply, -Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 08:04:06 2001 Received: from inbound.satyam.net.in (unknown [202.144.76.6]) by www.aunet.org (Postfix) with ESMTP id C44334A75A for ; Wed, 7 Feb 2001 07:46:44 -0800 (PST) Received: from isocor.satyam.net.in (202.144.76.4) by inbound.satyam.net.in (NPlex 4.5.051) id 3A7E9A2F00042B0A for linux-india-programmers@lists.linux-india.org; Wed, 7 Feb 2001 15:35:41 +0000 Received: from localhost.localdomain (210.214.24.103) by isocor.satyam.net.in (NPlex 4.5.051) id 3A7E9A3000089B39 for linux-india-programmers@lists.linux-india.org; Wed, 7 Feb 2001 15:39:37 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id VAA02137 for ; Wed, 7 Feb 2001 21:00:52 +0530 From: Sukrit K Mehra Reply-To: sukrit@whoever.com To: linux-india-programmers@lists.linux-india.org Subject: python and gui Date: Wed, 7 Feb 2001 20:53:35 +0530 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <01020721005203.00494@localhost.localdomain> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/79 X-Sequence-Number: 1535 fetchmailconf, by esr is made in python. Has he used qt for the interface? From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 09:30:01 2001 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 0D1974A5BA; Wed, 7 Feb 2001 09:14:18 -0800 (PST) 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 WAA27903; Wed, 7 Feb 2001 22:43:34 +0530 (IST) Received: from ajayd.h1.iitk.ac.in ([172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id WAA05327; Wed, 7 Feb 2001 22:30:47 +0530 (IST) Date: Wed, 7 Feb 2001 22:40:15 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-help@lists.linux-india.org Cc: linux-india-programmers@lists.linux-india.org Subject: Broadcast fundamentals Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/80 X-Sequence-Number: 1536 hi all, I need some pointers about the TCP and UDP broadcasts. Although I know the theory behind them (have read the net-howto etc..) I have never come across some source code which could make my funda's clearer. kindly help. thanks in advance. -- #!!! 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 Wed Feb 7 12:07:12 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 51D564A736 for ; Wed, 7 Feb 2001 10:15:47 -0800 (PST) Received: from rahul ([61.11.246.205]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f17IHJb30924 for ; Wed, 7 Feb 2001 23:47:19 +0530 Message-ID: <01a401c09131$2e60e160$277483ca@rahul> From: "Rahul Jindal" To: References: <3A80FBD3.61B94029@pspl.co.in> Subject: Re: 4 queries Date: Wed, 7 Feb 2001 23:32:23 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/81 X-Sequence-Number: 1537 yes it does r /\ |-| |_| |_ ============================================================== What a man has to go through for a piece of ass in this world is highly ridiculous ============================================================== ----- Original Message ----- From: "Shridhar Daithankar" To: Sent: Wednesday, February 07, 2001 1:10 PM Subject: Re: [LIP] 4 queries > Pardon me but does this work on windows? > > Shridhar > > Prashant Ramachandra wrote: > > > On Wednesday, February 07, 2001 11:33 AM, Shridhar Daithankar wrote: > > | > 4. how do we set path in linux; what is the analogous to this > > | > (this is in > > | > windoze) PATH=%PATH%;. i don't want to overwrite the > > | > previous > > | > path. > > | > > | No idea... Anyway not a welcome question on a LI list... > > > > PATH=$PATH:new_path > > > --------------------------------------------- > 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 Feb 7 12:07:21 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id B5F494A6A0 for ; Wed, 7 Feb 2001 10:15:44 -0800 (PST) Received: from rahul ([61.11.246.205]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f17IHIb30920 for ; Wed, 7 Feb 2001 23:47:18 +0530 Message-ID: <01a301c09131$2d9f1800$277483ca@rahul> From: "Rahul Jindal" To: References: <001301c09074$23df0b80$3bf60b3d@rahul> <3A80E505.E409F3B9@pspl.co.in> Subject: Re: 4 queries Date: Wed, 7 Feb 2001 23:30:40 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/82 X-Sequence-Number: 1538 Sorry for that lolly pop question. Actually, i simply copy-pasted the lines from a file, otherwise any elementary book wud have told me that. i realize that such a stupid question might have "offended" some people and i render an apology for that :-) r /\ |-| |_| |_ ============================================================== What a man has to go through for a piece of ass in this world is highly ridiculous ============================================================== ----- Original Message ----- From: "Shridhar Daithankar" To: Sent: Wednesday, February 07, 2001 11:32 AM Subject: Re: [LIP] 4 queries > Hi > > Rahul Jindal wrote: > > > 1. difference b/w files rep. as fixed length records and variable length > > records. > > Not any more. Basically you need to identify the file as sequential, indexed > sequential or random access to have those terms any meaning. No modern OS except > mainframe ones offer such feature. So this classification is no longer valid. > > It's same as binary v/s ASCII on unix. Dead as dodo.. > > > 3. i think that "port numbers" are merely numbers, do i think right? > > Well, yes. it's one of the parameters that identify a connection between machine > A and machine B > > machine A i/p > machine A port no. > machine B i/p > machine B port no.. > > IIRC, there are five right? Which one I left? > > > 4. how do we set path in linux; what is the analogous to this (this is in > > windoze) PATH=%PATH%;. i don't want to overwrite the previous > > path. > > > > No idea... Anyway not a welcome question on a LI list... > > Bye > Shridhar > > > --------------------------------------------- > 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 Feb 7 12:07:56 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 5CEE54A74E for ; Wed, 7 Feb 2001 10:15:48 -0800 (PST) Received: from rahul ([61.11.246.205]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f17IHMb30928 for ; Wed, 7 Feb 2001 23:47:22 +0530 Message-ID: <01a501c09131$2fe166e0$277483ca@rahul> From: "Rahul Jindal" To: References: <20010207135533.17123.qmail@mailweb15.rediffmail.com> Subject: Re: Keytable and event queue Date: Wed, 7 Feb 2001 23:38: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.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/83 X-Sequence-Number: 1539 don't really have the answer to your question but i too encountered this error message. the reason, in my case was that i had not include the file that had the structure defiend (struct dirent) try including this also #include r /\ |-| |_| |_ ============================================================== What a man has to go through for a piece of ass in this world is highly ridiculous ============================================================== ----- Original Message ----- From: "Karthika Sivaramakrishnan" To: "LIP" Sent: Wednesday, February 07, 2001 7:25 PM Subject: [LIP] Keytable and event queue > Hello! > What does "keytable" mean in Linux? What is the bit vector of the keyboard and what is its significance? How can I associate a keypress with the actual value? > > Also, I would like to get the following clarified. I have written a program in C to find the length of the event queue using Xlib. > > #include > #include > #include > > int main() > { > char *displayname = NULL; > Display *dpy; > > dpy = XOpenDisplay (displayname); > if (!dpy) > { > printf("Error opening display.\n"); > exit(1); > } > printf("%d",dpy->qlen); > XCloseDisplay(dpy); > return 0; > } > > The program does not compile and I get the error "Dereferencing pointer to incomplete type" in the printf statement. Am I not allowed access to the event queue? What is the mistake in the above program? > > Waiting for a reply, > -Karthika > > _____________________________________________________ > Chat with your friends as soon as they come online. Get Rediff Bol at > http://bol.rediff.com > > > > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 20:29:26 2001 Received: from hotmail.com (f122.law8.hotmail.com [216.33.241.122]) by www.aunet.org (Postfix) with ESMTP id A9CB04A318 for ; Wed, 7 Feb 2001 20:28:28 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 7 Feb 2001 20:23:59 -0800 Received: from 203.197.166.198 by lw8fd.law8.hotmail.msn.com with HTTP; Thu, 08 Feb 2001 04:23:59 GMT X-Originating-IP: [203.197.166.198] From: "Ajay Kurapati" To: linux-india-programmers@lists.linux-india.org Subject: DOUBT Date: Thu, 08 Feb 2001 09:53:59 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Feb 2001 04:23:59.0486 (UTC) FILETIME=[F56201E0:01C09186] X-Archive-Number: 200102/84 X-Sequence-Number: 1540 Hello, I want to know whether we can take printout of the data we have entered in Visual Basic directly from the form rather from the data report.Please reply. Bye ajay _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 21:49:28 2001 Received: from tower.ti.com (tower.ti.com [192.94.94.5]) by www.aunet.org (Postfix) with ESMTP id 5BB694A2E3 for ; Wed, 7 Feb 2001 21:42:51 -0800 (PST) Received: from dlep6.itg.ti.com ([157.170.188.9]) by tower.ti.com (8.11.1/8.11.1) with ESMTP id f185cLr13402 for ; Wed, 7 Feb 2001 23:38:21 -0600 (CST) Received: from dlep6.itg.ti.com (localhost [127.0.0.1]) by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id XAA09424 for ; Wed, 7 Feb 2001 23:38:21 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id XAA09395 for ; Wed, 7 Feb 2001 23:38:19 -0600 (CST) Received: from india.ti.com (apdsparc089 [157.87.88.140]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id LAA22456 for ; Thu, 8 Feb 2001 11:07:41 +0530 (IST) Message-ID: <3A8230C9.DD1BFC1A@india.ti.com> Date: Thu, 08 Feb 2001 11:08:17 +0530 From: Sumit Rangawala Organization: Texas Instruments X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: shared library problem References: <3A80EBBC.6F9832F5@accord-products.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/85 X-Sequence-Number: 1541 Hi Vani just do gcc -o and it will work . Its not necessary for you to have the name of the libfile to start with "lib" Regards Sumit "Vani R." wrote: > Hi All, > > I have a small problem linking to shared library. > I have created a shared library using " gcc -shared -o mylib.so test.c" > when i try to link it using the -L option specifying the directory where > this library is along with -l option specifying the library name , it > says , No such file or directory.Can anybody please help me in using > shared libraries created by us. > > Thanking in advance, > --vani-- > > -- > Many of the life's failures are people who didn't realize how close they > were to success > when they gave up > --Thomus Edison > > --------------------------------------------- > 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 Feb 7 22:25:54 2001 Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61]) by www.aunet.org (Postfix) with ESMTP id 031594A5BF for ; Wed, 7 Feb 2001 21:45:44 -0800 (PST) Received: from dlep7.itg.ti.com ([157.170.134.103]) by gatekeep.ti.com (8.11.1/8.11.1) with ESMTP id f185fBr08722 for ; Wed, 7 Feb 2001 23:41:11 -0600 (CST) 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 XAA13947 for ; Wed, 7 Feb 2001 23:41:11 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id XAA13919 for ; Wed, 7 Feb 2001 23:41:09 -0600 (CST) Received: from india.ti.com (apdsparc089 [157.87.88.140]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id LAA22773 for ; Thu, 8 Feb 2001 11:10:32 +0530 (IST) Message-ID: <3A823174.E4FBE584@india.ti.com> Date: Thu, 08 Feb 2001 11:11:08 +0530 From: Sumit Rangawala Organization: Texas Instruments X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers Subject: C compiler Issue Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/86 X-Sequence-Number: 1542 Hi all, The compiler doesnot give an error in the following code section. Is this ansi C compatible? I have tried this out with both gcc and sun compiler on solaris. The result is the same -- no error. And when executed, the result is 18. There is a space between the two + sign. #include int main() { int i=5,j=6,k=7; printf("%d\n", i + 6 + + k); ^^^^ } TIA Regards Sumit From linux-india-programmers-owner@lists.linux-india.org Wed Feb 7 22:36:02 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id AF0DB4A404 for ; Wed, 7 Feb 2001 22:07:04 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id f1869Lb28886 for ; Thu, 8 Feb 2001 11:39:21 +0530 Message-ID: <3A8237B0.745BDDCF@pspl.co.in> Date: Thu, 08 Feb 2001 11:37:44 +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: DOUBT References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/87 X-Sequence-Number: 1543 Sorry to disappoint you but do you know what does it mean by /dev/null? Shridhar Sorry list... Couldn't resist that... Ajay Kurapati wrote: > Hello, > I want to know whether we can take printout of the data we have > entered in Visual Basic directly from the form rather from the data > report.Please reply. > Bye From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 00:02:46 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 52F054A493 for ; Wed, 7 Feb 2001 23:40:33 -0800 (PST) Received: from (jace.pobox.com) [210.212.160.157] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14QlcT-00040c-00; Thu, 08 Feb 2001 00:35:59 -0700 Message-Id: <5.0.2.1.0.20010208130429.00ac1d00@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 08 Feb 2001 13:05:54 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: python and gui In-Reply-To: <01020721005203.00494@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/88 X-Sequence-Number: 1544 At 08:53 PM 2/7/2001 +0530, you wrote: >fetchmailconf, by esr is made in python. >Has he used qt for the interface? No, fetchmailconf uses Tcl. Tcl is the standard GUI for Python, but bindings for Gtk+/GNOME are available too. I'm not sure about the KDE camp, but there must be bindings available there too. -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 00:02:55 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id A5C7A4A4A8 for ; Wed, 7 Feb 2001 23:40:36 -0800 (PST) Received: from (jace.pobox.com) [210.212.160.157] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14Qlcb-00040c-00; Thu, 08 Feb 2001 00:36:07 -0700 Message-Id: <5.0.2.1.0.20010208130608.00ac49d0@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 08 Feb 2001 13:07:17 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: Broadcast fundamentals In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/89 X-Sequence-Number: 1545 At 10:40 PM 2/7/2001 +0530, you wrote: >hi all, > I need some pointers about the TCP and UDP broadcasts. Although I >know the theory behind them (have read the net-howto etc..) I have never >come across some source code which could make my funda's clearer. >kindly help. This is some code I wrote last year that does a UDP broadcast. I'm not sure how TCP broadcasts work: http://jace.imeme.net/tech/code/qscan.c.html -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 01:13:56 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.149]) by www.aunet.org (Postfix) with ESMTP id 1B3BF4A858 for ; Thu, 8 Feb 2001 00:21:51 -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 NAA13652 for ; Thu, 8 Feb 2001 13:52:10 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id NAA03303 for linux-india-programmers@lists.linux-india.org; Thu, 8 Feb 2001 13:35:36 +0530 Date: Thu, 8 Feb 2001 13:35:36 +0530 From: "Binand Raj S." To: linux-india-programmers Subject: Re: C compiler Issue Message-ID: <20010208133535.G665@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers References: <3A823174.E4FBE584@india.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <3A823174.E4FBE584@india.ti.com>; from sumitr@india.ti.com on Thu, Feb 08, 2001 at 11:11:08AM +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: 200102/90 X-Sequence-Number: 1546 Sumit Rangawala forced the electrons to say: > The compiler doesnot give an error in the following code section. Is > this ansi C compatible? I have tried this out with both gcc and sun > compiler on solaris. The result is the same -- no error. And when > executed, the result is 18. > There is a space between the two + sign. > > #include > int main() > { > int i=5,j=6,k=7; > printf("%d\n", i + 6 + + k); > ^^^^ > } Read up on the unary + operator in your C book. If you don't have one, get Kernighan & Ritchie, 2nd ed. The code, in its entirety, is not ANSI compatible. However, the statements in the main() function are. Binand From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 01:17:07 2001 Received: from web4501.mail.yahoo.com (web4501.mail.yahoo.com [216.115.105.62]) by www.aunet.org (Postfix) with SMTP id 4EB644A36D for ; Thu, 8 Feb 2001 00:47:47 -0800 (PST) Message-ID: <20010208084317.1951.qmail@web4501.mail.yahoo.com> Received: from [202.141.63.90] by web4501.mail.yahoo.com; Thu, 08 Feb 2001 00:43:17 PST Date: Thu, 8 Feb 2001 00:43:17 -0800 (PST) From: Jayanth Kishoor Subject: void pointer To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200102/91 X-Sequence-Number: 1547 Hi, Is there any way to use a void pointer to a function. Regards, Jayanth. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 02:24:04 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 1FEC34A524 for ; Thu, 8 Feb 2001 02:00:15 -0800 (PST) Received: from Basel (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with SMTP id f18A1Pb02358 for ; Thu, 8 Feb 2001 15:31:25 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Shridhar Daithankar To: linux-india-programmers@lists.linux-india.org Subject: Re: void pointer Date: Thu, 8 Feb 2001 15:29:48 +0530 X-Mailer: KMail [version 1.2] References: <20010208084317.1951.qmail@web4501.mail.yahoo.com> In-Reply-To: <20010208084317.1951.qmail@web4501.mail.yahoo.com> MIME-Version: 1.0 Message-Id: <01020815294801.00793@Basel> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/92 X-Sequence-Number: 1548 Hi Yes. man dlopen for excellent example. Bye Shridhar On Thursday 08 February 2001 14:13, you wrote: > Hi, > Is there any way to use a void pointer to a function. From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 03:39:51 2001 Received: from mail.cse.iitk.ac.in (unknown [210.212.54.4]) by www.aunet.org (Postfix) with ESMTP id 11B5D4A447 for ; Thu, 8 Feb 2001 03:22:43 -0800 (PST) Received: from cseultra2.cse.iitk.ac.in (cseultra2 [172.31.16.2]) by mail.cse.iitk.ac.in (8.9.3/8.9.3) with ESMTP id QAA25324 for ; Thu, 8 Feb 2001 16:46:28 +0530 Received: from csews4.cse.iitk.ac.in (IDENT:samba@csews4.cse.iitk.ac.in [172.31.18.4]) by cseultra2.cse.iitk.ac.in (8.10.1/8.10.1) with ESMTP id f18BCXJ17778 for ; Thu, 8 Feb 2001 16:42:33 +0530 (IST) Date: Thu, 8 Feb 2001 16:55:57 +0000 (/etc/localtime) From: "Sambasiva Rao.B" To: linux-india-programmers Subject: Re: C compiler Issue In-Reply-To: <3A823174.E4FBE584@india.ti.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/93 X-Sequence-Number: 1549 On Thu, 8 Feb 2001, Sumit Rangawala wrote: > compiler on solaris. The result is the same -- no error. And when > executed, the result is 18. > There is a space between the two + sign. > > #include > int main() > { > int i=5,j=6,k=7; > printf("%d\n", i + 6 + + k); > ^^^^ > } The lexical analyser treats the first + as binary operator (because of space). It is equivalent to (i+6)+ (+ k). Hence value is 18. If there is no space it should give an error. Thus i + + + + j = i+j , i + ++ j = i + (++j) ,i ++ +j = i++ + j(++ to i) --samba From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 03:47:17 2001 Received: from inbound.satyam.net.in (unknown [202.144.76.6]) by www.aunet.org (Postfix) with ESMTP id B66D14A5D7 for ; Thu, 8 Feb 2001 03:26:56 -0800 (PST) Received: from isocor.satyam.net.in (202.144.76.4) by inbound.satyam.net.in (NPlex 4.5.051) id 3A7E9A2F000544A9 for linux-india-programmers@lists.linux-india.org; Thu, 8 Feb 2001 11:15:41 +0000 Received: from localhost.localdomain (210.214.24.146) by isocor.satyam.net.in (NPlex 4.5.051) id 3A7E9A30000B6A29 for linux-india-programmers@lists.linux-india.org; Thu, 8 Feb 2001 11:19:37 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id PAA01045 for ; Thu, 8 Feb 2001 15:28:33 +0530 From: Sukrit K Mehra Reply-To: sukrit@whoever.com To: linux-india-programmers@lists.linux-india.org Subject: scan codes of key hit Date: Thu, 8 Feb 2001 15:27:40 +0530 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <01020815283200.01043@localhost.localdomain> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/94 X-Sequence-Number: 1550 How can i get the scan code of a key hit in linux *using C* From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 05:06:38 2001 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id BF6454A15F for ; Thu, 8 Feb 2001 03:40:37 -0800 (PST) Received: from accord-products.com (Vani [192.168.1.32]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id RAA31782 for ; Thu, 8 Feb 2001 17:05:19 +0530 Message-ID: <3A828475.E2DF7FEC@accord-products.com> Date: Thu, 08 Feb 2001 17:05:17 +0530 From: "Vani R." Organization: Accord Software & Systems Pvt Ltd., X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: shared library problem References: <3A80EBBC.6F9832F5@accord-products.com> <3A8230C9.DD1BFC1A@india.ti.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/95 X-Sequence-Number: 1551 Hi sumit, That's fine. It works for me also. but what i want is using -L and -l options. I am giving the library path where the .so file is existing and -l option to specify the library name ( mylib.so ) . But when i use these options , i am getting error as "mylib.so - no such file or directory" . What should i do ?? Thanks , --vani-- Sumit Rangawala wrote: > Hi Vani > just do gcc -o and it will work > . > Its not necessary for you to have the name of the libfile to start with > "lib" > > Regards > Sumit > > "Vani R." wrote: > > > Hi All, > > > > I have a small problem linking to shared library. > > I have created a shared library using " gcc -shared -o mylib.so test.c" > > when i try to link it using the -L option specifying the directory where > > this library is along with -l option specifying the library name , it > > says , No such file or directory.Can anybody please help me in using > > shared libraries created by us. > > > > Thanking in advance, > > --vani-- > > > > -- > > Many of the life's failures are people who didn't realize how close they > > were to success > > when they gave up > > --Thomus Edison > > > > --------------------------------------------- > > 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 -- Many of the life's failures are people who didn't realize how close they were to success when they gave up --Thomus Edison From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 05:09:04 2001 Received: from aditya.pune.gsslco.co.in (unknown [203.129.226.254]) by www.aunet.org (Postfix) with ESMTP id 95FAB4A708 for ; Thu, 8 Feb 2001 03:51:05 -0800 (PST) Received: from phoenix.pune.gsslco.co.in (IDENT:sreangsua@phoenix.pune.gsslco.co.in [202.54.80.57]) by aditya.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id RAA27764 for ; Thu, 8 Feb 2001 17:21:42 +0530 (IST) Received: from localhost (sreangsua@localhost) by phoenix.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id RAA22208 for ; Thu, 8 Feb 2001 17:08:14 +0530 Date: Thu, 8 Feb 2001 17:08:14 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re: python and gui In-Reply-To: <5.0.2.1.0.20010208130429.00ac1d00@imeme.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/96 X-Sequence-Number: 1552 > No, fetchmailconf uses Tcl. > Tcl is the standard GUI for Python, but bindings for Gtk+/GNOME are > available too. I'm not sure about the KDE camp, but there must be bindings > available there too. TCL is not a gui, maybe you meant Tk(inter). From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 06:58:07 2001 Received: from mnmail1.HONEYWELL.COM (mnmail1.honeywell.com [129.30.244.30]) by www.aunet.org (Postfix) with ESMTP id DF2A04A26A for ; Thu, 8 Feb 2001 05:20:27 -0800 (PST) Received: from ie10-sahara.hiso.honeywell.com ([204.220.169.46]) by mnmail1.HONEYWELL.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1N3A6CD5; Thu, 8 Feb 2001 07:14:58 -0600 Received: by ie10-sahara.hiso.honeywell.com with Internet Mail Service (5.5.2650.21) id <1RH06DM0>; Thu, 8 Feb 2001 17:49:13 +0530 Message-ID: From: "Kondaiah (IE10)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Book on Compiler Design Date: Thu, 8 Feb 2001 14:32:02 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/97 X-Sequence-Number: 1553 Compiler design by "Aho ulman and ravi sethi is a good book" Kondaiah > -----Original Message----- > From: Sumit Rangawala [SMTP:sumitr@india.ti.com] > Sent: Wednesday, February 07, 2001 1:04 AM > To: linux-india-programmers > Subject: [LIP] Book on Compiler Design > > Hi > Can anyone give me name of nice book to start with the concepts of > Compiler Design . > Any pointers would be an additional help. > > TIA > > Regards > Sumit > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 07:22:16 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 6FB9A4A338 for ; Thu, 8 Feb 2001 06:41:58 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id f18EaQa12218 for ; Thu, 8 Feb 2001 20:06:26 +0530 Message-ID: <3A82AE8A.A3B676F1@pspl.co.in> Date: Thu, 08 Feb 2001 20:04:50 +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 library problem References: <3A80EBBC.6F9832F5@accord-products.com> <3A8230C9.DD1BFC1A@india.ti.com> <3A828475.E2DF7FEC@accord-products.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/98 X-Sequence-Number: 1554 Have you used -soname flag. I sets an internal field of library which is preferred. i.e. if you have a file myfile.so with internal field set to mylib, then -lmylib will pick up myfile.so even if there is no file mylib.so. This is a recommended method rather than relying on file name. man ld for more details... Shridhar "Vani R." wrote: > Hi sumit, > > That's fine. It works for me also. but what i want is using -L and -l options. > I am giving the library path where the .so file is existing and -l option to > specify the library name ( mylib.so ) . But when i use these options , i am > getting error as "mylib.so - no such file or directory" . What should i do ?? From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 07:30:10 2001 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 7586E4A620 for ; Thu, 8 Feb 2001 06:51:35 -0800 (PST) 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 UAA09965 for ; Thu, 8 Feb 2001 20:20:48 +0530 (IST) Received: from ajayd.h1.iitk.ac.in ([172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id UAA02139 for ; Thu, 8 Feb 2001 20:08:00 +0530 (IST) Date: Thu, 8 Feb 2001 20:17:35 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-programmers@lists.linux-india.org Subject: Re: shared library problem In-Reply-To: <3A828475.E2DF7FEC@accord-products.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/99 X-Sequence-Number: 1555 On Thu, 8 Feb 2001, Vani R. wrote: > That's fine. It works for me also. but what i want is using -L and -l options. > I am giving the library path where the .so file is existing and -l option to > specify the library name ( mylib.so ) . But when i use these options , i am > getting error as "mylib.so - no such file or directory" . What should i do ?? > a) gcc /mylib.so files.c Note: no -l used here b) change the library name to libmy.so gcc -L -lmy files.c No space between -l and my -- #!!! 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 Thu Feb 8 07:30:34 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id A13E24A695 for ; Thu, 8 Feb 2001 06:52:11 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id OAA18641 for ; Thu, 8 Feb 2001 14:19:40 GMT Received: from mailsweeper.wilco-int.com ([194.62.147.25]) by wilco-fw3.wilco-int.com; Thu, 08 Feb 2001 14:32:35 +0000 (GMT) Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Thu, 8 Feb 2001 14:28:42 +0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1LSF8QA6; Thu, 8 Feb 2001 14:26:20 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id <1NW2FDLC>; Thu, 8 Feb 2001 19:57:49 +0530 Message-ID: From: Prashant Ramachandra To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: shared library problem Date: Thu, 8 Feb 2001 19:57:48 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/100 X-Sequence-Number: 1556 On Thursday, February 08, 2001 5:05 PM, Vani R. [SMTP:vani@accord-soft.com] wrote: | | That's fine. It works for me also. but what i want is using -L and - | l options. | I am giving the library path where the .so file is existing and -l | option to | specify the library name ( mylib.so ) . But when i use these options | , i am | getting error as "mylib.so - no such file or directory" . What | should i do ?? Do NOT use -l option if your library name is not of the form lib*. I thought someone already mentioned that. -- Prashant TR Web: http://www.midpec.com/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 09:28:01 2001 Received: from mailweb21.rediffmail.com (unknown [203.199.83.145]) by www.aunet.org (Postfix) with SMTP id D0A214AB92 for ; Thu, 8 Feb 2001 08:06:52 -0800 (PST) Received: (qmail 24895 invoked by uid 510); 8 Feb 2001 15:56:53 -0000 Date: 8 Feb 2001 15:56:53 -0000 Message-ID: <20010208155653.24894.qmail@mailweb21.rediffmail.com> Received: from unknown (202.144.64.4) by rediffmail.com via HTTP; 08 Feb 2001 15:56:53 -0000 MIME-Version: 1.0 To: LIP Subject: Solution to my query about event queue From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/101 X-Sequence-Number: 1557 Hello! I have myself solved the problem of finding out the length of the event queue. Here is the modified code. #include #include int main() { char *displayname = NULL; Display *dpy; dpy = XOpenDisplay (displayname); if (!dpy) { printf("Error opening display!\n"); exit(1); } printf("%d",QLength(dpy)); /* modification */ XCloseDisplay(dpy); return 0; } Anyway, still to get a reply about "keytable", "bit vector of keyboard" and "asscoiating a keypress with the actual value". - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 09:41:39 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 8A56B4AE4B for ; Thu, 8 Feb 2001 08:31:55 -0800 (PST) Received: from rahul ([61.11.246.189]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f18GXbF18590 for ; Thu, 8 Feb 2001 22:03:37 +0530 Message-ID: <018101c091eb$d5918600$f7f60b3d@rahul> From: "Rahul Jindal" To: Subject: [OT] pre-emptive priority scheduling Date: Thu, 8 Feb 2001 21:56:04 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/102 X-Sequence-Number: 1558 Rumor has it that when they shutdown the IBM 7094 at MIT in 1973, they found a low priority process that had been submitted in 1967 and had not yet been run. talk of pre-emption. r /\ |-| |_| |_ ===================================================== What a man has to go through for a piece of ass in this world is highly ridiculous ===================================================== From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 12:13:33 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 7A6494A951 for ; Thu, 8 Feb 2001 12:06:42 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id MAA21077 for linux-india-programmers@lists.linux-india.org; Thu, 8 Feb 2001 12:01:03 -0800 Date: Thu, 8 Feb 2001 12:01:03 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: python and gui Message-ID: <20010208120103.A21066@sharmas.dhs.org> References: <01020721005203.00494@localhost.localdomain> <5.0.2.1.0.20010208130429.00ac1d00@imeme.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <5.0.2.1.0.20010208130429.00ac1d00@imeme.net>; from jace@pobox.com on Thu, Feb 08, 2001 at 01:05:54PM +0530 X-Archive-Number: 200102/103 X-Sequence-Number: 1559 On Thu, Feb 08, 2001 at 01:05:54PM +0530, Kiran Jonnalagadda wrote: > No, fetchmailconf uses Tcl. > > Tcl is the standard GUI for Python, but bindings for Gtk+/GNOME are > available too. I'm not sure about the KDE camp, but there must be bindings > available there too. Yes. Search for PyQt and PyKDE. I maintain these packages for FreeBSD. If you really want to write a cross platform GUI that works on Windows too, try wxPython. Qt for windows is non-free. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 12:23:34 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 34EFC4A8E8 for ; Thu, 8 Feb 2001 12:17:31 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id MAA21184 for linux-india-programmers@lists.linux-india.org; Thu, 8 Feb 2001 12:11:52 -0800 Date: Thu, 8 Feb 2001 12:11:52 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Book on Compiler Design Message-ID: <20010208121152.C21066@sharmas.dhs.org> References: <20010207145544.A28296@students.cs.mu.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010207145544.A28296@students.cs.mu.oz.au>; from rsubr@ecr.mu.oz.au on Wed, Feb 07, 2001 at 02:55:44PM +1100 X-Archive-Number: 200102/104 X-Sequence-Number: 1560 On Wed, Feb 07, 2001 at 02:55:44PM +1100, Raja Subramanian wrote: > > IMHO, the APUE equivalent in compiler design is "Compiler Design in C", by > Allen Holub, Prentice Hall pub. Extremely well organised and loaded with great > examples. > > Both the books are a must read anyway. But they're both like reading Bach about UNIX :) All the action these days is in how do you do processor specific optimizations. Most people just buy a standard lexer/parser from EDG. Search Amazon for "Modern compiler design" and similar books. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 12:25:46 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 657794A448 for ; Thu, 8 Feb 2001 12:14:11 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id MAA21173 for linux-india-programmers@lists.linux-india.org; Thu, 8 Feb 2001 12:08:33 -0800 Date: Thu, 8 Feb 2001 12:08:33 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: X Window programming query Message-ID: <20010208120832.B21066@sharmas.dhs.org> References: <20010205124004.1373.qmail@mailweb11.rediffmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010205124004.1373.qmail@mailweb11.rediffmail.com>; from karthika212@rediffmail.com on Mon, Feb 05, 2001 at 12:40:04PM -0000 X-Archive-Number: 200102/105 X-Sequence-Number: 1561 On Mon, Feb 05, 2001 at 12:40:04PM -0000, Karthika Sivaramakrishnan wrote: > Hello! > I am developing a monitoring project in X Window. For a particular window whose ID I have obtained, I would like to know Programming for X using Xt is painful. If you still want to do it, look at: XtAppMainLoop() XtNextEvent() However, if you decide to use a widget toolkit like Qt/KDE, things are a lot more easy. > > 1. When that window was opened (created). Can I find this by looking out for some specific event? How can I conclude that the window was opened as the result of some command (or click on an icon)? > Look at a QApplication and QMainWindow man pages or their KDE equivalents, which are basically sub classes of the above classes. > 2. How can I associate a window to the program that runs it? For example, for the caption "Media Player", the corresponding program is "kmidi". Will these details be available in some system file? > This can be configured from the KDE control panel. You basically associate a "file extension" with an application. In the above case, you'd go by ".mid" extension. In some cases where the file comes over HTTP, you could use the content-type header. KDE has some built in support for doing this. (So should Gnome - but I'm no expert). -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 12:34:04 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 9EE994A1A8 for ; Thu, 8 Feb 2001 12:23:43 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id MAA21221; Thu, 8 Feb 2001 12:17:53 -0800 Date: Thu, 8 Feb 2001 12:17:53 -0800 From: Arun Sharma To: sukrit@whoever.com Cc: linux-india-programmers@lists.linux-india.org Subject: Re: scan codes of key hit Message-ID: <20010208121753.D21066@sharmas.dhs.org> References: <01020815283200.01043@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <01020815283200.01043@localhost.localdomain>; from holysmoke@satyam.net.in on Thu, Feb 08, 2001 at 03:27:40PM +0530 X-Archive-Number: 200102/106 X-Sequence-Number: 1562 On Thu, Feb 08, 2001 at 03:27:40PM +0530, Sukrit K Mehra wrote: > How can i get the scan code of a key hit in linux *using C* /usr/src/linux/drivers/char/defkeymap.map Note that scancodes are handled in the keyboard device driver and what you read comes out as processed chars. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 19:03:08 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.65.149]) by www.aunet.org (Postfix) with ESMTP id 190DF4A12B for ; Thu, 8 Feb 2001 19:02:59 -0800 (PST) Received: (from amarg@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id IAA15590 for linux-india-programmers@lists.linux-india.org; Fri, 9 Feb 2001 08:36:00 +0530 Date: Fri, 9 Feb 2001 08:36:00 +0530 From: Amarendra GODBOLE To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT] pre-emptive priority scheduling Message-ID: <20010209083600.A15558@alice.bombay.retortsoft.com> References: <018101c091eb$d5918600$f7f60b3d@rahul> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <018101c091eb$d5918600$f7f60b3d@rahul>; from rahulj@glide.net.in on Thu, Feb 08, 2001 at 09:56:04PM +0530 X-Quote: "If you don't try to succeed, nobody will try to stop you." X-Friends: Shailesh, Shantanu, Sameer, Prachi, Dinesh, Sujeet. X-Home: http://ag.dnsq.org X-Organisation: Retort Software Pvt. Ltd., Mumbai. INDIA. X-Archive-Number: 200102/107 X-Sequence-Number: 1563 On Thu, Feb 08, 2001, the greycells of Rahul Jindal expressed: > Rumor has it that when they shutdown the IBM 7094 at MIT in 1973, they found > a low priority process that had been submitted in 1967 and had not yet been > run. > > talk of pre-emption. > > r /\ |-| |_| |_ Hmmm ..., so you are going through the O.S. book by Silberschatz et. al.. Cheers, -amar- -- ... and remember is is spelled L-I-N-U-X, but pronounced LEE-NUX --L.T. From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 21:28:05 2001 Received: from mailweb1.rediffmail.com (unknown [202.54.124.146]) by www.aunet.org (Postfix) with SMTP id 262454A0E7 for ; Thu, 8 Feb 2001 21:28:03 -0800 (PST) Received: (qmail 11414 invoked by uid 510); 9 Feb 2001 05:12:28 -0000 Date: 9 Feb 2001 05:12:28 -0000 Message-ID: <20010209051228.11413.qmail@mailweb1.rediffmail.com> Received: from unknown (203.197.174.12) by rediffmail.com via HTTP; 09 Feb 2001 05:12:28 -0000 MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Java Doubt From: "sharmiq babu" Content-ID: Content-type: text/plain Content-Description: Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/108 X-Sequence-Number: 1564 Dear Sir/Madam, Can I call a dialogbox from an applet window. Looking forward to hear from you. Thanks and Regards Sharmiq.k _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 22:18:19 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id ABD6A4A42E for ; Thu, 8 Feb 2001 22:04:44 -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 f1967ca30056 for ; Fri, 9 Feb 2001 11:37:38 +0530 Message-ID: <3A8388CD.395910AB@pspl.co.in> Date: Fri, 09 Feb 2001 11:36: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: X Window programming query References: <20010205124004.1373.qmail@mailweb11.rediffmail.com> <20010208120832.B21066@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/109 X-Sequence-Number: 1565 Hi Arun Sharma wrote: > > This can be configured from the KDE control panel. You basically associate > a "file extension" with an application. In the above case, you'd go by > ".mid" extension. Sometimes it does do magic no.+1KB check checking also. i.e. for text files etc. But that's not user extendible IIRC... Bye Shridhar From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 22:37:18 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id C59334A2E0 for ; Thu, 8 Feb 2001 22:21:08 -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 f196O2a30482 for ; Fri, 9 Feb 2001 11:54:02 +0530 Message-ID: <3A838CA5.32C4BA74@pspl.co.in> Date: Fri, 09 Feb 2001 11:52: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: Java Doubt References: <20010209051228.11413.qmail@mailweb1.rediffmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/110 X-Sequence-Number: 1566 Whoops? I didn't know that I grew up by ten years in a night... Sharmiq, As I was told in my company induction, literally reproduced. 'Sir/Madam is only used by Waiters who hope for more tip. No Sirs, No Madams. Everybody has a name and it's preferred to be called by name.' Enjoy... We are friends here... Bye Shridhar P.S. Sorry for adding noise to my mothly statistics but anyway there's already enough... :-)) sharmiq babu wrote: > Dear Sir/Madam, > From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 23:07:41 2001 Received: from matrix.mediasolv.com (unknown [203.115.19.131]) by www.aunet.org (Postfix) with ESMTP id A2CF54A401 for ; Thu, 8 Feb 2001 22:51:14 -0800 (PST) Received: from kugan ([192.168.1.51]) by matrix.mediasolv.com (8.11.1/8.11.1) with SMTP id f196imp02690 for ; Fri, 9 Feb 2001 12:44:48 +0600 From: "V Kugan" To: Subject: tty.c Date: Fri, 9 Feb 2001 12:49:31 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal X-Archive-Number: 200102/111 X-Sequence-Number: 1567 Hello I nead to know how tty.c code works. But I thought it would be better to go through any documentaion or article etc.. before getting into the code . Can any one please suggest any such link, that would give some idea about tty . Thanks in advance Kugan From linux-india-programmers-owner@lists.linux-india.org Thu Feb 8 23:22:25 2001 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id 735FD4A26C for ; Thu, 8 Feb 2001 23:13:21 -0800 (PST) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id CAA22713 for ; Fri, 9 Feb 2001 02:08:52 -0500 (EST) Message-ID: <006b01c09267$3e5d69d0$8900000a@aclindia.com> From: "Ambar Roy" To: References: <20010209051228.11413.qmail@mailweb1.rediffmail.com> Subject: Re: Java Doubt Date: Fri, 9 Feb 2001 12:39: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.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200102/112 X-Sequence-Number: 1568 Hi, > Can I call a dialogbox from an applet window. I don't know how it is done, but i have seen something similar to a dialog box being called from an applet. Check out the java version of the yahoo pager, it puts up an applet window for sending/recieving messages! Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 00:16:56 2001 Received: from blue.csa.iisc.ernet.in (blue.csa.iisc.ernet.in [144.16.67.191]) by www.aunet.org (Postfix) with ESMTP id BE24A4A2EB for ; Thu, 8 Feb 2001 23:28:52 -0800 (PST) Received: from localhost (alex@localhost) by blue.csa.iisc.ernet.in (8.9.3/8.9.3) with ESMTP id NAA11312 for ; Fri, 9 Feb 2001 13:03:15 +0530 Date: Fri, 9 Feb 2001 13:03:15 +0530 (IST) From: Alex M Alex To: linux-india-programmers@lists.linux-india.org Subject: Re: tty.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/113 X-Sequence-Number: 1569 hi kugan, On Fri, 9 Feb 2001, V Kugan wrote: > Hello > I nead to know how tty.c code works. But I thought it would be better to go > through any documentaion or article etc.. before getting into the code *tty.c code is very well commented. It is the best doc you can count on. regards alex .......... http://hpc.serc.iisc.ernet.in/~alex From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 01:02:06 2001 Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by www.aunet.org (Postfix) with ESMTP id CD9474AA99 for ; Fri, 9 Feb 2001 00:20:42 -0800 (PST) Received: from fakir.india.hp.com (fakir.india.hp.com [15.10.40.3]) by atlrel1.hp.com (Postfix) with ESMTP id C2553F3B for ; Fri, 9 Feb 2001 03:15:59 -0500 (EST) Received: from india.hp.com (nt4257.india.hp.com [15.10.42.57]) by fakir.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id NAA03884 for ; Fri, 9 Feb 2001 13:47:09 +0530 (IST) Message-ID: <3A83A73B.C4DC2815@india.hp.com> Date: Fri, 09 Feb 2001 13:45:55 +0530 From: "G.L.Suresh" Organization: Hewlett Packard X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: tty.c References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/114 X-Sequence-Number: 1570 then have a look at the Richerd steven's book , rlogin chapter. U will be getting good idea about tty's and lineconverers. -- GL V Kugan wrote: > > Hello > I nead to know how tty.c code works. But I thought it would be better to go > through any documentaion or article etc.. before getting into the code . Can > any one please suggest any such link, that would give some idea about tty . > Thanks in advance > Kugan > > --------------------------------------------- > 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 Feb 9 01:34:54 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id 86D8549EFB for ; Fri, 9 Feb 2001 00:42:26 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id IAA16028 for ; Fri, 9 Feb 2001 08:12:17 GMT Received: from mailsweeper.wilco-int.com ([194.62.147.25]) by wilco-fw3.wilco-int.com; Fri, 09 Feb 2001 08:25:14 +0000 (GMT) Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Fri, 9 Feb 2001 08:21:45 +0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1LSF86XX; Fri, 9 Feb 2001 08:19:25 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id <1NW2F1QX>; Fri, 9 Feb 2001 13:50:52 +0530 Message-ID: From: Prashant Ramachandra To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: tty.c Date: Fri, 9 Feb 2001 13:50:46 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/115 X-Sequence-Number: 1571 | On Fri, 9 Feb 2001, V Kugan wrote: | | > Hello | > I nead to know how tty.c code works. But I thought it would be | > better to go | > through any documentaion or article etc.. before getting into the | > code If there's no doc, consider writing one. That's called "The hacker's attitude" ;-). -- Prashant TR Web: http://www.midpec.com/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 02:48:34 2001 Received: from smtp6.mail.yahoo.com (smtp6.mail.yahoo.com [128.11.69.103]) by www.aunet.org (Postfix) with SMTP id 8BB544A760 for ; Fri, 9 Feb 2001 02:10:40 -0800 (PST) Received: from unknown (HELO ixswzykp) (61.0.28.201) by smtp.mail.vip.suc.yahoo.com with SMTP; 9 Feb 2001 09:30:11 -0000 X-Apparently-From: Reply-To: "Intrepid Soldier" From: "Intrepid Soldier" To: Subject: new Date: Fri, 9 Feb 2001 15:06:13 +0530 Message-ID: <01c0927b$be9f0860$0100007f@ixswzykp> 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 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 X-Archive-Number: 200102/116 X-Sequence-Number: 1572 can someone tell me which linux kernel was the first to implement the ELF binary format. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 04:38:46 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id E9AAF4A628 for ; Fri, 9 Feb 2001 04:09:16 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id LAA25730 for ; Fri, 9 Feb 2001 11:42:14 GMT Received: from mailsweeper.wilco-int.com ([194.62.147.25]) by wilco-fw3.wilco-int.com; Fri, 09 Feb 2001 11:55:13 +0000 (GMT) Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id ; Fri, 9 Feb 2001 11:51:43 +0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1LSF89ZD; Fri, 9 Feb 2001 11:49:23 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id <1NW2FFB3>; Fri, 9 Feb 2001 17:20:52 +0530 Message-ID: From: Prashant Ramachandra To: "'Intrepid Soldier'" Cc: linux-india-programmers@lists.linux-india.org Subject: RE: new Date: Fri, 9 Feb 2001 17:20:50 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/117 X-Sequence-Number: 1573 On Friday, February 09, 2001 3:06 PM, Intrepid Soldier [SMTP:intrepidsoldier@yahoo.com] wrote: | can someone tell me which linux kernel was the first to implement | the ELF | binary format. Was Solaris IIRC. -- Prashant TR Web: http://www.midpec.com/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 04:39:02 2001 Received: from c008.sfo.cp.net (c008-h007.c008.sfo.cp.net [209.228.14.196]) by www.aunet.org (Postfix) with SMTP id 894034A777 for ; Fri, 9 Feb 2001 04:22:23 -0800 (PST) Received: (cpmta 9931 invoked from network); 9 Feb 2001 04:17:47 -0800 Date: 9 Feb 2001 04:17:47 -0800 Message-ID: <20010209121747.9930.cpmta@c008.sfo.cp.net> X-Sent: 9 Feb 2001 12:17:47 GMT Received: from [61.1.28.53] by mail.123india.com with HTTP; 09 Feb 2001 04:17:47 PST Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: linux-india-programmers@lists.linux-india.org From: shantanu_gwl@123india.com X-Mailer: Web Mail 3.8.1.6 Subject: Re: Java Doubt X-Archive-Number: 200102/118 X-Sequence-Number: 1574 On Thu, 08 February 2001, "Ambar Roy" wrote: > > Hi, > > Can I call a dialogbox from an applet window. Use JApplet and then InternalFrameDialog afterwards. Shantanu. ______________________________________________________ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 05:01:32 2001 Received: from c008.sfo.cp.net (c008-h018.c008.sfo.cp.net [209.228.14.207]) by www.aunet.org (Postfix) with SMTP id A65F54A30F for ; Fri, 9 Feb 2001 04:26:57 -0800 (PST) Received: (cpmta 2637 invoked from network); 9 Feb 2001 04:22:22 -0800 Date: 9 Feb 2001 04:22:22 -0800 Message-ID: <20010209122222.2636.cpmta@c008.sfo.cp.net> X-Sent: 9 Feb 2001 12:22:22 GMT Received: from [61.1.28.53] by mail.123india.com with HTTP; 09 Feb 2001 04:22:22 PST Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: linux-india-programmers@lists.linux-india.org From: shantanu_gwl@123india.com X-Mailer: Web Mail 3.8.1.6 Subject: Re: Java Doubt X-Archive-Number: 200102/119 X-Sequence-Number: 1575 Hi Sharmiq, There was no need to be this formal. > Can I call a dialogbox from an applet window. Use a JApplet followed by InternalFrameDialog afterwards from within it. > Looking forward to hear from you. So you heard from me!! ;-) ______________________________________________________ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 05:46:06 2001 Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by www.aunet.org (Postfix) with ESMTP id 017984A35B for ; Fri, 9 Feb 2001 05:20:37 -0800 (PST) Received: from fakir.india.hp.com (fakir.india.hp.com [15.10.40.3]) by palrel3.hp.com (Postfix) with ESMTP id 25CF6D99; Fri, 9 Feb 2001 05:15:57 -0800 (PST) Received: from india.hp.com (nt4257.india.hp.com [15.10.42.57]) by fakir.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id SAA22271; Fri, 9 Feb 2001 18:47:05 +0530 (IST) Message-ID: <3A83ED87.CA361008@india.hp.com> Date: Fri, 09 Feb 2001 18:45:51 +0530 From: "G.L.Suresh" Organization: Hewlett Packard X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Cc: "'Intrepid Soldier'" Subject: Re: new References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/120 X-Sequence-Number: 1576 Hi, Pl use the 'reply' only if u replying to that question, else it will be very good if u start new thread.I am feeling very inconvinient as u r mail sits in a thread which is no way adds any info about tty's. -- GL Prashant Ramachandra wrote: > > On Friday, February 09, 2001 3:06 PM, Intrepid Soldier > [SMTP:intrepidsoldier@yahoo.com] wrote: > | can someone tell me which linux kernel was the first to implement > | the ELF > | binary format. > > Was Solaris IIRC. > -- > Prashant TR > Web: http://www.midpec.com/ > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > www.mimesweeper.com > ********************************************************************** > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 06:21:10 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 8BB074A77C for ; Fri, 9 Feb 2001 06:06:31 -0800 (PST) Received: from (jace.pobox.com) [210.18.27.205] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14RE7W-0006Lp-00; Fri, 09 Feb 2001 07:01:55 -0700 Message-Id: <5.0.2.1.0.20010209142645.00a5cbc8@imeme.net> X-Sender: (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 09 Feb 2001 14:27:46 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: python and gui In-Reply-To: References: <5.0.2.1.0.20010208130429.00ac1d00@imeme.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/121 X-Sequence-Number: 1577 At 05:08 PM 2/8/2001 +0530, you wrote: > > No, fetchmailconf uses Tcl. > > Tcl is the standard GUI for Python, but bindings for Gtk+/GNOME are > > available too. I'm not sure about the KDE camp, but there must be bindings > > available there too. > > TCL is not a gui, maybe you meant Tk(inter). Oops, sorry, I meant Tk. -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 07:41:57 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 21EAB4A1BB for ; Fri, 9 Feb 2001 07:41:17 -0800 (PST) Received: from default (unknown [203.197.137.12]) by md4.vsnl.net.in (Postfix) with SMTP id E60C29FC7; Fri, 9 Feb 2001 21:11:06 +0530 (IST) Message-ID: <002401c09249$5f437c20$0c89c5cb@default> From: "Lakshmi Gopinath" To: Cc: Subject: MULTIPLEXING USING SOCKET OPTION Date: Fri, 9 Feb 2001 08:29:59 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/122 X-Sequence-Number: 1578 /* Program using socket option to multiplex */ #include #include #include #include #include #include #include #include #define max(a,b) ((a) > (b) ? (a) : (b)) #define PORTA 6000 #define PORTB 8000 struct sockaddr_in serv_addr1,serv_addr2; int main() { int sockfd1,sockfd2,count=0,length=0,maxfd1; char buff1[128],buff2[128]; struct timeval *test = (struct timeval *)malloc(sizeof(struct timeval)); struct timeval time; socklen_t *optlen = (socklen_t *)malloc(sizeof(struct timeval)); time.tv_sec = 2000; time.tv_usec = 0; printf("reciever running\n"); serv_addr1.sin_family=AF_INET; serv_addr1.sin_addr.s_addr=inet_addr("127.0.0.1"); serv_addr1.sin_port=htons(PORTA); if((sockfd1=socket(AF_INET,SOCK_DGRAM,0))<0) write("I/O socket error\n"); if((bind(sockfd1,(struct sockaddr *)&serv_addr1,sizeof(serv_addr1)))<0) printf("bind error\n"); setsockopt(sockfd1,SOL_SOCKET,SO_RCVTIMEO,&time,sizeof(time)); getsockopt(sockfd1,SOL_SOCKET,SO_RCVTIMEO,test,optlen); printf("\n sec = %d",test->tv_sec); printf("\n msec = %d",test->tv_usec); serv_addr2.sin_family=AF_INET; serv_addr2.sin_addr.s_addr=inet_addr("127.0.0.1"); serv_addr2.sin_port=htons(PORTB); if((sockfd2=socket(AF_INET,SOCK_DGRAM,0))<0) write("I/O socket error\n"); if((bind(sockfd2,(struct sockaddr *)&serv_addr2,sizeof(serv_addr2)))<0) printf("bind error\n"); setsockopt(sockfd2,SOL_SOCKET,SO_RCVTIMEO,&time,sizeof(time)); printf("\n ok"); for(;;) { count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0,NULL,NULL); if(count < 0) { if (errno == EWOULDBLOCK) { printf("\n blcok"); continue; } else printf("\n recvfrom error\n"); } else printf("\n %s ",buff1); count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0,NULL,NULL); if(count < 0) { if (errno == EWOULDBLOCK) continue; else printf("\n recvfrom error \n"); } else printf("\n %s ",buff2); } } From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 07:41:59 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 476174A25C for ; Fri, 9 Feb 2001 07:41:19 -0800 (PST) Received: from default (unknown [203.197.137.12]) by md4.vsnl.net.in (Postfix) with SMTP id 4F8589EEF; Fri, 9 Feb 2001 21:11:08 +0530 (IST) Message-ID: <002501c09249$60a3f680$0c89c5cb@default> From: "Lakshmi Gopinath" To: Cc: Subject: PROGRAM TO SEND DGRAMS Date: Fri, 9 Feb 2001 08:30:52 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/123 X-Sequence-Number: 1579 #include #include #include #include #include #include"header.h" #define PORT 6000 struct sockaddr_in serv_addr; int main() { int sockfd=0,count=0; char buff[128]; printf("sender running\n"); serv_addr.sin_family=AF_INET; serv_addr.sin_addr.s_addr=inet_addr("127.0.0.1"); serv_addr.sin_port=htons(PORT); sockfd=socket(AF_INET,SOCK_DGRAM,0); printf("\n %d ",sizeof(struct ip)); for(;;) { count=read(0,buff,sizeof(buff)); sendto(sockfd,(char *)buff,count,0,(struct sockaddr *)&serv_addr, sizeof(serv_addr)); } } From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 07:43:17 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 8BA504A26B for ; Fri, 9 Feb 2001 07:41:22 -0800 (PST) Received: from default (unknown [203.197.137.12]) by md4.vsnl.net.in (Postfix) with SMTP id 57BE69FD8; Fri, 9 Feb 2001 21:11:12 +0530 (IST) Message-ID: <002701c09249$6299fa20$0c89c5cb@default> From: "Lakshmi Gopinath" To: Cc: Subject: I/O multiplexing among socket descriptors Date: Fri, 9 Feb 2001 08:31:11 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/124 X-Sequence-Number: 1580 Hello Everybody, I need some help regarding socket programming.I need to do multiplex between multiple sockets. For the same purpose I tried 2 approaches. 1. using select 2. using S_RCVTIMEO socket option. I wrote 2 simple programs - one that uses socket option and the other that uses select call. The program can accept UDP dgrams on 2 UDP ports.i created 3 simple programs. selrecv.c - uses select to multiplex between the 2 udp ports sockrecv.c - uses socket options to multiplex between the 2 udp ports sender.c - sends udp dgrams. change the port no in the program to 8000 ,create an executable and again change the program to 6000 and create another executable.and use them 2 send dgrams to the 2 ports. But both the approaches failed... 1. while using select unless dgram is first got from sockfd1 ( the first recvfrom call) it does not go to the next recvfrom call..ie it blocks at recvfrom then at select 2. while using socket option. i change the socket options using setsockopt . but when i verify it with getsockopt it remains unchanged. I am not able to understand the reason. Could someone plsssss help me out Regards, Lakshmi From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 07:43:18 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 35F444A26A for ; Fri, 9 Feb 2001 07:41:21 -0800 (PST) Received: from default (unknown [203.197.137.12]) by md4.vsnl.net.in (Postfix) with SMTP id A2FD39FE2; Fri, 9 Feb 2001 21:11:10 +0530 (IST) Message-ID: <002601c09249$6185cb00$0c89c5cb@default> From: "Lakshmi Gopinath" To: Cc: Subject: program using select Date: Fri, 9 Feb 2001 08:31: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.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/125 X-Sequence-Number: 1581 /* MULTIPLEXING SOCKETS USING SELECT */ #include #include #include #include #include #include #include #define max(a,b) ((a) > (b) ? (a) : (b)) #define PORTA 8000 #define PORTB 6000 struct sockaddr_in serv_addr1,serv_addr2,client; int main() { int sockfd1,sockfd2,count=0,length=0,maxfd1; char buff1[128],buff2[128]; fd_set set; struct timeval time; socklen_t addrlen=sizeof(client); FD_ZERO(&set); time.tv_sec = 5; time.tv_usec = 0; printf("reciever running\n"); serv_addr1.sin_family=AF_INET; serv_addr1.sin_addr.s_addr=inet_addr("127.0.0.1"); serv_addr1.sin_port=htons(PORTA); if((sockfd1=socket(AF_INET,SOCK_DGRAM,0))<0) write("I/O socket error/n"); if((bind(sockfd1,(struct sockaddr *)&serv_addr1,sizeof(serv_addr1)))<0) printf("bind error/n"); serv_addr2.sin_family=AF_INET; serv_addr2.sin_addr.s_addr=inet_addr("127.0.0.1"); serv_addr2.sin_port=htons(PORTB); if((sockfd2=socket(AF_INET,SOCK_DGRAM,0))<0) write("I/O socket error/n"); if((bind(sockfd2,(struct sockaddr *)&serv_addr2,sizeof(serv_addr2)))<0) printf("bind error/n"); for(;;) { FD_SET(sockfd1,&set); FD_SET(sockfd2,&set); maxfd1 = max(sockfd1,sockfd2) + 1; select(maxfd1,&set,&set,NULL,&time); if(FD_ISSET(sockfd1,&set)) { count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0, (struct sockaddr *)&client,&addrlen); printf("\n %s ",buff1); } if(FD_ISSET(sockfd2,&set)) { count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0, (struct sockaddr *)&client,&addrlen); printf("\n %s ",buff2); } } } From linux-india-programmers-owner@lists.linux-india.org Fri Feb 9 09:04:14 2001 Received: from netscape.com (r2d2.netscape.com [205.217.237.47]) by www.aunet.org (Postfix) with ESMTP id 1892349F16 for ; Fri, 9 Feb 2001 09:04:08 -0800 (PST) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id f19GxRb00181 for ; Fri, 9 Feb 2001 08:59:28 -0800 (PST) Received: from netscape.com ([208.12.47.115]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id G8I1V401.L6C for ; Fri, 9 Feb 2001 08:59:28 -0800 Message-ID: <3A8421EF.65F6664B@netscape.com> Date: Fri, 09 Feb 2001 08:59:27 -0800 From: Sudhakar Chandra Organization: A Doubleplusgood Mega Corporation X-Mailer: Mozilla 4.77b1 [en] (X11; U; Linux 2.4.1 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: X Window programming query References: <20010205124004.1373.qmail@mailweb11.rediffmail.com> <20010208120832.B21066@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/126 X-Sequence-Number: 1582 Arun Sharma proclaimed: > On Mon, Feb 05, 2001 at 12:40:04PM -0000, Karthika Sivaramakrishnan wrote: > > I am developing a monitoring project in X Window. For a particular > > window whose ID I have obtained, I would like to know > Programming for X using Xt is painful. If you still want to do it, look > at: > > XtAppMainLoop() > XtNextEvent() Reminds me of what Jamie had to say about X programming: "Using these toolkits is like trying to make a bookshelf out of mashed potatoes." Thaths -- "Solid waste! I could kiss you! MWUA! eugh! MWUA! ooh! MWUA! aah! MWUA! ooh! I think this one's pizza!" -- Homer J. Simpson Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Sat Feb 10 23:12:10 2001 Received: from brute.naturesoft.com (unknown [202.9.161.6]) by www.aunet.org (Postfix) with ESMTP id 9244049F16 for ; Sat, 10 Feb 2001 23:12:07 -0800 (PST) Received: from bigfoot.com (localhost.localdomain [127.0.0.1]) by brute.naturesoft.com (Postfix) with ESMTP id 4A2ED3D09D for ; Sun, 11 Feb 2001 12:37:19 +0530 (IST) Message-ID: <3A863A27.1EF10D9A@bigfoot.com> Date: Sun, 11 Feb 2001 12:37:19 +0530 From: archan Organization: Open Source Software X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.1 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: X Window programming query References: <20010205124004.1373.qmail@mailweb11.rediffmail.com> <20010208120832.B21066@sharmas.dhs.org> <3A8421EF.65F6664B@netscape.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/127 X-Sequence-Number: 1583 u can use XQueryTree" from Xlib archan devrootp@bigfoot.com Sudhakar Chandra wrote: > > Arun Sharma proclaimed: > > On Mon, Feb 05, 2001 at 12:40:04PM -0000, Karthika Sivaramakrishnan wrote: > > > I am developing a monitoring project in X Window. For a particular > > > window whose ID I have obtained, I would like to know > > Programming for X using Xt is painful. If you still want to do it, look > > at: > > > > XtAppMainLoop() > > XtNextEvent() > > Reminds me of what Jamie had to say about X programming: "Using these > toolkits is like trying to make a bookshelf out of mashed potatoes." > From linux-india-programmers-owner@lists.linux-india.org Sat Feb 10 23:57:50 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 2AF994A15A for ; Sat, 10 Feb 2001 23:57:49 -0800 (PST) Received: from z3 ([192.168.1.17]) by sharmas.dhs.org (8.9.3/8.9.3) with SMTP id XAA26899; Sat, 10 Feb 2001 23:51:57 -0800 Message-ID: <003701c093ff$21a244c0$1101a8c0@sharmas.org> From: "Arun Sharma" To: "Karthika Sivaramakrishnan" Cc: "LIP" References: <20010210041001.14660.qmail@mailweb11.rediffmail.com> Subject: Re: Modified X Window programming query Date: Sat, 10 Feb 2001 23:49:15 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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: 200102/128 X-Sequence-Number: 1584 > Hi! Thanks for you replies about my X Window programming query, but I think that is not what I am looking for. Let me be clearer. > > I am writing a window monitoring program in C that keeps track of all the windows that are opened (in X Window; Linux). For this I am using Xlib and *no toolkit*. Using the Xlib functions, I am able to get the *caption* of each open window. Now, I want to find out (that is, write the code to determine) the program or application that opens each window. For example, for the window with caption "Media Player", the program responsible is "kmidi". For the caption "/home/test.c", the program is "kwrite" or may be "kedit". What should my "monitoring program" do to make this inference? > > Please note that I do not want to manually configure anything. See: http://home.netscape.com/newsref/std/remote.c for something that tries to do something remotely (yes, pun is intended) similar to this. Given what is available in the X11 API, I think what you're trying to do is hard - mainly because X protocol doesn't assume anything about the host OS - you could be running on UNIX, VMS, Windows or a PDA. Also, X assumes that everything could possibly be remote. Given all this, here is what you could do: (a) Somehow get the pid of the process that spawned the window (I think it's hard, but might be possible). Then you can grab the command line from /proc or some such API. (b) If you have control over the apps that are running under X, make them set the command line as a window property. Then you can get that property (see the above example) to get the command line. -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Feb 11 09:12:48 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 6CD3549F48 for ; Sun, 11 Feb 2001 09:12:42 -0800 (PST) Received: from default (unknown [203.197.135.173]) by md4.vsnl.net.in (Postfix) with SMTP id 5D3459FAB; Sun, 11 Feb 2001 22:42:19 +0530 (IST) Message-ID: <005801c093e8$6ef1a5c0$ad87c5cb@default> From: "Lakshmi Gopinath" To: "Ch Rama Krishna Prasad" , Cc: References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> Subject: Re: I/O multiplexing among socket descriptors Date: Sun, 11 Feb 2001 10:29: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.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/129 X-Sequence-Number: 1585 Hi Rama Krishna Prasad, Thanks for helping me out.But I am still facing some problems. fcntl can be used to set the socket in non-blocking mode. but the purpose of select/poll is that the process should block at select or poll instead of call to read or write or the like , till one of the sockets it is tesing becomes readable or writable or an exception condition occurs.for this why do i have to set the socket to non-blocking mode. bcoz anyway the process has to block in the select system call. my purpose is to wait on a particular socket for a few seconds for data to arrive and if data does not arrive i want to move on to the next socket. i realised that linux does not support RCVTIMEO socket option. so i wanted to use the timer option in select. so i wrote this piece of code : for(;;) { FD_SET(sockfd1,&set); FD_SET(sockfd2,&set); maxfd1 = max(sockfd1,sockfd2) + 1; select(maxfd1,&set,&set,NULL,&time); if(FD_ISSET(sockfd1,&set)) { count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0, (struct sockaddr *)&client,&addrlen); printf("\n %s ",buff1); } if(FD_ISSET(sockfd2,&set)) { count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0, (struct sockaddr *)&client,&addrlen); printf("\n %s ",buff2); } } but only after data arrives on sockfd1 does it move onto sockfd2. i cannot understand the reason for this. could you please help me out. Regards, lakshmi ----- Original Message ----- From: "Ch Rama Krishna Prasad" To: ; "Lakshmi Gopinath" ; Cc: Sent: Saturday, February 10, 2001 9:50 AM Subject: Re: [LIP] I/O multiplexing among socket descriptors > Hi GopiNath, > > you are trying blocking sockets. Then recvfrom,recv,sen,sendto are blocking > system calls. First open the socket in non blocking mode so taht it will not > block the sockets. > > Example like this > lSockid=socket(AF_INET,SOCK_DGRAM,0); > /* > * Get the flags of the socket > */ > if((flags = fcntl(lSockid, F_GETFL, 0)) < 0) > { > perror("CreateSocket():The getting flags is failed"); > return(-1); > } > > /* > * Set the flag to Non-block mode > */ > if( fcntl( lSockid, F_SETFL, flags | O_NONBLOCK ) < 0 ) > { > perror("CreateSocket():theSetting Flags Failed"); > return(-1); > } > > Now the socket will be non blocking mode and use the getsockopt option to get > the socket options and bu using the select or poll system call you will proceed. > > From > Ch.R.K.Prasad > > > > > On Fri, 09 Feb 2001, Lakshmi Gopinath wrote: > > Hello Everybody, > > > > I need some help regarding socket programming.I need to do multiplex between > > multiple sockets. For the same purpose I tried 2 approaches. > > > > 1. using select > > 2. using S_RCVTIMEO socket option. > > > > I wrote 2 simple programs - one that uses socket option and the other that > > uses select call. The program can accept UDP dgrams on 2 UDP ports.i created > > 3 simple programs. > > selrecv.c - uses select to multiplex between the 2 udp ports > > > > sockrecv.c - uses socket options to multiplex between the 2 udp ports > > > > sender.c - sends udp dgrams. change the port no in the program to 8000 > > ,create an executable and again change the program to 6000 and create > > another executable.and use them 2 send dgrams to the 2 ports. > > > > But both the approaches failed... > > 1. while using select unless dgram is first got from sockfd1 ( the first > > recvfrom call) it does not go to the next recvfrom call..ie it blocks at > > recvfrom then at select > > > > 2. while using socket option. i change the socket options using setsockopt . > > but when i verify it with getsockopt it remains unchanged. > > > > I am not able to understand the reason. Could someone plsssss help me out > > > > Regards, > > Lakshmi > > > > > > > > > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > From linux-india-programmers-owner@lists.linux-india.org Sun Feb 11 20:50:52 2001 Received: from venus.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id DCDB04A362 for ; Sun, 11 Feb 2001 20:49:04 -0800 (PST) Received: from ramakrishna.roc.com (rkp.roc.com [172.16.5.88]) by venus.roc.com (8.9.3/8.9.3) with SMTP id WAA24423; Sun, 11 Feb 2001 22:23:44 +0530 From: Ch Rama Krishna Prasad Reply-To: rkp@intotoinc.com Organization: Intoto Inc To: linux-india-programmers@lists.linux-india.org, "Lakshmi Gopinath" , Subject: Re: I/O multiplexing among socket descriptors Date: Mon, 12 Feb 2001 10:03:49 +0530 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> <005801c093e8$6ef1a5c0$ad87c5cb@default> In-Reply-To: <005801c093e8$6ef1a5c0$ad87c5cb@default> MIME-Version: 1.0 Message-Id: <01021210070602.00753@ramakrishna.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/130 X-Sequence-Number: 1586 Hi Lakshmi gopinath, I want to say one thing is that in select also we can set the events intersted in so taht when the data comes on the socket it will set the revents .. If the revents is read event then we can read the data and if the event is write event you can send the data, For more see man on poll . if you have any doubts contact me. On more thing poll is better than select so use poll. From Ch.R.k.Prasad On Sun, 11 Feb 2001, Lakshmi Gopinath wrote: > Hi Rama Krishna Prasad, > > Thanks for helping me out.But I am still facing some problems. fcntl can be > used to set the socket in non-blocking mode. but the purpose of select/poll > is that the process should block at select or poll instead of call to read > or write or the like , till one of the sockets it is tesing becomes readable > or writable or an exception condition occurs.for this why do i have to set > the socket to non-blocking mode. bcoz anyway the process has to block in the > select system call. > > my purpose is to wait on a particular socket for a few seconds for data to > arrive and if data does not arrive i want to move on to the next socket. i > realised that linux does not support RCVTIMEO socket option. so i wanted to > use the timer option in select. so i wrote this piece of code : > for(;;) > { > FD_SET(sockfd1,&set); > FD_SET(sockfd2,&set); > maxfd1 = max(sockfd1,sockfd2) + 1; > select(maxfd1,&set,&set,NULL,&time); > if(FD_ISSET(sockfd1,&set)) > { > count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0, > (struct sockaddr *)&client,&addrlen); > printf("\n %s ",buff1); > } > if(FD_ISSET(sockfd2,&set)) > { > count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0, > (struct sockaddr *)&client,&addrlen); > printf("\n %s ",buff2); > } > } > > but only after data arrives on sockfd1 does it move onto sockfd2. i cannot > understand the reason for this. could you please help me out. > > Regards, > lakshmi > > > > ----- Original Message ----- > From: "Ch Rama Krishna Prasad" > To: ; "Lakshmi Gopinath" > ; > Cc: > Sent: Saturday, February 10, 2001 9:50 AM > Subject: Re: [LIP] I/O multiplexing among socket descriptors > > > > Hi GopiNath, > > > > you are trying blocking sockets. Then recvfrom,recv,sen,sendto are > blocking > > system calls. First open the socket in non blocking mode so taht it will > not > > block the sockets. > > > > Example like this > > lSockid=socket(AF_INET,SOCK_DGRAM,0); > > /* > > * Get the flags of the socket > > */ > > if((flags = fcntl(lSockid, F_GETFL, 0)) < 0) > > { > > perror("CreateSocket():The getting flags is failed"); > > return(-1); > > } > > > > /* > > * Set the flag to Non-block mode > > */ > > if( fcntl( lSockid, F_SETFL, flags | O_NONBLOCK ) < 0 ) > > { > > perror("CreateSocket():theSetting Flags Failed"); > > return(-1); > > } > > > > Now the socket will be non blocking mode and use the getsockopt option to > get > > the socket options and bu using the select or poll system call you will > proceed. > > > > From > > Ch.R.K.Prasad > > > > > > > > > > On Fri, 09 Feb 2001, Lakshmi Gopinath wrote: > > > Hello Everybody, > > > > > > I need some help regarding socket programming.I need to do multiplex > between > > > multiple sockets. For the same purpose I tried 2 approaches. > > > > > > 1. using select > > > 2. using S_RCVTIMEO socket option. > > > > > > I wrote 2 simple programs - one that uses socket option and the other > that > > > uses select call. The program can accept UDP dgrams on 2 UDP ports.i > created > > > 3 simple programs. > > > selrecv.c - uses select to multiplex between the 2 udp ports > > > > > > sockrecv.c - uses socket options to multiplex between the 2 udp ports > > > > > > sender.c - sends udp dgrams. change the port no in the program to 8000 > > > ,create an executable and again change the program to 6000 and create > > > another executable.and use them 2 send dgrams to the 2 ports. > > > > > > But both the approaches failed... > > > 1. while using select unless dgram is first got from sockfd1 ( the first > > > recvfrom call) it does not go to the next recvfrom call..ie it blocks at > > > recvfrom then at select > > > > > > 2. while using socket option. i change the socket options using > setsockopt . > > > but when i verify it with getsockopt it remains unchanged. > > > > > > I am not able to understand the reason. Could someone plsssss help me > out > > > > > > Regards, > > > Lakshmi > > > > > > > > > > > > > > > > > > --------------------------------------------- > > > The mailing list archives are available at > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > --------------------------------------------- > 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 Feb 11 21:33:03 2001 Received: from mnmail1.HONEYWELL.COM (mnmail1.honeywell.com [129.30.244.30]) by www.aunet.org (Postfix) with ESMTP id B82DA4A519 for ; Sun, 11 Feb 2001 21:15:31 -0800 (PST) Received: from ie10-sahara.hiso.honeywell.com ([204.220.169.46]) by mnmail1.HONEYWELL.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1N3A6LAF; Sun, 11 Feb 2001 23:11:04 -0600 Received: by ie10-sahara.hiso.honeywell.com with Internet Mail Service (5.5.2650.21) id <1TRMPJVW>; Mon, 12 Feb 2001 10:36:50 +0530 Message-ID: From: "Guruprasad, Mahendrakar V (IE10)" To: linux-india-programmers@lists.linux-india.org Subject: RE: shared library problem Date: Mon, 12 Feb 2001 10:40:24 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/131 X-Sequence-Number: 1587 1> gcc -shared -o libmylib.so test.c Note: mylib.so is to be changed to libmylib.so 2> su ( Become Super User ) 3> mv libmylib.so /lib 4> /sbin/ldconfig -n /lib ( See if this instruction can be skipped or not ) 5> then u can link it with -lmylib Following the above approach doesn't give "no such file or directory" > -----Original Message----- > From: Vani R. [SMTP:vani@accord-soft.com] > Sent: Thursday, February 08, 2001 5:05 PM > To: linux-india-programmers@lists.linux-india.org > Subject: Re: [LIP] shared library problem > > Hi sumit, > > That's fine. It works for me also. but what i want is using -L and -l > options. > I am giving the library path where the .so file is existing and -l option > to > specify the library name ( mylib.so ) . But when i use these options , i > am > getting error as "mylib.so - no such file or directory" . What should i do > ?? > > Thanks , > --vani-- > > Sumit Rangawala wrote: > > > Hi Vani > > just do gcc -o and it will > work > > . > > Its not necessary for you to have the name of the libfile to start with > > "lib" > > > > Regards > > Sumit > > > > "Vani R." wrote: > > > > > Hi All, > > > > > > I have a small problem linking to shared library. > > > I have created a shared library using " gcc -shared -o mylib.so > test.c" > > > when i try to link it using the -L option specifying the directory > where > > > this library is along with -l option specifying the library name , it > > > says , No such file or directory.Can anybody please help me in using > > > shared libraries created by us. > > > > > > Thanking in advance, > > > --vani-- > > > > > > -- > > > Many of the life's failures are people who didn't realize how close > they > > > were to success > > > when they gave up > > > --Thomus Edison > > > > > > --------------------------------------------- > > > 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 > > -- > Many of the life's failures are people who didn't realize how close they > were > to success > when they gave up > --Thomus Edison > > > > --------------------------------------------- > 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 Feb 11 21:33:10 2001 Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61]) by www.aunet.org (Postfix) with ESMTP id A62594A429 for ; Sun, 11 Feb 2001 21:18:13 -0800 (PST) Received: from dlep7.itg.ti.com ([157.170.134.103]) by gatekeep.ti.com (8.11.1/8.11.1) with ESMTP id f1C5DRr02328 for ; Sun, 11 Feb 2001 23:13:27 -0600 (CST) 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 XAA20580 for ; Sun, 11 Feb 2001 23:13:26 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id XAA20572 for ; Sun, 11 Feb 2001 23:13:25 -0600 (CST) Received: from apdsparc085.india.ti.com (apdsparc085 [157.87.88.99]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id KAA28321 for ; Mon, 12 Feb 2001 10:42:45 +0530 (IST) Received: from india.ti.com (localhost [127.0.0.1]) by apdsparc085.india.ti.com (8.9.3/8.9.3) with ESMTP id KAA29899 for ; Mon, 12 Feb 2001 10:43:22 +0530 (IST) Message-ID: <3A8770F2.123FF6C5@india.ti.com> Date: Mon, 12 Feb 2001 10:43:22 +0530 From: "Mallikarjuna Rao V.V.Ch." X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: ISO 9660 specifications.... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/132 X-Sequence-Number: 1588 Hi all, Can any one of U please point me to the information about the ISO 9660 specifications, which deal about the file system on CD-ROM. TIA, mallik From linux-india-programmers-owner@lists.linux-india.org Sun Feb 11 22:44:12 2001 Received: from sxu1006.smtp-gw.to (sxu1006.altaway.net [209.249.55.69]) by www.aunet.org (Postfix) with ESMTP id 3BB864A560 for ; Sun, 11 Feb 2001 22:38:56 -0800 (PST) Received: from AMBAR by sxu1006.smtp-gw.to (8.8.8/8.8.8) with SMTP id BAA20138 for ; Mon, 12 Feb 2001 01:34:15 -0500 (EST) Message-ID: <006501c094bd$e3cb5fa0$8900000a@aclindia.com> From: "Ambar Roy" To: References: <3A8770F2.123FF6C5@india.ti.com> Subject: Re: ISO 9660 specifications.... Date: Mon, 12 Feb 2001 12:04: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.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200102/133 X-Sequence-Number: 1589 Hi, > Can any one of U please point me to the information about the > ISO 9660 specifications, which deal about the file system on CD-ROM. I wud suggest that u go thru the implementation of iso9660 filesystem under linux. That shud give u good pointers. Bye, /\ |\/| |3 /\ r From linux-india-programmers-owner@lists.linux-india.org Sun Feb 11 23:43:10 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id CB7F44A47D for ; Sun, 11 Feb 2001 23:11:33 -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 f1C7E4a10638 for ; Mon, 12 Feb 2001 12:44:04 +0530 Message-ID: <3A878CF1.B5C68048@pspl.co.in> Date: Mon, 12 Feb 2001 12:42:49 +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 library problem References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/134 X-Sequence-Number: 1590 Hello "Guruprasad, Mahendrakar V (IE10)" wrote: > 2> su ( Become Super User ) > > 3> mv libmylib.so /lib > May I know why? /usr/local/lib may be a better place. Better you put following line in your shell startup srcipt like .bash_profile export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib Shall I say what you need to do additionally? > > 4> /sbin/ldconfig -n /lib ( See if this instruction can be skipped or not ) > Not required if you export LD_LIBRARY_PATH. > > 5> then u can link it with -lmylib > That's the goal. > > Following the above approach doesn't give "no such file or directory" > Sure but it's not a good/safe practice to fiddle around system directories with your development work. You are excused in /usr/local. So make it world writable and own it to some user. No problem. But please don't advise to mess around /lib etc... And BTW, I think the message was bit too long. It could have been trimmed a bit more.. :-)) Welcome to the help centre. The Antworks.. Shridhar From linux-india-programmers-owner@lists.linux-india.org Mon Feb 12 01:26:38 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 065084A449 for ; Mon, 12 Feb 2001 01:18:25 -0800 (PST) Received: from (jace.pobox.com) [210.214.146.211] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14SF00-0005zQ-00; Mon, 12 Feb 2001 02:13:37 -0700 Message-Id: <5.0.2.1.0.20010212143336.00a874e0@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Mon, 12 Feb 2001 14:36:38 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: shared library problem In-Reply-To: <3A878CF1.B5C68048@pspl.co.in> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/135 X-Sequence-Number: 1591 At 12:42 PM 2/12/2001 +0530, you wrote: >May I know why? /usr/local/lib may be a better place. Better you put following >line in your shell startup srcipt like .bash_profile > >export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib > >Shall I say what you need to do additionally? > > > > > 4> /sbin/ldconfig -n /lib ( See if this instruction can be skipped or not ) > > > >Not required if you export LD_LIBRARY_PATH. LD_LIBRARY_PATH is not always a workable solution. For security reasons, it's ignored when loading a setuid binary. Else you could easily make a backdoored version of a system library and make a setuid root program load it instead of the real library. -- Kiran Jonnalagadda www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Mon Feb 12 02:44:04 2001 Received: from tower.ti.com (tower.ti.com [192.94.94.5]) by www.aunet.org (Postfix) with ESMTP id 4E8B14A10F for ; Mon, 12 Feb 2001 02:27:17 -0800 (PST) Received: from dlep8.itg.ti.com ([157.170.134.88]) by tower.ti.com (8.11.1/8.11.1) with ESMTP id f1CAMUr17653 for ; Mon, 12 Feb 2001 04:22:30 -0600 (CST) Received: from dlep8.itg.ti.com (localhost [127.0.0.1]) by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id EAA15285 for ; Mon, 12 Feb 2001 04:22:29 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id EAA15269 for ; Mon, 12 Feb 2001 04:22:28 -0600 (CST) Received: from apdsparc085.india.ti.com (apdsparc085 [157.87.88.99]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id PAA24312 for ; Mon, 12 Feb 2001 15:51:47 +0530 (IST) Received: from india.ti.com (localhost [127.0.0.1]) by apdsparc085.india.ti.com (8.9.3/8.9.3) with ESMTP id PAA02236 for ; Mon, 12 Feb 2001 15:52:26 +0530 (IST) Message-ID: <3A87B962.252675E2@india.ti.com> Date: Mon, 12 Feb 2001 15:52:26 +0530 From: "Mallikarjuna Rao V.V.Ch." X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: Re: shared library problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/136 X-Sequence-Number: 1592 Hi Shridhar I tried this on Solaris cc. The option for the same is -h name. the help for this says somethings like -h name Assigns a name to a shared dynamic library; allows you to keep different versions of a library. In general, the name after -h should be the same as the file name given in the -o option. The space between -h and name is optional. The linker assigns the specified name to the library and records the name in the library file as the intrin- sic name of the library. If there is no -h name option, then no intrinsic name is recorded in the library file. When the runtime linker loads the library into an exe- cutable file, it copies the intrinsic name from the library file into the executable, into a list of needed shared library files. Every executable has such a list. If there is no intrinsic name of a shared library, then the linker copies the path of the shared library file instead. What I found was that while compiling It requires the file name to be libmy.so if I give -l option. The name specified by -h option comes into picture only while executing the file and not during compilation or linking. This still doesnot solve our original problem and do U know any utility of this feature? regards, mallik. Shridhar Daithankar wrote: > > Have you used -soname flag. I sets an internal field of library which is > preferred. > > i.e. if you have a file myfile.so with internal field set to mylib, then -lmylib > will pick up myfile.so even if there is no file mylib.so. > > This is a recommended method rather than relying on file name. > > man ld for more details... > > Shridhar > > "Vani R." wrote: > > > Hi sumit, > > > > That's fine. It works for me also. but what i want is using -L and -l options. > > I am giving the library path where the .so file is existing and -l option to > > specify the library name ( mylib.so ) . But when i use these options , i am > > getting error as "mylib.so - no such file or directory" . What should i do ?? From linux-india-programmers-owner@lists.linux-india.org Mon Feb 12 17:55:27 2001 Received: from web1106.mail.yahoo.com (web1106.mail.yahoo.com [128.11.23.126]) by www.aunet.org (Postfix) with SMTP id 5CB4D4A171 for ; Mon, 12 Feb 2001 17:55:25 -0800 (PST) Received: (qmail 23099 invoked by uid 60001); 13 Feb 2001 01:50:34 -0000 Message-ID: <20010213015034.23098.qmail@web1106.mail.yahoo.com> Received: from [129.188.33.226] by web1106.mail.yahoo.com; Mon, 12 Feb 2001 17:50:34 PST Date: Mon, 12 Feb 2001 17:50:34 -0800 (PST) From: Rudraashish Subject: function with variable number of arguments ! To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200102/137 X-Sequence-Number: 1593 Hi All, I am facing one problem here related to getting traces out of my code. The way traces have been implemented in the code is that I have one hash define( RUDRA_PRINT) defined in a header file as #define RUDRA_PRINT printf. In the code, this is something like this RUDRA_PRINT("Hello, World\n"); Actually, the requirement is to use "lprintf"( someone who is using my code has defined this) instead of "printf" to get the traces. The only difference between these are that lprintf has additional 1st agrument which is some integer value signifying TERMINAL_ID. Well, I am not able to figure put how to define RUDRA_PRINT so that I get the traces. All the attempts like RUDRA_PRINT(X) lprint(value,X) are failing while compiling. so what i did was i declared RUDRA_PRINT as RUDRA_PRINT new_print with prototype of new_print to be same as printf ( i.e variable number of arguments ) So to correct this, I implemented ( obviously following K&R) a simple printf function using declarations in "stdarg.h" e.g. va_start, va_end etc. so for this I had to include "stdarg.h". Now, the problem is guy doesn't want, preferably, any standard header files to be included in code. So I can't use this. Can u think of some alternative ? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Feb 12 20:42:18 2001 Received: from web4601.mail.yahoo.com (web4601.mail.yahoo.com [216.115.105.156]) by www.aunet.org (Postfix) with SMTP id 119AD4A16A for ; Mon, 12 Feb 2001 20:42:13 -0800 (PST) Message-ID: <20010213043722.5808.qmail@web4601.mail.yahoo.com> Received: from [202.9.174.80] by web4601.mail.yahoo.com; Mon, 12 Feb 2001 20:37:22 PST Date: Mon, 12 Feb 2001 20:37:22 -0800 (PST) From: lakshmi gopinath To: rkp@intotoinc.com Cc: ilugc@aero.iitm.ernet.in MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200102/138 X-Sequence-Number: 1594 Hi, Thanks for helping me out. I am yet to use poll. But I am still having problem with select. In the following code both the FD_ISSET macro is returning 1 for both the calls to select even before data has arrived on them ! So the recvfrom calls are proceeding sequentially and until data arrives in the recvfrom call it is blocking. for(;;) { FD_SET(sockfd1,&set); FD_SET(sockfd2,&set); maxfd1 = max(sockfd1,sockfd2) + 1; select(maxfd1,&set,&set,NULL,&time); printf("\n sokcfd1 status = %d",FD_ISSET(sockfd1,&set); printf("\n sokcfd 2 status = %d",FD_ISSET(sockfd2,&set); if(status = FD_ISSET(sockfd1,&set)) { bzero(buff1,sizeof(buff1)); count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0,(struct sockaddr *)&client,&addrlen); printf("\n %s",buff1); } if(status = FD_ISSET(sockfd2,&set)) { bzero(buff2,sizeof(buff2)); count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0, (struct sockaddr *)&client,&addrlen); printf("\n %s ",buff2); } } } So i decided to make the recvfrom call non-blocking by using the flag MSG_DONTWAIT flag option. and i changed the code for both the sockets as follows : count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),MSG_DONTWAIT, (struct sockaddr *)&client,&addrlen); if(errno != EWOULDBLCOK) printf("\n %s ",buff2); but in this case both the sockets are not accepting data from their respective buffers. I am still not able to identiful the problem. Could you please help me out. I am refering Unix Network Programming by Richard Stevens, edition 2. Regards, Lakshmi __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Feb 12 20:49:52 2001 Received: from venus.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id 236394A20A for ; Mon, 12 Feb 2001 20:48:28 -0800 (PST) Received: from ramakrishna.roc.com (rkp.roc.com [172.16.5.88]) by venus.roc.com (8.9.3/8.9.3) with SMTP id WAA26724 for ; Mon, 12 Feb 2001 22:23:32 +0530 From: Ch Rama Krishna Prasad Reply-To: rkp@intotoinc.com Organization: Intoto Inc To: LIP Subject: problem with dynamic module Date: Tue, 13 Feb 2001 10:06:03 +0530 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <01021310064601.00720@ramakrishna.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/139 X-Sequence-Number: 1595 I am working on a Pseudo driver which is dynamically loaded. Driver code has no. of case statements as part of a big switch. The driver is loaded without any problem by "insmod". The size of the module is around 285K. But when i am adding some more case statements and code under them, the kernel is crashing. When i remove some case statements any where in the switch , the code is again working "ok" . I want to know whether there is a limit on no. of cases under switch or is it a problem of stack overflow ? Any help is appreciated. TIA RKP From linux-india-programmers-owner@lists.linux-india.org Mon Feb 12 21:10:23 2001 Received: from venus.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id 291C54A19D for ; Mon, 12 Feb 2001 21:10:18 -0800 (PST) Received: from ramakrishna.roc.com (rkp.roc.com [172.16.5.88]) by venus.roc.com (8.9.3/8.9.3) with SMTP id WAA26820; Mon, 12 Feb 2001 22:45:30 +0530 From: Ch Rama Krishna Prasad Reply-To: rkp@intotoinc.com Organization: Intoto Inc To: linux-india-programmers@lists.linux-india.org, lakshmi gopinath , rkp@intotoinc.com Subject: Re: Date: Tue, 13 Feb 2001 10:21:55 +0530 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: ilugc@aero.iitm.ernet.in References: <20010213043722.5808.qmail@web4601.mail.yahoo.com> In-Reply-To: <20010213043722.5808.qmail@web4601.mail.yahoo.com> MIME-Version: 1.0 Message-Id: <01021310284402.00720@ramakrishna.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/140 X-Sequence-Number: 1596 Hi Gopinath, Try this one statements struct pollfd CbQPollFd[POLL_MAX_FD]; /****** For Read Events *************/ CbQPollFd[ii].fd = lpSeudoDesc; CbQPollFd[ii].events = 0 | POLLIN | POLLRDNORM; CbQPollFd[ii].revents = 0; ii++; /******* For Write Events *************/ CbQPollFd[ii].fd = lpSocketDesc; CbQPollFd[ii].events = 0 | POLLOUT | POLLWRNORM; CbQPollFd[ii].revents = 0; ii++; ulRt_Value = poll(CbQPollFd,ii,20000); if (ulRt_Value < 0) { perror("poll"); exit(1); for(jj = 1; jj < ii; jj++) { if(CbQPollFd[jj].revents) then check for each socket if the revents is etted to any read or write evnts. Just i given some code you will expand it . It will work with this changes. From Ch.Rama krishna Prasad On Tue, 13 Feb 2001, lakshmi gopinath wrote: > Hi, > > Thanks for helping me out. I am yet to use poll. But I > am still having > problem with select. In the following code both the > FD_ISSET macro is > returning 1 for both the calls to select even before > data has arrived on > them ! So the recvfrom calls are proceeding > sequentially and until data > arrives in the recvfrom call it is blocking. > > for(;;) > { > FD_SET(sockfd1,&set); > FD_SET(sockfd2,&set); > maxfd1 = max(sockfd1,sockfd2) + 1; > select(maxfd1,&set,&set,NULL,&time); > printf("\n sokcfd1 status = > %d",FD_ISSET(sockfd1,&set); > printf("\n sokcfd 2 status = > %d",FD_ISSET(sockfd2,&set); > > if(status = FD_ISSET(sockfd1,&set)) > { > bzero(buff1,sizeof(buff1)); > count = recvfrom(sockfd1,(char > *)buff1,sizeof(buff1),0,(struct > sockaddr *)&client,&addrlen); > printf("\n %s",buff1); > } > > if(status = FD_ISSET(sockfd2,&set)) > { > bzero(buff2,sizeof(buff2)); > count = recvfrom(sockfd2,(char > *)buff2,sizeof(buff2),0, (struct > sockaddr *)&client,&addrlen); > printf("\n %s ",buff2); > } > } > } > > So i decided to make the recvfrom call non-blocking by > using the flag > MSG_DONTWAIT flag option. and i changed the code for > both the sockets as > follows : > > count = recvfrom(sockfd2,(char > *)buff2,sizeof(buff2),MSG_DONTWAIT, (struct > sockaddr *)&client,&addrlen); > if(errno != EWOULDBLCOK) > printf("\n %s ",buff2); > > > but in this case both the sockets are not accepting > data from their > respective buffers. I am still not able to identiful > the problem. Could you > please help me out. I am refering Unix Network > Programming by Richard > Stevens, edition 2. > > Regards, > Lakshmi > > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.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 Feb 12 22:01:38 2001 Received: from prodserver1.goatelecom.com (unknown [210.212.161.28]) by www.aunet.org (Postfix) with ESMTP id AC2864A02E for ; Mon, 12 Feb 2001 22:01:28 -0800 (PST) Received: from localhost.localdomain by prodserver1.goatelecom.com (8.9.3/1.1.20.3/07Jul00-0916AM) id KAA0000009692; Tue, 13 Feb 2001 10:26:29 +0530 (IST) Received: (from gaurav@localhost) by localhost.localdomain (8.9.3/8.9.3) id KAA00892 for linux-india-programmers@lists.linux-india.org; Tue, 13 Feb 2001 10:23:55 +0530 X-Authentication-Warning: localhost.localdomain: gaurav set sender to gauravp@im.eth.net using -f Date: Tue, 13 Feb 2001 10:23:54 +0530 From: Gaurav Priyolkar To: Linux India Programmers List Subject: programming documentation links Message-ID: <20010213102354.B867@goatelecom.com> Reply-To: Gaurav Priyolkar Mail-Followup-To: Linux India Programmers List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Archive-Number: 200102/141 X-Sequence-Number: 1597 Hi all, Here is a list of links to sites with literature on programming from among my bookmarks. I have already 'wgot' most of them and so have not checked them out in quite a while. I hope there are no dead-links. http://docs.linux.cz/ http://pubpages.unh.edu/~gherrin/project/linux-net.html http://www.dynacomp.gr/download/Linux/books-for-unix/index.html http://linux.tomsk.ru/docs/ http://www.ecst.csuchico.edu/~beej/guide/ http://www.mindview.net/ThinkingInCPP2e.html http://www.doc.ic.ac.uk/lab/secondyear/cstyle/cstyle.html http://www.mysteries-megasite.com/linux/C-tutorial.html http://linux.foobar.tm/doc/rfc/ http://www.longkou.net/linux/network/tcpip14days/index.htm http://sunsite.iisc.ernet.in/collection/virlib/linux/husain/ewtoc.html http://linux.tomsk.ru/docs/network/managing-multivendor-networks/ I found a couple of these quite useful and hope that they may come in handy. If anybody else has links to sites carrying useful documentation please post them. Sridhar posts links from time to time and they are very useful ... keep them coming Sridhar! BTW, are there any issues regarding wget'ing sites containing such documentation? I suppose what is posted on the net is free for all to read, but as it is not possible to be online the whole time, there is no problem grabbing stuff to read offline ... is there? -Gaurav -- APATHY ERROR: Don't bother striking any key. From linux-india-programmers-owner@lists.linux-india.org Mon Feb 12 23:41:12 2001 Received: from cdacb.ernet.in (cdacb.ernet.in [202.141.63.1]) by www.aunet.org (Postfix) with ESMTP id 6030B4A0C2 for ; Mon, 12 Feb 2001 23:41:06 -0800 (PST) Received: from localhost.localdomain (IDENT:root@snowhite [202.141.63.90]) by cdacb.ernet.in (8.9.2/8.9.2) with ESMTP id NAA08438 for ; Tue, 13 Feb 2001 13:07:55 -0500 (GMT) From: jk76_in@yahoo.com Received: (from kishoor@localhost) by localhost.localdomain (8.9.3/8.8.7) id NAA04990 for linux-india-programmers@lists.linux-india.org; Tue, 13 Feb 2001 13:13:58 +0530 X-Authentication-Warning: localhost.localdomain: kishoor set sender to jk76_in@yahoo.com using -f Date: Tue, 13 Feb 2001 13:13:57 +0530 To: linux-india-programmers@lists.linux-india.org Subject: Scheduler Message-ID: <20010213131357.A4973@snowhite> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i X-Archive-Number: 200102/142 X-Sequence-Number: 1598 Hi, Can any one explain how scheduling is done in linux Regards, Jayanth. From linux-india-programmers-owner@lists.linux-india.org Tue Feb 13 06:40:37 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 280084A06A for ; Tue, 13 Feb 2001 06:40:30 -0800 (PST) Received: from default (unknown [203.199.228.168]) by md4.vsnl.net.in (Postfix) with SMTP id 52926A005; Tue, 13 Feb 2001 20:09:57 +0530 (IST) Message-ID: <001501c09565$790ffba0$a8e4c7cb@default> From: "Lakshmi Gopinath" To: , Cc: References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> <005801c093e8$6ef1a5c0$ad87c5cb@default> <01021210070602.00753@ramakrishna.roc.com> Subject: Re: I/O multiplexing among socket descriptors Date: Mon, 12 Feb 2001 20:16:27 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/143 X-Sequence-Number: 1599 Hi, Thanks for helping me out. I am yet to use poll. But I am still having problem with select. In the following code both the FD_ISSET macro is returning 1 for both the calls to select even before data has arrived on them ! So the recvfrom calls are proceeding sequentially and until data arrives in the recvfrom call it is blocking. for(;;) { FD_SET(sockfd1,&set); FD_SET(sockfd2,&set); maxfd1 = max(sockfd1,sockfd2) + 1; select(maxfd1,&set,&set,NULL,&time); printf("\n sokcfd1 status = %d",FD_ISSET(sockfd1,&set); printf("\n sokcfd 2 status = %d",FD_ISSET(sockfd2,&set); if(status = FD_ISSET(sockfd1,&set)) { bzero(buff1,sizeof(buff1)); count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0,(struct sockaddr *)&client,&addrlen); printf("\n %s",buff1); } if(status = FD_ISSET(sockfd2,&set)) { bzero(buff2,sizeof(buff2)); count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0, (struct sockaddr *)&client,&addrlen); printf("\n %s ",buff2); } } } So i decided to make the recvfrom call non-blocking by using the flag MSG_DONTWAIT flag option. and i changed the code for both the sockets as follows : count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),MSG_DONTWAIT, (struct sockaddr *)&client,&addrlen); if(errno != EWOULDBLCOK) printf("\n %s ",buff2); but in this case both the sockets are not accepting data from their respective buffers. I am still not able to identiful the problem. Could you please help me out. I am refering Unix Network Programming by Richard Stevens, edition 2. Regards, Lakshmi ----- Original Message ----- From: "Ch Rama Krishna Prasad" To: ; "Lakshmi Gopinath" ; Cc: Sent: Monday, February 12, 2001 10:03 AM Subject: Re: [LIP] I/O multiplexing among socket descriptors > Hi Lakshmi gopinath, > I want to say one thing is that in select also we can set the events > intersted in so taht when the data comes on the socket it will set the revents > .. If the revents is read event then we can read the data and if the event is > write event you can send the data, For more see man on poll . if you have any > doubts contact me. > On more thing poll is better than select so use poll. > > From > Ch.R.k.Prasad > > On Sun, 11 Feb 2001, Lakshmi Gopinath wrote: > > Hi Rama Krishna Prasad, > > > > Thanks for helping me out.But I am still facing some problems. fcntl can be > > used to set the socket in non-blocking mode. but the purpose of select/poll > > is that the process should block at select or poll instead of call to read > > or write or the like , till one of the sockets it is tesing becomes readable > > or writable or an exception condition occurs.for this why do i have to set > > the socket to non-blocking mode. bcoz anyway the process has to block in the > > select system call. > > > > my purpose is to wait on a particular socket for a few seconds for data to > > arrive and if data does not arrive i want to move on to the next socket. i > > realised that linux does not support RCVTIMEO socket option. so i wanted to > > use the timer option in select. so i wrote this piece of code : > > for(;;) > > { > > FD_SET(sockfd1,&set); > > FD_SET(sockfd2,&set); > > maxfd1 = max(sockfd1,sockfd2) + 1; > > select(maxfd1,&set,&set,NULL,&time); > > if(FD_ISSET(sockfd1,&set)) > > { > > count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0, > > (struct sockaddr *)&client,&addrlen); > > printf("\n %s ",buff1); > > } > > if(FD_ISSET(sockfd2,&set)) > > { > > count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0, > > (struct sockaddr *)&client,&addrlen); > > printf("\n %s ",buff2); > > } > > } > > > > but only after data arrives on sockfd1 does it move onto sockfd2. i cannot > > understand the reason for this. could you please help me out. > > > > Regards, > > lakshmi > > > > > > > > ----- Original Message ----- > > From: "Ch Rama Krishna Prasad" > > To: ; "Lakshmi Gopinath" > > ; > > Cc: > > Sent: Saturday, February 10, 2001 9:50 AM > > Subject: Re: [LIP] I/O multiplexing among socket descriptors > > > > > > > Hi GopiNath, > > > > > > you are trying blocking sockets. Then recvfrom,recv,sen,sendto are > > blocking > > > system calls. First open the socket in non blocking mode so taht it will > > not > > > block the sockets. > > > > > > Example like this > > > lSockid=socket(AF_INET,SOCK_DGRAM,0); > > > /* > > > * Get the flags of the socket > > > */ > > > if((flags = fcntl(lSockid, F_GETFL, 0)) < 0) > > > { > > > perror("CreateSocket():The getting flags is failed"); > > > return(-1); > > > } > > > > > > /* > > > * Set the flag to Non-block mode > > > */ > > > if( fcntl( lSockid, F_SETFL, flags | O_NONBLOCK ) < 0 ) > > > { > > > perror("CreateSocket():theSetting Flags Failed"); > > > return(-1); > > > } > > > > > > Now the socket will be non blocking mode and use the getsockopt option to > > get > > > the socket options and bu using the select or poll system call you will > > proceed. > > > > > > From > > > Ch.R.K.Prasad > > > > > > > > > > > > > > > On Fri, 09 Feb 2001, Lakshmi Gopinath wrote: > > > > Hello Everybody, > > > > > > > > I need some help regarding socket programming.I need to do multiplex > > between > > > > multiple sockets. For the same purpose I tried 2 approaches. > > > > > > > > 1. using select > > > > 2. using S_RCVTIMEO socket option. > > > > > > > > I wrote 2 simple programs - one that uses socket option and the other > > that > > > > uses select call. The program can accept UDP dgrams on 2 UDP ports.i > > created > > > > 3 simple programs. > > > > selrecv.c - uses select to multiplex between the 2 udp ports > > > > > > > > sockrecv.c - uses socket options to multiplex between the 2 udp ports > > > > > > > > sender.c - sends udp dgrams. change the port no in the program to 8000 > > > > ,create an executable and again change the program to 6000 and create > > > > another executable.and use them 2 send dgrams to the 2 ports. > > > > > > > > But both the approaches failed... > > > > 1. while using select unless dgram is first got from sockfd1 ( the first > > > > recvfrom call) it does not go to the next recvfrom call..ie it blocks at > > > > recvfrom then at select > > > > > > > > 2. while using socket option. i change the socket options using > > setsockopt . > > > > but when i verify it with getsockopt it remains unchanged. > > > > > > > > I am not able to understand the reason. Could someone plsssss help me > > out > > > > > > > > Regards, > > > > Lakshmi > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------- > > > > The mailing list archives are available at > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > > > > --------------------------------------------- > > 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 Feb 13 11:52:25 2001 Received: from MailAndNews.com (unknown [199.29.68.123]) by www.aunet.org (Postfix) with ESMTP id 818EA4A00C for ; Tue, 13 Feb 2001 11:52:22 -0800 (PST) X-WM-Posted-At: MailAndNews.com; Tue, 13 Feb 01 14:46:21 -0500 X-WebMail-UserID: kameshj Date: Tue, 13 Feb 2001 14:46:21 -0500 From: kamesh jayachandran To: linux-india-programmers@lists.linux-india.org X-EXP32-SerialNo: 50000000 Subject: How to make stored procedures in postgres? Message-ID: <3A8D8466@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: 200102/144 X-Sequence-Number: 1600 Hai All, I have a query regarding postgres.Does Postgres support stored procedure?If so please guide me in the process. Thanks in advance kamesh jayachandran Windows is a 32 bit patch to a 16 bit GUI based on 8 bit OS written for a 4 bit processor by a 2 bit company which cannot stand 1 bit of competition. Software Engineer Planetasia Ltd Bangalore From linux-india-programmers-owner@lists.linux-india.org Tue Feb 13 21:23:23 2001 Received: from cisco.com (megha.cisco.com [192.122.173.140]) by www.aunet.org (Postfix) with ESMTP id 59DCA4A1B9 for ; Tue, 13 Feb 2001 21:23:19 -0800 (PST) Received: (from cbala@localhost) by cisco.com (8.8.8/2.6/Cisco List Logging/8.8.8) id KAA23182; Wed, 14 Feb 2001 10:46:55 +0530 (IST) From: Balachander Chandrasekaran Message-Id: <200102140516.KAA23182@cisco.com> Subject: Re: I/O multiplexing among socket descriptors To: ilugc@aero.iitm.ernet.in Date: Wed, 14 Feb 2001 10:46:55 +0530 (IST) Cc: rkp@intotoinc.com, linux-india-programmers@lists.linux-india.org In-Reply-To: <001501c09565$790ffba0$a8e4c7cb@default> from "Lakshmi Gopinath" at Feb 12, 2001 08:16:27 PM X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/145 X-Sequence-Number: 1601 Hi Check for select return value. accept and select functions can be interrupted. So you need to check errno value and see whether its EINTR and continue. Something like for(;;) { FS_SETs status = select(..); if (status < 0) { if (errno == EINTR) continue; else { perror("select"); break; } } } Regards -Bala > > Hi, > > Thanks for helping me out. I am yet to use poll. But I am still having > problem with select. In the following code both the FD_ISSET macro is > returning 1 for both the calls to select even before data has arrived on > them ! So the recvfrom calls are proceeding sequentially and until data > arrives in the recvfrom call it is blocking. > > for(;;) > { > FD_SET(sockfd1,&set); > FD_SET(sockfd2,&set); > maxfd1 = max(sockfd1,sockfd2) + 1; > select(maxfd1,&set,&set,NULL,&time); > printf("\n sokcfd1 status = %d",FD_ISSET(sockfd1,&set); > printf("\n sokcfd 2 status = %d",FD_ISSET(sockfd2,&set); > > if(status = FD_ISSET(sockfd1,&set)) > { > bzero(buff1,sizeof(buff1)); > count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0,(struct > sockaddr *)&client,&addrlen); > printf("\n %s",buff1); > } > > if(status = FD_ISSET(sockfd2,&set)) > { > bzero(buff2,sizeof(buff2)); > count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0, (struct > sockaddr *)&client,&addrlen); > printf("\n %s ",buff2); > } > } > } > > So i decided to make the recvfrom call non-blocking by using the flag > MSG_DONTWAIT flag option. and i changed the code for both the sockets as > follows : > > count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),MSG_DONTWAIT, (struct > sockaddr *)&client,&addrlen); > if(errno != EWOULDBLCOK) > printf("\n %s ",buff2); > > > but in this case both the sockets are not accepting data from their > respective buffers. I am still not able to identiful the problem. Could you > please help me out. I am refering Unix Network Programming by Richard > Stevens, edition 2. > > Regards, > Lakshmi > > > > > > > > > ----- Original Message ----- > From: "Ch Rama Krishna Prasad" > To: ; "Lakshmi Gopinath" > ; > Cc: > Sent: Monday, February 12, 2001 10:03 AM > Subject: Re: [LIP] I/O multiplexing among socket descriptors > > > > Hi Lakshmi gopinath, > > I want to say one thing is that in select also we can set the events > > intersted in so taht when the data comes on the socket it will set the > revents > > .. If the revents is read event then we can read the data and if the event > is > > write event you can send the data, For more see man on poll . if you have > any > > doubts contact me. > > On more thing poll is better than select so use poll. > > > > From > > Ch.R.k.Prasad > > > > On Sun, 11 Feb 2001, Lakshmi Gopinath wrote: > > > Hi Rama Krishna Prasad, > > > > > > Thanks for helping me out.But I am still facing some problems. fcntl can > be > > > used to set the socket in non-blocking mode. but the purpose of > select/poll > > > is that the process should block at select or poll instead of call to > read > > > or write or the like , till one of the sockets it is tesing becomes > readable > > > or writable or an exception condition occurs.for this why do i have to > set > > > the socket to non-blocking mode. bcoz anyway the process has to block in > the > > > select system call. > > > > > > my purpose is to wait on a particular socket for a few seconds for data > to > > > arrive and if data does not arrive i want to move on to the next socket. > i > > > realised that linux does not support RCVTIMEO socket option. so i wanted > to > > > use the timer option in select. so i wrote this piece of code : > > > for(;;) > > > { > > > FD_SET(sockfd1,&set); > > > FD_SET(sockfd2,&set); > > > maxfd1 = max(sockfd1,sockfd2) + 1; > > > select(maxfd1,&set,&set,NULL,&time); > > > if(FD_ISSET(sockfd1,&set)) > > > { > > > count = recvfrom(sockfd1,(char *)buff1,sizeof(buff1),0, > > > (struct sockaddr *)&client,&addrlen); > > > printf("\n %s ",buff1); > > > } > > > if(FD_ISSET(sockfd2,&set)) > > > { > > > count = recvfrom(sockfd2,(char *)buff2,sizeof(buff2),0, > > > (struct sockaddr *)&client,&addrlen); > > > printf("\n %s ",buff2); > > > } > > > } > > > > > > but only after data arrives on sockfd1 does it move onto sockfd2. i > cannot > > > understand the reason for this. could you please help me out. > > > > > > Regards, > > > lakshmi > > > > > > > > > > > > ----- Original Message ----- > > > From: "Ch Rama Krishna Prasad" > > > To: ; "Lakshmi Gopinath" > > > ; > > > Cc: > > > Sent: Saturday, February 10, 2001 9:50 AM > > > Subject: Re: [LIP] I/O multiplexing among socket descriptors > > > > > > > > > > Hi GopiNath, > > > > > > > > you are trying blocking sockets. Then recvfrom,recv,sen,sendto are > > > blocking > > > > system calls. First open the socket in non blocking mode so taht it > will > > > not > > > > block the sockets. > > > > > > > > Example like this > > > > lSockid=socket(AF_INET,SOCK_DGRAM,0); > > > > /* > > > > * Get the flags of the socket > > > > */ > > > > if((flags = fcntl(lSockid, F_GETFL, 0)) < 0) > > > > { > > > > perror("CreateSocket():The getting flags is failed"); > > > > return(-1); > > > > } > > > > > > > > /* > > > > * Set the flag to Non-block mode > > > > */ > > > > if( fcntl( lSockid, F_SETFL, flags | O_NONBLOCK ) < 0 ) > > > > { > > > > perror("CreateSocket():theSetting Flags Failed"); > > > > return(-1); > > > > } > > > > > > > > Now the socket will be non blocking mode and use the getsockopt option > to > > > get > > > > the socket options and bu using the select or poll system call you > will > > > proceed. > > > > > > > > From > > > > Ch.R.K.Prasad > > > > > > > > > > > > > > > > > > > > On Fri, 09 Feb 2001, Lakshmi Gopinath wrote: > > > > > Hello Everybody, > > > > > > > > > > I need some help regarding socket programming.I need to do multiplex > > > between > > > > > multiple sockets. For the same purpose I tried 2 approaches. > > > > > > > > > > 1. using select > > > > > 2. using S_RCVTIMEO socket option. > > > > > > > > > > I wrote 2 simple programs - one that uses socket option and the > other > > > that > > > > > uses select call. The program can accept UDP dgrams on 2 UDP ports.i > > > created > > > > > 3 simple programs. > > > > > selrecv.c - uses select to multiplex between the 2 udp ports > > > > > > > > > > sockrecv.c - uses socket options to multiplex between the 2 udp > ports > > > > > > > > > > sender.c - sends udp dgrams. change the port no in the program to > 8000 > > > > > ,create an executable and again change the program to 6000 and > create > > > > > another executable.and use them 2 send dgrams to the 2 ports. > > > > > > > > > > But both the approaches failed... > > > > > 1. while using select unless dgram is first got from sockfd1 ( the > first > > > > > recvfrom call) it does not go to the next recvfrom call..ie it > blocks at > > > > > recvfrom then at select > > > > > > > > > > 2. while using socket option. i change the socket options using > > > setsockopt . > > > > > but when i verify it with getsockopt it remains unchanged. > > > > > > > > > > I am not able to understand the reason. Could someone plsssss help > me > > > out > > > > > > > > > > Regards, > > > > > Lakshmi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------- > > > > > The mailing list archives are available at > > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > > > > > > > > --------------------------------------------- > > > Find out more about this and other Linux India > > > mailing lists at http://lists.linux-india.org/ > > > > --- > Visit our home page at: www.chennailug.org > Send e-mail to 'ilugc-request@aero.iitm.ernet.in' with 'unsubscribe' > in either the subject or the body to unsubscribe from this list. > > From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 00:14:09 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 69F084A4F5 for ; Tue, 13 Feb 2001 23:54:50 -0800 (PST) Received: from default (unknown [203.199.229.233]) by md4.vsnl.net.in (Postfix) with SMTP id 1E62CA335; Wed, 14 Feb 2001 13:24:16 +0530 (IST) Message-ID: <004701c095f5$f64ad780$e9e5c7cb@default> From: "Lakshmi Gopinath" To: "Ch Rama Krishna Prasad" , Cc: References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> Subject: Re: I/O multiplexing among socket descriptors Date: Wed, 14 Feb 2001 01:09:09 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/146 X-Sequence-Number: 1602 Hi Rama Krishna Prasad, I was finally able to solve the problem using poll. Thank you very much for your help. Regards, Lakshmi From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 03:45:35 2001 Received: from hwembmnvw001 (unknown [129.30.244.31]) by www.aunet.org (Postfix) with SMTP id EC4734A2B4 for ; Wed, 14 Feb 2001 03:41:55 -0800 (PST) Received: from 129.30.244.30 by hwembmnvw001 (InterScan E-Mail VirusWall NT); Wed, 14 Feb 2001 05:35:11 -0600 (Central Standard Time) Received: from ie10-sahara.hiso.honeywell.com (IE10-SAHARA [204.220.169.46]) by mnmail1.HONEYWELL.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1ZWMHQ6C; Wed, 14 Feb 2001 05:36:46 -0600 Received: by ie10-sahara.hiso.honeywell.com with Internet Mail Service (5.5.2650.21) id <1TRMPNWP>; Wed, 14 Feb 2001 17:02:10 +0530 Message-ID: From: "Kondaiah (IE10)" To: linux-india-programmers@lists.linux-india.org Cc: "Yeruva, Srinivas Reddy (IE10)" , "Kumar Ajit (IE10) (E-mail)" , "Guruprasad, Mahendrakar V (IE10)" Subject: Hi Date: Wed, 14 Feb 2001 17:05:57 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/147 X-Sequence-Number: 1603 Is there free any XML IDE(including parser) available for Linux?If so please guide me in the process. Thanks in advance Kondaiah Dasari ________________________________Honeywell Kondaiah Dasari Honeywell India Software Operation Pvt Ltd 19/4, Venkataswamy Naidu Road Tasker Town, Bangalore - 560051, INDIA Ph : 91-80-2860357 Fax : 91-80-2860356 Email :kondaiah@honeywell.com From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 04:38:52 2001 Received: from hwembmnvw001 (unknown [129.30.244.31]) by www.aunet.org (Postfix) with SMTP id 35D304A20B for ; Wed, 14 Feb 2001 04:33:22 -0800 (PST) Received: from 129.30.244.30 by hwembmnvw001 (InterScan E-Mail VirusWall NT); Wed, 14 Feb 2001 06:26:37 -0600 (Central Standard Time) Received: from ie10-sahara.hiso.honeywell.com (IE10-SAHARA [204.220.169.46]) by mnmail1.HONEYWELL.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1ZWMHRCZ; Wed, 14 Feb 2001 06:28:12 -0600 Received: by ie10-sahara.hiso.honeywell.com with Internet Mail Service (5.5.2650.21) id <1TRMPNZX>; Wed, 14 Feb 2001 17:53:38 +0530 Message-ID: From: "Mohan Prabhu (IE10)" To: "Kondaiah (IE10)" , "'linux-india-programmers@lists.linux-india.org'" Cc: "Yeruva, Srinivas Reddy (IE10)" , "Ajit, Kumar (IE10)" , "Guruprasad, Mahendrakar V (IE10)" Subject: RE: Hi Date: Wed, 14 Feb 2001 17:57:25 +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: 200102/148 X-Sequence-Number: 1604 Check this web site. hope it helps you.Also look at the contributions where some body has written a C++ wrapper class based on the c library at the following site below. http://xmlsoft.org/ http://xml.apache.org/xerces-c/index.html I have not tried but you can try it out and check whether it really works. I have tried only few commercial windows XML parsers. Bye Mohan Prabhu > -----Original Message----- > From: Kondaiah (IE10) > Sent: Wednesday, February 14, 2001 5:06 PM > To: linux-india-programmers@lists.linux-india.org > Cc: Yeruva, Srinivas Reddy (IE10); Kumar Ajit (IE10) (E-mail); > Guruprasad, Mahendrakar V (IE10) > Subject: Hi > > Is there free any XML IDE(including parser) available for Linux?If so > please > guide me in the process. > Thanks in advance > Kondaiah Dasari > > ________________________________Honeywell > Kondaiah Dasari > Honeywell India Software Operation Pvt Ltd > 19/4, Venkataswamy Naidu Road > Tasker Town, Bangalore - 560051, INDIA > Ph : 91-80-2860357 > Fax : 91-80-2860356 > Email :kondaiah@honeywell.com > > From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 04:43:21 2001 Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by www.aunet.org (Postfix) with ESMTP id C735D4A201 for ; Wed, 14 Feb 2001 04:36:31 -0800 (PST) Received: from fakir.india.hp.com (fakir.india.hp.com [15.10.40.3]) by palrel3.hp.com (Postfix) with ESMTP id 4C5752EA for ; Wed, 14 Feb 2001 04:31:32 -0800 (PST) Received: from india.hp.com (nt4257.india.hp.com [15.10.42.57]) by fakir.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id SAA28372 for ; Wed, 14 Feb 2001 18:02:41 +0530 (IST) Message-ID: <3A8A7A9F.8F283333@india.hp.com> Date: Wed, 14 Feb 2001 18:01:27 +0530 From: "G.L.Suresh" Organization: Hewlett Packard X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Hi References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/149 X-Sequence-Number: 1605 Hi dkon. If u have enough bandwith on the net to brouse.Go and explore this xml world http://www.startkabel.nl/k/xml/ all the best.aapka ke sub qauish poora hojayega. --- GL "Kondaiah (IE10)" wrote: > > Is there free any XML IDE(including parser) available for Linux?If so > please > guide me in the process. > Thanks in advance > Kondaiah Dasari > > ________________________________Honeywell > Kondaiah Dasari > Honeywell India Software Operation Pvt Ltd > 19/4, Venkataswamy Naidu Road > Tasker Town, Bangalore - 560051, INDIA > Ph : 91-80-2860357 > Fax : 91-80-2860356 > Email :kondaiah@honeywell.com > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 06:16:05 2001 Received: from narmada.river-valley.com (unknown [202.88.232.42]) by www.aunet.org (Postfix) with ESMTP id CB3084A889 for ; Wed, 14 Feb 2001 05:50:56 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by narmada.river-valley.com (8.9.3/8.8.7) with ESMTP id TAA05303 for ; Wed, 14 Feb 2001 19:20:24 +0530 Date: Wed, 14 Feb 2001 19:20:22 +0530 (IST) From: Radhakrishnan C V To: linux-india-programmers@lists.linux-india.org Subject: Re: RE: Hi In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/150 X-Sequence-Number: 1606 On Wed, 14 Feb 2001, Mohan Prabhu (IE10) wrote: : : I have not tried but you can try it out and check whether it : really works. I have tried only few commercial windows XML : parsers. There is James Clark's nsgmls, the best parser available (better than its commercial counterparts) for all platforms which along with -w xml switch can parse your XML documents painlessly. Why there is a necessity of an IDE, all you need is an ASCII editor (emacs might be a choice because it has an XML editing mode with psgml), a parser (nsgmls can do the job or look for IBM's XML parser in Java), an XSL processor (XT of James Clark, Xalan, Lark, etc). LT XML (Language Technology Group, Edinburg Univ) a collection of XML processing tools, is also available in Linux, which is worth trying. Please visit: http://xml.coverpages.org/publicSW.html for a variety of software tools for processing XML documents. As you can see, most of the tools are written in Java, it works well with your Linux box, provided you have Java Virtual Machine running. The best site for XML related information will be Robin Cover's XML pages at: http://www.oasis-open.org/cover/sgml-xml.html -- Radhakrishnan ------------------------------------------------------------------- GPG Fingerprint: 208E F5EB A4B4 2024 AEE9 575D 13DE E3B9 0292 70EF GPG Public key : http://www.river-valley.com/gpg/cvr.gpg From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 10:44:48 2001 Received: from mailweb6.rediffmail.com (unknown [202.54.124.151]) by www.aunet.org (Postfix) with SMTP id E92A34A1EF for ; Wed, 14 Feb 2001 10:44:44 -0800 (PST) Received: (qmail 26515 invoked by uid 510); 14 Feb 2001 18:37:04 -0000 Date: 14 Feb 2001 18:37:04 -0000 Message-ID: <20010214183704.26514.qmail@mailweb6.rediffmail.com> Received: from unknown (210.214.6.82) by rediffmail.com via HTTP; 14 Feb 2001 18:37:04 -0000 MIME-Version: 1.0 To: LIP Subject: X Window query From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/151 X-Sequence-Number: 1607 Hello! I am developing a software to monitor the X Window applications in Linux, using C and Xlib. I am able to find out which applications (windows) are open and even get some of the events that occur in those applications. My problem is that when I close any window while the system is being monitored, a message like this appears at the terminal. X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 20 (X_GetProperty) Resource id in failed request: 0x20002bb Serial number of failed request: 33677 Current serial number in output stream: 33677 Immediately, the monitoring stops and the command prompt appears. I use the XFetchName and XQueryTree functions for finding out the open windows. How can I suppress the above error message and *continue monitoring*? More still, how can I find out if a window has been closed? It does not work if I use a flag to mark a closed window. (I set this flag in the event handler for DestroyNotify). if (node->dflag == 2) { printf("Destroyed window\n"); return; } else { /* monitoring part */ } where node is a structure variable storing details about this window. The problem is compounded because the program is recursive to find out all the windows spawned by each window. I think the program terminates even before the check is performed the next time through the code. Please help. - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 13:59:40 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id BE4AB4A090 for ; Wed, 14 Feb 2001 13:59:36 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id NAA04587 for linux-india-programmers@lists.linux-india.org; Wed, 14 Feb 2001 13:53:34 -0800 Date: Wed, 14 Feb 2001 13:53:34 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Scheduler Message-ID: <20010214135334.A4579@sharmas.dhs.org> References: <20010213131357.A4973@snowhite> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010213131357.A4973@snowhite>; from jk76_in@yahoo.com on Tue, Feb 13, 2001 at 01:13:57PM +0530 X-Archive-Number: 200102/152 X-Sequence-Number: 1608 On Tue, Feb 13, 2001 at 01:13:57PM +0530, jk76_in@yahoo.com wrote: > Hi, > Can any one explain how scheduling is done in linux In a pretty simplistic way :) Look for IBM and UMich papers on the net. Read the book written by Uresh Vahalia on how Sys V and BSD based systems do it. -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 20:27:48 2001 Received: from mail.cse.iitk.ac.in (unknown [210.212.54.4]) by www.aunet.org (Postfix) with ESMTP id AB5F84A20C for ; Wed, 14 Feb 2001 20:27:39 -0800 (PST) Received: from cseultra2.cse.iitk.ac.in (cseultra2 [172.31.16.2]) by mail.cse.iitk.ac.in (8.9.3/8.9.3) with ESMTP id JAA27889 for ; Thu, 15 Feb 2001 09:51:20 +0530 Received: from csews13.cse.iitk.ac.in (IDENT:samba@csews13.cse.iitk.ac.in [172.31.18.13]) by cseultra2.cse.iitk.ac.in (8.10.1/8.10.1) with ESMTP id f1F4H6J18409 for ; Thu, 15 Feb 2001 09:47:06 +0530 (IST) Date: Tue, 15 Apr 1997 20:32:50 +0530 (IST) From: "Sambasiva Rao.B" To: linux-india-programmers@lists.linux-india.org Subject: Re: Scheduler In-Reply-To: <20010213131357.A4973@snowhite> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/153 X-Sequence-Number: 1609 On Tue, 13 Feb 2001 jk76_in@yahoo.com wrote: > Hi, > Can any one explain how scheduling is done in linux Each proceess was given priority(p_priority) based on user priority. For every clock cycle, the counter value decremented for the current running process. When counter reaches to zero swtch() called. To take care of aging, the prority is computed as p->counter = (p->counter/2) + p_nice The process having max(p->counter) will be scheduled. It is more efficint than BSD implementation --samba From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 21:58:11 2001 Received: from hwembmnvw001 (unknown [129.30.244.31]) by www.aunet.org (Postfix) with SMTP id 7895249F37 for ; Wed, 14 Feb 2001 21:58:05 -0800 (PST) Received: from 129.30.244.21 by hwembmnvw001 (InterScan E-Mail VirusWall NT); Wed, 14 Feb 2001 23:19:44 -0600 (Central Standard Time) Received: by HWEMNMN2601 with Internet Mail Service (5.5.2650.21) id <17J9GKRZ>; Wed, 14 Feb 2001 23:21:28 -0600 Message-ID: From: "Kondaiah (IE10)" To: linux-india-programmers@lists.linux-india.org Cc: "Umadevi (IE10)" Subject: RE: Scheduler Date: Wed, 14 Feb 2001 23:17:16 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/154 X-Sequence-Number: 1610 Hi folks, The Schduler scans the list of process in the list of process in the 'ready' state, and uses several criteria to choose which process to execute.The linux scheduler has three different scheduling policies:one for 'normal' processes, two for 'real time' processes. Each process has an associated process type, a fixed priority, and a variable priority.The process types can be: SCHED_FIFO for an a unalterable 'real time' process. SCHED_RR for an alterable 'real time' process. SCHED_OTHER for a 'classical' process. The scheduler policy depends upon the type of the processes in the'ready' list. When a process of the type SCHED_FIFO becomes ready,it is executed immediatel.The scheduler nominates the process with highest priority and executes it.This process is normally pre-emptible,that is , it has the processor resources, and the system will not interrupt its execution except in three situations: 1.Another process of the type SCHED_FIFO having higher priority becomes ready,and is then executed, 2.The process becomes suspended while waiting for an event, such as a input or output. 3.The process voluntarily gives up the processor following a call to the sched_yield.The process the passes the 'ready' state,and other processor are executed. .When a process of the type SCHED_RR becomes ready, it is executed immediately.Its behavior is thus similar to SCHED_FIFO, with one exception: when the process is executed, a time sot is attributed to it.When this time period has elapsed, processes of the types SCHED_FIFO OR SCHED_RR and having an equal or higher priority to the current process, may be selected and executed. Process of the type SCHED_OTHER can only be executed when no 'real time' processes in the ready state exist. The process to be excutedis then selected after considering the dynamic priorities.The dynamic priority of the process is decidedpartly the level specified by the usersystem calls 'nice' and setpriority, and partly by a factor calculated by the system.Inorder to take of aging activity, the priority of a processes which take several clock cycles to execute diminishes during execution and it may become of lower priority than processes which are not executing and whose priority is not modified. process->counter=(procee->conuter/Int value)+nice_priority specifed by the user. Implementation of scheduler can be read at kernel/sched.c. Thanks Kondaiah Dasari > -----Original Message----- > From: Sambasiva Rao.B [SMTP:samba@cse.iitk.ac.in] > Sent: Tuesday, April 15, 1997 8:33 PM > To: linux-india-programmers@lists.linux-india.org > Subject: Re: [LIP] Scheduler > > > On Tue, 13 Feb 2001 jk76_in@yahoo.com wrote: > > > Hi, > > Can any one explain how scheduling is done in linux > > Each proceess was given priority(p_priority) based on user > priority. For every clock cycle, the counter value decremented for the > current running process. When counter reaches to zero swtch() called. To > take care of aging, the prority is computed as > p->counter = (p->counter/2) + p_nice > > The process having max(p->counter) will be scheduled. > > It is more efficint than BSD implementation > > --samba > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 22:11:18 2001 Received: from cdacb.ernet.in (cdacb.ernet.in [202.141.63.1]) by www.aunet.org (Postfix) with ESMTP id C4A094A186 for ; Wed, 14 Feb 2001 22:11:08 -0800 (PST) Received: from localhost (chaitu@localhost) by cdacb.ernet.in (8.9.2/8.9.2) with ESMTP id LAA24187 for ; Thu, 15 Feb 2001 11:37:51 -0500 (GMT) Date: Thu, 15 Feb 2001 11:37:51 -0500 (GMT) From: Chaitu To: linux-india-programmers@lists.linux-india.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/155 X-Sequence-Number: 1611 When you compile a C program for profiling with gcc -pg , if there is no call to any userdefined function from main function, it is not giving call-graph data. I got this problem with MPI(message passing interface) application on Sun Ultra Sparc machines. What could be the problem ? Chaitanya From linux-india-programmers-owner@lists.linux-india.org Wed Feb 14 22:30:55 2001 Received: from cdacb.ernet.in (cdacb.ernet.in [202.141.63.1]) by www.aunet.org (Postfix) with ESMTP id 793124A387 for ; Wed, 14 Feb 2001 22:30:45 -0800 (PST) Received: from localhost.localdomain (IDENT:root@snowhite [202.141.63.90]) by cdacb.ernet.in (8.9.2/8.9.2) with ESMTP id LAA24743 for ; Thu, 15 Feb 2001 11:57:28 -0500 (GMT) From: jk76_in@yahoo.com Received: (from kishoor@localhost) by localhost.localdomain (8.9.3/8.8.7) id MAA12384 for linux-india-programmers@lists.linux-india.org; Thu, 15 Feb 2001 12:03:23 +0530 X-Authentication-Warning: localhost.localdomain: kishoor set sender to jk76_in@yahoo.com using -f Date: Thu, 15 Feb 2001 12:03:23 +0530 To: linux-india-programmers@lists.linux-india.org Subject: Re: Scheduler Message-ID: <20010215120323.A12367@snowhite> Reply-To: jk76_in@yahoo.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from Kondaiah@honeywell.com on Wed, Feb 14, 2001 at 11:17:16PM -0600 X-Archive-Number: 200102/156 X-Sequence-Number: 1612 Hi, How is the priority of process decided for process running in SCHED_FIFO & SCHED_RR. Thanks for helping me. Regards, Jayanth. On Wed, Feb 14, 2001 at 11:17:16PM -0600, Kondaiah (IE10) wrote: > Hi folks, > The Schduler scans the list of process in the list of process in the > 'ready' > state, and uses several criteria to choose which process to execute.The > linux scheduler has three different scheduling policies:one for 'normal' > processes, two for 'real time' processes. > Each process has an associated process type, a fixed priority, and a > variable priority.The process types can be: > SCHED_FIFO for an a unalterable 'real time' process. > SCHED_RR for an alterable 'real time' process. > SCHED_OTHER for a 'classical' process. > The scheduler policy depends upon the type of the processes in the'ready' > list. > When a process of the type SCHED_FIFO becomes ready,it is executed > immediatel.The scheduler nominates the process with highest priority and > executes it.This process is normally pre-emptible,that is , it has the > processor resources, and the system will not interrupt its execution except > in three situations: > 1.Another process of the type SCHED_FIFO having higher priority becomes > ready,and is then executed, > 2.The process becomes suspended while waiting for an event, such as a input > or output. > 3.The process voluntarily gives up the processor following a call to the > sched_yield.The process the passes the 'ready' state,and other processor > are executed. > > .When a process of the type SCHED_RR becomes ready, it is executed > immediately.Its behavior is thus > similar to SCHED_FIFO, with one exception: when the process is executed, a > time sot is attributed to it.When this time period has elapsed, processes of > the types SCHED_FIFO OR SCHED_RR and having an equal or higher priority to > the current process, may be selected and executed. > > Process of the type SCHED_OTHER can only be executed when no 'real time' > processes in the ready state exist. The process to be excutedis then > selected after considering the dynamic priorities.The dynamic priority of > the process is decidedpartly the level specified by the usersystem calls > 'nice' and setpriority, and partly by a factor calculated by the > system.Inorder to take of aging activity, the priority of a processes which > take several clock cycles to execute diminishes during execution and it may > become of lower priority than processes which are not executing and whose > priority is not modified. > process->counter=(procee->conuter/Int value)+nice_priority specifed by the > user. > > Implementation of scheduler can be read at kernel/sched.c. > > Thanks > Kondaiah Dasari > > > -----Original Message----- > > From: Sambasiva Rao.B [SMTP:samba@cse.iitk.ac.in] > > Sent: Tuesday, April 15, 1997 8:33 PM > > To: linux-india-programmers@lists.linux-india.org > > Subject: Re: [LIP] Scheduler > > > > > > On Tue, 13 Feb 2001 jk76_in@yahoo.com wrote: > > > > > Hi, > > > Can any one explain how scheduling is done in linux > > > > Each proceess was given priority(p_priority) based on user > > priority. For every clock cycle, the counter value decremented for the > > current running process. When counter reaches to zero swtch() called. To > > take care of aging, the prority is computed as > > p->counter = (p->counter/2) + p_nice > > > > The process having max(p->counter) will be scheduled. > > > > It is more efficint than BSD implementation > > > > --samba > > > > > > --------------------------------------------- > > An alpha version of a web based tool to manage > > your subscription with this mailing list is at > > http://lists.linux-india.org/cgi-bin/mj_wwwusr > > --------------------------------------------- > LIP is all for free speech. But it was created > for a purpose. Violations of the rules of > this list will result in stern action. -- 17th Rule of Friendship: A friend will refrain from telling you he picked up the same amount of life insurance coverage you did for half the price when yours is noncancellable. -- Esquire, May 1977 From linux-india-programmers-owner@lists.linux-india.org Thu Feb 15 03:49:29 2001 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 4F4334A057 for ; Thu, 15 Feb 2001 03:49:23 -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 RAA08331 for ; Thu, 15 Feb 2001 17:24:03 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA547B for ; Thu, 15 Feb 2001 17:14:09 +0530 Message-ID: <3A8BC1CE.F1235499@wipro.com> Date: Thu, 15 Feb 2001 17:17:26 +0530 From: Vibhu rishi X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: connecting to Windows machines Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/157 X-Sequence-Number: 1613 hi how do I connect to windows machines from my Linux dabba ? I am able to do the reverse, i.e. connect to my machine from a Windowz NT machine . I have configured samba for this. my main problem is that I am not able to access the official documents and the mp3 songs. Any help will be greatly appreciated. thanks in advance Vibhu.. From linux-india-programmers-owner@lists.linux-india.org Thu Feb 15 03:54:05 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 4764F4A0D3 for ; Thu, 15 Feb 2001 03:54:02 -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 f1FBu7Q15382 for ; Thu, 15 Feb 2001 17:26:07 +0530 Message-ID: <3A8BC399.9819490F@pspl.co.in> Date: Thu, 15 Feb 2001 17:25:06 +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: connecting to Windows machines References: <3A8BC1CE.F1235499@wipro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/158 X-Sequence-Number: 1614 Be root... # mount -t smb -o username,password //NT_trashcan/dirtycorner /mnt/smb/whatever where dirtycorner is the share name. Bye Shridhar Vibhu rishi wrote: > hi > > how do I connect to windows machines from my Linux dabba ? I am able to > do the reverse, i.e. connect to my machine from a Windowz NT machine . I > have configured samba for this. From linux-india-programmers-owner@lists.linux-india.org Thu Feb 15 03:56:06 2001 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 06EAF4A286 for ; Thu, 15 Feb 2001 03:56:01 -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 RAA09782 for ; Thu, 15 Feb 2001 17:30:41 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA657D for ; Thu, 15 Feb 2001 17:20:48 +0530 Message-ID: <3A8BC35D.6F8C2E70@wipro.com> Date: Thu, 15 Feb 2001 17:24:05 +0530 From: Vibhu rishi X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: connecting to Windows machines References: <3A8BC1CE.F1235499@wipro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/159 X-Sequence-Number: 1615 sorry, posted to the wrong list by mistake , but If you know how, then please let me know all the same :-) vibhu.. Vibhu rishi wrote: > hi > > how do I connect to windows machines from my Linux dabba ? I am able to > do the reverse, i.e. connect to my machine from a Windowz NT machine . I > have configured samba for this. > > my main problem is that I am not able to access the official documents > and the mp3 songs. Any help will be greatly appreciated. > > thanks in advance > > Vibhu.. > > --------------------------------------------- > 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 Feb 16 01:19:50 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 7F2004A01B for ; Fri, 16 Feb 2001 01:19:47 -0800 (PST) Received: from default (unknown [203.199.237.116]) by md4.vsnl.net.in (Postfix) with SMTP id A12B9AD23; Fri, 16 Feb 2001 14:49:05 +0530 (IST) Message-ID: <001d01c09794$22148ce0$dbecc7cb@default> From: "Lakshmi Gopinath" To: Cc: References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> Subject: read system call. Date: Fri, 16 Feb 2001 02:43: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.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/160 X-Sequence-Number: 1616 Hello Everybody, I wrote a simple program to read some data from an ordinary text file usng the read system call. but it does not seem to be working. cud someone pls help me out #include #include #include #include #include int main() { int fd,count; char buff[10]; if (fd = (open("/root/data",O_RDONLY,0) < 0)) { printf("\n %s",strerror(errno)); exit(-1); } bzero(buff,10); while(count = (read(fd,buff,sizeof(buff))) > 0) { printf("\n %s ",buff); printf("\n %d",count); bzero(buff,10); } } regards , lakshmi From linux-india-programmers-owner@lists.linux-india.org Fri Feb 16 02:23:03 2001 Received: from web12705.mail.yahoo.com (web12705.mail.yahoo.com [216.136.173.242]) by www.aunet.org (Postfix) with SMTP id C0FF64A021 for ; Fri, 16 Feb 2001 02:23:01 -0800 (PST) Message-ID: <20010216101757.64197.qmail@web12705.mail.yahoo.com> Received: from [216.6.88.34] by web12705.mail.yahoo.com; Fri, 16 Feb 2001 02:17:57 PST Date: Fri, 16 Feb 2001 02:17:57 -0800 (PST) From: deepak yadav Subject: Re: read system call. To: linux-india-programmers@lists.linux-india.org In-Reply-To: <001d01c09794$22148ce0$dbecc7cb@default> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200102/161 X-Sequence-Number: 1617 what made u say that ?? plz tell somethin about the expected o/p & result u got. one problem with the code is when u printf a string it should end with a '/0'. but here it may not(ie buff) if the file contains more than 9 chars. so i think u r getting some gibrish o/p ?? _d ee p a k_ --- Lakshmi Gopinath wrote: > Hello Everybody, > > I wrote a simple program to read some data from an > ordinary text file usng > the read system call. but it does not seem to be > working. cud someone pls > help me out > > > #include > #include > #include > #include > #include > > int main() > { > int fd,count; > char buff[10]; > if (fd = (open("/root/data",O_RDONLY,0) < 0)) > { > printf("\n %s",strerror(errno)); > exit(-1); > } > bzero(buff,10); > while(count = (read(fd,buff,sizeof(buff))) > 0) > { > printf("\n %s ",buff); > printf("\n %d",count); > bzero(buff,10); > } > } > > > > > > > regards , > lakshmi > > > > --------------------------------------------- > 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. > > > ===== ______________ _reply soon _bye __d ee p a k__ __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Fri Feb 16 03:01:53 2001 Received: from tower.ti.com (tower.ti.com [192.94.94.5]) by www.aunet.org (Postfix) with ESMTP id DB2B84A2A6 for ; Fri, 16 Feb 2001 02:56:14 -0800 (PST) Received: from dlep6.itg.ti.com ([157.170.188.9]) by tower.ti.com (8.11.1/8.11.1) with ESMTP id f1GApAr22957 for ; Fri, 16 Feb 2001 04:51:10 -0600 (CST) Received: from dlep6.itg.ti.com (localhost [127.0.0.1]) by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id EAA16187 for ; Fri, 16 Feb 2001 04:51:10 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id EAA16173 for ; Fri, 16 Feb 2001 04:51:08 -0600 (CST) Received: from india.ti.com (apdsparc089 [157.87.88.140]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id QAA21241 for ; Fri, 16 Feb 2001 16:20:23 +0530 (IST) Message-ID: <3A8D061A.50E9EC60@india.ti.com> Date: Fri, 16 Feb 2001 16:21:06 +0530 From: Sumit Rangawala Organization: Texas Instruments X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: read system call. References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> <001d01c09794$22148ce0$dbecc7cb@default> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/162 X-Sequence-Number: 1618 Hi, Rewrite : > if (fd = (open("/root/data",O_RDONLY,0) < 0)) as if((fd = open("/root/data",O_RDONLY,0)) < 0) By now i think you should have figured out what was the problem with your code. Regards Sumit From linux-india-programmers-owner@lists.linux-india.org Fri Feb 16 03:34:51 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.85.211]) by www.aunet.org (Postfix) with ESMTP id 70B944A169 for ; Fri, 16 Feb 2001 03:19:51 -0800 (PST) Received: (from shishir@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id QAA07893 for linux-india-programmers@lists.linux-india.org; Fri, 16 Feb 2001 16:53:48 +0530 Date: Fri, 16 Feb 2001 16:53:48 +0530 From: Shishir Pandey To: linux-india-programmers@lists.linux-india.org Subject: Re: read system call. Message-ID: <20010216165348.A7592@alice.bombay.retortsoft.com> Mail-Followup-To: Shishir Pandey , linux-india-programmers@lists.linux-india.org References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> <001d01c09794$22148ce0$dbecc7cb@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001d01c09794$22148ce0$dbecc7cb@default>; from lakbala@vsnl.com on Fri, Feb 16, 2001 at 02:43:19AM +0530 X-Archive-Number: 200102/163 X-Sequence-Number: 1619 Lakshmi Gopinath molested the spacetime to project in our dimension: > if (fd = (open("/root/data",O_RDONLY,0) < 0)) this line should be if((fd=open("/root/data",O_RDONLY))<0) your brackets are misplaced :-) > { > printf("\n %s",strerror(errno)); > exit(-1); > } > bzero(buff,10); this would need string.h and so would strerror > while(count = (read(fd,buff,sizeof(buff))) > 0) > { > printf("\n %s ",buff); > printf("\n %d",count); > bzero(buff,10); > } return here > } > Hope this works now Shishir -- "That's the problem with nature, something's always stinging you or oozing mucous all over you. Let's go and watch TV." --- Calvin From linux-india-programmers-owner@lists.linux-india.org Fri Feb 16 04:49:51 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.85.211]) by www.aunet.org (Postfix) with ESMTP id D30D24A677 for ; Fri, 16 Feb 2001 04:24:49 -0800 (PST) Received: (from binand@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id RAA11616; Fri, 16 Feb 2001 17:58:29 +0530 Date: Fri, 16 Feb 2001 17:58:29 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Cc: Shishir Pandey Subject: Re: read system call. Message-ID: <20010216175829.A11106@bombay.retortsoft.com> Mail-Followup-To: "Binand Raj S." , linux-india-programmers@lists.linux-india.org, Shishir Pandey References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> <001d01c09794$22148ce0$dbecc7cb@default> <20010216165348.A7592@alice.bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010216165348.A7592@alice.bombay.retortsoft.com>; from shishir@bombay.retortsoft.com on Fri, Feb 16, 2001 at 04:53:48PM +0530 X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200102/164 X-Sequence-Number: 1620 Shishir Pandey forced the electrons to say: > > bzero(buff,10); > this would need string.h and so would strerror Better still, use memset(3). bzero(3) is deprecated in favour of memset. Binand From linux-india-programmers-owner@lists.linux-india.org Fri Feb 16 10:39:16 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 05B9C4A115 for ; Fri, 16 Feb 2001 10:39:14 -0800 (PST) Received: from default (unknown [203.199.231.63]) by md4.vsnl.net.in (Postfix) with SMTP id B9513A5A5 for ; Sat, 17 Feb 2001 00:08:31 +0530 (IST) Message-ID: <000b01c097e2$48089920$3fe7c7cb@default> From: "Lakshmi Gopinath" To: Subject: Fw: read system call Date: Fri, 16 Feb 2001 12:02: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.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/165 X-Sequence-Number: 1621 hello guys, thanks for for your help..... regards, Lakshmi From linux-india-programmers-owner@lists.linux-india.org Fri Feb 16 18:53:44 2001 Received: from mulga.cs.mu.OZ.AU (mulga.cs.mu.OZ.AU [128.250.1.22]) by www.aunet.org (Postfix) with ESMTP id 49BB14A30A for ; Fri, 16 Feb 2001 18:53:39 -0800 (PST) Received: from queeg.cs.mu.OZ.AU (queeg.cs.mu.OZ.AU [128.250.22.136]) by mulga.cs.mu.OZ.AU with ESMTP id NAA10955 for ; Sat, 17 Feb 2001 13:48:30 +1100 (EST) Received: (from rsubr@localhost) by queeg.cs.mu.OZ.AU (8.9.3+Sun/8.9.3) id NAA23868 for linux-india-programmers@lists.linux-india.org; Sat, 17 Feb 2001 13:48:30 +1100 (EST) Date: Sat, 17 Feb 2001 13:48:30 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: read system call. Message-ID: <20010217134830.A23609@students.cs.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <002701c09249$6299fa20$0c89c5cb@default> <01021009562100.04055@ramakrishna.roc.com> <001d01c09794$22148ce0$dbecc7cb@default> <3A8D061A.50E9EC60@india.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3A8D061A.50E9EC60@india.ti.com>; from sumitr@india.ti.com on Fri, Feb 16, 2001 at 04:21:06PM +0530 X-Archive-Number: 200102/166 X-Sequence-Number: 1622 Sumit Rangawala wrote (sumitr@india.ti.com): > Rewrite : > > if (fd = (open("/root/data",O_RDONLY,0) < 0)) > as > if((fd = open("/root/data",O_RDONLY,0)) < 0) > By now i think you should have figured out what was the problem with your > code. Your compiler can _easily_ spot these errors - a boolean expression is expected in the if statement but an assignment is found. Why do what your compiler can already do well. Please read your compiler documentation carefully and enable these warning flags. If you're using gcc, atleast a -Wall is required. If you're paranoid, search for a previous post (my me) which contined a wrapper shell script for gcc which included additional checks. - Raja From linux-india-programmers-owner@lists.linux-india.org Fri Feb 16 23:21:39 2001 Received: from pimout4-int.prodigy.net (pimout4-ext.prodigy.net [207.115.63.103]) by www.aunet.org (Postfix) with ESMTP id C98114A32A for ; Fri, 16 Feb 2001 23:21:36 -0800 (PST) Received: from aglaja.swmed.edu (nas-89-115.dallas.navipath.net [216.67.89.115]) by pimout4-int.prodigy.net (8.11.0/8.11.0) with ESMTP id f1H7GRN85060 for ; Sat, 17 Feb 2001 02:16:27 -0500 Received: from localhost (lists@localhost) by aglaja.swmed.edu (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id f1H7FOA02448 for ; Sat, 17 Feb 2001 01:15:24 -0600 X-Authentication-Warning: aglaja.swmed.edu: lists owned process doing -bs Date: Sat, 17 Feb 2001 01:15:24 -0600 (CST) From: Indraneel Majumdar X-Sender: lists@aglaja.swmed.edu To: linux-india-programmers@lists.linux-india.org Subject: Re: How to make stored procedures in postgres? In-Reply-To: <3A8D8466@MailAndNews.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/167 X-Sequence-Number: 1623 postgres supports stored procedures and even user defined languages. The language used by default is PL/PgSQL. It is somewhat described in the postgres documentation. It should be installed on your system with postgres, if not then you may find the docs at www.postgresql.org best wishes, Indraneel On Tue, 13 Feb 2001, kamesh jayachandran wrote: > Hai All, > I have a query regarding postgres.Does Postgres support stored procedure?If so > please guide me in the process. > Thanks in advance > kamesh jayachandran -- http://www.indialine.org From linux-india-programmers-owner@lists.linux-india.org Sat Feb 17 02:37:31 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 5B9284A200 for ; Sat, 17 Feb 2001 02:37:25 -0800 (PST) Received: from rahul ([61.11.246.108]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f1HAb6F22358 for ; Sat, 17 Feb 2001 16:07:06 +0530 Message-ID: <002201c098cc$b8412000$6cf60b3d@rahul> From: "Rahul Jindal" To: Subject: sin Date: Sat, 17 Feb 2001 16:00:58 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/168 X-Sequence-Number: 1624 hi there i just tried this program, don't know abpot the other things but sin function is not compiling, i don't kow why? #include main(int argc, char **argv) { printf("%d",sin(atoi(argv[1]))); } didn't compile on my system, don't know why TIA r /\ |-| |_| |_ ===================================================== What a man has to go through for a piece of ass in this world is highly ridiculous ===================================================== From linux-india-programmers-owner@lists.linux-india.org Sat Feb 17 03:44:31 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.78.43]) by www.aunet.org (Postfix) with ESMTP id C28CE4A504 for ; Sat, 17 Feb 2001 03:44:27 -0800 (PST) Received: (from shishir@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id RAA04888 for linux-india-programmers@lists.linux-india.org; Sat, 17 Feb 2001 17:18:19 +0530 Date: Sat, 17 Feb 2001 17:18:19 +0530 From: Shishir Pandey To: linux-india-programmers@lists.linux-india.org Subject: Re: sin Message-ID: <20010217171819.A4111@alice.bombay.retortsoft.com> Mail-Followup-To: Shishir Pandey , linux-india-programmers@lists.linux-india.org References: <002201c098cc$b8412000$6cf60b3d@rahul> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <002201c098cc$b8412000$6cf60b3d@rahul>; from rahulj@glide.net.in on Sat, Feb 17, 2001 at 04:00:58PM +0530 X-Archive-Number: 200102/169 X-Sequence-Number: 1625 Rahul Jindal molested the spacetime to project in our dimension: > #include > > main(int argc, char **argv) > { > printf("%d",sin(atoi(argv[1]))); > } Try cc -lm sin.c -o sin you need to give the -lm....8^) also include stdio.h besides make that %d into %f and it would be nice if you returned from the main also the sin takes a double and returns a double make that atoi to atof or better still strtod and be sure that you don't give a null to strtod as first param also to don't forget to include stdlib.h if using strtod ,and main returns int just in case ...8^) And yeah man pages are useful 8^) Shishir -- "That's the problem with nature, something's always stinging you or oozing mucous all over you. Let's go and watch TV." --- Calvin From linux-india-programmers-owner@lists.linux-india.org Sat Feb 17 06:08:07 2001 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id 68B7E4A12B for ; Sat, 17 Feb 2001 06:07:57 -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 TAA26418 for ; Sat, 17 Feb 2001 19:42:26 GMT Received: from wipro.com ([192.168.178.17]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA16CE for ; Sat, 17 Feb 2001 19:32:33 +0530 Message-ID: <3A8E8540.2E4BDFB3@wipro.com> Date: Sat, 17 Feb 2001 19:35:53 +0530 From: Vibhu rishi X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: sin References: <002201c098cc$b8412000$6cf60b3d@rahul> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/170 X-Sequence-Number: 1626 you will need to link the maths library. Rahul Jindal wrote: > hi there > i just tried this program, don't know abpot the other things but sin > function is not compiling, i don't kow why? > > #include > > main(int argc, char **argv) > { > printf("%d",sin(atoi(argv[1]))); > } > > didn't compile on my system, don't know why > TIA > r /\ |-| |_| |_ > ===================================================== > What a man has to go through for a piece of ass in this world is highly > ridiculous > ===================================================== > > --------------------------------------------- > 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 Sat Feb 17 06:10:04 2001 Received: from moses.myownemail.com (unknown [208.158.96.111]) by www.aunet.org (Postfix) with SMTP id D3AD94A11A for ; Sat, 17 Feb 2001 06:10:00 -0800 (PST) Received: from jazzandjava.com [208.158.96.111] by moses.myownemail.com (SMTPD32-6.00) id A5D19D5011C; Sat, 17 Feb 2001 08:08:17 -0600 Message-ID: <63342001261714817474@jazzandjava.com> X-EM-Version: 5, 0, 0, 4 X-EM-Registration: #01E0520310450300B900 X-Priority: 3 X-Mailer: My Own Email v4.00 From: "Sandeep Sundaram" To: linux-india-programmers@lists.linux-india.org Subject: process name from pid Date: Sat, 17 Feb 2001 08:08:17 -0600 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Archive-Number: 200102/171 X-Sequence-Number: 1627 Hi guys, Is there any system call on Linux which will return the name of the process from the pid. For eg., on IRIX, there is a system call "syssgi()" which takes a pid as one of the parameterss and returns the process name corresponding to the pid. I know I can write a function which will read the proc file system and get the name of the process, given the pid. But I am looking for a system call !! TIA, Regards, Sandeep Sundaram _____________________________________________ Free email with personality! Over 200 domains! http://www.MyOwnEmail.com From linux-india-programmers-owner@lists.linux-india.org Sat Feb 17 17:48:24 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 852C84A481 for ; Sat, 17 Feb 2001 17:48:22 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id RAA13956 for linux-india-programmers@lists.linux-india.org; Sat, 17 Feb 2001 17:42:09 -0800 Date: Sat, 17 Feb 2001 17:42:09 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: process name from pid Message-ID: <20010217174209.A13893@sharmas.dhs.org> References: <63342001261714817474@jazzandjava.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <63342001261714817474@jazzandjava.com>; from sandysundaram@jazzandjava.com on Sat, Feb 17, 2001 at 08:08:17AM -0600 X-Archive-Number: 200102/172 X-Sequence-Number: 1628 On Sat, Feb 17, 2001 at 08:08:17AM -0600, Sandeep Sundaram wrote: > I know I can write a function which will read the proc file system and get > the name of the process, given the pid. But I am looking for a system call > !! Yes, use the read(2) system call to read from /proc :) -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 21:22:12 2001 Received: from uni02mr.unity.ncsu.edu (uni02mr.unity.ncsu.edu [152.1.1.165]) by www.aunet.org (Postfix) with ESMTP id 4E3954A00C for ; Sun, 18 Feb 2001 21:22:10 -0800 (PST) Received: from anr.mcnc.org (vinay@hickory.csc.ncsu.edu [152.1.205.74]) by uni02mr.unity.ncsu.edu (8.8.8/8.8.8/UR01Feb99) with ESMTP id AAA06584 for ; Mon, 19 Feb 2001 00:16:54 -0500 (EST) Message-ID: <3A90AC4A.7AC0E46D@anr.mcnc.org> Date: Mon, 19 Feb 2001 00:16:58 -0500 From: vinay mahadik Reply-To: vamahadi@unity.ncsu.edu Organization: MCNC - Advanced Networking Research/NCSU/Mahadik.com X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: pthread_delay_np References: <20010119151751.29124.qmail@web8003.mail.in.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/173 X-Sequence-Number: 1629 Hi, I get a 'undefined reference to pthread_delay_np' error whenever I compile a code that uses that routine. That doesnt happen for the other pthread routines I use though. Any ideas? I did try google. Thanks & bye, Vinay. From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 21:44:06 2001 Received: from matrix.mediasolv.com (unknown [203.115.19.131]) by www.aunet.org (Postfix) with ESMTP id ECD414A00C for ; Sun, 18 Feb 2001 21:44:00 -0800 (PST) Received: from kugan ([192.168.1.51]) by matrix.mediasolv.com (8.11.1/8.11.1) with SMTP id f1J5anG19159 for ; Mon, 19 Feb 2001 11:36:49 +0600 From: "V Kugan" To: Subject: typedef int (*procref)(); Date: Mon, 19 Feb 2001 11:41:45 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200102/174 X-Sequence-Number: 1630 Hi I came across this line in a source code. typedef int (*procref)(); Can any one please explain what does this mean. Thank you very much. Kugan From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:16:29 2001 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 5C6A34A05D for ; Sun, 18 Feb 2001 22:16:20 -0800 (PST) Received: from accord-products.com (Vani [192.168.1.32]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id LAA12628 for ; Mon, 19 Feb 2001 11:40:36 +0530 Message-ID: <3A90B8DB.8DE244FE@accord-products.com> Date: Mon, 19 Feb 2001 11:40:35 +0530 From: "Vani R." Organization: Accord Software & Systems Pvt Ltd., X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: bash script Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/175 X-Sequence-Number: 1631 Hi All, I have around 120 files in a directory whose names are in uppercase letters. I want to change all these filenames to lowercase letters. I can't change it manually. I want to write a script to do the same. How do i do that? I have .c and .h files in the directory. Eg: TEST.C has to be converted to test.c Regards, --vani-- -- Luck is what happens when preparation meets Oppurtunity --Darrel Royal From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:23:29 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id 433914A180 for ; Sun, 18 Feb 2001 22:23:26 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id GAA26569 for ; Mon, 19 Feb 2001 06:06:17 GMT Received: from mailsweeper.wilco-int.com ([194.62.147.25]) by wilco-fw3.wilco-int.com; Mon, 19 Feb 2001 06:19:34 +0000 (GMT) Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Mon, 19 Feb 2001 06:15:53 +0000 Received: by lonmail01 with Internet Mail Service (5.5.2650.21) id <104S43AJ>; Mon, 19 Feb 2001 06:13:16 -0000 Received: from hydmail01.hyd.wilco-int.com (hydmail01 [192.168.130.32]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 104S43AF; Mon, 19 Feb 2001 06:13:04 -0000 Received: by hydmail01.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id ; Mon, 19 Feb 2001 11:44:36 +0530 From: Prashant Ramachandra To: "'linux-india-programmers@lists.linux-india.org'" Message-ID: <5BF60CD649EDD411A04600B0D049F53A0923BA@hydmail02.hyd.wilco-int.com> Subject: RE: bash script Date: Mon, 19 Feb 2001 11:44:44 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/176 X-Sequence-Number: 1632 On Monday, February 19, 2001 11:41 AM, Vani R. [SMTP:vani@accord-soft.com] wrote: | | I have around 120 files in a directory whose names are in uppercase | letters. I want to change all these filenames to lowercase letters. | I | can't change it manually. I want to write a script to do the same. | How | do i do that? I have .c and .h files in the directory. | Eg: TEST.C has to be converted to test.c I would suggest this one, rather than writing a script. unzip has an option -l (IIRC) to convert files to lowercase. So, all you need to do is this: zip something.zip *.C *.H unzip -l something.zip -- Prashant TR Web: http://www.midpec.com/ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:26:52 2001 Received: from cantor.morelinux.net (cantor.morelinux.net [203.197.87.98]) by www.aunet.org (Postfix) with ESMTP id 741A54A1A7 for ; Sun, 18 Feb 2001 22:26:46 -0800 (PST) Received: from morelinux.com (cygnus.morelinux.co.in [192.168.1.66]) by cantor.morelinux.net (8.9.3/8.9.3) with ESMTP id MAA14984 for ; Mon, 19 Feb 2001 12:16:34 +0530 Message-ID: <3A90B81E.34F3F21@morelinux.com> Date: Mon, 19 Feb 2001 11:37:26 +0530 From: ambarish pathak X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.13-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: bash script References: <3A90B8DB.8DE244FE@accord-products.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/177 X-Sequence-Number: 1633 "Vani R." wrote: > I want to change all uppercase filenames to lowercase letters. http://www.cs.colostate.edu/~carheden/downloads/rename From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:28:56 2001 Received: from tower.ti.com (tower.ti.com [192.94.94.5]) by www.aunet.org (Postfix) with ESMTP id CD6764A181 for ; Sun, 18 Feb 2001 22:28:54 -0800 (PST) Received: from dlep7.itg.ti.com ([157.170.134.103]) by tower.ti.com (8.11.1/8.11.1) with ESMTP id f1J6Ncr17425 for ; Mon, 19 Feb 2001 00:23:38 -0600 (CST) 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 AAA27730 for ; Mon, 19 Feb 2001 00:23:38 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id AAA27726 for ; Mon, 19 Feb 2001 00:23:36 -0600 (CST) Received: from apdsparc085.india.ti.com (apdsparc085 [157.87.88.99]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id LAA19297 for ; Mon, 19 Feb 2001 11:52:49 +0530 (IST) Received: from india.ti.com (localhost [127.0.0.1]) by apdsparc085.india.ti.com (8.9.3/8.9.3) with ESMTP id LAA28505 for ; Mon, 19 Feb 2001 11:53:35 +0530 (IST) Message-ID: <3A90BBE6.8B719541@india.ti.com> Date: Mon, 19 Feb 2001 11:53:34 +0530 From: "Mallikarjuna Rao V.V.Ch." X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: typedef int (*procref)(); References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/178 X-Sequence-Number: 1634 Kugan, > > typedef int (*procref)(); > This means that procref is a new type that User has defined. This procref will hold the pointer to a function which returns an integer and accepts void as arguments. The Following code will make it more clear for U. #include /*defining a new type procref */ typedef int (*procref)(); /* * This function just returns 5. * */ int Five () { return 5; } /* * This function just returns 6. * */ int Six () { return 6; } main() { /* procref is the type and func is the instance of procref. It now holds the pointer ** to the function Five */ procref func = Five; /* Should print 5, the return value of Five() */ printf("\n%d", (*func)()); /* Now func points to function Six */ func = Six; /* Should return 6, the return value of function 6 */ printf("\n%d", (*func)()); } mallik. From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:33:55 2001 Received: from cantor.morelinux.net (cantor.morelinux.net [203.197.87.98]) by www.aunet.org (Postfix) with ESMTP id 0D0634A27B for ; Sun, 18 Feb 2001 22:33:52 -0800 (PST) Received: from morelinux.com (cygnus.morelinux.co.in [192.168.1.66]) by cantor.morelinux.net (8.9.3/8.9.3) with ESMTP id MAA14994 for ; Mon, 19 Feb 2001 12:24:28 +0530 Message-ID: <3A90B9FB.DAD63A49@morelinux.com> Date: Mon, 19 Feb 2001 11:45:23 +0530 From: ambarish pathak X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.13-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: bash script References: <5BF60CD649EDD411A04600B0D049F53A0923BA@hydmail02.hyd.wilco-int.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/179 X-Sequence-Number: 1635 Prashant Ramachandra wrote: > unzip has an option -l (IIRC) to convert files to lowercase. option is "-L" and it *lists* the contents as lowercase. with "-J" option, u can convert the *xtracted* files to lowercase names. From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:34:51 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id AB9324A28E for ; Sun, 18 Feb 2001 22:34:49 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id WAA04702; Sun, 18 Feb 2001 22:25:56 -0800 Date: Sun, 18 Feb 2001 22:25:56 -0800 From: Arun Sharma To: vamahadi@unity.ncsu.edu Cc: linux-india-programmers@lists.linux-india.org Subject: Re: pthread_delay_np Message-ID: <20010218222556.A4686@sharmas.dhs.org> References: <20010119151751.29124.qmail@web8003.mail.in.yahoo.com> <3A90AC4A.7AC0E46D@anr.mcnc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A90AC4A.7AC0E46D@anr.mcnc.org>; from vamahadi@picard.mcnc.org on Mon, Feb 19, 2001 at 12:16:58AM -0500 X-Archive-Number: 200102/180 X-Sequence-Number: 1636 On Mon, Feb 19, 2001 at 12:16:58AM -0500, vamahadi@picard.mcnc.org wrote: > Hi, > > I get a 'undefined reference to pthread_delay_np' error whenever I > compile a code that uses that routine. That doesnt happen for the other > pthread routines I use though. Any ideas? I did try google. "np" stands for non-portable. Not all implementations of pthreads provide that. -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:39:24 2001 Received: from uni03mr.unity.ncsu.edu (uni03mr.unity.ncsu.edu [152.1.1.166]) by www.aunet.org (Postfix) with ESMTP id 035FA4A28E for ; Sun, 18 Feb 2001 22:39:23 -0800 (PST) Received: from anr.mcnc.org (vinay@hickory.csc.ncsu.edu [152.1.205.74]) by uni03mr.unity.ncsu.edu (8.8.8/8.8.8/UR01Feb99) with ESMTP id BAA26022; Mon, 19 Feb 2001 01:34:03 -0500 (EST) Message-ID: <3A90BE61.AA414436@anr.mcnc.org> Date: Mon, 19 Feb 2001 01:34:09 -0500 From: vinay mahadik Reply-To: vamahadi@unity.ncsu.edu Organization: MCNC - Advanced Networking Research/NCSU/Mahadik.com X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: Arun Sharma Cc: linux-india-programmers@lists.linux-india.org Subject: Re: pthread_delay_np References: <20010119151751.29124.qmail@web8003.mail.in.yahoo.com> <3A90AC4A.7AC0E46D@anr.mcnc.org> <20010218222556.A4686@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/181 X-Sequence-Number: 1637 Arun, Could you then tell me how to wait for a specified milli/micro/nano secs within a thread? I need that for some network simulation. Does pthread_cond_timedwait() sound like a good idea for that (I could create a condition that never occurs)? That looks very ugly to me. Is there a portable way to wait for an approximate time within a thread? Thanks, Vinay. Arun Sharma wrote: > > On Mon, Feb 19, 2001 at 12:16:58AM -0500, vamahadi@picard.mcnc.org wrote: > > Hi, > > > > I get a 'undefined reference to pthread_delay_np' error whenever I > > compile a code that uses that routine. That doesnt happen for the other > > pthread routines I use though. Any ideas? I did try google. > > "np" stands for non-portable. Not all implementations of pthreads provide that. > > -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:42:21 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 108074A184 for ; Sun, 18 Feb 2001 22:42:20 -0800 (PST) Received: from z3 ([192.168.1.17]) by sharmas.dhs.org (8.9.3/8.9.3) with SMTP id WAA04786; Sun, 18 Feb 2001 22:33:22 -0800 Message-ID: <00b901c09a3d$cb981c40$1101a8c0@sharmas.org> From: "Arun Sharma" To: Cc: References: <20010119151751.29124.qmail@web8003.mail.in.yahoo.com> <3A90AC4A.7AC0E46D@anr.mcnc.org> <20010218222556.A4686@sharmas.dhs.org> <3A90BE61.AA414436@anr.mcnc.org> Subject: Re: pthread_delay_np Date: Sun, 18 Feb 2001 22:32:56 -0800 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: 200102/182 X-Sequence-Number: 1638 > Arun, > > Could you then tell me how to wait for a specified milli/micro/nano secs > within a thread? I need that for some network simulation. Does > pthread_cond_timedwait() sound like a good idea for that (I could create > a condition that never occurs)? That looks very ugly to me. Is there a > portable way to wait for an approximate time within a thread? > Look for sleep, usleep and nanosleep(2). -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 22:49:48 2001 Received: from uni03mr.unity.ncsu.edu (uni03mr.unity.ncsu.edu [152.1.1.166]) by www.aunet.org (Postfix) with ESMTP id 8EC334A19A for ; Sun, 18 Feb 2001 22:49:44 -0800 (PST) Received: from anr.mcnc.org (vinay@hickory.csc.ncsu.edu [152.1.205.74]) by uni03mr.unity.ncsu.edu (8.8.8/8.8.8/UR01Feb99) with ESMTP id BAA26248; Mon, 19 Feb 2001 01:44:21 -0500 (EST) Message-ID: <3A90C0CE.19C5ACC4@anr.mcnc.org> Date: Mon, 19 Feb 2001 01:44:30 -0500 From: vinay mahadik Reply-To: vamahadi@unity.ncsu.edu Organization: MCNC - Advanced Networking Research/NCSU/Mahadik.com X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: Arun Sharma Cc: vamahadi@unity.ncsu.edu, linux-india-programmers@lists.linux-india.org Subject: Re: pthread_delay_np References: <20010119151751.29124.qmail@web8003.mail.in.yahoo.com> <3A90AC4A.7AC0E46D@anr.mcnc.org> <20010218222556.A4686@sharmas.dhs.org> <3A90BE61.AA414436@anr.mcnc.org> <00b901c09a3d$cb981c40$1101a8c0@sharmas.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/183 X-Sequence-Number: 1639 Of course, but I want only a specified thread to wait for that specified time. Doesn't sleep etc relate to processes rather than threads? This seemingly simple requirement seems quite difficult to achive with pthreads. I have been thinking of SIGALRM; but too gets messy since signal handlers will be shared and all threads have different masks. And I have two threads which need to (parallely and independently) sleep for different time intervals. ANy neat way of doing this? Thanks, Vinay. Arun Sharma wrote: > > > Arun, > > > > Could you then tell me how to wait for a specified milli/micro/nano secs > > within a thread? I need that for some network simulation. Does > > pthread_cond_timedwait() sound like a good idea for that (I could create > > a condition that never occurs)? That looks very ugly to me. Is there a > > portable way to wait for an approximate time within a thread? > > > > Look for sleep, usleep and nanosleep(2). > > -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 23:14:37 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 2D8224A13F for ; Sun, 18 Feb 2001 23:10:51 -0800 (PST) Received: from sharmas.dhs.org ([192.168.1.17]) by sharmas.dhs.org (8.9.3/8.9.3) with ESMTP id XAA04918; Sun, 18 Feb 2001 23:01:58 -0800 Message-ID: <3A90C4C7.1030501@sharmas.dhs.org> Date: Sun, 18 Feb 2001 23:01:27 -0800 From: Arun Sharma User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; 0.8) Gecko/20010215 X-Accept-Language: en MIME-Version: 1.0 To: vamahadi@unity.ncsu.edu Cc: linux-india-programmers@lists.linux-india.org Subject: Re: pthread_delay_np References: <20010119151751.29124.qmail@web8003.mail.in.yahoo.com> <3A90AC4A.7AC0E46D@anr.mcnc.org> <20010218222556.A4686@sharmas.dhs.org> <3A90BE61.AA414436@anr.mcnc.org> <00b901c09a3d$cb981c40$1101a8c0@sharmas.org> <3A90C0CE.19C5ACC4@anr.mcnc.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/184 X-Sequence-Number: 1640 vinay mahadik wrote: > Of course, but I want only a specified thread to wait for that specified > time. Doesn't sleep etc relate to processes rather than threads? This > seemingly simple requirement seems quite difficult to achive with > pthreads. I have been thinking of SIGALRM; but too gets messy since > signal handlers will be shared and all threads have different masks. And > I have two threads which need to (parallely and independently) sleep for > different time intervals. ANy neat way of doing this? In Linux, thread = process that shares address space with other processes. So when the thread calls sleep, only the calling thread sleeps, not the whole process. The things unique about Linux implementation is - threads and processes are peers, rather than the traditional UNIX way of "a process contains threads". -Arun From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 23:28:49 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.78.90]) by www.aunet.org (Postfix) with ESMTP id 9C2384A204 for ; Sun, 18 Feb 2001 23:27:01 -0800 (PST) Received: (from binand@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id NAA09147 for linux-india-programmers@lists.linux-india.org; Mon, 19 Feb 2001 13:00:25 +0530 Date: Mon, 19 Feb 2001 13:00:24 +0530 From: "Binand Raj S." To: LIP Subject: Re: bash script Message-ID: <20010219130024.A8855@bombay.retortsoft.com> Mail-Followup-To: "Binand Raj S." , LIP References: <3A90B8DB.8DE244FE@accord-products.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A90B8DB.8DE244FE@accord-products.com>; from vani@accord-soft.com on Mon, Feb 19, 2001 at 11:40:35AM +0530 X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200102/185 X-Sequence-Number: 1641 Vani R. forced the electrons to say: > I have around 120 files in a directory whose names are in uppercase > letters. I want to change all these filenames to lowercase letters. Use this cute perl one liner to convert a word to lowercase. echo $word | perl -pe 's/(.*)/\L$1/g' Loop over all the files in the directory, setting word to be each. So, we have this little script :-) for file in *; do newfile=$( echo $file | perl -pe 's/(.*)/\L$1/g' ) mv $file $newfile done And voila! Binand PS: Warning: Untested code! From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 23:32:18 2001 Received: from gda-server (unknown [202.88.153.15]) by www.aunet.org (Postfix) with ESMTP id D798D4A204 for ; Sun, 18 Feb 2001 23:32:13 -0800 (PST) Received: from [192.168.0.66] by gda-server (ArGoSoft Mail Server, Version 1.5 (1.5.0.8)); Mon, 19 Feb 2001 12:52:44 Message-ID: <008901c09a44$3b1bb8a0$4200a8c0@gdatr4> From: "harishankkar" To: Cc: References: <3A90BBE6.8B719541@india.ti.com> Subject: Nano-X problems Date: Mon, 19 Feb 2001 12:48: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.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200102/186 X-Sequence-Number: 1642 Hi All, I am a new comer to this group.I am trying to run viewml browser in X86 Platform. I am able to load the viewml browser ,but while filling forms problems I am in trouble.For eg. When I go to site mail.yahoo.com then in the username and password boxes come,but after that When I fill in the username and password and click the sign in button the system hangs.That is the display goes blank ,and the keyboard also gets disconnected.I am able to move the mouse only.Where could be the problem? Is there any problem with the libwww I am using microwindows-0.89prev7.tar.gz viewml-0.18.tar.gz flnx-0.16.tar.gz Please help me. thanx in advance, Hari __ _ / / (_)__ __ ____ __ / /__/ / _ \/ // /\ \/ / . . . t h e c h o i c e o f a /____/_/_//_/\_,_/ /_/\_\ G N U g e n e r a t i o n . . . ------------------------------ Harishankkar.S Member Tech Staff S.harishankkar@gdatech.co.in GDA Technologies www.gdatech.com From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 23:43:49 2001 Received: from satyaki.pacific.net.in (satyaki.pacific.net.in [203.123.128.85]) by www.aunet.org (Postfix) with ESMTP id A2AC849FF0 for ; Sun, 18 Feb 2001 23:43:40 -0800 (PST) Received: from nirvana.sankya.com (ppp134.bangalore-188.pacific.net.in [203.123.188.134]) by satyaki.pacific.net.in with ESMTP id NAA03488 for ; Mon, 19 Feb 2001 13:08:17 +0530 (IST) Received: from mrinal by nirvana.sankya.com with local (Exim 3.20 #1 (Debian)) id 14Ukx0-0000xr-00 for ; Mon, 19 Feb 2001 13:11:38 +0530 Date: Mon, 19 Feb 2001 13:11:38 +0530 From: Mrinal Kalakrishnan To: LIP Subject: Re: bash script Message-ID: <20010219131138.A492@india.com> Mail-Followup-To: LIP References: <3A90B8DB.8DE244FE@accord-products.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <3A90B8DB.8DE244FE@accord-products.com>; from vani@accord-soft.com on Mon, Feb 19, 2001 at 11:40:35AM +0530 X-Mailer: Mutt 1.3.15i (2001-02-12) X-Operating-System: Linux 2.4.1 X-Editor: VIM - Vi IMproved 5.7 X-URL: http://mrinal.dhs.org/ Organization: PESIT X-Archive-Number: 200102/187 X-Sequence-Number: 1643 Hi, Vani R. typed: > I have around 120 files in a directory whose names are in uppercase > letters. I want to change all these filenames to lowercase letters. I > can't change it manually. I want to write a script to do the same. How > do i do that? I have .c and .h files in the directory. > Eg: TEST.C has to be converted to test.c Try this: for i in *; do mv $i $(echo $i | tr '[:upper:]' '[:lower:]'); done HTH.. -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.4.1 || PGP:B1E86F5B || Mutt 1.3.15i (2001-02-12) || VIM 5.7 -- "Problem solving under linux has never been the circus that it is under AIX." (By Pete Ehlke in comp.unix.aix) From linux-india-programmers-owner@lists.linux-india.org Sun Feb 18 23:47:47 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 4E48E4A071 for ; Sun, 18 Feb 2001 23:47:38 -0800 (PST) Received: from (jace.pobox.com) [210.212.160.140] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14Ukxa-00026G-00; Mon, 19 Feb 2001 00:42:16 -0700 X-Pgp-Dsskey: 0x735BC875 X-Pgp-Rsakey: 0xF85BA8E9 Message-Id: <5.0.2.1.0.20010219130209.00a6f0b0@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Mon, 19 Feb 2001 13:11:53 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: bash script In-Reply-To: <3A90B8DB.8DE244FE@accord-products.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/188 X-Sequence-Number: 1644 At 11:40 AM 2/19/2001 +0530, you wrote: >I have around 120 files in a directory whose names are in uppercase >letters. I want to change all these filenames to lowercase letters. I >can't change it manually. I want to write a script to do the same. How >do i do that? I have .c and .h files in the directory. >Eg: TEST.C has to be converted to test.c for X in *; do mv "$X" "`echo $X | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`"; done This is ugly, but I can't think up a regexp that expands to the full set of characters. -- Kiran Jonnalagadda http://www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 04:56:43 2001 Received: from web1805.mail.yahoo.com (web1805.mail.yahoo.com [128.11.23.48]) by www.aunet.org (Postfix) with SMTP id 037C64A057 for ; Mon, 19 Feb 2001 04:56:42 -0800 (PST) Received: (qmail 22244 invoked by uid 60001); 19 Feb 2001 12:51:14 -0000 Message-ID: <20010219125114.22243.qmail@web1805.mail.yahoo.com> Received: from [202.41.67.229] by web1805.mail.yahoo.com; Mon, 19 Feb 2001 04:51:14 PST Date: Mon, 19 Feb 2001 04:51:14 -0800 (PST) From: sibin m Subject: opening files in kernel modules To: linux-india-programmers@lists.linux-india.org, linux-india-help@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200102/189 X-Sequence-Number: 1645 hi , i have a problem while writing kernel level modules...i'm unable to open/read data from any files... how do i open files in kernel modules...which headers have the necessary functions ? using and functions like 'fopen' decribed in it doesn't seem to help. also, how does one set delays, again in kernel modules. ciao, sibin __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 05:51:52 2001 Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61]) by www.aunet.org (Postfix) with ESMTP id BD7F24A362 for ; Mon, 19 Feb 2001 05:51:16 -0800 (PST) Received: from dlep7.itg.ti.com ([157.170.134.103]) by gatekeep.ti.com (8.11.1/8.11.1) with ESMTP id f1JDjrr09508 for ; Mon, 19 Feb 2001 07:45:53 -0600 (CST) 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 HAA09131 for ; Mon, 19 Feb 2001 07:45:53 -0600 (CST) Received: from mailsvr.india.ti.com (mailsvr.india.ti.com [157.87.95.214]) by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id HAA09102 for ; Mon, 19 Feb 2001 07:45:51 -0600 (CST) Received: from apdsparc085.india.ti.com (apdsparc085 [157.87.88.99]) by mailsvr.india.ti.com (8.8.8/8.8.8) with ESMTP id TAA23650 for ; Mon, 19 Feb 2001 19:15:03 +0530 (IST) Received: from india.ti.com (localhost [127.0.0.1]) by apdsparc085.india.ti.com (8.9.3/8.9.3) with ESMTP id TAA07119 for ; Mon, 19 Feb 2001 19:15:48 +0530 (IST) Message-ID: <3A91238C.441B76EA@india.ti.com> Date: Mon, 19 Feb 2001 19:15:48 +0530 From: "Mallikarjuna Rao V.V.Ch." X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: [Fwd: ISO 9660 specifications....] Content-Type: multipart/mixed; boundary="------------C5F1B3B467CD722AA693A0C5" X-Archive-Number: 200102/190 X-Sequence-Number: 1646 This is a multi-part message in MIME format. --------------C5F1B3B467CD722AA693A0C5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, I posted this query some time ago, and am still waiting for some good pointers for this. TIA, mallik --------------C5F1B3B467CD722AA693A0C5 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mozilla-Status2: 00000000 Message-ID: <3A8770F2.123FF6C5@india.ti.com> Date: Mon, 12 Feb 2001 10:43:22 +0530 From: "Mallikarjuna Rao V.V.Ch." X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: ISO 9660 specifications.... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, Can any one of U please point me to the information about the ISO 9660 specifications, which deal about the file system on CD-ROM. TIA, mallik --------------C5F1B3B467CD722AA693A0C5-- From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 06:40:55 2001 Received: from pimout3-int.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by www.aunet.org (Postfix) with ESMTP id 22D2F4A06E for ; Mon, 19 Feb 2001 06:40:47 -0800 (PST) Received: from aglaja.swmed.edu (nas-48-119.dallas.navipath.net [216.67.48.119]) by pimout3-int.prodigy.net (8.11.0/8.11.0) with ESMTP id f1JEZHk184808 for ; Mon, 19 Feb 2001 09:35:17 -0500 Received: from localhost (lists@localhost) by aglaja.swmed.edu (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id f1JEVKg05900 for ; Mon, 19 Feb 2001 08:31:20 -0600 X-Authentication-Warning: aglaja.swmed.edu: lists owned process doing -bs Date: Mon, 19 Feb 2001 08:31:20 -0600 (CST) From: Indraneel Majumdar X-Sender: lists@aglaja.swmed.edu To: LIP Subject: Re: bash script In-Reply-To: <20010219130024.A8855@bombay.retortsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/191 X-Sequence-Number: 1647 On Mon, 19 Feb 2001, Binand Raj S. wrote: > Use this cute perl one liner to convert a word to lowercase. > echo $word | perl -pe 's/(.*)/\L$1/g' shouldn't that use tr/A-Z/a-z/g; instead of s/(.*)/L$1/g \Indraneel -- http://www.indialine.org From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 07:29:11 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.78.146]) by www.aunet.org (Postfix) with ESMTP id BB6B44A3EC for ; Mon, 19 Feb 2001 07:23:26 -0800 (PST) Received: (from binand@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id UAA29322 for linux-india-programmers@lists.linux-india.org; Mon, 19 Feb 2001 20:56:25 +0530 Date: Mon, 19 Feb 2001 20:56:25 +0530 From: "Binand Raj S." To: LIP Subject: Re: bash script Message-ID: <20010219205624.C28626@bombay.retortsoft.com> Mail-Followup-To: "Binand Raj S." , LIP References: <20010219130024.A8855@bombay.retortsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from lists@123india.com on Mon, Feb 19, 2001 at 08:31:20AM -0600 X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200102/192 X-Sequence-Number: 1648 Indraneel Majumdar forced the electrons to say: > > echo $word | perl -pe 's/(.*)/\L$1/g' > shouldn't that use > tr/A-Z/a-z/g; > instead of > s/(.*)/L$1/g Well, I guess different choices for different people. Note that my initial suggestion had \L, which in perlese means "convert to lower case". Seems the use here is precisely the kind of thing it was designed for. Maybe I should rewrite the whole thing in perl? :-) Binand From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 09:17:17 2001 Received: from hwembmn2621.honeywell.com (hwembmn2621.honeywell.com [129.30.244.34]) by www.aunet.org (Postfix) with ESMTP id D0A334A06F for ; Mon, 19 Feb 2001 09:17:08 -0800 (PST) Received: from HWEMBMNVW001 ([129.30.244.31]) by hwembmn2621.honeywell.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F2GTM1FR; Mon, 19 Feb 2001 11:18:33 -0600 Received: from 129.30.244.30 by hwembmnvw001 (InterScan E-Mail VirusWall NT); Mon, 19 Feb 2001 02:45:13 -0600 (Central Standard Time) Received: from ie10-sahara.hiso.honeywell.com ([204.220.169.46]) by mnmail1.HONEYWELL.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1ZWMH75T; Mon, 19 Feb 2001 02:47:02 -0600 Received: by ie10-sahara.hiso.honeywell.com with Internet Mail Service (5.5.2650.21) id <104PGQ6D>; Mon, 19 Feb 2001 14:12:33 +0530 Message-ID: From: "Guruprasad, Mahendrakar V (IE10)" To: linux-india-programmers@lists.linux-india.org Cc: "Vani R." Subject: RE: bash script Date: Mon, 19 Feb 2001 14:16:36 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C09A50.77E9DC10" X-Archive-Number: 200102/193 X-Sequence-Number: 1649 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C09A50.77E9DC10 Content-Type: text/plain I have the one written in C for doing the job. Run a.out from the directory where all of your files reside. <> <> > -----Original Message----- > From: Vani R. [SMTP:vani@accord-soft.com] > Sent: Monday, February 19, 2001 11:41 AM > To: LIP > Subject: [LIP] bash script > > > Hi All, > > I have around 120 files in a directory whose names are in uppercase > letters. I want to change all these filenames to lowercase letters. I > can't change it manually. I want to write a script to do the same. How > do i do that? I have .c and .h files in the directory. > Eg: TEST.C has to be converted to test.c > > Regards, > --vani-- > > > -- > Luck is what happens when preparation meets Oppurtunity > --Darrel Royal > > > > --------------------------------------------- > 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 ------_=_NextPart_000_01C09A50.77E9DC10 Content-Type: application/octet-stream; name="a.out" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="a.out" f0VMRgEBAQAAAAAAAAAAAAIAAwABAAAAgIUECDQAAAA8JgAAAAAAADQAIAAG ACgAHQAaAAYAAAA0AAAANIAECDSABAjAAAAAwAAAAAUAAAAEAAAAAwAAAPQA AAD0gAQI9IAECBMAAAATAAAABAAAAAEAAAABAAAAAAAAAACABAgAgAQI8gcA APIHAAAFAAAAABAAAAEAAAD0BwAA9JcECPSXBAgIAQAAIAEAAAYAAAAAEAAA AgAAAFwIAABcmAQIXJgECKAAAACgAAAABgAAAAQAAAAEAAAACAEAAAiBBAgI gQQIIAAAACAAAAAEAAAABAAAAC9saWIvbGQtbGludXguc28uMgAABAAAABAA AAABAAAAR05VAAAAAAACAAAAAAAAAAAAAAARAAAAEQAAAAUAAAAAAAAABwAA AAAAAAAOAAAAAAAAAAQAAAANAAAAAAAAABAAAAACAAAAAAAAAAMAAAAMAAAA CAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAPAAAAAAAAAAAAAAAA AAAAAAAAAAYAAAAAAAAACwAAAAAAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAQAAAAAAAAAAAAAAIAAAABoAAAAkhQQIKQAAABIAAAAhAAAAxIQE CCkAAAASAAAAKgAAAOSEBAg0AAAAEgAAADIAAABkhQQIjgAAACIAAAA6AAAA lIQECDsAAAASAAAAQQAAAPSEBAiiAAAAIgAAAFkAAABEhQQInAEAACIAAABh AAAAtIQECDoAAAASAAAAaAAAANSEBAgbAAAAIgAAAHkAAABUhQQIyAAAABIA AAB+AAAA3IcECAQAAAARAA4AjQAAABSFBAgFAQAAEgAAAJ8AAAAEhQQIHwAA ABIAAACmAAAANIUECHAAAAAiAAAArwAAAKSEBAh0AAAAIgAAAABfX2dtb25f c3RhcnRfXwBsaWJjLnNvLjYAcHJpbnRmAHN0cmVycm9yAHRvbG93ZXIAcmVh ZGRpcgByZW5hbWUAX19kZXJlZ2lzdGVyX2ZyYW1lX2luZm8Ab3BlbmRpcgBz dHJjbXAAX19lcnJub19sb2NhdGlvbgBleGl0AF9JT19zdGRpbl91c2VkAF9f bGliY19zdGFydF9tYWluAHN0cmxlbgBjbG9zZWRpcgBfX3JlZ2lzdGVyX2Zy YW1lX2luZm8AR0xJQkNfMi4wAAAAAAAAAgACAAIAAgACAAIAAgACAAIAAgAB AAIAAgACAAIAAAABAAEAEAAAABAAAAAAAAAAEGlpDQAAAgDFAAAAAAAAAFiY BAgGAQAAIJgECAcGAAAkmAQIBxAAACiYBAgHCQAALJgECAcDAAAwmAQIBwoA ADSYBAgHBAAAOJgECAcHAAA8mAQIBw4AAECYBAgHDQAARJgECAcCAABImAQI Bw8AAEyYBAgHCAAAUJgECAcLAABUmAQIBwUAAFWJ5VPoAAAAAFuBw7cTAACD u0QAAAAAdAXojnv794n26IcBAADoEgMAAItd/MnDAP81GJgECP8lHJgECAAA AAD/JSCYBAhoAAAAAOng/////yUkmAQIaAgAAADp0P////8lKJgECGgQAAAA 6cD/////JSyYBAhoGAAAAOmw/////yUwmAQIaCAAAADpoP////8lNJgECGgo AAAA6ZD/////JTiYBAhoMAAAAOmA/////yU8mAQIaDgAAADpcP////8lQJgE CGhAAAAA6WD/////JUSYBAhoSAAAAOlQ/////yVImAQIaFAAAADpQP////8l TJgECGhYAAAA6TD/////JVCYBAhoYAAAAOkg/////yVUmAQIaGgAAADpEP// /wAAAAAAAAAAAAAAADHtXonhg+T4UFRSaLyHBAhoVIQECFFWaDCGBAjoc/// //SQkJCQkJCQkJCQkJCQkFWJ5YM9/JcECAB1OOsPifaNUASJFfiXBAiLAP/Q ofiXBAiDOAB16bj0hAQIhcB0CmgAmAQI6Ar////HBfyXBAgBAAAAycOJ9lWJ 5cnDjXYAVYnluKSEBAiFwHQPaPyYBAhoAJgECOiJ/v//ycONdgBVieXJw5CQ kJCQkJCQkJCQVYnlg+xEaOCHBAjoBP///4PEBInAiUX8g338AHUy6IH+//+J wInCiwJQ6GX+//+DxASJwFBo44cECOi1/v//g8QIav/o2/7//4PEBI10JgCQ i0X8UOja/v//g8QEicCJRfCDffAAdQjp4wAAAI12AGjnhwQIi0Xwg8ALUOgD /v//g8QIicCFwA+EtgAAAGjthwQIi0Xwg8ALUOjl/f//g8QIicCFwA+EmAAA AGjvhwQIi0Xwg8ALUOjH/f//g8QIicCFwHR+i0Xwg8ALUOgC/v//g8QEiUX0 x0X4AAAAAJCLRfg7RfR8COssjbYAAAAAi0XwjVALi0X4D74UEFLosf3//4PE BInAjVW8i034iAQR/0X468qNRbyLVfjGBAIAjUW8UItF8IPAC1DoNP3//4PE CI1FvFBo44cECOiz/f//g8QI6Qj///+NtCYAAAAAi0X8UOir/f//g8QEycOQ kFWJ5VO7BJgECIM9BJgECP90DIsD/9CDw/yDO/919Itd/MnDkFWJ5cnDkJCQ VYnlU+gAAAAAW4HDTxAAAOjf/f//i138ycMAAAMAAAABAAIALi8AJXMKAGEu b3V0AC4ALi4AAAAAAAAAEJgECAAAAAAAAAAA/////wAAAAD/////AAAAAFyY BAgAAAAAAAAAAJqEBAiqhAQIuoQECMqEBAjahAQI6oQECPqEBAgKhQQIGoUE CCqFBAg6hQQISoUECFqFBAhqhQQIAAAAAAEAAAAQAAAADAAAAFSEBAgNAAAA vIcECAQAAAAogQQIBQAAAMiCBAgGAAAAuIEECAoAAADFAAAACwAAABAAAAAV AAAAAAAAAAMAAAAUmAQIAgAAAHAAAAAUAAAAEQAAABcAAADkgwQIEQAAANyD BAgSAAAACAAAABMAAAAIAAAA/v//b7yDBAj///9vAQAAAPD//2+YgwQIAAAA AAAAAAAAAAAAAACaADATAAAHAAAAZAAAAKSFBAgAAAAAZAAAAKSFBAgoAAAA PAAAAAAAAAA3AAAAgAAAAAAAAABmAAAAgAAAAAAAAACAAAAAgAAAAAAAAAC0 AAAAgAAAAAAAAADsAAAAgAAAAAAAAAApAQAAgAAAAAAAAAB1AQAAgAAAAAAA AADBAQAAgAAAAAAAAADnAQAAgAAAAAAAAAARAgAAgAAAAAAAAAA3AgAAgAAA AAAAAABcAgAAgAAAAAAAAAB2AgAAgAAAAAAAAACRAgAAgAAAAAAAAACyAgAA gAAAAAAAAADrAgAAgAAAAAAAAAAOAwAAgAAAAAAAAAAyAwAAgAAAAAAAAABc AwAAgAAAAAAAAABwAwAAggAAAAAAAACKAwAAggAAAAAAAADAAwAAogAAAAAA AADBAwAAggAAAAAAAADWAwAAggAAAAAAAADoAwAAggAAAAAAAAD+AwAAggAA AAAAAAAVBAAAggAAAAAAAADAAwAAogAAAAAAAADAAwAAogAAAAAAAADAAwAA ogAAAAAAAAApBAAAggAAAAAAAADAAwAAogAAAAAAAABqBAAAggAAAAAAAAB+ BAAAggAAAB2WAAApBAAAwgAAAAAAAACRBAAAgAAAAAAAAADgBAAAgAAAAAAA AAAVBQAAgAAAAAAAAABVBQAAgAAAAAAAAACSBQAAgAAAAAAAAADMBQAAgAAA AAAAAAACBgAAgAAAAAAAAAA5BgAAgAAAAAAAAABwBgAAgAAAAAAAAACiBgAA ggAAAAAAAAC3BgAAggAAACg7AADLBgAAgAAAAAAAAAApBwAAgAAAAAAAAABv BwAAgAAAAAAAAACPBwAAgAAkAAAAAADAAwAAogAAAAAAAADAAwAAogAAAAAA AADAAwAAogAAAAAAAADAAwAAogAAAAAAAADAAwAAogAAAAAAAADAAwAAogAA AAAAAADAAwAAogAAAAAAAACxBwAAggAAAEIYAADYBwAAggAAANc/AQApBAAA ggAAANgEAAAACAAAgACqAAAAAADAAwAAogAAAAAAAAAVCAAAgAAgAAAAAAAt CAAAgAAhAAAAAABFCAAAgAAiAAAAAABbCAAAgAAjAAAAAAByCAAAgAAlAAAA AACLCAAAgAAmAAAAAACiCAAAgAAxAAAAAAC6CAAAgAAyAAAAAADTCAAAgAAz AAAAAADrCAAAgAA0AAAAAAAFCQAAgAA1AAAAAAAeCQAAgAA2AAAAAAA4CQAA gAA4AAAAAABRCQAAgAA5AAAAAABrCQAAgAA7AAAAAACOCQAAgAA9AAAAAACm CQAAgAA+AAAAAAC+CQAAgAA/AAAAAADWCQAAgABAAAAAAADuCQAAgABBAAAA AAAHCgAAgABCAAAAAAAhCgAAgABDAAAAAAA4CgAAgABEAAAAAABRCgAAgABF AAAAAABoCgAAgABGAAAAAACBCgAAgABHAAAAAACZCgAAgABIAAAAAAC0CgAA gABJAAAAAADLCgAAgABOAAAAAAAOCwAAgABRAAAAAAAnCwAAgABSAAAAAABB CwAAgABTAAAAAABZCwAAgABUAAAAAAByCwAAgABWAAAAAACLCwAAgABZAAAA AACkCwAAgABvAAAAAADxCwAAgAByAAAAAAAIDAAAgAB1AAAAAAAjDAAAgAB7 AAAAAAA9DAAAgAB8AAAAAABaDAAAgAB/AAAAAAB3DAAAgACAAAAAAACWDAAA gACDAAAAAACzDAAAgACEAAAAAADSDAAAgACHAAAAAADsDAAAgACKAAAAAAAH DQAAgACNAAAAAAAjDQAAgACOAAAAAABADQAAgACRAAAAAABaDQAAggAAANZG AQCODQAAggAAAIgPAAC2DQAAgAAAAAAAAADAAwAAogAAAAAAAADqDQAAgAAA AAAAAAAzDgAAgAAiAAAAAAByDgAAgAAAAAAAAACuDgAAgAAAAAAAAADkDgAA gAAAAAAAAAAWDwAAgAAAAAAAAABPDwAAgAAzAAAAAACNDwAAgAAAAAAAAADF DwAAgAA7AAAAAADgDwAAgABCAAAAAAAbEAAAgABFAAAAAAA4EAAAgAAAAAAA AAB2EAAAgAAAAAAAAAClEAAAgABSAAAAAADTEAAAgABZAAAAAAATEQAAgABd AAAAAAAxEQAAgAAAAAAAAABuEQAAgAAAAAAAAACiEQAAgAAAAAAAAADlEQAA gABrAAAAAAAYEgAAgAAAAAAAAABYEgAAgABzAAAAAABwEgAAgAB4AAAAAADA AwAAogAAAAAAAADAAwAAogAAAAAAAAApBAAAggAAABEKAACJEgAAgAD/AAAA AACfEgAAgAAYAQAAAADAAwAAogAAAAAAAAC0EgAAgAAjAAAAAADNEgAAgAAk AAAAAADmEgAAgAAlAAAAAAAAEwAAgAAmAAAAAADAAwAAogAAAAAAAAAaEwAA IAAiAAAAAADAAwAAZAAAAKSFBAhpbml0LmMAL3Vzci9zcmMvYnMvQlVJTEQv Z2xpYmMtMi4xL2NzdS8AZ2NjMl9jb21waWxlZC4AaW50OnQoMCwxKT1yKDAs MSk7MDAyMDAwMDAwMDAwMDswMDE3Nzc3Nzc3Nzc3OwBjaGFyOnQoMCwyKT1y KDAsMik7MDsxMjc7AGxvbmcgaW50OnQoMCwzKT1yKDAsMSk7MDAyMDAwMDAw MDAwMDswMDE3Nzc3Nzc3Nzc3OwB1bnNpZ25lZCBpbnQ6dCgwLDQpPXIoMCwx KTswMDAwMDAwMDAwMDAwOzAwMzc3Nzc3Nzc3Nzc7AGxvbmcgdW5zaWduZWQg aW50OnQoMCw1KT1yKDAsMSk7MDAwMDAwMDAwMDAwMDswMDM3Nzc3Nzc3Nzc3 OwBsb25nIGxvbmcgaW50OnQoMCw2KT1yKDAsMSk7MDEwMDAwMDAwMDAwMDAw MDAwMDAwMDA7MDc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3NzsAbG9uZyBsb25nIHVu c2lnbmVkIGludDp0KDAsNyk9cigwLDEpOzAwMDAwMDAwMDAwMDA7MDE3Nzc3 Nzc3Nzc3Nzc3Nzc3Nzc3Nzc7AHNob3J0IGludDp0KDAsOCk9cigwLDgpOy0z Mjc2ODszMjc2NzsAc2hvcnQgdW5zaWduZWQgaW50OnQoMCw5KT1yKDAsOSk7 MDs2NTUzNTsAc2lnbmVkIGNoYXI6dCgwLDEwKT1yKDAsMTApOy0xMjg7MTI3 OwB1bnNpZ25lZCBjaGFyOnQoMCwxMSk9cigwLDExKTswOzI1NTsAZmxvYXQ6 dCgwLDEyKT1yKDAsMSk7NDswOwBkb3VibGU6dCgwLDEzKT1yKDAsMSk7ODsw OwBsb25nIGRvdWJsZTp0KDAsMTQpPXIoMCwxKTsxMjswOwBjb21wbGV4IGlu dDp0KDAsMTUpPXM4cmVhbDooMCwxKSwwLDMyO2ltYWc6KDAsMSksMzIsMzI7 OwBjb21wbGV4IGZsb2F0OnQoMCwxNik9cigwLDE2KTs0OzA7AGNvbXBsZXgg ZG91YmxlOnQoMCwxNyk9cigwLDE3KTs4OzA7AGNvbXBsZXggbG9uZyBkb3Vi bGU6dCgwLDE4KT1yKDAsMTgpOzEyOzA7AHZvaWQ6dCgwLDE5KT0oMCwxOSkA Li4vaW5jbHVkZS9saWJjLXN5bWJvbHMuaAAvdXNyL3NyYy9icy9CVUlMRC9n bGliYy0yLjEvYnVpbGQtaTM4Ni1saW51eC9jb25maWcuaAAALi4vaW5jbHVk ZS9saWJpbnRsLmgALi4vaW50bC9saWJpbnRsLmgALi4vaW5jbHVkZS9mZWF0 dXJlcy5oAC4uL2luY2x1ZGUvc3lzL2NkZWZzLmgALi4vbWlzYy9zeXMvY2Rl ZnMuaAAvdXNyL2xpYi9nY2MtbGliL2kzODYtcmVkaGF0LWxpbnV4L2VnY3Mt Mi45MS42Ni9pbmNsdWRlL3N0ZGRlZi5oAC4uL2luY2x1ZGUvbG9jYWxlLmgA Li4vbG9jYWxlL2xvY2FsZS5oAGxjb252OlQoMTAsMSk9czQ4ZGVjaW1hbF9w b2ludDooMTAsMik9KigwLDIpLDAsMzI7dGhvdXNhbmRzX3NlcDooMTAsMiks MzIsMzI7XABncm91cGluZzooMTAsMiksNjQsMzI7aW50X2N1cnJfc3ltYm9s OigxMCwyKSw5NiwzMjtcAGN1cnJlbmN5X3N5bWJvbDooMTAsMiksMTI4LDMy O21vbl9kZWNpbWFsX3BvaW50OigxMCwyKSwxNjAsMzI7XABtb25fdGhvdXNh bmRzX3NlcDooMTAsMiksMTkyLDMyO21vbl9ncm91cGluZzooMTAsMiksMjI0 LDMyO1wAcG9zaXRpdmVfc2lnbjooMTAsMiksMjU2LDMyO25lZ2F0aXZlX3Np Z246KDEwLDIpLDI4OCwzMjtcAGludF9mcmFjX2RpZ2l0czooMCwyKSwzMjAs ODtmcmFjX2RpZ2l0czooMCwyKSwzMjgsODtcAHBfY3NfcHJlY2VkZXM6KDAs MiksMzM2LDg7cF9zZXBfYnlfc3BhY2U6KDAsMiksMzQ0LDg7XABuX2NzX3By ZWNlZGVzOigwLDIpLDM1Miw4O25fc2VwX2J5X3NwYWNlOigwLDIpLDM2MCw4 O1wAcF9zaWduX3Bvc246KDAsMiksMzY4LDg7bl9zaWduX3Bvc246KDAsMiks Mzc2LDg7OwAuLi9pbmNsdWRlL3hsb2NhbGUuaAAuLi9sb2NhbGUveGxvY2Fs ZS5oAF9fbG9jYWxlX3N0cnVjdDpUKDEzLDEpPXMzNl9fbG9jYWxlczooMTMs Mik9YXIoMCwxKTswOzU7KDEzLDMpPSooMTMsNCk9eHNsb2NhbGVfZGF0YTos MCwxOTI7XABfX2N0eXBlX2I6KDEzLDUpPSooMCw5KSwxOTIsMzI7X19jdHlw ZV90b2xvd2VyOigxMyw2KT0qKDAsMSksMjI0LDMyO1wAX19jdHlwZV90b3Vw cGVyOigxMyw2KSwyNTYsMzI7OwBfX2xvY2FsZV90OnQoMTMsNyk9KDEzLDgp PSooMTMsMSkALi4vc3lzZGVwcy91bml4L3N5c3YvbGludXgvX0dfY29uZmln LmgALi4vc3lzZGVwcy91bml4L3N5c3YvbGludXgvYml0cy90eXBlcy5oAHNp emVfdDp0KDE2LDEpPSgwLDQpAF9fdV9jaGFyOnQoMTUsMSk9KDAsMTEpAF9f dV9zaG9ydDp0KDE1LDIpPSgwLDkpAF9fdV9pbnQ6dCgxNSwzKT0oMCw0KQBf X3VfbG9uZzp0KDE1LDQpPSgwLDUpAF9fdV9xdWFkX3Q6dCgxNSw1KT0oMCw3 KQBfX3F1YWRfdDp0KDE1LDYpPSgwLDYpAF9faW50OF90OnQoMTUsNyk9KDAs MTApAF9fdWludDhfdDp0KDE1LDgpPSgwLDExKQBfX2ludDE2X3Q6dCgxNSw5 KT0oMCw4KQBfX3VpbnQxNl90OnQoMTUsMTApPSgwLDkpAF9faW50MzJfdDp0 KDE1LDExKT0oMCwxKQBfX3VpbnQzMl90OnQoMTUsMTIpPSgwLDQpAF9faW50 NjRfdDp0KDE1LDEzKT0oMCw2KQBfX3VpbnQ2NF90OnQoMTUsMTQpPSgwLDcp AF9fcWFkZHJfdDp0KDE1LDE1KT0oMTUsMTYpPSooMTUsNikAX19kZXZfdDp0 KDE1LDE3KT0oMTUsNSkAX191aWRfdDp0KDE1LDE4KT0oMTUsMykAX19naWRf dDp0KDE1LDE5KT0oMTUsMykAX19pbm9fdDp0KDE1LDIwKT0oMTUsNCkAX19t b2RlX3Q6dCgxNSwyMSk9KDE1LDMpAF9fbmxpbmtfdDp0KDE1LDIyKT0oMTUs MykAX19vZmZfdDp0KDE1LDIzKT0oMCwzKQBfX2xvZmZfdDp0KDE1LDI0KT0o MTUsNikAX19waWRfdDp0KDE1LDI1KT0oMCwxKQBfX3NzaXplX3Q6dCgxNSwy Nik9KDAsMSkAX19ybGltX3Q6dCgxNSwyNyk9KDAsMykAX19ybGltNjRfdDp0 KDE1LDI4KT0oMTUsNikAX19pZF90OnQoMTUsMjkpPSgxNSwzKQBfX2ZzaWRf dDp0KDE1LDMwKT0oMTUsMzEpPXM4X192YWw6KDE1LDMyKT1hcigwLDEpOzA7 MTsoMCwxKSwwLDY0OzsAX19kYWRkcl90OnQoMTUsMzMpPSgwLDEpAF9fY2Fk ZHJfdDp0KDE1LDM0KT0oMTAsMikAX190aW1lX3Q6dCgxNSwzNSk9KDAsMykA X19zd2Jsa190OnQoMTUsMzYpPSgwLDMpAF9fY2xvY2tfdDp0KDE1LDM3KT0o MCwzKQBfX2ZkX21hc2s6dCgxNSwzOCk9KDAsNSkAX19mZF9zZXQ6dCgxNSwz OSk9KDE1LDQwKT1zMTI4ZmRzX2JpdHM6KDE1LDQxKT1hcigwLDEpOzA7MzE7 KDE1LDM4KSwwLDEwMjQ7OwBfX2tleV90OnQoMTUsNDIpPSgwLDEpAF9faXBj X3BpZF90OnQoMTUsNDMpPSgwLDkpAF9fYmxrY250X3Q6dCgxNSw0NCk9KDAs MykAX19ibGtjbnQ2NF90OnQoMTUsNDUpPSgxNSw2KQBfX2ZzYmxrY250X3Q6 dCgxNSw0Nik9KDE1LDQpAF9fZnNibGtjbnQ2NF90OnQoMTUsNDcpPSgxNSw1 KQBfX2ZzZmlsY250X3Q6dCgxNSw0OCk9KDE1LDQpAF9fZnNmaWxjbnQ2NF90 OnQoMTUsNDkpPSgxNSw1KQBfX2lubzY0X3Q6dCgxNSw1MCk9KDE1LDQpAF9f b2ZmNjRfdDp0KDE1LDUxKT0oMTUsMjQpAF9fdF9zY2FsYXJfdDp0KDE1LDUy KT0oMCwxKQBfX3RfdXNjYWxhcl90OnQoMTUsNTMpPSgwLDQpAF9faW50cHRy X3Q6dCgxNSw1NCk9KDAsMSkALi4vbGludXh0aHJlYWRzL3N5c2RlcHMvcHRo cmVhZC9iaXRzL3B0aHJlYWR0eXBlcy5oAC4uL3N5c2RlcHMvdW5peC9zeXN2 L2xpbnV4L2JpdHMvc2NoZWQuaABfX3NjaGVkX3BhcmFtOlQoMTgsMSk9czRz Y2hlZF9wcmlvcml0eTooMCwxKSwwLDMyOzsAX3B0aHJlYWRfZmFzdGxvY2s6 VCgxNywxKT1zOF9fc3RhdHVzOigwLDMpLDAsMzI7X19zcGlubG9jazooMCwx KSwzMiwzMjs7AF9wdGhyZWFkX2Rlc2NyOnQoMTcsMik9KDE3LDMpPSooMTcs NCk9eHNfcHRocmVhZF9kZXNjcl9zdHJ1Y3Q6AHB0aHJlYWRfYXR0cl90OnQo MTcsNSk9KDE3LDYpPXMzNl9fZGV0YWNoc3RhdGU6KDAsMSksMCwzMjtcAF9f c2NoZWRwb2xpY3k6KDAsMSksMzIsMzI7X19zY2hlZHBhcmFtOigxOCwxKSw2 NCwzMjtcAF9faW5oZXJpdHNjaGVkOigwLDEpLDk2LDMyO19fc2NvcGU6KDAs MSksMTI4LDMyO1wAX19ndWFyZHNpemU6KDE2LDEpLDE2MCwzMjtfX3N0YWNr YWRkcl9zZXQ6KDAsMSksMTkyLDMyO1wAX19zdGFja2FkZHI6KDE3LDcpPSoo MCwxOSksMjI0LDMyO19fc3RhY2tzaXplOigxNiwxKSwyNTYsMzI7OwBwdGhy ZWFkX2NvbmRfdDp0KDE3LDgpPSgxNyw5KT1zMTJfX2NfbG9jazooMTcsMSks MCw2NDtcAF9fY193YWl0aW5nOigxNywyKSw2NCwzMjs7AHB0aHJlYWRfY29u ZGF0dHJfdDp0KDE3LDEwKT0oMTcsMTEpPXM0X19kdW1teTooMCwxKSwwLDMy OzsAcHRocmVhZF9rZXlfdDp0KDE3LDEyKT0oMCw0KQBwdGhyZWFkX211dGV4 X3Q6dCgxNywxMyk9KDE3LDE0KT1zMjRfX21fcmVzZXJ2ZWQ6KDAsMSksMCwz MjtcAF9fbV9jb3VudDooMCwxKSwzMiwzMjtfX21fb3duZXI6KDE3LDIpLDY0 LDMyO1wAX19tX2tpbmQ6KDAsMSksOTYsMzI7X19tX2xvY2s6KDE3LDEpLDEy OCw2NDs7AHB0aHJlYWRfbXV0ZXhhdHRyX3Q6dCgxNywxNSk9KDE3LDE2KT1z NF9fbXV0ZXhraW5kOigwLDEpLDAsMzI7OwBwdGhyZWFkX29uY2VfdDp0KDE3 LDE3KT0oMCwxKQBwdGhyZWFkX3J3bG9ja190OnQoMTcsMTgpPSgxNywxOSk9 czMyX19yd19sb2NrOigxNywxKSwwLDY0O1wAX19yd19yZWFkZXJzOigwLDEp LDY0LDMyO19fcndfd3JpdGVyOigxNywyKSw5NiwzMjtcAF9fcndfcmVhZF93 YWl0aW5nOigxNywyKSwxMjgsMzI7X19yd193cml0ZV93YWl0aW5nOigxNywy KSwxNjAsMzI7XABfX3J3X2tpbmQ6KDAsMSksMTkyLDMyO19fcndfcHNoYXJl ZDooMCwxKSwyMjQsMzI7OwBwdGhyZWFkX3J3bG9ja2F0dHJfdDp0KDE3LDIw KT0oMTcsMjEpPXM4X19sb2Nra2luZDooMCwxKSwwLDMyO1wAX19wc2hhcmVk OigwLDEpLDMyLDMyOzsAcHRocmVhZF90OnQoMTcsMjIpPSgwLDUpAHdjaGFy X3Q6dCgxOSwxKT0oMCwzKQB3aW50X3Q6dCgxOSwyKT0oMCw0KQBfR19pbnQx Nl90OnQoMTQsMSk9KDAsOCkAX0dfaW50MzJfdDp0KDE0LDIpPSgwLDEpAF9H X3VpbnQxNl90OnQoMTQsMyk9KDAsOSkAX0dfdWludDMyX3Q6dCgxNCw0KT0o MCw0KQBfSU9fc3RkaW5fdXNlZDpHKDAsMSkAAEdDQzogKEdOVSkgZWdjcy0y LjkxLjY2IDE5OTkwMzE0L0xpbnV4IChlZ2NzLTEuMS4yIHJlbGVhc2UpAABH Q0M6IChHTlUpIGVnY3MtMi45MS42NiAxOTk5MDMxNC9MaW51eCAoZWdjcy0x LjEuMiByZWxlYXNlKQAAR0NDOiAoR05VKSBlZ2NzLTIuOTEuNjYgMTk5OTAz MTQvTGludXggKGVnY3MtMS4xLjIgcmVsZWFzZSkAAEdDQzogKEdOVSkgZWdj cy0yLjkxLjY2IDE5OTkwMzE0L0xpbnV4IChlZ2NzLTEuMS4yIHJlbGVhc2Up AABHQ0M6IChHTlUpIGVnY3MtMi45MS42NiAxOTk5MDMxNC9MaW51eCAoZWdj cy0xLjEuMiByZWxlYXNlKQAAR0NDOiAoR05VKSBlZ2NzLTIuOTEuNjYgMTk5 OTAzMTQvTGludXggKGVnY3MtMS4xLjIgcmVsZWFzZSkACAAAAAAAAAABAAAA MDEuMDEAAAAIAAAAAAAAAAEAAAAwMS4wMQAAAAgAAAAAAAAAAQAAADAxLjAx AAAACAAAAAAAAAABAAAAMDEuMDEAAAAIAAAAAAAAAAEAAAAwMS4wMQAAAAgA AAAAAAAAAQAAADAxLjAxAAAAAC5zeW10YWIALnN0cnRhYgAuc2hzdHJ0YWIA LmludGVycAAubm90ZS5BQkktdGFnAC5oYXNoAC5keW5zeW0ALmR5bnN0cgAu Z251LnZlcnNpb24ALmdudS52ZXJzaW9uX3IALnJlbC5nb3QALnJlbC5wbHQA LmluaXQALnBsdAAudGV4dAAuZmluaQAucm9kYXRhAC5kYXRhAC5laF9mcmFt ZQAuY3RvcnMALmR0b3JzAC5nb3QALmR5bmFtaWMALmJzcwAuc3RhYgAuc3Rh YnN0cgAuY29tbWVudAAubm90ZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAGwAAAAEAAAACAAAA9IAECPQAAAATAAAAAAAA AAAAAAABAAAAAAAAACMAAAAHAAAAAgAAAAiBBAgIAQAAIAAAAAAAAAAAAAAA BAAAAAAAAAAxAAAABQAAAAIAAAAogQQIKAEAAJAAAAAEAAAAAAAAAAQAAAAE AAAANwAAAAsAAAACAAAAuIEECLgBAAAQAQAABQAAAAEAAAAEAAAAEAAAAD8A AAADAAAAAgAAAMiCBAjIAgAAzwAAAAAAAAAAAAAAAQAAAAAAAABHAAAA//// bwIAAACYgwQImAMAACIAAAAEAAAAAAAAAAIAAAACAAAAVAAAAP7//28CAAAA vIMECLwDAAAgAAAABQAAAAEAAAAEAAAAAAAAAGMAAAAJAAAAAgAAANyDBAjc AwAACAAAAAQAAAATAAAABAAAAAgAAABsAAAACQAAAAIAAADkgwQI5AMAAHAA AAAEAAAACwAAAAQAAAAIAAAAdQAAAAEAAAAGAAAAVIQECFQEAAAvAAAAAAAA AAAAAAAEAAAAAAAAAHsAAAABAAAABgAAAISEBAiEBAAA8AAAAAAAAAAAAAAA BAAAAAQAAACAAAAAAQAAAAYAAACAhQQIgAUAADwCAAAAAAAAAAAAABAAAAAA AAAAhgAAAAEAAAAGAAAAvIcECLwHAAAaAAAAAAAAAAAAAAAEAAAAAAAAAIwA AAABAAAAAgAAANiHBAjYBwAAGgAAAAAAAAAAAAAABAAAAAAAAACUAAAAAQAA AAMAAAD0lwQI9AcAAAwAAAAAAAAAAAAAAAQAAAAAAAAAmgAAAAEAAAADAAAA AJgECAAIAAAEAAAAAAAAAAAAAAAEAAAAAAAAAKQAAAABAAAAAwAAAASYBAgE CAAACAAAAAAAAAAAAAAABAAAAAAAAACrAAAAAQAAAAMAAAAMmAQIDAgAAAgA AAAAAAAAAAAAAAQAAAAAAAAAsgAAAAEAAAADAAAAFJgECBQIAABIAAAAAAAA AAAAAAAEAAAABAAAALcAAAAGAAAAAwAAAFyYBAhcCAAAoAAAAAUAAAAAAAAA BAAAAAgAAADAAAAACAAAAAMAAAD8mAQI/AgAABgAAAAAAAAAAAAAAAQAAAAA AAAAxQAAAAEAAAAAAAAAAAAAAPwIAABEBwAAFwAAAAAAAAAEAAAADAAAAMsA AAADAAAAAAAAAAAAAABAEAAAMBMAAAAAAAAAAAAAAQAAAAAAAADUAAAAAQAA AAAAAAAAAAAAcCMAAG4BAAAAAAAAAAAAAAEAAAAAAAAA3QAAAAcAAAAAAAAA bgEAAN4kAAB4AAAAAAAAAAAAAAABAAAAAAAAABEAAAADAAAAAAAAAAAAAABW JQAA4wAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAgAAAAAAAAAAAAAAxCoAAGAF AAAcAAAAOQAAAAQAAAAQAAAACQAAAAMAAAAAAAAAAAAAACQwAADGAgAAAAAA AAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9IAECAAAAAADAAEA AAAAAAiBBAgAAAAAAwACAAAAAAAogQQIAAAAAAMAAwAAAAAAuIEECAAAAAAD AAQAAAAAAMiCBAgAAAAAAwAFAAAAAACYgwQIAAAAAAMABgAAAAAAvIMECAAA AAADAAcAAAAAANyDBAgAAAAAAwAIAAAAAADkgwQIAAAAAAMACQAAAAAAVIQE CAAAAAADAAoAAAAAAISEBAgAAAAAAwALAAAAAACAhQQIAAAAAAMADAAAAAAA vIcECAAAAAADAA0AAAAAANiHBAgAAAAAAwAOAAAAAAD0lwQIAAAAAAMADwAA AAAAAJgECAAAAAADABAAAAAAAASYBAgAAAAAAwARAAAAAAAMmAQIAAAAAAMA EgAAAAAAFJgECAAAAAADABMAAAAAAFyYBAgAAAAAAwAUAAAAAAD8mAQIAAAA AAMAFQAAAAAAAAAAAAAAAAADABYAAAAAAAAAAAAAAAAAAwAXAAAAAAAAAAAA AAAAAAMAGAAAAAAAbgEAAAAAAAADABkAAAAAAAAAAAAAAAAAAwAaAAAAAAAA AAAAAAAAAAMAGwAAAAAAAAAAAAAAAAADABwAAQAAAAAAAAAAAAAABADx/wwA AACkhQQIAAAAAAAADAAbAAAAAAAAAAAAAAAEAPH/IgAAAAAAAAAAAAAABADx /wwAAACwhQQIAAAAAAAADAAtAAAA+JcECAAAAAABAA8AMQAAAAyYBAgAAAAA AQASAD8AAAD8lwQIAAAAAAEADwBLAAAAsIUECAAAAAACAAwAYQAAAACYBAgA AAAAAQAQAHQAAAD4hQQIAAAAAAIADAB/AAAA/JgECBgAAAABABUAiAAAAACG BAgAAAAAAgAMAJQAAAAghgQIAAAAAAIADACfAAAAAJgECAAAAAABAA8ArQAA AASYBAgAAAAAAQARACIAAAAAAAAAAAAAAAQA8f8MAAAAkIcECAAAAAAAAAwA uwAAAJCHBAgAAAAAAgAMANEAAAAImAQIAAAAAAEAEQCUAAAAtIcECAAAAAAC AAwAnwAAAACYBAgAAAAAAQAPAN4AAAAQmAQIAAAAAAEAEgDrAAAAAJgECAAA AAABABAAAQAAAAAAAAAAAAAABADx/wwAAAC8hwQIAAAAAAAADAD5AAAAAAAA AAAAAAAEAPH/DAAAADCGBAgAAAAAAAAMAP0AAACUhAQIOwAAABIAAAAPAQAA XJgECAAAAAARABQAGAEAALyHBAgAAAAAEQDx/x8BAACkhAQIdAAAACIAAABA AQAAtIQECDoAAAASAAAAUgEAAAAAAAAEAAAAEAAAAFkBAADEhAQIKQAAABIA AABtAQAA1IQECBsAAAAiAAAAiQEAAOSEBAg0AAAAEgAAAJwBAABUhAQIAAAA ABIACgCiAQAA9IQECKIAAAAiAAAAxQEAAICFBAgAAAAAEAAMAMwBAAAEhQQI HwAAABIAAADeAQAA/JgECAAAAAARAPH/6gEAADCGBAheAQAAEgAMAO8BAAAU hQQIBQEAABIAAAAMAgAA9JcECAAAAAAgAA8AFwIAACSFBAgpAAAAEgAAACkC AAC8hwQIAAAAABIADQAvAgAANIUECHAAAAAiAAAAQwIAAESFBAicAQAAIgAA AFYCAABUhQQIyAAAABIAAABmAgAA/JgECAAAAAARAPH/bQIAABSYBAgAAAAA EQATAIMCAAAUmQQIAAAAABEA8f+IAgAA3IcECAQAAAARAA4AlwIAAPSXBAgA AAAAEAAPAKQCAABkhQQIjgAAACIAAAC3AgAAAAAAAAAAAAAgAAAAAGluaXRm aW5pLmMAZ2NjMl9jb21waWxlZC4AaW5pdC5jAGNydHN0dWZmLmMAcC4yAF9f RFRPUl9MSVNUX18AY29tcGxldGVkLjMAX19kb19nbG9iYWxfZHRvcnNfYXV4 AF9fRUhfRlJBTUVfQkVHSU5fXwBmaW5pX2R1bW15AG9iamVjdC44AGZyYW1l X2R1bW15AGluaXRfZHVtbXkAZm9yY2VfdG9fZGF0YQBfX0NUT1JfTElTVF9f AF9fZG9fZ2xvYmFsX2N0b3JzX2F1eABfX0NUT1JfRU5EX18AX19EVE9SX0VO RF9fAF9fRlJBTUVfRU5EX18AMS5jAHJlbmFtZUBAR0xJQkNfMi4wAF9EWU5B TUlDAF9ldGV4dABfX3JlZ2lzdGVyX2ZyYW1lX2luZm9AQEdMSUJDXzIuMABz dHJjbXBAQEdMSUJDXzIuMABfZnBfaHcAc3RyZXJyb3JAQEdMSUJDXzIuMABf X2Vycm5vX2xvY2F0aW9uQEBHTElCQ18yLjAAdG9sb3dlckBAR0xJQkNfMi4w AF9pbml0AF9fZGVyZWdpc3Rlcl9mcmFtZV9pbmZvQEBHTElCQ18yLjAAX3N0 YXJ0AHN0cmxlbkBAR0xJQkNfMi4wAF9fYnNzX3N0YXJ0AG1haW4AX19saWJj X3N0YXJ0X21haW5AQEdMSUJDXzIuMABkYXRhX3N0YXJ0AHByaW50ZkBAR0xJ QkNfMi4wAF9maW5pAGNsb3NlZGlyQEBHTElCQ18yLjAAb3BlbmRpckBAR0xJ QkNfMi4wAGV4aXRAQEdMSUJDXzIuMABfZWRhdGEAX0dMT0JBTF9PRkZTRVRf VEFCTEVfAF9lbmQAX0lPX3N0ZGluX3VzZWQAX19kYXRhX3N0YXJ0AHJlYWRk aXJAQEdMSUJDXzIuMABfX2dtb25fc3RhcnRfXwA= ------_=_NextPart_000_01C09A50.77E9DC10 Content-Type: application/octet-stream; name="tolowercase.c" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="tolowercase.c" #include #include #include #include #include #include main() { DIR *pDir; int i, length; struct dirent *pDirent; char name[50]; if((pDir=3Dopendir("./")) =3D=3D NULL) { printf("%s\n", strerror(errno)); exit(-1); } while((pDirent=3Dreaddir(pDir))!=3DNULL) { if(strcmp(pDirent->d_name,"a.out") !=3D0 && strcmp(pDirent->d_name,".") != =3D 0 && strcmp(pDirent->d_name,"..") !=3D 0) { length=3Dstrlen(pDirent->d_name); for(i=3D0;i < length ; i++) name[i]=3Dtolower(pDirent->d_name[i]); name[i]=3D'\0'; rename(pDirent->d_name,name); printf("%s\n",name); } } closedir(pDir); } ------_=_NextPart_000_01C09A50.77E9DC10-- From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 09:46:10 2001 Received: from cantor.morelinux.net (cantor.morelinux.net [203.197.87.98]) by www.aunet.org (Postfix) with ESMTP id ADBFA4A16B for ; Mon, 19 Feb 2001 09:46:05 -0800 (PST) Received: from morelinux.com (cygnus.morelinux.co.in [192.168.1.66]) by cantor.morelinux.net (8.9.3/8.9.3) with ESMTP id XAA15913 for ; Mon, 19 Feb 2001 23:36:34 +0530 Message-ID: <3A915778.E1490F03@morelinux.com> Date: Mon, 19 Feb 2001 22:57:20 +0530 From: ambarish pathak X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.13-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: bash script References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/194 X-Sequence-Number: 1650 Indraneel Majumdar wrote: > > echo $word | perl -pe 's/(.*)/\L$1/g' > shouldn't that use > tr/A-Z/a-z/g; > instead of > s/(.*)/L$1/g i gues, Binand's solution is more portable. From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 09:50:00 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 8DB574A12E for ; Mon, 19 Feb 2001 09:49:59 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA06208; Mon, 19 Feb 2001 09:41:00 -0800 Date: Mon, 19 Feb 2001 09:41:00 -0800 From: Arun Sharma To: "Binand Raj S." , LIP Subject: Re: bash script Message-ID: <20010219094100.A6162@sharmas.dhs.org> References: <20010219130024.A8855@bombay.retortsoft.com> <20010219205624.C28626@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: <20010219205624.C28626@bombay.retortsoft.com>; from binand@bombay.retortsoft.com on Mon, Feb 19, 2001 at 08:56:25PM +0530 X-Archive-Number: 200102/195 X-Sequence-Number: 1651 On Mon, Feb 19, 2001 at 08:56:25PM +0530, Binand Raj S. wrote: > Maybe I should rewrite the whole thing in perl? :-) Yes, you probably should. Will be faster - avoiding a large number of forks. Since I don't want to fill up precious RAM in my head with perl syntax, I use python, but envy all the good perl one liners. So I came up with cpy (command line python): #!/usr/bin/env python from string import * import sys import fileinput command = reduce(lambda x, y: x + ' ' + y, sys.argv[1:]) # Construct a lambda func out of command command = "lambda line: " + command sys.argv = [] for line in fileinput.input(): global fields line = strip(line) fields = split(line) print apply(eval(command), [line]) $ cat /etc/passwd | cpy 'upper(line)' -Arun From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 10:20:10 2001 Received: from pimout3-int.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by www.aunet.org (Postfix) with ESMTP id 2951F4A123 for ; Mon, 19 Feb 2001 10:20:08 -0800 (PST) Received: from aglaja.swmed.edu (nas-48-87.dallas.navipath.net [216.67.48.87]) by pimout3-int.prodigy.net (8.11.0/8.11.0) with ESMTP id f1JIEhW148238 for ; Mon, 19 Feb 2001 13:14:43 -0500 Received: from localhost (lists@localhost) by aglaja.swmed.edu (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id f1JHvwo06872 for ; Mon, 19 Feb 2001 11:57:58 -0600 X-Authentication-Warning: aglaja.swmed.edu: lists owned process doing -bs Date: Mon, 19 Feb 2001 11:57:58 -0600 (CST) From: Indraneel Majumdar X-Sender: lists@aglaja.swmed.edu To: linux-india-programmers@lists.linux-india.org Subject: Re: bash script In-Reply-To: <3A915778.E1490F03@morelinux.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/196 X-Sequence-Number: 1652 Don't have the perl book right now. Is L more supported than tr/// in perl across diferent platforms or is it something else? \Indraneel On Mon, 19 Feb 2001, ambarish pathak wrote: > Indraneel Majumdar wrote: > > > echo $word | perl -pe 's/(.*)/\L$1/g' > > shouldn't that use > > tr/A-Z/a-z/g; > > instead of > > s/(.*)/L$1/g > > i gues, Binand's solution is more portable. -- http://www.indialine.org From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 10:27:56 2001 Received: from alice.bombay.retortsoft.com (unknown [203.199.78.146]) by www.aunet.org (Postfix) with ESMTP id 09AFC4A213 for ; Mon, 19 Feb 2001 10:26:51 -0800 (PST) Received: (from binand@localhost) by alice.bombay.retortsoft.com (8.9.3/8.9.3) id AAA01802 for linux-india-programmers@lists.linux-india.org; Tue, 20 Feb 2001 00:00:13 +0530 Date: Tue, 20 Feb 2001 00:00:13 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: bash script Message-ID: <20010220000013.A1656@bombay.retortsoft.com> Mail-Followup-To: "Binand Raj S." , linux-india-programmers@lists.linux-india.org References: <3A915778.E1490F03@morelinux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from lists@123india.com on Mon, Feb 19, 2001 at 11:57:58AM -0600 X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200102/197 X-Sequence-Number: 1653 Indraneel Majumdar forced the electrons to say: > Is L more supported than tr/// in perl across diferent platforms or is it > something else? Nothing of that sort. Just that I thought of \L first, and you of tr///. The motto of perl is that there is more than one way to do a job, isn't it? Maybe the locale settings make a difference, any i18n experts out here? Binand From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 10:49:13 2001 Received: from web2105.mail.yahoo.com (web2105.mail.yahoo.com [128.11.68.249]) by www.aunet.org (Postfix) with SMTP id 019804A14D for ; Mon, 19 Feb 2001 10:49:06 -0800 (PST) Received: (qmail 13544 invoked by uid 60001); 19 Feb 2001 18:43:38 -0000 Message-ID: <20010219184338.13543.qmail@web2105.mail.yahoo.com> Received: from [210.214.240.167] by web2105.mail.yahoo.com; Mon, 19 Feb 2001 10:43:38 PST Date: Mon, 19 Feb 2001 10:43:38 -0800 (PST) From: Rajeev Joseph Reply-To: rajeevjsv@yahoo.com Subject: Re: [Fwd: ISO 9660 specifications....] To: linux-india-programmers@lists.linux-india.org In-Reply-To: <3A91238C.441B76EA@india.ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200102/198 X-Sequence-Number: 1654 A Search on www.google.com was all that was required ... u needn't have waited that long. http://www.alumni.caltech.edu/~pje/iso9660.html rajeev j sebastian acid solutions __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 12:26:03 2001 Received: from pimout3-int.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by www.aunet.org (Postfix) with ESMTP id CD7774A1D2 for ; Mon, 19 Feb 2001 12:26:01 -0800 (PST) Received: from aglaja.swmed.edu (nas-57-72.dallas.navipath.net [216.67.57.72]) by pimout3-int.prodigy.net (8.11.0/8.11.0) with ESMTP id f1JKKbW06052 for ; Mon, 19 Feb 2001 15:20:37 -0500 Received: from localhost (lists@localhost) by aglaja.swmed.edu (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id f1JJPqq07607 for ; Mon, 19 Feb 2001 13:25:52 -0600 X-Authentication-Warning: aglaja.swmed.edu: lists owned process doing -bs Date: Mon, 19 Feb 2001 13:25:52 -0600 (CST) From: Indraneel Majumdar X-Sender: lists@aglaja.swmed.edu To: linux-india-programmers@lists.linux-india.org Subject: Re: bash script In-Reply-To: <20010220000013.A1656@bombay.retortsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/199 X-Sequence-Number: 1655 On Tue, 20 Feb 2001, Binand Raj S. wrote: > The motto of perl is that there is more than one way to do a job, > isn't it? yep, that's true. The perl book says that too \indraneel -- http://www.indialine.org From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 14:36:26 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 29D374A10F for ; Mon, 19 Feb 2001 14:36:24 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id OAA07135 for linux-india-programmers@lists.linux-india.org; Mon, 19 Feb 2001 14:27:30 -0800 Date: Mon, 19 Feb 2001 14:27:30 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: bash script Message-ID: <20010219142730.A7122@sharmas.dhs.org> References: <3A915778.E1490F03@morelinux.com> <20010220000013.A1656@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: <20010220000013.A1656@bombay.retortsoft.com>; from binand@bombay.retortsoft.com on Tue, Feb 20, 2001 at 12:00:13AM +0530 X-Archive-Number: 200102/200 X-Sequence-Number: 1656 On Tue, Feb 20, 2001 at 12:00:13AM +0530, Binand Raj S. wrote: > The motto of perl is that there is more than one way to do a job, > isn't it? And the python motto is exactly the opposite :) > Maybe the locale settings make a difference, any i18n experts out here? Sure. \L can be made locale specific. tr would've to be rewritten for each locale - hence non-portable across locales. -Arun PS: Seamless integration with Java (the VM and the language) seems to be helping python a bit these days. From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 22:02:03 2001 Received: from hwembmn2621.honeywell.com (hwembmn2621.honeywell.com [129.30.244.34]) by www.aunet.org (Postfix) with ESMTP id 75FC44A218 for ; Mon, 19 Feb 2001 22:02:01 -0800 (PST) Received: from HWEMBMNVW001 ([129.30.244.31]) by hwembmn2621.honeywell.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F2GTMRAY; Tue, 20 Feb 2001 00:03:34 -0600 Received: from 129.30.244.21 by hwembmnvw001 (InterScan E-Mail VirusWall NT); Mon, 19 Feb 2001 23:55:00 -0600 (Central Standard Time) Received: by HWEMNMN2601 with Internet Mail Service (5.5.2650.21) id ; Mon, 19 Feb 2001 23:57:06 -0600 Message-ID: From: "Guruprasad, Mahendrakar V (IE10)" To: linux-india-programmers@lists.linux-india.org Subject: RE: bash script Date: Mon, 19 Feb 2001 23:56:34 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/201 X-Sequence-Number: 1657 #include #include #include #include #include #include main() { DIR *pDir; int i, length; struct dirent *pDirent; char name[50]; if((pDir=opendir("./")) == NULL) { printf("%s\n", strerror(errno)); exit(-1); } while((pDirent=readdir(pDir))!=NULL) { if(strcmp(pDirent->d_name,"a.out") !=0 && strcmp(pDirent->d_name,".") != 0 && strcmp(pDirent->d_name,"..") != 0) { length=strlen(pDirent->d_name); for(i=0;i < length ; i++) name[i]=tolower(pDirent->d_name[i]); name[i]='\0'; rename(pDirent->d_name,name); printf("%s\n",name); } } closedir(pDir); } > -----Original Message----- > From: Indraneel Majumdar [SMTP:lists@123india.com] > Sent: Monday, February 19, 2001 8:01 PM > To: LIP > Subject: Re: [LIP] bash script > > On Mon, 19 Feb 2001, Binand Raj S. wrote: > > > Use this cute perl one liner to convert a word to lowercase. > > echo $word | perl -pe 's/(.*)/\L$1/g' > > shouldn't that use > tr/A-Z/a-z/g; > instead of > s/(.*)/L$1/g > > \Indraneel > > -- > http://www.indialine.org > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr From linux-india-programmers-owner@lists.linux-india.org Mon Feb 19 22:52:18 2001 Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by www.aunet.org (Postfix) with ESMTP id 7199449F02 for ; Mon, 19 Feb 2001 22:52:16 -0800 (PST) Received: from redsea.india.hp.com (redsea.india.hp.com [15.76.97.3]) by palrel1.hp.com (Postfix) with ESMTP id 13AE21138 for ; Mon, 19 Feb 2001 22:46:52 -0800 (PST) Received: from EB9656 (eb9656.india.hp.com [15.76.96.56]) by redsea.india.hp.com with SMTP (8.7.1/8.7.3 SMKit7.02) id MAA03251 for ; Tue, 20 Feb 2001 12:18:51 +0530 (IST) From: "Vikram K" To: Subject: RE: opening files in kernel modules Date: Tue, 20 Feb 2001 12:16:49 +0530 Message-ID: <000c01c09b08$e6ecb4d0$38604c0f@EB9656> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <20010219125114.22243.qmail@web1805.mail.yahoo.com> Importance: Normal X-Archive-Number: 200102/202 X-Sequence-Number: 1658 Hi, include the file u can use the function filp_open (fs/open.c) to open the file. you have the file pointer and use the fops interfaces... dont forget to use put_filp to close the file... Vikram mailto:vikramk@india.hp.com -----Original Message----- From: linux-india-programmers-owner@lists.linux-india.org [mailto:linux-india-programmers-owner@lists.linux-india.org]On Behalf Of sibin m Sent: Monday, February 19, 2001 6:21 PM To: linux-india-programmers@lists.linux-india.org; linux-india-help@lists.linux-india.org Subject: [LIP] opening files in kernel modules hi , i have a problem while writing kernel level modules...i'm unable to open/read data from any files... how do i open files in kernel modules...which headers have the necessary functions ? using and functions like 'fopen' decribed in it doesn't seem to help. also, how does one set delays, again in kernel modules. ciao, sibin __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.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 Tue Feb 20 01:14:30 2001 Received: from satyaki.pacific.net.in (satyaki.pacific.net.in [203.123.128.85]) by www.aunet.org (Postfix) with ESMTP id 4BA5E4A09E for ; Tue, 20 Feb 2001 01:14:25 -0800 (PST) Received: from ganga.sankya.com (ppp62.bangalore-188.pacific.net.in [203.123.188.62]) by satyaki.pacific.net.in with ESMTP id OAA29491 for ; Tue, 20 Feb 2001 14:38:55 +0530 (IST) Date: Tue, 20 Feb 2001 12:27:46 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: pthread_delay_np Message-ID: <20010220122746.A4334@sankya.com> Mail-Followup-To: Babu Kalakrishnan , linux-india-programmers@lists.linux-india.org References: <20010119151751.29124.qmail@web8003.mail.in.yahoo.com> <3A90AC4A.7AC0E46D@anr.mcnc.org> <20010218222556.A4686@sharmas.dhs.org> <3A90BE61.AA414436@anr.mcnc.org> <00b901c09a3d$cb981c40$1101a8c0@sharmas.org> <3A90C0CE.19C5ACC4@anr.mcnc.org> <3A90C4C7.1030501@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A90C4C7.1030501@sharmas.dhs.org>; from arun@sharmas.dhs.org on Sun, Feb 18, 2001 at 11:01:27PM -0800 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: 200102/203 X-Sequence-Number: 1659 On Sun, Feb 18, 2001 at 11:01:27PM -0800, Arun Sharma typed: > In Linux, thread = process that shares address space with other processes. > So when the thread calls sleep, only the calling thread sleeps, not the > whole > process. > The things unique about Linux implementation is - threads and processes are > peers, rather than the traditional UNIX way of "a process contains threads". How about the green_threads implementations of Sun/Blackdown JVMs, Arun? Do they use pthreads ? Kala From linux-india-programmers-owner@lists.linux-india.org Tue Feb 20 08:43:11 2001 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 6B24A4A15E for ; Tue, 20 Feb 2001 08:43:06 -0800 (PST) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA09130; Tue, 20 Feb 2001 08:34:03 -0800 Date: Tue, 20 Feb 2001 08:34:03 -0800 From: Arun Sharma To: Babu Kalakrishnan , linux-india-programmers@lists.linux-india.org Subject: Re: pthread_delay_np Message-ID: <20010220083403.B9100@sharmas.dhs.org> References: <20010119151751.29124.qmail@web8003.mail.in.yahoo.com> <3A90AC4A.7AC0E46D@anr.mcnc.org> <20010218222556.A4686@sharmas.dhs.org> <3A90BE61.AA414436@anr.mcnc.org> <00b901c09a3d$cb981c40$1101a8c0@sharmas.org> <3A90C0CE.19C5ACC4@anr.mcnc.org> <3A90C4C7.1030501@sharmas.dhs.org> <20010220122746.A4334@sankya.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010220122746.A4334@sankya.com>; from kalakrishnan@vsnl.com on Tue, Feb 20, 2001 at 12:27:46PM +0530 X-Archive-Number: 200102/204 X-Sequence-Number: 1660 On Tue, Feb 20, 2001 at 12:27:46PM +0530, Babu Kalakrishnan wrote: > How about the green_threads implementations of Sun/Blackdown JVMs, Arun? > Do they use pthreads ? The green threads use a completely userland solution (SIGALRM + setjmp/longjmp) that comes with the JDK sources. The "native" threads implementation uses pthreads. -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 01:34:21 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 600B249EFE; Wed, 21 Feb 2001 01:33:53 -0800 (PST) Received: from rahul ([61.11.246.77]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f1L9WbF12069; Wed, 21 Feb 2001 15:02:38 +0530 Message-ID: <006d01c09be8$7aadc3a0$4df60b3d@rahul> From: "Rahul Jindal" To: , , Subject: lug-northindia@yahoogroups.com Date: Wed, 21 Feb 2001 14:57:12 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/205 X-Sequence-Number: 1661 Hello world, just a small information. this is to inform you of the opening of a local chapter of lug. this is as the subject says is directed to the North India Linus fans but anybody is welcome to join it. We are based in chandigarh but are open to any enthu person. so looking forward to having you on the group. We'll start with the basics and mature gradually. Any suggestions from the gurus here are most welcome. Excuse me for cross posting this to Li*, this is as they say "for max coverage". Subscribe: lug-northindia-subscribe@yahoogroups.com Unsubscribe: lug-northindia-unsubscribe@yahoogroups.com List owner: lug-northindia-owner@yahoogroups.com URL (temp) : http://groups.yahoo.com/group/lug-northindia Hope to see you there. Long live Linux!!!! P.S.: we are soon going to have our own website. Regards r /\ |-| |_| |_ ================== First, they ignore you. Then they laugh at you. Then they fight you. Then you win -- MG ================== From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 02:07:32 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id C455A4A2F1 for ; Wed, 21 Feb 2001 02:07:29 -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 f1LA8kQ23170 for ; Wed, 21 Feb 2001 15:38:46 +0530 Message-ID: <3A93938E.1224CF9B@pspl.co.in> Date: Wed, 21 Feb 2001 15:38:15 +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: lug-northindia@yahoogroups.com References: <006d01c09be8$7aadc3a0$4df60b3d@rahul> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/206 X-Sequence-Number: 1662 Pardon me... Rahul Jindal wrote: > Hello world, > > Linus fans but anybody is welcome to join it. ^^^^ Do you mean linux? Shridhar From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 03:01:37 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 8FA6749F15 for ; Wed, 21 Feb 2001 03:01:24 -0800 (PST) Received: from rahul ([61.11.246.188]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f1LB07F03420 for ; Wed, 21 Feb 2001 16:30:07 +0530 Message-ID: <018201c09bf4$b31b2500$4df60b3d@rahul> From: "Rahul Jindal" To: References: <006d01c09be8$7aadc3a0$4df60b3d@rahul> <3A93938E.1224CF9B@pspl.co.in> Subject: Re: lug-northindia@yahoogroups.com Date: Wed, 21 Feb 2001 16:24:43 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/207 X-Sequence-Number: 1663 hmmmmmm, never met a person liking Linux and detesting Linus. anyways this is an argument for a typo, i meant what you got. :-) r /\ |-| |_| |_ ================== First, they ignore you. Then they laugh at you. Then they fight you. Then you win -- MG ================== The Northern Linux lug-northindia@yahoogroups.com ----- Original Message ----- From: "Shridhar Daithankar" To: Sent: Wednesday, February 21, 2001 3:38 PM Subject: Re: [LIP] lug-northindia@yahoogroups.com > Pardon me... > > Rahul Jindal wrote: > > > Hello world, > > > > Linus fans but anybody is welcome to join it. > > ^^^^ > > Do you mean linux? > > Shridhar > > > --------------------------------------------- > An alpha version of a web based tool to manage > your subscription with this mailing list is at > http://lists.linux-india.org/cgi-bin/mj_wwwusr > From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 03:12:34 2001 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 0D9594A0E8 for ; Wed, 21 Feb 2001 03:12:29 -0800 (PST) Received: from accord-soft.com (IDENT:sunilv@Sunil [192.168.1.41] (may be forged)) by accord-soft.com (8.9.3/8.9.3) with ESMTP id QAA14467 for ; Wed, 21 Feb 2001 16:36:25 +0530 Message-ID: <3A93A12F.7EF5232@accord-soft.com> Date: Wed, 21 Feb 2001 16:36:23 +0530 From: "Sunil V." Organization: Accord 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: pthread_exit? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/208 X-Sequence-Number: 1664 Hello, I downloaded this program from the net, compiled it and ran. It works as it is supposed to. But the problem is, redirection of its output is not happening. The reason I think is 'pthread_exit'. In the program both the main thread and the thread created is stopped using 'pthread_exit'. And, it looks like 'pthread_exit' is not doing a 'fflush'. Why is this? If I call 'fflush' before 'pthread_exit' everything works fine. Have a look at the code.... -- pthread_create.c -- #include /* standard I/O routines */ #include /* pthread functions and data structures */ /* function to be executed by the new thread */ void* do_loop(void* data) { int i; /* counter, to print numbers */ int j; /* counter, for delay */ int me = *((int*)data); /* thread identifying number */ for (i=0; i<10; i++) { for (j=0; j<500000; j++) /* delay loop */ ; printf("'%d' - Got '%d'\n", me, i); } /* exit the thread */ pthread_exit(NULL); } /* like any C program, program's execution begins in main */ int main(int argc, char* argv[]) { int thr_id; /* thread ID for the newly created thread */ pthread_t p_thread; /* thread's structure */ int a = 1; /* thread 1 identifying number */ int b = 2; /* thread 2 identifying number */ /* create a new thread that will execute 'do_loop()' */ thr_id = pthread_create(&p_thread, NULL, do_loop, (void*)&a); /* run 'do_loop()' in the main thread as well */ do_loop((void*)&b); /* NOT REACHED */ return 0; } -- pthread_create.c -- Thanks in advance. Regards, Sunil From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 03:23:04 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 987F24A235 for ; Wed, 21 Feb 2001 03:23:00 -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 f1LBOJQ24741 for ; Wed, 21 Feb 2001 16:54:19 +0530 Message-ID: <3A93A543.69BCF5FE@pspl.co.in> Date: Wed, 21 Feb 2001 16:53:48 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: Pthread question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/209 X-Sequence-Number: 1665 Hi all I am working on some threads these days. and I have a question. It's a well known fact that a member function of a c++ class can't be made as starting point of thread. Also I found that passing some class member as thread function argument does not work unless that member is public. I am writing a small wrapper for pthreads, which stores function pointers as member variables. I would like to know if this is feasible/advisable for calling pthread functions from wrapper class functions. I will be experimenting on this. I would like to have some suggestions on this... Shridhar From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 03:27:36 2001 Received: from aditya.pune.gsslco.co.in (unknown [203.129.226.254]) by www.aunet.org (Postfix) with ESMTP id D03CF4A28C for ; Wed, 21 Feb 2001 03:27:30 -0800 (PST) Received: from phoenix.pune.gsslco.co.in (IDENT:sreangsua@phoenix.pune.gsslco.co.in [202.54.80.57]) by aditya.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id QAA06894 for ; Wed, 21 Feb 2001 16:57:22 +0530 (IST) Received: from localhost (sreangsua@localhost) by phoenix.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id QAA19726 for ; Wed, 21 Feb 2001 16:43:56 +0530 Date: Wed, 21 Feb 2001 16:43:46 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re: pthread and TCL? In-Reply-To: <3A93A12F.7EF5232@accord-soft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/210 X-Sequence-Number: 1666 Has anyone used pthreads with TCL. Since version 8.1 TCL is supposed tobe thread safe. Version 8.3 has a loadable extension called thread. Pointers to docs and code snippets would be gratefully accepted. -- sreangsu From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 09:30:50 2001 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id ECEB64A2AA; Wed, 21 Feb 2001 09:30:42 -0800 (PST) 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 WAA09977; Wed, 21 Feb 2001 22:59:10 +0530 (IST) Received: from ajayd.h1.iitk.ac.in ([172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id WAA06004; Wed, 21 Feb 2001 22:44:43 +0530 (IST) Received: from localhost (ajayd@localhost) by ajayd.h1.iitk.ac.in (8.11.0/8.11.0) with ESMTP id f1LHNnI04446; Wed, 21 Feb 2001 22:53:49 +0530 X-Authentication-Warning: ajayd.h1.iitk.ac.in: ajayd owned process doing -bs Date: Wed, 21 Feb 2001 22:53:49 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-programmers@lists.linux-india.org, linux-india-help@lists.linux-india.org Subject: library fuction calls Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/211 X-Sequence-Number: 1667 hi all, I am trying to write a wrapper for one of the library functions (more specifically connect() ). Now what I want is whenever some application calls connect() my_connect should be called. my_connect does some checks on the sockaddr and then calls connect(). I have noticed that there are aliases for connect like __connect and __libc_connect in the glibc source. I have written the code for connect() function which I am compiling as a shared library with -shared option. Now my questions are: 1. How do I make the system use my connect() function instead of the glibc's connect(). 2. I need to call the glibc's connect() in my connect(). How do i do this. (I am trying this by calling __connect and __libc_connect instead in my connect and compiling a program with this shared lib. Obviously its not working, it seems like I am getting into infinite recursion.) Please help. Thanks in advance. -- #!!! 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 Wed Feb 21 10:30:22 2001 Received: from c62443-a.frmt1.sfba.home.com (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 0199E4A3CA for ; Wed, 21 Feb 2001 10:30:19 -0800 (PST) Received: (from adsharma@localhost) by c62443-a.frmt1.sfba.home.com (8.9.3/8.9.3) id KAA12394 for linux-india-programmers@lists.linux-india.org; Wed, 21 Feb 2001 10:21:19 -0800 Date: Wed, 21 Feb 2001 10:21:19 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: pthread and TCL? Message-ID: <20010221102119.A12387@sharmas.dhs.org> References: <3A93A12F.7EF5232@accord-soft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from sreangsua@geometricsoftware.com on Wed, Feb 21, 2001 at 04:43:46PM +0530 X-Archive-Number: 200102/212 X-Sequence-Number: 1668 On Wed, Feb 21, 2001 at 04:43:46PM +0530, sreangsu acharyya wrote: > > Has anyone used pthreads with TCL. Since version 8.1 TCL is supposed tobe > thread safe. Version 8.3 has a loadable extension called thread. Pointers > to docs and code snippets would be gratefully accepted. http://www.hwaci.com/sw/pttcl/pttcl.html -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 10:33:50 2001 Received: from c62443-a.frmt1.sfba.home.com (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 0C2474A360 for ; Wed, 21 Feb 2001 10:33:49 -0800 (PST) Received: (from adsharma@localhost) by c62443-a.frmt1.sfba.home.com (8.9.3/8.9.3) id KAA12400 for linux-india-programmers@lists.linux-india.org; Wed, 21 Feb 2001 10:24:48 -0800 Date: Wed, 21 Feb 2001 10:24:48 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: Pthread question Message-ID: <20010221102448.A12247@sharmas.dhs.org> References: <3A93A543.69BCF5FE@pspl.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A93A543.69BCF5FE@pspl.co.in>; from shridhar_daithankar@pspl.co.in on Wed, Feb 21, 2001 at 04:53:48PM +0530 X-Archive-Number: 200102/213 X-Sequence-Number: 1669 On Wed, Feb 21, 2001 at 04:53:48PM +0530, Shridhar Daithankar wrote: > I am writing a small wrapper for pthreads, which stores function > pointers as > member variables. I would like to know if this is feasible/advisable > for calling pthread functions from wrapper class functions. You're probably better off using some kind of a C++ wrapper around pthreads. Try searching around in Doug Schmidt's ACE page. http://www.cs.wustl.edu/~schmidt/ACE-overview.html -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 20:19:30 2001 Received: from venus.roc.com (unknown [202.54.67.218]) by www.aunet.org (Postfix) with ESMTP id 7C0544A314 for ; Wed, 21 Feb 2001 20:19:23 -0800 (PST) Received: from ramakrishna.roc.com (rkp.roc.com [172.16.5.88]) by venus.roc.com (8.9.3/8.9.3) with SMTP id VAA01434 for ; Wed, 21 Feb 2001 21:53:04 +0530 From: Ch Rama Krishna Prasad Reply-To: rkp@intotoinc.com Organization: Intoto Inc To: linux-india-programmers@lists.linux-india.org Subject: Re: library fuction calls Date: Thu, 22 Feb 2001 09:35:25 +0530 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01022209365600.01679@ramakrishna.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/214 X-Sequence-Number: 1670 Hi, I think you will call my-connect function then check the checking conditions and the call connect in your my_connect function. By this you need not use shared library also From Ch.R.K.Prasad. On Wed, 21 Feb 2001, you wrote: > hi all, > I am trying to write a wrapper for one of the library functions > (more specifically connect() ). Now what I want is whenever some application > calls connect() my_connect should be called. my_connect does some > checks on the sockaddr and then calls connect(). > I have noticed that there are aliases for connect like __connect > and __libc_connect in the glibc source. I have written the code for > connect() function which I am compiling as a shared library with -shared > option. Now my questions are: > > 1. How do I make the system use my connect() function instead of the > glibc's connect(). > > 2. I need to call the glibc's connect() in my connect(). How do i do > this. (I am trying this by calling __connect and __libc_connect instead in > my connect and compiling a program with this shared lib. Obviously its not > working, it seems like I am getting into infinite recursion.) > > Please help. > > Thanks in advance. > > -- > > #!!! If anything can go wrong, _FIX_ it. (To hell with MURPHY) > > Ajay kumar Dwivedi > ajayd@iitk.ac.in > > > --------------------------------------------- > 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 Feb 21 20:37:30 2001 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id C65E64A2CA for ; Wed, 21 Feb 2001 20:37:21 -0800 (PST) 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 KAA12417 for ; Thu, 22 Feb 2001 10:05:47 +0530 (IST) Received: from ajayd.h1.iitk.ac.in ([172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id JAA27875 for ; Thu, 22 Feb 2001 09:51:19 +0530 (IST) Received: from localhost (ajayd@localhost) by ajayd.h1.iitk.ac.in (8.11.0/8.11.0) with ESMTP id f1M4UPJ08546 for ; Thu, 22 Feb 2001 10:00:25 +0530 X-Authentication-Warning: ajayd.h1.iitk.ac.in: ajayd owned process doing -bs Date: Thu, 22 Feb 2001 10:00:23 +0530 (IST) From: Dwivedi Ajay kumar Cc: linux-india-programmers@lists.linux-india.org Subject: Re: library fuction calls In-Reply-To: <01022209365600.01679@ramakrishna.roc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/215 X-Sequence-Number: 1671 On Thu, 22 Feb 2001, Ch Rama Krishna Prasad wrote: > Hi, > I think you will call my-connect function then check the checking conditions > and the call connect in your my_connect function. By this you need not use > shared library also I want to make the call transparent to all the apps on my box. I do not want to recompile the applications again replacing all incidents of connect with my_connect. Now I am thinking of compiling the glibc and rename connect.S (for the i386 linux) to some psedoconnect.S, make my connect.c call psedoconnect ... Will it work? and good pointers about hacking glibc? Thanks. -- #!!! 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 Wed Feb 21 20:56:58 2001 Received: from aditya.pune.gsslco.co.in (unknown [203.129.226.254]) by www.aunet.org (Postfix) with ESMTP id 550EB4A467 for ; Wed, 21 Feb 2001 20:56:49 -0800 (PST) Received: from phoenix.pune.gsslco.co.in (IDENT:sreangsua@phoenix.pune.gsslco.co.in [202.54.80.57]) by aditya.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id KAA18592 for ; Thu, 22 Feb 2001 10:25:37 +0530 (IST) Received: from localhost (sreangsua@localhost) by phoenix.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id KAA28465 for ; Thu, 22 Feb 2001 10:12:11 +0530 Date: Thu, 22 Feb 2001 10:12:11 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re: pthread and TCL? In-Reply-To: <20010221102119.A12387@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/216 X-Sequence-Number: 1672 On Wed, 21 Feb 2001, Arun Sharma wrote: > On Wed, Feb 21, 2001 at 04:43:46PM +0530, sreangsu acharyya wrote: > > > > Has anyone used pthreads with TCL. Since version 8.1 TCL is supposed tobe > > thread safe. Version 8.3 has a loadable extension called thread. Pointers > > to docs and code snippets would be gratefully accepted. > > http://www.hwaci.com/sw/pttcl/pttcl.html Hi Arun, thanks yeah I have been there, there is also another package called Mtcl which gives the threading support to TCL. Then again TCL 8.1 says that it is thread safe and version 8.3 has API in c as well as native TCL script commands to handle threads. So it gets a bit confusing, i was hoping for some actual source code ( preferably small) as to how these tie up. -- sreangsu From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 21:10:34 2001 Received: from alice.bombay.retortsoft.com (unknown [203.197.49.155]) by www.aunet.org (Postfix) with ESMTP id 263504A39B for ; Wed, 21 Feb 2001 21:10:26 -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 KAA02612 for ; Thu, 22 Feb 2001 10:42:56 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id KAA03018 for linux-india-programmers@lists.linux-india.org; Thu, 22 Feb 2001 10:24:45 +0530 Date: Thu, 22 Feb 2001 10:24:45 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: library fuction calls Message-ID: <20010222102445.A2666@bombay.retortsoft.com> Reply-To: binand@bombay.retortsoft.com Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <01022209365600.01679@ramakrishna.roc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: ; from ajayd@iitk.ac.in on Thu, Feb 22, 2001 at 10:00:23AM +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: 200102/217 X-Sequence-Number: 1673 Dwivedi Ajay kumar forced the electrons to say: > Now I am thinking of compiling the glibc and rename connect.S (for > the i386 linux) to some psedoconnect.S, make my connect.c call > psedoconnect ... Will it work? and good pointers about hacking glibc? I have a really good pointer about hacking glibc - dont do it. glibc is a really huge and messy piece of software, without which your computer will not function at all. A compile usually takes a few hours on a normal system (I have noticed that it takes more time than the kernel or gcc). One gotcha and you have effectively trashed your system. You don't know what will break where if you change even the simplest of things. You can rest assured that connect() in glibc is written in the best possible way, you may not be able to improve upon the implementation. If what you need is error checking, I am sure all the current programs on your system do that anyway; and if you want any further programs that you write to use your connect, then put it in a library of your own and link that in your code. There is not much that you can achieve by trapping all calls to connect in your library. Unless you have a really interesting idea. Binand From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 21:34:46 2001 Received: from mulga.cs.mu.OZ.AU (mulga.cs.mu.OZ.AU [128.250.1.22]) by www.aunet.org (Postfix) with ESMTP id E68864A073 for ; Wed, 21 Feb 2001 21:34:39 -0800 (PST) Received: from queeg.cs.mu.OZ.AU (queeg.cs.mu.OZ.AU [128.250.26.136]) by mulga.cs.mu.OZ.AU with ESMTP id QAA19011 for ; Thu, 22 Feb 2001 16:29:09 +1100 (EST) Received: (from rsubr@localhost) by queeg.cs.mu.OZ.AU (8.9.3+Sun/8.9.3) id QAA04386 for linux-india-programmers@lists.linux-india.org; Thu, 22 Feb 2001 16:29:09 +1100 (EST) Date: Thu, 22 Feb 2001 16:29:09 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: library fuction calls Message-ID: <20010222162909.A3945@students.cs.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from ajayd@iitk.ac.in on Wed, Feb 21, 2001 at 10:53:49PM +0530 X-Archive-Number: 200102/218 X-Sequence-Number: 1674 Dwivedi Ajay kumar wrote (ajayd@iitk.ac.in): > I am trying to write a wrapper for one of the library functions > (more specifically connect() ). Now what I want is whenever some application > calls connect() my_connect should be called. my_connect does some > checks on the sockaddr and then calls connect(). > I have noticed that there are aliases for connect like __connect > and __libc_connect in the glibc source. I have written the code for > connect() function which I am compiling as a shared library with -shared > option. Now my questions are: > > 1. How do I make the system use my connect() function instead of the > glibc's connect(). If your program that you are trying to work with is not available in source, and you want to replace the connect calls with your own - you need a library interposer. Have a look at http://www.unixinsider.com/swol-09-2000/swol-0929-interposers.html for details. This takes advantage of dynamic linking, but does not always work (on setuid progs for example). Most "malloc debuggers" work this way, they replace the C lib malloc/free calls with their own. freshmeat.net has a wealth of such programs. > 2. I need to call the glibc's connect() in my connect(). How do i do > this. (I am trying this by calling __connect and __libc_connect instead in > my connect and compiling a program with this shared lib. Obviously its not > working, it seems like I am getting into infinite recursion.) You need a bit of C macro magic to get this one going. It's not too difficult to do this, just think about which connect() gets called in each reference and how #define'ing or #undefine'ing could save you. Or perhaps you can find an easiery way. If you can't get it to work, mail me offline and I'll dig up some old code that I wrote which does similar things with the malloc family. Lastly, tinkering with libc is generally not advisable. Do it only if you have a specific reason and know exactly what your're doing (or if you're just curious and want to have fun, ofcourse ;-). - Raja From linux-india-programmers-owner@lists.linux-india.org Wed Feb 21 23:49:35 2001 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 6894C4A44C for ; Wed, 21 Feb 2001 23:49:23 -0800 (PST) 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 NAA24037 for ; Thu, 22 Feb 2001 13:17:48 +0530 (IST) Received: from ajayd.h1.iitk.ac.in ([172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id NAA18597 for ; Thu, 22 Feb 2001 13:04:34 +0530 (IST) Received: from localhost (ajayd@localhost) by ajayd.h1.iitk.ac.in (8.11.0/8.11.0) with ESMTP id f1M7hfh09109 for ; Thu, 22 Feb 2001 13:13:41 +0530 X-Authentication-Warning: ajayd.h1.iitk.ac.in: ajayd owned process doing -bs Date: Thu, 22 Feb 2001 13:13:40 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-programmers@lists.linux-india.org Subject: Re: library fuction calls In-Reply-To: <20010222162909.A3945@students.cs.mu.oz.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/219 X-Sequence-Number: 1675 On Thu, 22 Feb 2001, Raja Subramanian wrote: > If your program that you are trying to work with is not available in source, > and you want to replace the connect calls with your own - you need a library > interposer. Have a look at > http://www.unixinsider.com/swol-09-2000/swol-0929-interposers.html > for details. This takes advantage of dynamic linking, but does not always work > (on setuid progs for example). > Thanks a lot :). This is almost what I wanted. But still there is a small problem. I tried the malloc interposer from the site. I feel it is written for solaris cc. So here are my questions (again :) 1. It says cc -o malloc_interposer.so -G -Kpic malloc_interposer.c Now gcc does not have -G and -K option. I feel one of them is for -shared (which one and what about the other) 2. Compiled with gcc -shared -o malloc_interposer.so malloc_interposer.c and then setting the LD_PRELOAD to the shared lib. Now "ls" gives the problem: /bin/ls ls: error in loading shared libraries: /home/ajayd/tconn/malloc_interposer.so: undefined symbol: dlsym However it is working fine for echo /bin/echo malloc(176) is called malloc(176) is called malloc(52) is called It is also working with vi,date etc.. but not ls Any ideas ? PS: I tested the code on a solaris machine, and it worked for everything. -- #!!! 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 Thu Feb 22 00:56:43 2001 Received: from mulga.cs.mu.OZ.AU (mulga.cs.mu.OZ.AU [128.250.1.22]) by www.aunet.org (Postfix) with ESMTP id 48CFD4A2A0 for ; Thu, 22 Feb 2001 00:56:38 -0800 (PST) Received: from queeg.cs.mu.OZ.AU (queeg.cs.mu.OZ.AU [128.250.22.136]) by mulga.cs.mu.OZ.AU with ESMTP id TAA27336 for ; Thu, 22 Feb 2001 19:51:08 +1100 (EST) Received: (from rsubr@localhost) by queeg.cs.mu.OZ.AU (8.9.3+Sun/8.9.3) id TAA08557 for linux-india-programmers@lists.linux-india.org; Thu, 22 Feb 2001 19:51:07 +1100 (EST) Date: Thu, 22 Feb 2001 19:51:07 +1100 From: Raja Subramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: library fuction calls Message-ID: <20010222195107.A8178@students.cs.mu.oz.au> Mail-Followup-To: linux-india-programmers@lists.linux-india.org References: <20010222162909.A3945@students.cs.mu.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from ajayd@iitk.ac.in on Thu, Feb 22, 2001 at 01:13:40PM +0530 X-Archive-Number: 200102/220 X-Sequence-Number: 1676 Dwivedi Ajay kumar wrote (ajayd@iitk.ac.in): > 2. Compiled with gcc -shared -o malloc_interposer.so malloc_interposer.c > and then setting the LD_PRELOAD to the shared lib. Now "ls" gives the > problem: > /bin/ls > ls: error in loading shared libraries: > /home/ajayd/tconn/malloc_interposer.so: undefined symbol: dlsym > > However it is working fine for echo > It is also working with vi,date etc.. but not ls That's news, _nothing_except_ echo worked on my linux box. I could not run anything if I compiled the the library as you have mentioned. Are you sure youre not missing something? > Any ideas ? Yes, you need to include libdl in linux (RTFineM, sorry); add -ldl to your gcc flags. As you see, Solaris and linux are not the friendliest when it comes to linking in libraries and I've been bitten by this many times too. - Raja From linux-india-programmers-owner@lists.linux-india.org Thu Feb 22 02:59:15 2001 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id EE11F4A26C for ; Thu, 22 Feb 2001 02:59:06 -0800 (PST) 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 QAA07492 for ; Thu, 22 Feb 2001 16:27:31 +0530 (IST) Received: from ajayd.h1.iitk.ac.in ([172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id QAA14473 for ; Thu, 22 Feb 2001 16:14:17 +0530 (IST) Received: from localhost (ajayd@localhost) by ajayd.h1.iitk.ac.in (8.11.0/8.11.0) with ESMTP id f1MArPp09823 for ; Thu, 22 Feb 2001 16:23:25 +0530 X-Authentication-Warning: ajayd.h1.iitk.ac.in: ajayd owned process doing -bs Date: Thu, 22 Feb 2001 16:23:25 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-programmers@lists.linux-india.org Subject: Re: library fuction calls In-Reply-To: <20010222195107.A8178@students.cs.mu.oz.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/221 X-Sequence-Number: 1677 On Thu, 22 Feb 2001, Raja Subramanian wrote: > That's news, _nothing_except_ echo worked on my linux box. I could not run > anything if I compiled the the library as you have mentioned. Are you sure > youre not missing something? > This is what I did: cc -o malloc_interposer.so -shared malloc_interposer.c export LD_PRELOAD=/home/ajayd/tconn/malloc_interposer.so ^^^^^^^^^^^^^ (you have to give the complete path for the library) ls ls: error in loading shared libraries: /home/ajayd/tconn/malloc_interposer.so: undefined symbol: dlsym /bin/echo malloc(176) is called malloc(176) is called ..... I noted that it does not work with ls, clear, strace etc . Works for vim, /bin/echo etc.. (NOTE: there is also a bash builtin echo, so the need for /bin/echo to test) > > Any ideas ? > > Yes, you need to include libdl in linux (RTFineM, sorry); add -ldl to your gcc > flags. As you see, Solaris and linux are not the friendliest when it comes to > linking in libraries and I've been bitten by this many times too. > Oops!! ... After reading your mail, I had been trying for the last hour to compile with -ldb, just figured out you said -ldl. Going for a strong coffee break :-) Now it is working for all, ls , clear, strace etc.... and I am a happy guy :) Thanks Raja, sandeep and binand and others. Its great to be on LI :) -- #!!! 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 Thu Feb 22 23:47:02 2001 Received: from web12603.mail.yahoo.com (web12603.mail.yahoo.com [216.136.173.226]) by www.aunet.org (Postfix) with SMTP id 32F924A134 for ; Thu, 22 Feb 2001 23:46:56 -0800 (PST) Message-ID: <20010223074123.81466.qmail@web12603.mail.yahoo.com> Received: from [202.54.49.34] by web12603.mail.yahoo.com; Thu, 22 Feb 2001 23:41:23 PST Date: Thu, 22 Feb 2001 23:41:23 -0800 (PST) From: shah Dhaval Subject: To get information To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200102/222 X-Sequence-Number: 1678 Hello friends, I and two of my friends are working on a project named: Cluster of linux workstations, as a college project, and we really need useful information about that, we will be providing authentication,software support etc. so,any of you can guide us then we will be very much thankful to you, Also we require a good book for system's programming in linux, if u can suggest any good one and that is easily available in india, we are from gujarat Waiting for you positive reply , Thanking you, Dhaval __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Fri Feb 23 02:55:18 2001 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id BFC8F4A195; Fri, 23 Feb 2001 02:55:05 -0800 (PST) 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 QAA26346; Fri, 23 Feb 2001 16:23:27 +0530 (IST) Received: from ajayd.h1.iitk.ac.in ([172.31.76.23]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id QAA01535; Fri, 23 Feb 2001 16:10:11 +0530 (IST) Received: from localhost (ajayd@localhost) by ajayd.h1.iitk.ac.in (8.11.0/8.11.0) with ESMTP id f1NAnQk26914; Fri, 23 Feb 2001 16:19:26 +0530 X-Authentication-Warning: ajayd.h1.iitk.ac.in: ajayd owned process doing -bs Date: Fri, 23 Feb 2001 16:19:26 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-help@lists.linux-india.org Cc: linux-india-programmers@lists.linux-india.org Subject: connect() through squid Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/223 X-Sequence-Number: 1679 hi everybuddy, Thanks to the list for pointers I have written an implementation of connect() function which along with LD_PRELOAD allows me to connect to the internet from behind a squid proxy which also uses authentication. All this is completely transparent to the applications, so they assume as if they are directly connected to the internet. I can now telnet & ssh anywhere , use fetchmail, and other IM's which need direct connection to the internet otherwise :-) I have tested ymessenger, which did not work before as it had no option for proxy auth. And irc chat works too. I had been dying to be on irc.linux-india.org :) The implementation is still very crude, without good error checking. I have started a project for this on sourceforge.net at http://sourceforge.net/projects/transconnect/ . And have put the first crudest version out there. yes, It may be insecure, but it allows me to ssh to sourceforge.net and manage my projects :-) -- #!!! 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 Fri Feb 23 03:10:54 2001 Received: from ns2.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 1A38F4A64D; Fri, 23 Feb 2001 03:10:15 -0800 (PST) Received: from rahul ([61.11.246.237]) by ns2.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f1NB8QF28939; Fri, 23 Feb 2001 16:38:27 +0530 Message-ID: <009a01c09d88$3fa0f4c0$edf60b3d@rahul> From: "Rahul Jindal" To: , Subject: Grid Control Date: Fri, 23 Feb 2001 16:33:21 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/224 X-Sequence-Number: 1680 Hello people I remember seeing the grid control in many a linux applications. my present reference on GTK+ saying nothing about those. any clues how can i use a grid control. Also can somebody tell me of the c++ wrapper gtk-- for gtk+ ? The backend is to be in c++ and fronend in gtk+. TIA r /\ |-| |_| |_ ================== First, they ignore you. Then they laugh at you. Then they fight you. Then you win -- MG ================== The Northern Linux lug-northindia@yahoogroups.com From linux-india-programmers-owner@lists.linux-india.org Fri Feb 23 06:47:48 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id C7F354A181 for ; Fri, 23 Feb 2001 06:47:36 -0800 (PST) Received: from (jace.pobox.com) [210.212.160.125] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14WJQ0-000050-00; Fri, 23 Feb 2001 07:42:02 -0700 X-Pgp-Dsskey: 0x735BC875 X-Pgp-Rsakey: 0xF85BA8E9 Message-Id: <5.0.2.1.0.20010223200653.0327ab48@imeme.net> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 23 Feb 2001 20:08:01 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: Grid Control In-Reply-To: <009a01c09d88$3fa0f4c0$edf60b3d@rahul> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/225 X-Sequence-Number: 1681 At 04:33 PM 2/23/2001 +0530, you wrote: >Hello people > >I remember seeing the grid control in many a linux applications. my present >reference on GTK+ saying nothing about those. any clues how can i use a grid >control. > >Also can somebody tell me of the c++ wrapper gtk-- for gtk+ ? The backend is >to be in c++ and fronend in gtk+. You'll find the grid control in Glade. I don't remember what it's called. Check http://gtkmm.sourceforge.net for Gtk--. -- Kiran Jonnalagadda http://www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Fri Feb 23 07:37:59 2001 Received: from ns1.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 891F54A181 for ; Fri, 23 Feb 2001 07:37:52 -0800 (PST) Received: from rahul ([61.11.246.244]) by ns1.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f1NFcSL02568 for ; Fri, 23 Feb 2001 21:08:33 +0530 Message-ID: <009401c09dad$a4440c80$36f60b3d@rahul> From: "Rahul Jindal" To: References: <5.0.2.1.0.20010223200653.0327ab48@imeme.net> Subject: Re: Grid Control Date: Fri, 23 Feb 2001 21:00:50 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/226 X-Sequence-Number: 1682 sorry for this stupid a question. i found it in glade, its called a Column List or a clist another stupid one follows: i'm not able to resize the controls, at least not the height, any control occupies the whole of the width of the window. any links to a glade tutorial please, i have not been able to find these n the net. r /\ |-| |_| |_ ================== First, they ignore you. Then they laugh at you. Then they fight you. Then you win -- MG ================== The Northern Linux lug-northindia@yahoogroups.com ----- Original Message ----- From: "Kiran Jonnalagadda" To: Sent: Friday, February 23, 2001 8:08 PM Subject: Re: [LIP] Grid Control > At 04:33 PM 2/23/2001 +0530, you wrote: > >Hello people > > > >I remember seeing the grid control in many a linux applications. my present > >reference on GTK+ saying nothing about those. any clues how can i use a grid > >control. > > > >Also can somebody tell me of the c++ wrapper gtk-- for gtk+ ? The backend is > >to be in c++ and fronend in gtk+. > > You'll find the grid control in Glade. I don't remember what it's called. > > Check http://gtkmm.sourceforge.net for Gtk--. > > > -- > > Kiran Jonnalagadda > http://www.pobox.com/~jace > > > --------------------------------------------- > 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 Feb 23 08:56:50 2001 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id 293004A208 for ; Fri, 23 Feb 2001 08:56:48 -0800 (PST) Received: from noname (PPP-203-197-8-190.bom.vsnl.net.in [203.197.8.190]) by bom8.vsnl.net.in (Postfix) with ESMTP id 9F5C7CAE8 for ; Fri, 23 Feb 2001 22:15:22 +0500 (GMT+0500) Message-ID: <000d01c09db9$68dd0640$be08c5cb@noname> From: "Arsalan Zaidi" To: Subject: OS programming. Date: Fri, 23 Feb 2001 22:24:27 +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: 200102/227 X-Sequence-Number: 1683 Hi. I was wondering... Which linux kernels should I download and examine in order to better understand OS programming in general and Linux in particular? I've already downloaded the very first version, 0.01. Which other versions are 'significant' and worth downloading? And how do I get them to work? :-) Just compile, add to lilo.conf, run lilo and pray? Any help at all would be great! --Arsalan. From linux-india-programmers-owner@lists.linux-india.org Fri Feb 23 09:03:30 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 51D824A13B for ; Fri, 23 Feb 2001 09:03:27 -0800 (PST) Received: from Basel (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with SMTP id f1NH4Rt12494 for ; Fri, 23 Feb 2001 22:34:27 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Nandu To: linux-india-programmers@lists.linux-india.org Subject: [OT] Help needed for compiling Qt on HP Date: Fri, 23 Feb 2001 22:34:09 +0530 X-Mailer: KMail [version 1.2] References: <000d01c09db9$68dd0640$be08c5cb@noname> In-Reply-To: <000d01c09db9$68dd0640$be08c5cb@noname> MIME-Version: 1.0 Message-Id: <01022322340900.03633@Basel> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/228 X-Sequence-Number: 1684 Hi all Real sorry to post this but I am growing real frust now. I need some help regarding compiling Qt on HP. I am using gcc/g++ and my compilation terminates saying collect2: ld terminated with signal 11 [Unknown signal 11] I desparately need some pointer to work ahead. Thanks Shridhar From linux-india-programmers-owner@lists.linux-india.org Fri Feb 23 09:15:27 2001 Received: from blue.csa.iisc.ernet.in (blue.csa.iisc.ernet.in [144.16.67.191]) by www.aunet.org (Postfix) with ESMTP id 6DEB74A15B for ; Fri, 23 Feb 2001 09:15:20 -0800 (PST) Received: from localhost (alex@localhost) by blue.csa.iisc.ernet.in (8.9.3/8.9.3) with ESMTP id WAA01719 for ; Fri, 23 Feb 2001 22:44:04 +0530 Date: Fri, 23 Feb 2001 22:44:04 +0530 (IST) From: Alex M Alex To: linux-india-programmers@lists.linux-india.org Subject: Re: OS programming. In-Reply-To: <000d01c09db9$68dd0640$be08c5cb@noname> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/229 X-Sequence-Number: 1685 Check this ..(How to write a boot loader taking linux kernel -.01 as an example???) http://violet.csa.iisc.ernet.in/~alex/doc1.html regards alex On Fri, 23 Feb 2001, Arsalan Zaidi wrote: > Hi. > > I was wondering... > > Which linux kernels should I download and examine in order to better > understand > OS programming in general and Linux in particular? > > I've already downloaded the very first version, 0.01. > > Which other versions are 'significant' and worth downloading? > > And how do I get them to work? :-) Just compile, add to lilo.conf, run lilo > and > pray? > > Any help at all would be great! > > --Arsalan. > > > > --------------------------------------------- > 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 Feb 23 09:15:56 2001 Received: from sharmasnew.dhs.org (c239143-a.frmt1.sfba.home.com [24.19.220.119]) by www.aunet.org (Postfix) with ESMTP id 941234A242 for ; Fri, 23 Feb 2001 09:15:54 -0800 (PST) Received: (from adsharma@localhost) by sharmasnew.dhs.org (8.11.1/8.11.1) id f1NH4rQ11523 for linux-india-programmers@lists.linux-india.org; Fri, 23 Feb 2001 09:04:53 -0800 (PST) (envelope-from adsharma) Date: Fri, 23 Feb 2001 09:04:53 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT] Help needed for compiling Qt on HP Message-ID: <20010223090453.A11506@sharmas.dhs.org> References: <000d01c09db9$68dd0640$be08c5cb@noname> <01022322340900.03633@Basel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01022322340900.03633@Basel>; from shridhar_daithankar@pspl.co.in on Fri, Feb 23, 2001 at 10:34:09PM +0530 X-Archive-Number: 200102/230 X-Sequence-Number: 1686 On Fri, Feb 23, 2001 at 10:34:09PM +0530, Nandu wrote: > collect2: ld terminated with signal 11 [Unknown signal 11] I would check the resource situtation (free memory, swap etc) when this happens. I presume you're read the gcc signal 11 faq. -Arun From linux-india-programmers-owner@lists.linux-india.org Fri Feb 23 09:30:50 2001 Received: from bluesky.imeme.net (imeme.net [216.17.170.123]) by www.aunet.org (Postfix) with ESMTP id 5DDFD4A134 for ; Fri, 23 Feb 2001 09:30:48 -0800 (PST) Received: from (jace.pobox.com) [210.212.160.125] by bluesky.imeme.net with esmtp (Exim 3.12 #1 (Debian)) id 14WLxv-0001ny-00; Fri, 23 Feb 2001 10:25:12 -0700 X-Pgp-Dsskey: 0x735BC875 X-Pgp-Rsakey: 0xF85BA8E9 Message-Id: <5.0.2.1.0.20010223224034.0327ab48@wheresmymailserver.com> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 23 Feb 2001 22:50:00 +0530 To: linux-india-programmers@lists.linux-india.org From: Kiran Jonnalagadda Subject: Re: Grid Control In-Reply-To: <009401c09dad$a4440c80$36f60b3d@rahul> References: <5.0.2.1.0.20010223200653.0327ab48@imeme.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/231 X-Sequence-Number: 1687 At 09:00 PM 2/23/2001 +0530, you wrote: >sorry for this stupid a question. i found it in glade, its called a Column >List or a clist >another stupid one follows: > >i'm not able to resize the controls, at least not the height, any control >occupies the whole of the width of the window. >any links to a glade tutorial please, i have not been able to find these n >the net. I hope you are aware of Gtk+'s container/control model: A control will always occupy the full space provided by the container, and the container in turn occupies the full space provided by its container (leading up to the form). There are three types of containers: 1. Multiple row/column containers. 2. Double row/column user-resizable containers. 3. Free-locating container. The third type gives you an environment like VB/Delphi, where you can pixel-position controls and specify height/width. This must be what you are looking for. Using this type is not recommended because your layouts will be royally messed up when the user applies a theme that uses different font sizes. The first or second type of containers, OTOH, will automatically resize. This takes a little getting used to, and experimenting with layouts is painful, but the advantage of consistency across user preferences is undeniable. Have fun! -- Kiran Jonnalagadda http://www.pobox.com/~jace From linux-india-programmers-owner@lists.linux-india.org Fri Feb 23 21:11:14 2001 Received: from pagladashu.naturesoft.com (unknown [202.9.161.6]) by www.aunet.org (Postfix) with ESMTP id 926A74A17C for ; Fri, 23 Feb 2001 21:11:11 -0800 (PST) Received: from bigfoot.com (localhost.localdomain [127.0.0.1]) by pagladashu.naturesoft.com (Postfix) with ESMTP id A1D735D1C1 for ; Sat, 24 Feb 2001 10:35:11 +0530 (IST) Message-ID: <3A9740FC.3090709@bigfoot.com> Date: Sat, 24 Feb 2001 10:35:00 +0530 From: archan User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-21mdk i686; en-US; 0.8) Gecko/20010215 X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: OS programming. References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/232 X-Sequence-Number: 1688 Hi Alex, thanx for this nice article... archan devrootp@bigfoot.com Alex M Alex wrote: > Check this ..(How to write a boot loader taking linux kernel -.01 as an > example???) > http://violet.csa.iisc.ernet.in/~alex/doc1.html > > regards > alex From linux-india-programmers-owner@lists.linux-india.org Fri Feb 23 22:49:34 2001 Received: from stewart.spectranet.com (unknown [203.122.63.155]) by www.aunet.org (Postfix) with ESMTP id 993714A113 for ; Fri, 23 Feb 2001 22:49:31 -0800 (PST) Received: from AMBAR ([203.122.24.162]) by stewart.spectranet.com (Netscape Messaging Server 4.15) with SMTP id G99UKK00.96D for ; Sat, 24 Feb 2001 12:14:44 -0500 Message-ID: <009d01c09e2d$385bef80$8900000a@aclindia.com> From: "Ambar Roy" To: References: <000d01c09db9$68dd0640$be08c5cb@noname> Subject: Re: OS programming. Date: Sat, 24 Feb 2001 12:14:21 +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: 200102/233 X-Sequence-Number: 1689 > Which linux kernels should I download and examine in order to better > understand > OS programming in general and Linux in particular? u can also check out minix. that wud be a better thing to study first if u wanna study os! From linux-india-programmers-owner@lists.linux-india.org Sat Feb 24 00:11:38 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 296BF4A154 for ; Sat, 24 Feb 2001 00:11:26 -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 f1O8CLt23982 for ; Sat, 24 Feb 2001 13:42:21 +0530 Message-ID: <3A976CD5.E3499DE6@pspl.co.in> Date: Sat, 24 Feb 2001 13:42:06 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT] Help needed for compiling Qt on HP References: <000d01c09db9$68dd0640$be08c5cb@noname> <01022322340900.03633@Basel> <20010223090453.A11506@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/234 X-Sequence-Number: 1690 Oh yes. Resources are far more than free excpet the CPU which is of course 100% utilised. I understand gcc signal 11 as I have dealt it before with my PC. What puzzles me is that it's reported as unknown signal. Also the error message shows that HP ld is being used for linking whereas GNU ld comes first in the path as shown by 'which ld'. That might be because I am using gcc/g++ as provided by HP. I didn't compile them on my own. Besides the machine is well reputed to work under load. That has never happened before in absolute any situation. Trying to dig up few conclusions and solutions... Shridhar Arun Sharma wrote: > On Fri, Feb 23, 2001 at 10:34:09PM +0530, Nandu wrote: > > collect2: ld terminated with signal 11 [Unknown signal 11] > > I would check the resource situtation (free memory, swap etc) when > this happens. > > I presume you're read the gcc signal 11 faq. From linux-india-programmers-owner@lists.linux-india.org Sat Feb 24 04:03:53 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id A8CE049F1B for ; Sat, 24 Feb 2001 04:03:49 -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 f1OC4ht26619 for ; Sat, 24 Feb 2001 17:34:43 +0530 Message-ID: <3A97A34D.3DE893A8@pspl.co.in> Date: Sat, 24 Feb 2001 17:34: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: [OT] Help needed for compiling Qt on HP References: <000d01c09db9$68dd0640$be08c5cb@noname> <01022322340900.03633@Basel> <20010223090453.A11506@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/235 X-Sequence-Number: 1691 Digged up a bit more. HP-UX does not recognise Signal 11 by man pages. By signal.h, signal 11 is SIGSEGV i.e. segmentation violation. Now I am not convinced that same signal is thrown at exactly same point of time when I compile 3 different versions of Qt. And a version of Qt2.2.1 precompiled is not working. ld lists hazaar unsatisfied symbols. While same project goes smoothly with qt2.1.0 on RHL6.2 stock install. It looks like I am abondoning the project itself... too bad for me.. :-(( Shridhar Arun Sharma wrote: > On Fri, Feb 23, 2001 at 10:34:09PM +0530, Nandu wrote: > > collect2: ld terminated with signal 11 [Unknown signal 11] > > I would check the resource situtation (free memory, swap etc) when > this happens. > From linux-india-programmers-owner@lists.linux-india.org Sat Feb 24 09:33:44 2001 Received: from mailweb2.rediffmail.com (unknown [202.54.124.147]) by www.aunet.org (Postfix) with SMTP id B4B8E49F63 for ; Sat, 24 Feb 2001 09:33:33 -0800 (PST) Received: (qmail 14403 invoked by uid 510); 24 Feb 2001 17:23:40 -0000 Date: 24 Feb 2001 17:23:40 -0000 Message-ID: <20010224172340.14402.qmail@mailweb2.rediffmail.com> Received: from unknown (210.214.5.37) by rediffmail.com via HTTP; 24 Feb 2001 17:23:40 -0000 MIME-Version: 1.0 To: LIP Subject: X Event capturing From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/236 X-Sequence-Number: 1692 Hi! I am developing a software to monitor events in X Window (Linux). I am using C (and Xlib) only. How can I detect if an event has occurred for a particular window? Finding the queue length and staying in the "check" loop as below, does not "capture" any event at all. for (done = 0;done<5;done++) { qlength = QLength(dpy); if (qlength == 0) { sleep(1); continue; } XNextEvent (dpy, &event); switch (event.type) ... } Should the delay be increased to stay waiting in the loop, or decreased to avoid missing some event? Please help. I am able to find out the applications that are running, but not the events that occur. Waiting for a reply, - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Sat Feb 24 09:38:49 2001 Received: from mailweb2.rediffmail.com (unknown [202.54.124.147]) by www.aunet.org (Postfix) with SMTP id 88A394A1BE for ; Sat, 24 Feb 2001 09:38:47 -0800 (PST) Received: (qmail 24313 invoked by uid 510); 24 Feb 2001 17:28:55 -0000 Date: 24 Feb 2001 17:28:55 -0000 Message-ID: <20010224172855.24312.qmail@mailweb2.rediffmail.com> Received: from unknown (210.214.5.37) by rediffmail.com via HTTP; 24 Feb 2001 17:28:55 -0000 MIME-Version: 1.0 To: LIP Subject: Decode keypress From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/237 X-Sequence-Number: 1693 Hi! From the bit vector of the keyboard obtained from the KeyMapNotify event, how do I decode which key was pressed? What about the CTRL, ALT, functional keys, etc? Thanks. - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Sat Feb 24 18:56:53 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 4E43249FDE for ; Sat, 24 Feb 2001 18:56:50 -0800 (PST) Received: from default (unknown [203.199.229.231]) by md4.vsnl.net.in (Postfix) with SMTP id 065CA9EEA for ; Sun, 25 Feb 2001 08:25:29 +0530 (IST) Message-ID: <000b01c09e70$fe90c480$e7e5c7cb@default> From: "Lakshmi Gopinath" To: Subject: Fw: OS programming Date: Sat, 24 Feb 2001 20:19:27 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/238 X-Sequence-Number: 1694 Hi, Try to study Design and Implementation of an Operating system by Tanenbaum and Linux Kernal Internals by Peter et al. Both are very good books for OS. Cheers, Lakshmi From linux-india-programmers-owner@lists.linux-india.org Sun Feb 25 02:05:33 2001 Received: from ns1.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id 5993E4A1DB; Sun, 25 Feb 2001 02:05:19 -0800 (PST) Received: from rahul ([61.11.246.253]) by ns1.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f1PA5f520706; Sun, 25 Feb 2001 15:35:41 +0530 Message-ID: <006201c09f11$812945c0$fdf60b3d@rahul> From: "Rahul Jindal" To: Cc: Subject: glade blues Date: Sun, 25 Feb 2001 15:28:28 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/239 X-Sequence-Number: 1695 Hello people, i'm trying to install glade. during configure it says that the installed version of gtk+ is 1.2.8 but gtk-config reports 1.2.6 which it actually does. similarily the glib-config was too reporting 1.2.6 before i installed the glib-development thing and now it gives 1.2.8 what do i do for gtk+ ? Please help r /\ |-| |_| |_ ================== First, they ignore you. Then they laugh at you. Then they fight you. Then you win -- MG ================== The Northern Linux lug-northindia@yahoogroups.com From linux-india-programmers-owner@lists.linux-india.org Sun Feb 25 08:05:56 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id E2BF14A0FA for ; Sun, 25 Feb 2001 08:05:48 -0800 (PST) Received: from default (unknown [203.199.231.194]) by md4.vsnl.net.in (Postfix) with SMTP id CE9339FF4 for ; Sun, 25 Feb 2001 21:34:25 +0530 (IST) Message-ID: <003201c09edf$34a81460$c2e7c7cb@default> From: "Lakshmi Gopinath" To: Subject: Programming using Xlib Date: Sun, 25 Feb 2001 09:28:22 +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.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/240 X-Sequence-Number: 1696 Hi, I need to develop a simple graphics front end using Xlib api for my project. All that the graphics program needs to do is : draw a graph and draw a line graph by continously accepting points from another module. Cud someone pls help me out. Is there any good site/book for X Windows programming using Xlib. Thanks in advace, Regards, Lakshmi From linux-india-programmers-owner@lists.linux-india.org Sun Feb 25 08:23:07 2001 Received: from xyzsys.sci.tech (unknown [202.142.88.38]) by www.aunet.org (Postfix) with ESMTP id 707CB4A13C for ; Sun, 25 Feb 2001 08:22:49 -0800 (PST) Received: from xyzsys ([127.0.0.1]) by xyzsys.sci.tech (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f1PGNTY01618 for ; Sun, 25 Feb 2001 21:53:30 +0530 X-Authentication-Warning: xyzsys.sci.tech: Host [127.0.0.1] claimed to be xyzsys Date: Sun, 25 Feb 2001 21:53:28 +0530 From: Deepak Joglekar To: linux-india-programmers@lists.linux-india.org Subject: Re: Programming using Xlib Message-Id: <20010225215328.06733110.joglekar@eth.net> In-Reply-To: <003201c09edf$34a81460$c2e7c7cb@default> References: <003201c09edf$34a81460$c2e7c7cb@default> Reply-To: joglekar@eth.net X-Mailer: Sylpheed version 0.4.9 (GTK+ 1.2.8; Linux 2.2.16; i686) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/241 X-Sequence-Number: 1697 On Sun, 25 Feb 2001 09:28:22 +0530 "Lakshmi Gopinath" wrote: > Hi, > > I need to develop a simple graphics front end using Xlib api for my > project. All that the graphics program needs to do is : draw a graph and > draw a line graph by continously accepting points from another module. Cud > someone pls help me out. Is there any good site/book for X Windows > programming using Xlib. Look at following site. It is for Multi Route Traphic Grapher. Probably you can use it directily without doing an programming. Full src available. They have given examples for using it to monitor other entities. MRTG is in SuSe distribution. I think it is available in RedHat also. http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/ -- Deepak Joglekar joglekar@eth.net ---------------- @> /( )\ ^ ^ From linux-india-programmers-owner@lists.linux-india.org Sun Feb 25 21:13:09 2001 Received: from nsg_fs.cmc.net.in (unknown [206.103.13.222]) by www.aunet.org (Postfix) with SMTP id 1E3494A2CC for ; Sun, 25 Feb 2001 21:12:55 -0800 (PST) Received: FROM bandra.cmc.net.in BY nsg_fs.cmc.net.in ; Mon Feb 26 10:37:32 2001 +0500 Received: from ports.cmc.net.in. (ports.cmc.net.in [172.20.5.102]) by bandra.cmc.net.in (8.9.1/8.9.1) with SMTP id KAA24012 for ; Mon, 26 Feb 2001 10:36:56 -0500 (GMT) Received: from ports-gajanan by ports.cmc.net.in. (SMI-8.6/SMI-SVR4) id KAA11580; Mon, 26 Feb 2001 10:29:31 -0500 Received: by localhost with Microsoft MAPI; Mon, 26 Feb 2001 10:51:01 -0000 Message-ID: <01C09FE2.0260D6A0.aseem@ports.cmc.net.in> From: Aseem Rane Reply-To: "aseem@ports.cmc.net.in" To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: X Event capturing Date: Mon, 26 Feb 2001 10:51:00 -0000 Organization: cmc ltd X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 Encoding: 34 TEXT X-Archive-Number: 200102/242 X-Sequence-Number: 1698 >I am developing a software to monitor events in X Window (Linux). I am using C (and Xlib) only. How >can I detect if an event has occurred for a particular window? U shud specify the event mask for the events in which u r interested. for this try following function in the loop. XWindowEvent ( display, window, event_mask, &event); Purpose : Receives the next event that matches a specified event mask and window. display can be obtained by Display *display = XtDisplay( w ); /* w is widget in which u r interested */ window can be obtained by Window *window = XtWindow( w ); /* w is widget in which u r interested */ event_mask can be a list in the form of (ButtonReleaseMask | Button1MotionMask) etc. declare event as Xevent event; if possible buy a book by Nabajyoti Barakakati (X Window System Programming) 350 Rs. it will help u a lot. if i could get some time i ll try to give u some small working code. for advance topics u can visit following site. http://www.rahul.net/kenton/ http://www.rahul.net/kenton/xsites.framed.html bye aseem From linux-india-programmers-owner@lists.linux-india.org Sun Feb 25 21:14:57 2001 Received: from md4.vsnl.net.in (md4.vsnl.net.in [202.54.6.60]) by www.aunet.org (Postfix) with ESMTP id 40B6C4A112 for ; Sun, 25 Feb 2001 21:14:55 -0800 (PST) Received: from default (unknown [203.199.237.116]) by md4.vsnl.net.in (Postfix) with SMTP id 534E2A13D; Mon, 26 Feb 2001 10:43:27 +0530 (IST) Message-ID: <001a01c09f4d$6c53bfe0$74edc7cb@default> From: "Lakshmi Gopinath" To: "archan" , References: <003201c09edf$34a81460$c2e7c7cb@default> <3A99DF5F.698414@bigfoot.com> Subject: Re: Programming using Xlib Date: Sun, 25 Feb 2001 22:36: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.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/243 X-Sequence-Number: 1699 Hi, Please send me the book on Xlib program to my email id : lakbala@vsnl.com.. Thanks in advance Regards, Lakshmi ----- Original Message ----- From: "archan" To: ; Sent: Monday, February 26, 2001 10:15 AM Subject: Re: [LIP] Programming using Xlib > I can send u one book (ps format) as an attachment. > > archan > archanp@bigfoot.com > devrootp@bigfoot.com > > Lakshmi Gopinath wrote: > > > > Hi, > > > > I need to develop a simple graphics front end using Xlib api for my > > project. All that the graphics program needs to do is : draw a graph and > > draw a line graph by continously accepting points from another module. Cud > > someone pls help me out. Is there any good site/book for X Windows > > programming using Xlib. > > > > Thanks in advace, > > Regards, > > Lakshmi > > > > --------------------------------------------- > > The mailing list archives are available at > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > From linux-india-programmers-owner@lists.linux-india.org Sun Feb 25 21:19:02 2001 Received: from nsg_fs.cmc.net.in (unknown [206.103.13.222]) by www.aunet.org (Postfix) with SMTP id A295149EFC for ; Sun, 25 Feb 2001 21:18:55 -0800 (PST) Received: FROM bandra.cmc.net.in BY nsg_fs.cmc.net.in ; Mon Feb 26 10:44:35 2001 +0500 Received: from ports.cmc.net.in. (ports.cmc.net.in [172.20.5.102]) by bandra.cmc.net.in (8.9.1/8.9.1) with SMTP id KAA24207 for ; Mon, 26 Feb 2001 10:43:56 -0500 (GMT) Received: from ports-gajanan by ports.cmc.net.in. (SMI-8.6/SMI-SVR4) id KAA13012; Mon, 26 Feb 2001 10:36:31 -0500 Received: by localhost with Microsoft MAPI; Mon, 26 Feb 2001 10:58:02 -0000 Message-ID: <01C09FE2.FCFB8060.aseem@ports.cmc.net.in> From: Aseem Rane Reply-To: "aseem@ports.cmc.net.in" To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: Programming using Xlib Date: Mon, 26 Feb 2001 10:57:58 -0000 Organization: cmc ltd X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 Encoding: 20 TEXT X-Archive-Number: 200102/244 X-Sequence-Number: 1700 >I need to develop a simple graphics front end using Xlib api for my >project. All that the graphics program needs to do is : draw a graph and >draw a line graph by continously accepting points from another module. Cud >someone pls help me out. Is there any good site/book for X Windows >programming using Xlib. Why dont u try Tk as the front-end for the drawing graphs. it fits well with C and is much easy to learn than to learn X Windows programming. i need to do programming in X Windows for my company but personally i like to build GUI in TK for my small applications. any way here are some more links for X programming http://csc.lsu.edu/tutorial/Xnotes/X_lecture.html http://www.oreilly.com/catalog/v3m/ but best site remains http://www.rahul.net/kenton/ bye aseem From linux-india-programmers-owner@lists.linux-india.org Sun Feb 25 21:23:33 2001 Received: from pagladashu.naturesoft.com (unknown [202.9.161.7]) by www.aunet.org (Postfix) with ESMTP id D64934A68D for ; Sun, 25 Feb 2001 21:22:14 -0800 (PST) Received: from bigfoot.com (localhost.localdomain [127.0.0.1]) by pagladashu.naturesoft.com (Postfix) with ESMTP id 0C2F85D1C6; Mon, 26 Feb 2001 10:15:20 +0530 (IST) Message-ID: <3A99DF5F.698414@bigfoot.com> Date: Mon, 26 Feb 2001 10:15:19 +0530 From: archan Organization: Open Source Software X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-21mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org, lakbala@vsnl.com Subject: Re: Programming using Xlib References: <003201c09edf$34a81460$c2e7c7cb@default> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/245 X-Sequence-Number: 1701 I can send u one book (ps format) as an attachment. archan archanp@bigfoot.com devrootp@bigfoot.com Lakshmi Gopinath wrote: > > Hi, > > I need to develop a simple graphics front end using Xlib api for my > project. All that the graphics program needs to do is : draw a graph and > draw a line graph by continously accepting points from another module. Cud > someone pls help me out. Is there any good site/book for X Windows > programming using Xlib. > > Thanks in advace, > Regards, > Lakshmi > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Sun Feb 25 22:34:47 2001 Received: from nsg_fs.cmc.net.in (unknown [206.103.13.222]) by www.aunet.org (Postfix) with SMTP id 6CDFC4A7D8 for ; Sun, 25 Feb 2001 22:19:15 -0800 (PST) Received: FROM bandra.cmc.net.in BY nsg_fs.cmc.net.in ; Mon Feb 26 11:44:29 2001 +0500 Received: from ports.cmc.net.in. (ports.cmc.net.in [172.20.5.102]) by bandra.cmc.net.in (8.9.1/8.9.1) with SMTP id LAA25441 for ; Mon, 26 Feb 2001 11:43:58 -0500 (GMT) Received: from ports-gajanan by ports.cmc.net.in. (SMI-8.6/SMI-SVR4) id LAA26087; Mon, 26 Feb 2001 11:36:31 -0500 Received: by localhost with Microsoft MAPI; Mon, 26 Feb 2001 11:58:02 -0000 Message-ID: <01C09FEB.5E9F4100.aseem@ports.cmc.net.in> From: Aseem Rane Reply-To: "aseem@ports.cmc.net.in" To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: Programming using Xlib Date: Mon, 26 Feb 2001 11:58:01 -0000 Organization: cmc ltd X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 Encoding: 14 TEXT X-Archive-Number: 200102/246 X-Sequence-Number: 1702 ----- Original Message ----- From: "archan" To: ; Sent: Monday, February 26, 2001 10:15 AM Subject: Re: [LIP] Programming using Xlib I can send u one book (ps format) as an attachment. please send it to me on aseemrane@rediffmail.com or better tell me the url from where u downloaded it. TIA bye aseem From linux-india-programmers-owner@lists.linux-india.org Mon Feb 26 00:20:50 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id C152949F02 for ; Mon, 26 Feb 2001 00:20:17 -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 f1Q8Kvt27765 for ; Mon, 26 Feb 2001 13:50:57 +0530 Message-ID: <3A9A11E5.9E543A31@pspl.co.in> Date: Mon, 26 Feb 2001 13:50:53 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT] Help needed for compiling Qt on HP References: <000d01c09db9$68dd0640$be08c5cb@noname> <01022322340900.03633@Basel> <20010223090453.A11506@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/247 X-Sequence-Number: 1703 Update... I found that gc/g++ does not support HP-UX 11.00 (which is I am using...) unless very latest code snapshots are used. Specifically it can not generate 64 bit object files. http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux11 But what keeps me puzzled that I built plethora of GNU utilities with gcc/g++ including GNU make etc. All of them worked and only Qt failed.... That's strange. However I am not persuing the topic for the time being. I will pick it up later.... Sorry I should have done that earlier... Shridhar Arun Sharma wrote: > I would check the resource situtation (free memory, swap etc) when > this happens. From linux-india-programmers-owner@lists.linux-india.org Mon Feb 26 02:33:00 2001 Received: from ns1.glide.net.in (unknown [203.197.23.10]) by www.aunet.org (Postfix) with ESMTP id C50A24A431 for ; Mon, 26 Feb 2001 02:22:41 -0800 (PST) Received: from rahul ([61.11.246.177]) by ns1.glide.net.in (8.10.1/pre1.0-MySQL/8.10.1) with SMTP id f1QAMm511809 for ; Mon, 26 Feb 2001 15:52:48 +0530 Message-ID: <004c01c09fdd$15dd7e40$b1f60b3d@rahul> From: "Rahul Jindal" To: References: <003201c09edf$34a81460$c2e7c7cb@default> Subject: Re: Programming using Xlib Date: Mon, 26 Feb 2001 15:45: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.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200102/248 X-Sequence-Number: 1704 You can use Tom Swan's GNU C++ for linux. it covers decent code to get you started. i can send you the src code fom the book if you want. its intuitive, the code i mean, not much funda r /\ |-| |_| |_ ================== First, they ignore you. Then they laugh at you. Then they fight you. Then you win -- MG ================== The Northern Linux lug-northindia@yahoogroups.com ----- Original Message ----- From: "Lakshmi Gopinath" To: Sent: Sunday, February 25, 2001 9:28 AM Subject: [LIP] Programming using Xlib > Hi, > > I need to develop a simple graphics front end using Xlib api for my > project. All that the graphics program needs to do is : draw a graph and > draw a line graph by continously accepting points from another module. Cud > someone pls help me out. Is there any good site/book for X Windows > programming using Xlib. > > Thanks in advace, > Regards, > Lakshmi > > > --------------------------------------------- > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > From linux-india-programmers-owner@lists.linux-india.org Mon Feb 26 03:10:33 2001 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 070964A8BD for ; Mon, 26 Feb 2001 02:59:48 -0800 (PST) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.10.2/8.10.2) id f1QAsQA27093 for ; Mon, 26 Feb 2001 10:54:26 GMT X-Authentication-Warning: gwa2.fe.bosch.de: uucp set sender to using -f Received: from fez8019.fe.internet.bosch.com(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma026646; Mon, 26 Feb 01 10:53:30 GMT Received: by fez7163.server.bosch.com with Internet Mail Service (5.5.2653.19) id ; Mon, 26 Feb 2001 11:53:02 +0100 Message-ID: From: "Harpreet Singh (RBIN/DCA-NMS)" To: linux-india-programmers@lists.linux-india.org Subject: Leak Return Date: Mon, 26 Feb 2001 11:52:56 +0100 Importance: high X-Priority: 1 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Archive-Number: 200102/249 X-Sequence-Number: 1705 Hi, I am using the MAP template in C++ . At one particular point a ..... "leak return" ...... takes place when I insert a entry into the map.... Firstly what exactly is a leak return ..... and how can it be avoided ? Regards. From linux-india-programmers-owner@lists.linux-india.org Mon Feb 26 05:05:28 2001 Received: from mailweb3.rediffmail.com (unknown [202.54.124.148]) by www.aunet.org (Postfix) with SMTP id B1FA34A186 for ; Mon, 26 Feb 2001 05:00:53 -0800 (PST) Received: (qmail 30543 invoked by uid 510); 26 Feb 2001 12:56:55 -0000 Date: 26 Feb 2001 12:56:55 -0000 Message-ID: <20010226125655.30542.qmail@mailweb3.rediffmail.com> Received: from unknown (210.214.5.54) by rediffmail.com via HTTP; 26 Feb 2001 12:56:55 -0000 MIME-Version: 1.0 To: LIP Subject: Re: Programming using Xlib From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/250 X-Sequence-Number: 1706 Hi! For programming using Xlib, refer 1. Eric F. Johnson & Kevin Reichard, "X Windows Applications Programming". 2. Johnson & Reichard, "Advanced X Window Application Programming", MIS Press. - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Mon Feb 26 05:05:36 2001 Received: from mailFA9.rediffmail.com (unknown [202.54.124.178]) by www.aunet.org (Postfix) with SMTP id 84E814A1BF for ; Mon, 26 Feb 2001 05:02:50 -0800 (PST) Received: (qmail 32279 invoked by uid 510); 26 Feb 2001 12:56:24 -0000 Date: 26 Feb 2001 12:56:24 -0000 Message-ID: <20010226125624.32278.qmail@mailFA9.rediffmail.com> Received: from unknown (210.214.5.54) by rediffmail.com via HTTP; 26 Feb 2001 12:56:24 -0000 MIME-Version: 1.0 To: LIP Subject: Re: X Event Capturing From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/251 X-Sequence-Number: 1707 Hello! Thanks for your reply. I had sent only a portion of the code for capturing events. (I had already specified the event mask). XSelectInput(dpy, w, attr.event_mask); However, I have found that the events get captured if I "break" (instead of "continue") the while loop in case queue length is 0. Otherwise, it keeps waiting unnecessarily for an event to occur. I still use XNextEvent, since I am interested in the events of all windows. Now, I want to get the following clarified. According to the Xlib manual, XNextEvent removes the event from the queue. If my monitoring program removes every event like this, will each event ever reach the destined application? But there seems to be no such "missed" event when I execute my program. Does this mean that my monitoring program also receives every event that other apps. receive? (If I use XPeekEvent, each event gets recorded several times by my program). Waiting for the discussion to be enlivened, - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Mon Feb 26 22:09:30 2001 Received: from sharmasnew.dhs.org (c239143-a.frmt1.sfba.home.com [24.19.220.119]) by www.aunet.org (Postfix) with ESMTP id B81854A0FE for ; Mon, 26 Feb 2001 22:09:27 -0800 (PST) Received: (from adsharma@localhost) by sharmasnew.dhs.org (8.11.1/8.11.1) id f1R5wJ422741 for linux-india-programmers@lists.linux-india.org; Mon, 26 Feb 2001 21:58:19 -0800 (PST) (envelope-from adsharma) Date: Mon, 26 Feb 2001 21:58:19 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT] Help needed for compiling Qt on HP Message-ID: <20010226215819.A22727@sharmas.dhs.org> References: <000d01c09db9$68dd0640$be08c5cb@noname> <01022322340900.03633@Basel> <20010223090453.A11506@sharmas.dhs.org> <3A9A11E5.9E543A31@pspl.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A9A11E5.9E543A31@pspl.co.in>; from shridhar_daithankar@pspl.co.in on Mon, Feb 26, 2001 at 01:50:53PM +0530 X-Archive-Number: 200102/252 X-Sequence-Number: 1708 On Mon, Feb 26, 2001 at 01:50:53PM +0530, Shridhar Daithankar wrote: > But what keeps me puzzled that I built plethora of GNU utilities with gcc/g++ > including GNU make etc. All of them worked and only Qt failed.... That's > strange. However I am not persuing the topic for the time being. I will pick it > up later.... Qt is written in C++ and other stuff is not - that's probably why. I'm sure, it'll be some arcane linker related stuff. -Arun From linux-india-programmers-owner@lists.linux-india.org Mon Feb 26 23:31:25 2001 Received: from m2w041.mail2web.com (M2W041.mail2web.com [168.144.108.41]) by www.aunet.org (Postfix) with ESMTP id A2BF64A0FF for ; Mon, 26 Feb 2001 23:31:22 -0800 (PST) Received: from m2w041 [168.144.108.41] by m2w041.mail2web.com with ESMTP (SMTPD32-6.00) id A66C16500126; Tue, 27 Feb 2001 02:25:32 -0500 X-Originating-IP: 202.54.17.22 X-URL: http://www.mail2web.com/ Subject: binary conversion functions in libc / linux From: "gsllgoa@pop3.satyam.net.in" Date: Tue, 27 Feb 2001 02:25:32 -0500 To: "linux-india-programmers@lists.linux-india.org" Reply-To: gsllgoa@pop3.satyam.net.in X-Priority: 3 X-MSMail-Priority: Normal Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) Message-Id: <200102270225862.SM01588@m2w041> X-Archive-Number: 200102/253 X-Sequence-Number: 1709 Hi friends... Does any one know of any built in functions in linux to convert a str= ing to binary or vice- versa. thanx -------------------------------------------------------------------- Mail2Web - Check your email from the web at http://www.mail2web.com/ . From linux-india-programmers-owner@lists.linux-india.org Mon Feb 26 23:44:49 2001 Received: from wilco-int.com (intmailserv.wilco-int.com [212.36.174.165]) by www.aunet.org (Postfix) with ESMTP id 8BEBE4A074 for ; Mon, 26 Feb 2001 23:44:34 -0800 (PST) Received: from wilco-fw3.wilco-int.com (wilco-fwdmz.wilco-int.com [192.168.32.253]) by wilco-int.com (8.9.1b+Sun/8.9.1) with SMTP id HAA01403 for ; Tue, 27 Feb 2001 07:30:15 GMT Received: from mailsweeper.wilco-int.com ([194.62.147.25]) by wilco-fw3.wilco-int.com; Tue, 27 Feb 2001 07:30:19 +0000 (GMT) Received: from lonmail01.wilco-int.com (unverified) by mailsweeper.wilco-int.com (Content Technologies SMTPRS 4.1.2) with ESMTP id ; Tue, 27 Feb 2001 07:31:27 +0000 Received: by lonmail01 with Internet Mail Service (5.5.2650.21) id ; Tue, 27 Feb 2001 07:28:30 -0000 Received: from hydmail02.hyd.wilco-int.com (HYDMAIL02 [192.168.130.33]) by lonmail01.wilco-int.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id FSYVXJZM; Tue, 27 Feb 2001 07:28:19 -0000 Received: by hydmail02.hyd.wilco-int.com with Internet Mail Service (5.5.2650.21) id ; Tue, 27 Feb 2001 13:00:04 +0530 From: Prashant Ramachandra To: "'gsllgoa@pop3.satyam.net.in'" Cc: linux-india-programmers@lists.linux-india.org Message-ID: <5BF60CD649EDD411A04600B0D049F53A09245F@hydmail02.hyd.wilco-int.com> Subject: RE: binary conversion functions in libc / linux Date: Tue, 27 Feb 2001 13:00:01 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Archive-Number: 200102/254 X-Sequence-Number: 1710 On Tuesday, February 27, 2001 12:56 PM, gsllgoa@pop3.satyam.net.in [SMTP:gsllgoa@pop3.satyam.net.in] wrote: | Hi friends... | Does any one know of any built in functions in linux to | convert a string to binary or vice- versa. man atol man strtol -- Prashant TR Web: http://www.midpec.com/ ---------------------------------------------------------------------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ---------------------------------------------------------------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Tue Feb 27 02:57:04 2001 Received: from nsg_fs.cmc.net.in (unknown [206.103.13.222]) by www.aunet.org (Postfix) with SMTP id 853924A042 for ; Tue, 27 Feb 2001 02:54:26 -0800 (PST) Received: FROM bandra.cmc.net.in BY nsg_fs.cmc.net.in ; Tue Feb 27 16:20:02 2001 +0500 Received: from ports.cmc.net.in. (ports.cmc.net.in [172.20.5.102]) by bandra.cmc.net.in (8.9.1/8.9.1) with SMTP id QAA12488 for ; Tue, 27 Feb 2001 16:19:27 -0500 (GMT) Received: from ports-gajanan by ports.cmc.net.in. (SMI-8.6/SMI-SVR4) id QAA26739; Tue, 27 Feb 2001 16:12:02 -0500 Received: by localhost with Microsoft MAPI; Tue, 27 Feb 2001 16:33:50 -0000 Message-ID: <01C0A0DB.10B3E180.aseem@ports.cmc.net.in> From: Aseem Rane Reply-To: "aseem@ports.cmc.net.in" To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: Re: X Event Capturing Date: Tue, 27 Feb 2001 16:33:49 -0000 Organization: cmc ltd X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 Encoding: 13 TEXT X-Archive-Number: 200102/255 X-Sequence-Number: 1711 >-----Original Message----- >From: Karthika Sivaramakrishnan [SMTP:karthika212@rediffmail.com] >Sent: Monday, February 26, 2001 6:26 PM >To: LIP >Subject: [LIP] Re: X Event Capturing >I had sent only a portion of the code for capturing events. (I had already specified the event mask). i would like to have a look at a bigger portion of your code. AFAIK XNextEvent should remove the event from the queue. bye aseem From linux-india-programmers-owner@lists.linux-india.org Tue Feb 27 06:17:31 2001 Received: from vikram.svrec.ernet.in (unknown [202.141.85.15]) by www.aunet.org (Postfix) with ESMTP id 384234A1CC for ; Tue, 27 Feb 2001 06:11:44 -0800 (PST) Received: from localhost (97co266@localhost) by vikram.svrec.ernet.in (8.8.7/8.8.7) with ESMTP id TAA07497; Tue, 27 Feb 2001 19:23:38 +0530 Date: Tue, 27 Feb 2001 19:23:38 +0530 (IST) From: shubhendu <97co266@vikram.svrec.ernet.in> To: Aseem Rane Cc: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: Programming using Xlib In-Reply-To: <01C09FE2.FCFB8060.aseem@ports.cmc.net.in> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/256 X-Sequence-Number: 1712 > Why dont u try Tk as the front-end for the drawing graphs. it fits well > with C and is much easy to learn than to learn X Windows programming. i > need to do programming in X Windows for my company but personally i like to > build GUI in TK for my small applications. > hai aseem do u have some links to TK tutes ......if yes pls post them to list regards shubh From linux-india-programmers-owner@lists.linux-india.org Tue Feb 27 09:45:56 2001 Received: from mailweb32.rediffmail.com (unknown [203.199.83.152]) by www.aunet.org (Postfix) with SMTP id BD41F4A0EE for ; Tue, 27 Feb 2001 09:45:52 -0800 (PST) Received: (qmail 31391 invoked by uid 510); 27 Feb 2001 17:04:10 -0000 Date: 27 Feb 2001 17:04:10 -0000 Message-ID: <20010227170410.31390.qmail@mailweb32.rediffmail.com> Received: from unknown (210.214.5.41) by rediffmail.com via HTTP; 27 Feb 2001 17:04:10 -0000 MIME-Version: 1.0 To: LIP Subject: Re: X Event Capturing From: "Karthika Sivaramakrishnan" Content-ID: Content-type: multipart/mixed; boundary="mailweb32.rediffmail.com.31366.Tue.Feb.27.22:34:10.IST.2001" X-Archive-Number: 200102/257 X-Sequence-Number: 1713 This is a multimedia message in MIME format. If you are reading this prefix, your mail reader does not understand MIME. You may wish to look into upgrading to a newer version of your mail reader. --mailweb32.rediffmail.com.31366.Tue.Feb.27.22:34:10.IST.2001 Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit Hello! I have attached the event capturer function. As I mentioned already, it works fine, without (XNextEvent) obstructing any application. My problem is when I move the mouse pointer from the text area of a window (like kwrite) to the top of an icon (like "save" or "open") in that window, I get a "Focusout" event for kwrite, but no event to suggest the destination icon. How do I decode the destination? Similarly, when I press any shortcut key (like Ctrl S to save), or any key for that matter (when within an editor), nothing gets recorded. Waiting for a reply, - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com --mailweb32.rediffmail.com.31366.Tue.Feb.27.22:34:10.IST.2001 Content-ID: Content-type: text/plain;NAME=singlea.txt Content-Description: singlea.txt Content-Transfer-Encoding: base64 VGhpcyBmdW5jdGlvbiB3aWxsIGJlIGNhbGxlZCBmb3IgZXZlcnkgd2luZG93 ICh3KSwgcGFzc2luZyBhIHBvaW50ZXIgdG8gYSBkYXRhIHN0cnVjdHVyZQ0K dGhhdCBzdG9yZXMgaW5mb3JtYXRpb24gYWJvdXQgdyAmIGl0cyByZWxhdGVk IGV2ZW50cy4NCg0KZXZtb24gKFdpbmRvdyB3LHN0cnVjdCB3aW5ldiAqKnJv b3QpDQp7DQoJDQogICAgCWludCBpOw0KICAgIAlYU2V0V2luZG93QXR0cmli dXRlcyBhdHRyOw0KICAgIAlYV2luZG93QXR0cmlidXRlcyB3YXR0cjsNCiAg ICAJdW5zaWduZWQgbG9uZyBtYXNrID0gMEw7DQogICAgCWludCBkb25lLCBx bGVuZ3RoOw0KCVhFdmVudCBldmVudDsNCg0KICAgICAgCS8qIHNlbGVjdCBm b3IgYWxsIGV2ZW50cyAqLw0KICAgIAlhdHRyLmV2ZW50X21hc2sgPSBLZXlQ cmVzc01hc2sgfCBLZXlSZWxlYXNlTWFzayB8IEJ1dHRvblByZXNzTWFzayB8 DQoJCQkgICBCdXR0b25SZWxlYXNlTWFzayB8IEVudGVyV2luZG93TWFzayB8 DQoJCQkgICBMZWF2ZVdpbmRvd01hc2sgfCBQb2ludGVyTW90aW9uTWFzayB8 IA0KCQkJICAgQnV0dG9uMU1vdGlvbk1hc2sgfA0KCQkJICAgQnV0dG9uMk1v dGlvbk1hc2sgfCBCdXR0b24zTW90aW9uTWFzayB8DQoJCQkgICBCdXR0b240 TW90aW9uTWFzayB8IEJ1dHRvbjVNb3Rpb25NYXNrIHwNCgkJCSAgIEJ1dHRv bk1vdGlvbk1hc2sgfCBLZXltYXBTdGF0ZU1hc2sgfA0KCQkJICAgRXhwb3N1 cmVNYXNrIHwgVmlzaWJpbGl0eUNoYW5nZU1hc2sgfCANCgkJCSAgIFN0cnVj dHVyZU5vdGlmeU1hc2sgfCAvKiBSZXNpemVSZWRpcmVjdE1hc2sgfCAqLw0K CQkJICAgU3Vic3RydWN0dXJlTm90aWZ5TWFzayB8IFN1YnN0cnVjdHVyZVJl ZGlyZWN0TWFzayB8DQoJCQkgICBGb2N1c0NoYW5nZU1hc2sgfCBQcm9wZXJ0 eUNoYW5nZU1hc2sgfA0KCQkJICAgQ29sb3JtYXBDaGFuZ2VNYXNrIHwgT3du ZXJHcmFiQnV0dG9uTWFzazsNCg0KICAgIAlpZiAodykgDQoJew0KCQlYR2V0 V2luZG93QXR0cmlidXRlcyhkcHksIHcsICZ3YXR0cik7DQoJCWlmICh3YXR0 ci5hbGxfZXZlbnRfbWFza3MgJiBCdXR0b25QcmVzc01hc2spDQoJICAgIAkJ YXR0ci5ldmVudF9tYXNrICY9IH5CdXR0b25QcmVzc01hc2s7DQoJCWF0dHIu ZXZlbnRfbWFzayAmPSB+U3Vic3RydWN0dXJlUmVkaXJlY3RNYXNrOw0KCQlY U2VsZWN0SW5wdXQoZHB5LCB3LCBhdHRyLmV2ZW50X21hc2spOw0KICAgIAl9 IA0KCQ0KCWZvciAoZG9uZSA9IDA7ZG9uZTwxO2RvbmUrKykNCgl7DQoJCS8q IHRyaWVkIGZvciB2YXJpb3VzIGZpbmFsIHZhbHVlcyBvZiBkb25lICovDQoJ CW5vZGUxPShzdHJ1Y3Qgd2luZXYgKiltYWxsb2Moc2l6ZW9mKHN0cnVjdCB3 aW5ldikpOw0KCQlpZiAobm9kZTEgPT0gTlVMTCkNCgkJICBwZXJyb3IoIkZp bGUgc2luZ2xlYS5jOyBmdW5jdGlvbiBldm1vbjoiKTsJDQoJCW5vZGUxLT5u ZXh0MT1OVUxMOw0KDQogICAgICAgICAgICAgICAgcWxlbmd0aCA9IFFMZW5n dGgoZHB5KTsNCiAgICAgICAgICAgICAgICBpZiAocWxlbmd0aCA9PSAwKQ0K ICAgICAgICAgICAgICAgIHsNCiAgICAgICAgICAgICAgICBwcmludGYoInF1 ZXVlIGxlbmd0aCA9IDBcbiIpOw0KICAgICAgICAgICAgICAgIHNsZWVwKDEp Ow0KICAgICAgICAgICAgICAgIAkNCiAgICAgICAgICAgICAgICAgYnJlYWs7 DQogICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAvKiBJZiBu byBldmVudCBoYXMgb2NjdXJyZWQsIHF1aXQgZm9yIGxvb3AsIGFzIAkJICAg WE5leHRldmVudCAqYmxvY2tzKg0KICAgICAgICAgICAgICAgICAgIHVudGls IGFuIGV2ZW50IG9jY3Vycy4gKi8NCgkJWE5leHRFdmVudCAoZHB5LCAmZXZl bnQpOyAgLyogU2hvdWxkIGl0IGJlIFhQZWVrRXZlbnQgPyAqLw0KICAgICAg ICAgICAgICAgIHN3aXRjaCAoZXZlbnQudHlwZSkNCgkJew0KCSAgCQljYXNl IEtleVByZXNzOg0KCQkJCQkJLi4uDQoJCX0gLyogZW5kIG9mIHN3aXRjaC1j YXNlICovDQoJaW5zZXJldigmKCpyb290KSwmbm9kZTEpOw0KICAgCX0gIC8q IGVuZCBvZiBmb3IgbG9vcCAqLw0KfSAvKiBlbmQgb2YgZnVuY3Rpb24gKi8N Cg0K --mailweb32.rediffmail.com.31366.Tue.Feb.27.22:34:10.IST.2001-- From linux-india-programmers-owner@lists.linux-india.org Tue Feb 27 20:37:35 2001 Received: from nsg_fs.cmc.net.in (unknown [206.103.13.222]) by www.aunet.org (Postfix) with SMTP id 6F13E49FF0 for ; Tue, 27 Feb 2001 20:37:24 -0800 (PST) Received: FROM bandra.cmc.net.in BY nsg_fs.cmc.net.in ; Wed Feb 28 10:02:59 2001 +0500 Received: from ports.cmc.net.in. (ports.cmc.net.in [172.20.5.102]) by bandra.cmc.net.in (8.9.1/8.9.1) with SMTP id KAA18787 for ; Wed, 28 Feb 2001 10:02:25 -0500 (GMT) Received: from ports-gajanan by ports.cmc.net.in. (SMI-8.6/SMI-SVR4) id JAA11300; Wed, 28 Feb 2001 09:54:59 -0500 Received: by localhost with Microsoft MAPI; Wed, 28 Feb 2001 10:16:49 -0000 Message-ID: <01C0A16F.8FC1F9F0.aseem@ports.cmc.net.in> From: Aseem Rane Reply-To: "aseem@ports.cmc.net.in" To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: Programming using Xlib Date: Wed, 28 Feb 2001 10:16:48 -0000 Organization: cmc ltd X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 Encoding: 20 TEXT X-Archive-Number: 200102/258 X-Sequence-Number: 1714 >-----Original Message----- >From: shubhendu [SMTP:97co266@svrec.ernet.in] >Sent: Tuesday, February 27, 2001 7:24 PM >To: Aseem Rane >Cc: 'linux-india-programmers@lists.linux-india.org' >Subject: RE: [LIP] Programming using Xlib >do u have some links to TK tutes ......if yes pls post them to list hi, http://www.scriptics.com is the source for most of the Tcl/Tk related material go to http://www.scriptics.com/doc/ for documentation. i found manual pages to be very good. or else u can download 2 best books for Tcl/Tk in pdf format from http://www.psyon.org/archive/e-books/programming/tcl-tk/index.shtml bye aseem From linux-india-programmers-owner@lists.linux-india.org Tue Feb 27 20:48:07 2001 Received: from wiprom2mx2.wipro.com (wiprom2mx2.wipro.com [203.197.164.42]) by www.aunet.org (Postfix) with ESMTP id 059A94A10D for ; Tue, 27 Feb 2001 20:48:01 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx2.wipro.com (8.9.3/8.9.3) with SMTP id KAA25311 for ; Wed, 28 Feb 2001 10:51:41 +0530 Received: from wipro.com ([192.107.143.16]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA7330 for ; Wed, 28 Feb 2001 10:00:19 +0530 Message-ID: <3A9C7F47.F3EF559F@wipro.com> Date: Wed, 28 Feb 2001 10:02:07 +0530 From: Pratap Chakravarthy X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 To: "linux-india-programmers@lists.linux-india.org" Subject: file format Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/259 X-Sequence-Number: 1715 hello all, Can any one give pointers on the COFF file format and how linking is performed [like resolving symbols etc] on this COFF object files pratap From linux-india-programmers-owner@lists.linux-india.org Wed Feb 28 09:36:23 2001 Received: from sharmasnew.dhs.org (c239143-a.frmt1.sfba.home.com [24.19.220.119]) by www.aunet.org (Postfix) with ESMTP id E59CB4A015 for ; Wed, 28 Feb 2001 09:36:18 -0800 (PST) Received: (from adsharma@localhost) by sharmasnew.dhs.org (8.11.1/8.11.1) id f1SHP8Q27066 for linux-india-programmers@lists.linux-india.org; Wed, 28 Feb 2001 09:25:08 -0800 (PST) (envelope-from adsharma) Date: Wed, 28 Feb 2001 09:25:08 -0800 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: file format Message-ID: <20010228092508.A27051@sharmas.dhs.org> References: <3A9C7F47.F3EF559F@wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A9C7F47.F3EF559F@wipro.com>; from pratap.chakravarthy@wipro.com on Wed, Feb 28, 2001 at 10:02:07AM +0530 X-Archive-Number: 200102/260 X-Sequence-Number: 1716 On Wed, Feb 28, 2001 at 10:02:07AM +0530, Pratap Chakravarthy wrote: > hello all, > Can any one give pointers on the COFF file format and how linking is performed [like resolving > symbols etc] on this COFF object files Linux doesn't use COFF - it uses ELF. See the archives of this list for pointers. -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Feb 28 10:02:48 2001 Received: from mailweb17.rediffmail.com (unknown [203.199.83.141]) by www.aunet.org (Postfix) with SMTP id 21DF54A00F for ; Wed, 28 Feb 2001 10:00:22 -0800 (PST) Received: (qmail 24739 invoked by uid 510); 28 Feb 2001 16:32:04 -0000 Date: 28 Feb 2001 16:32:04 -0000 Message-ID: <20010228163204.24738.qmail@mailweb17.rediffmail.com> Received: from unknown (210.214.5.38) by rediffmail.com via HTTP; 28 Feb 2001 16:32:04 -0000 MIME-Version: 1.0 To: LIP Subject: Path of file From: "Karthika Sivaramakrishnan" Content-ID: Content-type: text/plain Content-Description: Body Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/261 X-Sequence-Number: 1717 Hi! How can I find the path of a file which has been opened by some X application? Is there a system command or some C or Xlib function for this? - Karthika _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com From linux-india-programmers-owner@lists.linux-india.org Wed Feb 28 20:15:17 2001 Received: from pagladashu.naturesoft.com (unknown [202.9.161.6]) by www.aunet.org (Postfix) with ESMTP id 0C8784A01B for ; Wed, 28 Feb 2001 20:15:15 -0800 (PST) Received: from bigfoot.com (localhost.localdomain [127.0.0.1]) by pagladashu.naturesoft.com (Postfix) with ESMTP id D4C995C9C4 for ; Mon, 29 Jan 2001 15:37:02 +0000 (/repos/projects/nass/nass) Message-ID: <3A758E1D.9010EF65@bigfoot.com> Date: Mon, 29 Jan 2001 21:07:01 +0530 From: archan Organization: Open Source Software X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-21mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT] Help needed for compiling Qt on HP References: <000d01c09db9$68dd0640$be08c5cb@noname> <01022322340900.03633@Basel> <20010223090453.A11506@sharmas.dhs.org> <3A9A11E5.9E543A31@pspl.co.in> <20010226215819.A22727@sharmas.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/262 X-Sequence-Number: 1718 possibly, The QTDIR environment variable is not set.... archan devrootp@bigfoot.com Arun Sharma wrote: > Qt is written in C++ and other stuff is not - that's probably why. I'm > sure, it'll be some arcane linker related stuff. From linux-india-programmers-owner@lists.linux-india.org Wed Feb 28 20:18:39 2001 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 2FA6D4A2D5 for ; Wed, 28 Feb 2001 20:18:36 -0800 (PST) Received: from pspl.co.in (basel.intranet.pspl.co.in [192.168.2.188]) by www.pspl.co.in (8.11.0/8.11.0) with ESMTP id f214Irl12484 for ; Thu, 1 Mar 2001 09:48:54 +0530 Message-ID: <3A9DCDBA.748AE29F@pspl.co.in> Date: Thu, 01 Mar 2001 09:49:06 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT] Help needed for compiling Qt on HP References: <000d01c09db9$68dd0640$be08c5cb@noname> <01022322340900.03633@Basel> <20010223090453.A11506@sharmas.dhs.org> <3A9A11E5.9E543A31@pspl.co.in> <20010226215819.A22727@sharmas.dhs.org> <3A758E1D.9010EF65@bigfoot.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/263 X-Sequence-Number: 1719 Well Sorry the thread was ended but still... If QTDIR is not set, configure does not run. It aborts with an error. I did that. Anyway I am downloading latest snapshots of gcc dated 22 jan. I hope it works.... GCC2.95.2 has documented note that it can not generate object files for HPUX11. Bye Shridhar archan wrote: > possibly, The QTDIR environment variable is not set.... > From linux-india-programmers-owner@lists.linux-india.org Wed Feb 28 20:26:54 2001 Received: from aditya.pune.gsslco.co.in (unknown [203.129.226.254]) by www.aunet.org (Postfix) with ESMTP id BE1AD4A423 for ; Wed, 28 Feb 2001 20:26:42 -0800 (PST) Received: from phoenix.pune.gsslco.co.in (IDENT:sreangsua@phoenix.pune.gsslco.co.in [202.54.80.57]) by aditya.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id JAA17502 for ; Thu, 1 Mar 2001 09:53:36 +0530 (IST) Received: from localhost (sreangsua@localhost) by phoenix.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id JAA14050 for ; Thu, 1 Mar 2001 09:40:08 +0530 Date: Thu, 1 Mar 2001 09:40:07 +0530 (IST) From: sreangsu acharyya X-Sender: sreangsua@phoenix.pune.gsslco.co.in To: linux-india-programmers@lists.linux-india.org Subject: Re: [OT] Help needed for compiling Qt on HP In-Reply-To: <3A758E1D.9010EF65@bigfoot.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/264 X-Sequence-Number: 1720 On Mon, 29 Jan 2001, archan wrote: > possibly, The QTDIR environment variable is not set.... > ummm guess not, it would have failed far before giving sig 11. As Shridhar pointed out it was gcc which was not fully compatible for hp needs. -- sreangsu