1SYNC(2) 386BSD Programmer's Manual SYNC(2) 2 3NNAAMMEE 4 ssyynncc - synchronize disk block in-core status with that on disk 5 6SSYYNNOOPPSSIISS 7 ##iinncclluuddee <<uunniissttdd..hh>> 8 9 _v_o_i_d 10 ssyynncc(_v_o_i_d) 11 12DDEESSCCRRIIPPTTIIOONN 13 The ssyynncc() function forces a write of dirty (modified) buffers in the 14 block buffer cache out to disk. The kernel keeps this information in core 15 to reduce the number of disk I/O transfers required by the system. As 16 information in the cache is lost after a system crash a ssyynncc() call is 17 issued frequently by the user process update(8) (about every 30 seconds). 18 19 The function fsync(2) may be used to synchronize individual file 20 descriptor attributes. 21 22SSEEEE AALLSSOO 23 fsync(2), sync(8), update(8) 24 25BBUUGGSS 26 SSyynncc() may return before the buffers are completely flushed. 27 28HHIISSTTOORRYY 29 A ssyynncc function call appeared in Version 6 AT&T UNIX. 30 314th Berkeley Distribution March 10, 1991 1 32 33 34 35 36 37 38 39 40 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