home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat2 / fsync.0 < prev    next >
Text File  |  1993-12-07  |  1KB  |  67 lines

  1.  
  2. FSYNC(2)                   UNIX Programmer's Manual                   FSYNC(2)
  3.  
  4. NNAAMMEE
  5.      ffssyynncc - synchronize a file's in­core state with that on disk
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.  
  10.      _i_n_t
  11.      ffssyynncc(_i_n_t _f_d)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      FFssyynncc() causes all modified data and attributes of _f_d to be moved to a
  15.      permanent storage device.  This normally results in all in­core modified
  16.      copies of buffers for the associated file to be written to a disk.
  17.  
  18.      FFssyynncc() should be used by programs that require a file to be in a known
  19.      state, for example, in building a simple transaction facility.
  20.  
  21. RREETTUURRNN VVAALLUUEESS
  22.      A 0 value is returned on success.  A ­1 value indicates an error.
  23.  
  24. EERRRROORRSS
  25.      The ffssyynncc() fails if:
  26.  
  27.      [EBADF]       _F_d is not a valid descriptor.
  28.  
  29.      [EINVAL]      _F_d refers to a socket, not to a file.
  30.  
  31.      [EIO]         An I/O error occurred while reading from or writing to the
  32.                    file system.
  33.  
  34. SSEEEE AALLSSOO
  35.      sync(2),  sync(8),  update(8)
  36.  
  37. HHIISSTTOORRYY
  38.      The ffssyynncc function call appeared in 4.2BSD.
  39.  
  40. 4.2 Berkeley Distribution       March 10, 1991                               1
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.