Date: Fri, 19 Nov 1999 03:57:01 +0300 From: "Oleg V. Volkov" <rover@lglobus.ru> To: Alfred Perlstein <bright@wintelcom.net> Cc: freebsd-questions@freebsd.org Subject: Re: Is there correct way for program to read from itself? Message-ID: <19991119035701.A64685@fly.lglobus.ru> In-Reply-To: <Pine.BSF.4.05.9911181650570.12797-100000@fw.wintelcom.net> References: <19991119024421.B63985@fly.lglobus.ru> <Pine.BSF.4.05.9911181650570.12797-100000@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 18, 1999 at 04:51:43PM -0800, Alfred Perlstein wrote: >On Fri, 19 Nov 1999, Oleg V. Volkov wrote: >> On Thu, Nov 18, 1999 at 03:09:19PM -0800, Alfred Perlstein wrote: >>>>> I think procfs would be even more helpful (unless the 'file' is still >>>>> done, or is it?) You guys should have gotten my profs suggestion >>>>> but someone obviously dropped cc lines. *sigh* >>>>> And Greg is definetly right, you should be able to look around to >>>>> solve this problem, if the problem is then PATH, then searching >>>>> the path is what you need to do, but I still think procfs offers >>>>> what you need. >>>>> man 5 procfs. >>>>Look a this dump: [skip] >>>> I just don't know why lseek fails. >>> I don't know either, perhaps the source to this errant program >>> would be helpful? >>> This looks like a Linux program, just what are you trying to by >>> opening 'exe'? You obviously didn't read the procfs manpage, please >>> do read it and then follow up. >> Oops! Thanks for point! Damn! Where i was looking at? Of course exe should >> be file! > not only that, but even though this is a test program you should have > taken the extra minute to check the return value from open(). That's not my program, i just helping someone to make his linux program work with FreeBSD too. But that's good point. -- Oleg V. Volkov aka Rover EH: LCM Rover Join Elite Imperial Fleet! http://www.emperorshammer.org E-mail redirector: sr-13@mail.ru (always up) -=/ SR 13 /=- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991119035701.A64685>