/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | lockfile.c | 18 SM_RCSID("@(#)$Id: lockfile.c,v 8.21 2003/11/10 22:57:38 ca Exp $") 39 lockfile(fd, filename, ext, type) function
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | ld_file.c | 108 char lockfile[MAXPATHLEN], *err, *space, *target; local 120 (void) snprintf(lockfile, MAXPATHLEN, "%s.lock", depend_file); 121 if ((err = file_lock(depend_file, lockfile, 0))) { 138 (void) unlink(lockfile);
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | policy_db.h | 55 FILE *lockfile; member in struct:_osa_adb_db_lock_ent_t 81 krb5_error_code osa_adb_create_db(char *filename, char *lockfile, int magic); 82 krb5_error_code osa_adb_destroy_db(char *filename, char *lockfile, int magic); 86 char *lockfile, int magic);
|
/illumos-gate/usr/src/cmd/make/lib/makestate/ |
H A D | ld_file.c | 103 char lockfile[MAXPATHLEN], * err, * space, * target; local 115 (void) sprintf(lockfile, "%s.lock", depend_file); 116 if ((err = file_lock(depend_file, lockfile, 0))) { 133 (void) unlink(lockfile);
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | lock_update.c | 66 static int lockfile; variable 130 lockfile = open(LOCKFILE, O_RDWR|O_CREAT, 0600); 131 if (lockfile != -1) { 132 if (lockf(lockfile, F_LOCK, 0) == 0) { 133 if (fstat(lockfile, &fdata) == 0) { 137 if ((write_cnt = write(lockfile, buff, 152 lockf(lockfile, F_ULOCK, 0); 153 close(lockfile); 160 lockf(lockfile, F_ULOCK, 0); 161 close(lockfile); [all...] |
/illumos-gate/usr/src/cmd/ypcmd/shared/ |
H A D | lockmap.c | 61 static int lockfile; variable 185 lockfile = open(LOCKFILE, O_RDWR|O_CREAT, 0600); 186 if (lockfile != -1) { 187 if (lockf(lockfile, F_LOCK, 0) == 0) { 188 if (fstat(lockfile, &fdata) == 0) { 192 if ((write_cnt = write(lockfile, buff, 205 lockf(lockfile, F_ULOCK, 0); 206 close(lockfile); 213 lockf(lockfile, F_ULOCK, 0); 214 close(lockfile); [all...] |
/illumos-gate/usr/src/lib/krb5/kadm5/ |
H A D | adb.h | 43 FILE *lockfile; member in struct:_osa_adb_db_lock_ent_t 108 osa_adb_ret_t osa_adb_create_db(char *filename, char *lockfile, int magic); 109 osa_adb_ret_t osa_adb_destroy_db(char *filename, char *lockfile, int magic); 115 char *lockfile, int magic);
|
/illumos-gate/usr/src/cmd/lms/ |
H A D | main.cpp | 154 int lock_is_real(const char *lockfile) argument 161 lfp = open(lockfile, O_RDONLY); 165 lockfile, errno, strerror(errno)); 173 lockfile, errno, strerror(errno)); 182 syslog(LOG_ERR, "bad pid in lock file %s", lockfile); 200 * lockfile - name of a file to be created 204 int lock_pid_file(const char *lockfile) argument 214 if (lockfile && lockfile[0]) { 216 lfp = open(lockfile, O_RDW [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | loadsave.c | 320 lockfile(int fd, int op) function 477 if (lockfile(fileno(fp), F_RDLCK)) { 518 (void) lockfile(fileno(fp), F_UNLCK); 566 if (lockfile(fileno(fp), F_WRLCK)) { 607 (void) lockfile(fileno(fp), F_UNLCK); 643 if (lockfile(fileno(fp), F_RDLCK)) { 654 (void) lockfile(fileno(fp), F_UNLCK); 660 (void) lockfile(fileno(fp), F_UNLCK); 668 if (lockfile(fileno(fp), F_WRLCK)) { 675 (void) lockfile(filen [all...] |
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | yppasswdd.c | 138 char lockfile[FILENAME_MAX], adjunct_file[FILENAME_MAX]; variable 153 strcpy(lockfile, DEFDIR ".pwd.lock"); 178 strcpy(lockfile, argv[i]); 182 strcat(lockfile, ".pwd.lock"); 187 strcat(lockfile, "/.pwd.lock");
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 650 char *lockfile; local 653 lockfile = DA_DB_LOCK; 655 lockfile = file; 662 dprintf("locking %s\n", lockfile); 665 (lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1) { 670 (void) _newdac(lockfile, DA_UID, DA_GID, 0600);
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | devalloc.c | 1179 char *lockfile; local 1184 lockfile = DA_DB_LOCK; 1189 lockfile = path; 1192 if ((lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1) 1209 (void) utime(lockfile, NULL);
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.c | 3078 char lockfile[PATH_MAX]; local 3086 get_db_path(hdp, DB_LOCK, lockfile, sizeof (lockfile)); 3094 again: if ((fd = open(lockfile,
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | conf.c | 3531 lockfile(fd, filename, ext, type) function 3560 sm_dprintf("lockfile(%s%s, action=%d, type=%d): ", 3608 sm_dprintf("lockfile(%s%s, type=%o): ", filename, ext, type);
|