From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: EXE has file junk in it 9 Jun 1997 20:19:02 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <01BC74C4.E9B55B40.cygnus.gnu-win32@gater.krystalbank.msk.ru> Original-To: "'gnu-win32 AT cygnus DOT com'" Encoding: 42 TEXT Original-Sender: owner-gnu-win32 AT cygnus DOT com Sergey Okhapkin wrote: > Michael Hirmke wrote: > > > If I am right, you linked under windows 95. Please confirm this. I would like > > > to know if this theory is correct. > > > > Same with Windows NT, at least with NT 4.0 ! > > > > How come??? Yeah... I have an idea! Are you using WS or Server? Server makes zero-filling! I don't know what behavior WS has. I just tried my seek test on NTWS 4.0 - resulting file is zero-filled... #include #include #include #include main() { int fd; int i=0; fd = open("seek.tst", O_CREAT| O_WRONLY|O_BINARY, 0666); write(fd, &i, 1); i++; lseek(fd, 4096, SEEK_SET); write(fd, &i, 1); i++; lseek(fd, 8192, SEEK_SET); write(fd, &i, 1); i++; lseek(fd, 16384, SEEK_SET); write(fd, &i, 1); } -- Sergey Okhapkin Moscow, Russia Looking for a job. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".