Lines Matching defs:lock
366 /* Values for lock types. */
1166 case 120: /* get lock */
1169 case 121: /* set lock */
1172 case 122: /* wait for lock */
1542 struct flock lock;
1543 memset(&lock, 0, sizeof(lock)); /* Make sure unused fields are zero. */
1545 lock.l_type = get_C_long(taskData, DEREFHANDLE(args)->Get(1));
1546 lock.l_whence = get_C_long(taskData, DEREFHANDLE(args)->Get(2));
1547 lock.l_start = get_C_long(taskData, DEREFHANDLE(args)->Get(3));
1548 lock.l_len = get_C_long(taskData, DEREFHANDLE(args)->Get(4));
1549 lock.l_pid = get_C_long(taskData, DEREFHANDLE(args)->Get(5));
1550 if (fcntl(strm->device.ioDesc, cmd, &lock) < 0)
1553 Handle typeHandle = Make_fixed_precision(taskData, lock.l_type);
1554 Handle whenceHandle = Make_fixed_precision(taskData, lock.l_whence);
1555 Handle startHandle = Make_arbitrary_precision(taskData, (POLYUNSIGNED)lock.l_start); // Position.int
1556 Handle lenHandle = Make_arbitrary_precision(taskData, (POLYUNSIGNED)lock.l_len); // Position.int
1557 Handle pidHandle = Make_fixed_precision(taskData, lock.l_pid);