Home
last modified time | relevance | path

Searched refs:O_TRUNC (Results 1 – 25 of 63) sorted by relevance

123

/original-bsd/lib/libc/compat-43/
H A Dcreat.c22 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
/original-bsd/lib/libc/stdio/
H A Dflags.c42 o = O_CREAT | O_TRUNC;
/original-bsd/sys/i386/floppy/cp/
H A Dcp.c31 else if ((to = open(argv[1], O_CREAT|O_TRUNC|O_WRONLY, 0666)) < 0)
/original-bsd/games/larn/
H A Dbill.c105 if ((fd = open(fname, O_WRONLY | O_TRUNC | O_CREAT), in mailbill()
/original-bsd/lib/libc/db/db/
H A Ddb.c32 O_RDWR | O_SHLOCK | O_TRUNC)
/original-bsd/lib/libc/db/test/hash.tests/
H A Dtcreat3.c49 O_CREAT|O_TRUNC|O_RDWR, 0600, DB_HASH, &ctl))){
/original-bsd/usr.sbin/kvm_mkdb/
H A Dkvm_mkdb.c78 db = dbopen(dbtemp, O_CREAT | O_EXLOCK | O_TRUNC | O_RDWR,
/original-bsd/sys/sys/
H A Dfcntl.h62 #define O_TRUNC 0x0400 /* truncate to zero length */ macro
/original-bsd/usr.bin/ar/
H A Dextract.c66 if ((tfd = open(file, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR)) < 0) {
/original-bsd/bin/cp/
H A Dutils.c66 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
68 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
/original-bsd/lib/libc/gmon/
H A Dgmon.c137 fd = open("gmon.out", O_CREAT|O_TRUNC|O_WRONLY, 0666); in _mcleanup()
143 log = open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY, 0664); in _mcleanup()
/original-bsd/usr.bin/ktrace/
H A Dktrace.c109 if ((fd = open(tracefile, O_CREAT | O_WRONLY | (append ? 0 : O_TRUNC),
/original-bsd/sys/kern/
H A Dvfs_vnops.c65 fmode &= ~O_TRUNC;
97 if (fmode & (FWRITE | O_TRUNC)) {
107 if (fmode & O_TRUNC) {
/original-bsd/usr.bin/tee/
H A Dtee.c74 O_WRONLY|O_CREAT|O_TRUNC, DEFFILEMODE)) < 0) {
/original-bsd/old/flcopy/
H A Dflcopy.c73 file = open("floppy", O_RDWR|O_CREAT|O_TRUNC, 0666);
/original-bsd/usr.sbin/dev_mkdb/
H A Ddev_mkdb.c74 db = dbopen(dbtmp, O_CREAT|O_EXLOCK|O_RDWR|O_TRUNC,
/original-bsd/contrib/sc/
H A Dcrypt.c126 if ((fildes = open (busave, O_TRUNC|O_WRONLY|O_CREAT, 0600)) < 0)
/original-bsd/sbin/shutdown/
H A Dshutdown.c416 if ((fastfd = open(_PATH_FASTBOOT, O_WRONLY|O_CREAT|O_TRUNC, in doitfast()
435 if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC, in nolog()
/original-bsd/usr.bin/cap_mkdb/
H A Dcap_mkdb.c89 if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR,
/original-bsd/contrib/gas-1.38/
H A Dinput-file.c154 fd = open (temporary_file_name, O_WRONLY + O_TRUNC + O_CREAT, 0666);
/original-bsd/sys/pmax/stand/
H A Dmkboottape.c77 ofd = open(argv[0], O_CREAT|O_TRUNC|O_WRONLY, DEFFILEMODE);
/original-bsd/bin/mv/
H A Dmv.c176 open(to, O_CREAT | O_TRUNC | O_WRONLY, sbp->st_mode)) < 0) {
/original-bsd/bin/pax/
H A Dfile_subs.c75 if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
93 if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC,
/original-bsd/bin/sh/
H A Dredir.c145 if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
/original-bsd/usr.bin/pascal/src/
H A Dfunc.c162 case O_TRUNC:

123