File: open_trunc.c

package info (click to toggle)
freecdb 0.78.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 728 kB
  • sloc: ansic: 1,733; sh: 360; makefile: 25
file content (8 lines) | stat: -rw-r--r-- 180 bytes parent folder | download | duplicates (31)
1
2
3
4
5
6
7
8
/* Public domain. */

#include <sys/types.h>
#include <fcntl.h>
#include "open.h"

int open_trunc(const char *fn)
{ return open(fn,O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT,0644); }