From owner-freebsd-hackers Sun Apr 16 14:54:06 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA15566 for hackers-outgoing; Sun, 16 Apr 1995 14:54:06 -0700 Received: from wdl1.wdl.loral.com (wdl1.wdl.loral.com [137.249.32.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id OAA15560 for ; Sun, 16 Apr 1995 14:54:05 -0700 Received: from miles.sso.loral.com by wdl1.wdl.loral.com (4.1/WDL-4.2) id AA04349; Sun, 16 Apr 95 14:53:32 PDT Received: by miles.sso.loral.com (4.1/SSO-SUN-2.04) id AA11377; Sun, 16 Apr 95 17:54:30 EDT Date: Sun, 16 Apr 1995 17:54:29 -0400 (EDT) From: Richard Toren X-Sender: rpt@miles To: hackers@FreeBSD.org Subject: aspfilter & stdin Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@FreeBSD.org Precedence: bulk I have modified the 'rewindstdin.c' as: #include #include main() { return lseek(0,0L,SEEK_SET) < 0; } Giving the following results: # make cc -s -O -o rewindstdin rewindstdin.c # cat rewindstdin.c | (file -; ./rewindstdin ;file -) standard input: c program text standard input: empty I thought about the possibility that the stdin redirection would be a pipe, and tried with a small file (<512 bytes) with the same results. ?? why the '< 0' of the return code?? Stuck.... ==================================================== Rip Toren | The bad news is that C++ is not an object-oriented | rpt@miles.sso.loral.com | programming language. .... The good news is that | | C++ supports object-oriented programming. | | C++ Programming & Fundamental Concepts | | by Anderson & Heinze | ====================================================