home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / unixlib / !UnixLib / src / unix / c / creat < prev    next >
Encoding:
Text File  |  1994-09-30  |  252 b   |  14 lines

  1. static char sccs_id[] = "@(#) creat.c 1.2 " __DATE__ " HJR";
  2.  
  3. /* creat.c (c) Copyright 1990 H.Rogers */
  4.  
  5. #include "fcntl.h"
  6.  
  7. #include "sys/unix.h"
  8.  
  9. int
  10. creat (char *file, register int mode)
  11. {
  12.   return (open (file, O_RDWR | O_CREAT | O_TRUNC, mode));
  13. }
  14.