home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / libsrc / c / sys / umask.c < prev    next >
Encoding:
Text File  |  1992-08-24  |  306 b   |  10 lines

  1. /* The original djgpp umask function returns 0644, which is the
  2.    inverse of what we really want.  This now returns 022, which means
  3.    that files are created with no write permission for group or other,
  4.    which is the normal value for a UNIX machine. */
  5. int
  6. umask(int mode)
  7. {
  8.     return 022;
  9. }
  10.