Searched refs:lockfd (Results 1 - 7 of 7) sorted by relevance

/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_setup.c139 #define META_LOCK_FD(sp) ((sp)->lockfd)
151 int lockfd = META_LOCK_FD(sp); local
155 if (lockfd >= 0)
157 assert(lockfd == MD_NO_LOCK);
160 if ((lockfd = open(lockname, O_WRONLY, 0)) < 0) {
162 lockfd = MD_NO_LOCK;
169 if ((lockfd = open(lockname, (O_WRONLY|O_CREAT),
174 if (fchmod(lockfd, 0644) != 0) {
184 META_LOCK_FD(sp) = lockfd;
191 if (lockfd >
227 int lockfd = META_LOCK_FD(sp); local
254 int lockfd; local
307 int lockfd; local
357 int lockfd; local
[all...]
H A Dmeta_name.c665 sp->lockfd = MD_NO_LOCK;
730 sp->lockfd = MD_NO_LOCK;
H A Dmeta_import.c4566 sp->lockfd = MD_NO_LOCK;
/osnet-11/usr/src/lib/pam_modules/authtok_check/
H A Ddict.c35 static int lockfd = -1; variable
69 if ((lockfd = open(dblock, O_WRONLY|O_CREAT|O_EXCL, 0400)) == -1) {
71 lockfd = open(dblock, O_WRONLY);
72 if (lockfd == -1) {
83 retval = fcntl(lockfd, F_SETLK, &flock);
106 if (lockfd != -1) {
108 (void) fcntl(lockfd, F_SETLK, &flock);
109 (void) close(lockfd);
110 lockfd = -1;
/osnet-11/usr/src/lib/libdevalloc/common/
H A Dlibdevalloc.c1230 int lockfd = -1; local
1249 if ((lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1)
1253 (void) fchown(lockfd, DA_UID, DA_GID);
1255 if (lseek(lockfd, (off_t)0, SEEK_SET) == -1) {
1257 (void) close(lockfd);
1264 ret = lockf(lockfd, F_TLOCK, 0);
1267 return (lockfd);
1271 (void) close(lockfd);
1300 int lockfd = -1; local
1317 if ((lockfd
1491 int rc = 0, lockfd = 0, tmpfd = 0; local
1559 int lockfd = -1; local
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetutx.c1081 int lockfd; local
1084 if ((lockfd = open(utmpxfile, O_RDWR|O_CREAT, 0644)) < 0)
1087 if (lockf(lockfd, F_LOCK, 0) < 0) {
1088 (void) close(lockfd);
1093 fd = lockfd;
/osnet-11/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c8327 get_lock_owner(const char *zone_name, int lockfd) argument
8338 if ((fcntl(lockfd, F_GETLK, &flock) < 0)) {
8379 int lockfd; local
8398 if ((lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
8408 if ((owner = get_lock_owner(zone_name, lockfd)) == -1) {
8409 (void) close(lockfd);
8420 (void) close(lockfd);
8425 (void) close(lockfd);
8440 if (fcntl(lockfd, F_SETLK, &flock) < 0) {
8443 (void) close(lockfd);
8458 int lockfd; local
[all...]

Completed in 70 milliseconds