home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19914 < prev    next >
Encoding:
Text File  |  1992-12-27  |  2.8 KB  |  97 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!eco.twg.com!eco.twg.com!larry
  3. From: larry@eco.twg.com (Lawrence B. Henry III)
  4. Subject: Re: flushing in VAXC and DECC
  5. Message-ID: <1992Dec27.055031.24162@eco.twg.com>
  6. Lines: 82
  7. Sender: larry@vishnu.eco.twg.com (Lawrence B. Henry III)
  8. Nntp-Posting-Host: eco.twg.com
  9. Reply-To: larry@eco.twg.com
  10. Organization: The Wollongong Group (East Coast Operations)
  11. References: <1992Dec26.211521.4768@spcvxb.spc.edu> <6813@npri6.npri.com>
  12. Date: Sun, 27 Dec 92 05:50:31 GMT
  13. Lines: 82
  14.  
  15.  
  16. In article <6813@npri6.npri.com>, murphy@npri6.npri.com (David P.
  17. Murphy) writes:
  18. |>Path: eco.twg.com!uunet!psinntp!npri6!murphy
  19. |>From: murphy@npri6.npri.com (David P. Murphy)
  20. |>Newsgroups: comp.os.vms
  21. |>Subject: Re: flushing in VAXC and DECC
  22. |>Message-ID: <6813@npri6.npri.com>
  23. |>Date: 27 Dec 92 04:14:14 GMT
  24. |>References: <1992Dec26.211521.4768@spcvxb.spc.edu>
  25. |>Distribution: world
  26. |>Organization: NPRI, Alexandria VA
  27. |>Lines: 23
  28. |>
  29. |>
  30. |> >At the risk of adding some useful information to this discussion
  31. |>8-), I
  32. |> >think they were talking about the VAX C fsync() function. This is a
  33. |>worker
  34. |> >function used in the VAXCRTL to flush RMS buffers. It does exactly
  35. |>what you
  36. |> >want. Since it is used by the RTL, it is unlikely to change in
  37. |>future re-
  38. |> >leases of VAX C. On the other hand, it may not be present in DEC C
  39. |>(the up-
  40. |> >coming ANSI-compliant C compiler for VMS from DEC). DEC C may not
  41. |>even need
  42. |> >this as fflush() may work as you hope there. Ehud, want to check
  43. |>this on
  44. |> >your Alpha?
  45. |> >
  46. |> >terry@spcvxb.spc.edu (Terry Kennedy, Operations Mgr.)
  47. |>
  48. |>wow, useful information!  lemme add some: the fsync() function is
  49. |>indeed
  50. |>available under alpha, in the DECC$SHR image, and it even does
  51. |>something.
  52. |>unfortunately, i don't have time right now to test if it is still
  53. |>necessary.
  54. |>
  55. |>ok
  56. |>dpm
  57. |>-- 
  58. |>murphy@npri6.npri.com 602 Cameron St. Alexandria, VA 22314 (703)
  59. |>683-9090
  60. |>
  61. |>              When every one is dead the Great Game is finished.  Not
  62. |>before.
  63. |>                              --- Hurree Babu, "Kim"
  64. |>
  65.  
  66. Not to be one to continue scrary precidents.. [ I for one read this group
  67. for the grin factor associated with the flames posted by marginally informed
  68. individuals posing as gurus.. directed towards people they feel are unworthy..
  69. ;-) its almost like watching the UN in action..] but I figure in the spirit
  70. of Christmas and all.. if we are really going to post "real", "live" 
  71. information...I can add that it is even documented in the online help on 
  72. AXP machines.. (see below)
  73.  
  74.  
  75. CC
  76.  
  77.   Run-time_functions
  78.  
  79.     fsync
  80.  
  81.        Flushes data all the way to the disk.
  82.  
  83.        Syntax:
  84.  
  85.             #include <stdio.h>
  86.  
  87.             int fsync(int file_descriptor);
  88.  
  89.  
  90. CC Run-time_functions Subtopic?
  91.  
  92.               
  93. -Larry.
  94.  
  95. PS. Don't take this serious unless you are one of those people out there posing
  96. as a guru.. :-)
  97.