Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 25 of 410) sorted by path

12345678910>>...17

/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h102 #define O_CREAT 0x0200 /* create if nonexistent */ macro
193 #define FRDAHEAD O_CREAT
/illumos-gate/usr/src/cmd/acct/
H A Daccton.c83 if ((fd = open(admfile, O_RDONLY|O_CREAT, 0644)) == ERR) { in ckfile()
/illumos-gate/usr/src/cmd/acpi/common/
H A Dosunixxf.c898 Sem = sem_open (SemaphoreName, O_EXCL|O_CREAT, 0755, InitialUnits); in AcpiOsCreateSemaphore()
/illumos-gate/usr/src/cmd/acpihpd/
H A Dacpihpd.c161 if ((s_pid_fd = open(ACPIHPD_PID_FILE, O_RDWR | O_CREAT, 0644)) < 0) { in daemon_init()
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate3.c665 (lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1) { in lock_dev()
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dfile.cc259 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, in create_output_file()
/illumos-gate/usr/src/cmd/audio/audioctl/
H A Daudioctl.c1014 mode = O_WRONLY | O_CREAT | O_EXCL; in do_save_controls()
/illumos-gate/usr/src/cmd/audio/audiorecord/
H A Daudiorecord.c375 (O_RDWR | O_CREAT | (Append ? 0 : O_TRUNC)), 0666); in main()
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioFile.cc156 desc = open(path, openmode | O_CREAT | O_TRUNC, 0666); in createfile()
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumpmain.c1458 if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE, in safe_open_common()
H A Ddumptape.c1240 m = (access(tape, F_OK) == 0) ? 0 : O_CREAT; in changevol()
1532 m = (access(tape, F_OK) == 0) ? 0 : O_CREAT; in otape()
2310 m = (access(tape, F_OK) == 0) ? 0 : O_CREAT; in positiontape()
/illumos-gate/usr/src/cmd/backup/restore/
H A Dmain.c567 fd = open(name, O_CREAT|O_EXCL|O_RDWR, 0600); in set_tmpdir()
H A Dutilities.c581 O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE, perms)) < 0) { in safe_open()
/illumos-gate/usr/src/cmd/bnu/
H A Dcpmv.c74 if ((fd2 = open(temp_p, O_CREAT | O_TRUNC | O_WRONLY,
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c1687 bam_lock_fd = open(BAM_LOCK_FILE, O_CREAT|O_RDWR, LOCK_FILE_PERMS); in bam_lock()
2024 if ((cf->out.fdfile = open(cf->path, O_WRONLY | O_CREAT, 0644)) in setup_file()
3075 fd = open(path, O_RDWR|O_CREAT|O_TRUNC, FILE_STAT_MODE); in savenew()
4217 fd = open(testfile, O_RDWR|O_CREAT|O_EXCL, 0644); in is_readonly()
6993 O_RDWR|O_CREAT|O_TRUNC, 0644);
7561 fd = open(signfile, O_RDWR|O_CREAT|O_TRUNC, 0444);
/illumos-gate/usr/src/cmd/boot/fiocompress/
H A Dfiocompress.c163 fd = open(dstfile, O_WRONLY | O_CREAT | O_TRUNC, in setup_outfile()
/illumos-gate/usr/src/cmd/boot/installboot/i386/
H A Dinstallboot.c410 fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in install_esp_cb()
/illumos-gate/usr/src/cmd/cdrw/
H A Dbstream.c557 fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666); in open_au_write_stream()
586 fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666); in open_wav_write_stream()
613 fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666); in open_aur_write_stream()
630 fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666); in open_file_write_stream()
/illumos-gate/usr/src/cmd/cmd-crypto/decrypt/
H A Ddecrypt.c722 O_CREAT|O_WRONLY|O_TRUNC, 0644)) == -1) { in execute_cmd()
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dcommon.c1168 fd = open(filename, O_CREAT | O_EXCL, 0600); in verify_file()
H A Dexport.c531 fd = open(filename, O_CREAT | O_RDWR |O_TRUNC, 0600); in pk_export_pk11_keys()
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_main.c138 if ((fd = open(ADDROBJ_MAPPING_DB_FILE, O_CREAT|O_RDONLY, in ipmgmt_db_init()
176 if ((fd = open(IPMGMT_DOOR, O_CREAT|O_RDONLY, IPADM_FILE_MODE)) == -1) { in ipmgmt_door_init()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dasppp2pppd806 if (!sysopen(PWDLCK, $passwdlck, O_WRONLY|O_CREAT, 0600)) {
1478 } until sysopen(FH, $tempname, O_RDWR|O_CREAT|O_EXCL);
1495 } until sysopen(FH, $tempname, O_RDWR|O_CREAT|O_EXCL);
1581 if (sysopen(OUTFILE, $$filerec[0], O_WRONLY|O_CREAT|O_TRUNC, 0600)) {
H A Dmain.c509 pppdb = tdb_open(_PATH_PPPDB, 0, 0, O_RDWR|O_CREAT, 0644);
1937 errfd = open(_PATH_CONNERRS, O_WRONLY | O_APPEND | O_CREAT, 0600);
H A Doptions.c1948 fd = open(*argv, O_WRONLY | O_APPEND | O_CREAT | O_EXCL, 0644);

12345678910>>...17