home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / ultrix / 9144 < prev    next >
Encoding:
Text File  |  1993-01-01  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!gatech!destroyer!news.iastate.edu!john
  3. From: john@iastate.edu (John Hascall)
  4. Subject: fstat bogosity
  5. Message-ID: <C06rnA.98s@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames, IA
  8. Date: Fri, 1 Jan 1993 17:37:57 GMT
  9. Lines: 21
  10.  
  11. Well, if anyone at DEC still cares about Ultrix (V4.2a in our case), the man
  12. page for fstat() says:
  13.  
  14.      Restrictions
  15.           Applying fstat to a socket returns a zeroed buffer and [EOPNOT-
  16.           SUPP].
  17.  
  18. It appears to be the case that fstat(sockFD, &stbuf) is not returning an error,
  19. and in the case of a TCP socket (AF_INET, SOCK_STREAM) it appears that
  20. stbuf.st_blksize is being filed in with the socket MaxSegSiz value.
  21.  
  22. I also don't see why it would be so much trouble to fill in .st_mode = S_IFSOCK
  23. either.
  24.  
  25. John
  26. #include <std/gripe/noUsenetSPR.h>
  27. -- 
  28. John Hascall                   ``An ill-chosen word is the fool's messenger.''
  29. Systmes Software Engineer
  30. Project Vincent
  31. Iowa State University Computation Center  +  Ames, IA  50011  +  515/294-9551
  32.