home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9559 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  857 b 

  1. Path: sparky!uunet!mcsun!Germany.EU.net!unido!mikros!mwtech!mecky!walter
  2. From: walter@mecky.rent-a-guru.de (Walter Mecky)
  3. Newsgroups: comp.unix.questions
  4. Subject: Is st_size defined after fstat(on_a_pipe) ?
  5. Message-ID: <1119@mecky.rent-a-guru.de>
  6. Date: 29 Jul 92 17:30:14 GMT
  7. Reply-To: walter@rent-a-guru.de (Walter Mecky)
  8. Organization: RENT-A-GURU (tm), Buettelborn; FR Germany
  9. Lines: 14
  10.  
  11. After a fstat()- or stat()-system call on a pipe I can find the number
  12. of bytes in the pipe in the st_size field of the struct. My question:
  13. can I count on this? Are there Unices around where this is not the
  14. case.
  15.  
  16. I'm asking this because POSIX and X/Open state that this field is only
  17. defined for regular files.
  18.  
  19. Thanks for your answer.
  20.  
  21. -- 
  22.    __o      Walter Mecky
  23.  _ \<,_     walter@rent-a-guru.de    or  ...uunet!unido!mikros!walter
  24. (_)/ (_)        Phone: +49 6152 40813
  25.