Path: utzoo!attcan!uunet!samsung!emory!wa4mei!bcs800!jeffr From: jeffr@bcs800.UUCP (Jeff Riegel) Newsgroups: comp.os.os9 Subject: Whats wrong with this picture Message-ID: <1068@bcs800.UUCP> Date: 12 Oct 90 17:23:34 GMT Organization: Brock Control Systems, Atlanta, Georgia Lines: 36 /* @(#)help.c 1.0 */ /* ** why dosn't this work ??? */ #include #include main(argc,argv) int argc char *argv[]; { int fd; struct fildes fdbuf; if (fd = open(argv[1],1) < 0) { printf("Could not open %s \n",argv[1]); exit(1); } _gs_gfd(fd,&fdbuf,sizeof(struct fildes)); printf("The file size is %ld \n",fdbuf.fd_fsize); close(fd); } When I run this I do not get the file size any suggestions ? -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jeff Riegel | uucp: ...!gatech!emory!bcs800!jeffr Technical Support | delphi: j2 tel: +800 444 3070 | A process is a terrible thing to waste!