home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat7 / zero.z / zero
Encoding:
Text File  |  2002-10-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ZZZZEEEERRRROOOO((((7777))))                                                                ZZZZEEEERRRROOOO((((7777))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      zero - source of zeroes
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      A zero special file is a source of zeroed unnamed memory.
  13.  
  14.      Reads from a zero special file always return a buffer full of zeroes.
  15.      The file is of infinite length.
  16.  
  17.      Writes to a zero special file are always successful, but the data written
  18.      is ignored.
  19.  
  20.      Mapping a zero special file creates a zero-initialized unnamed memory
  21.      object of a length equal to the length of the mapping and rounded up to
  22.      the nearest page size as returned by _g_e_t_p_a_g_e_s_i_z_e(2).  Multiple processes
  23.      can share such a zero special file object provided a common ancestor
  24.      mapped the object MAP_SHARED.
  25.  
  26. FFFFIIIILLLLEEEESSSS
  27.      /dev/zero
  28.  
  29. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  30.      fork(2), mmap(2)
  31.  
  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.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.