Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tis_read_trylock(3) [osf1 man page]

tis_read_trylock(3)					     Library Functions Manual					       tis_read_trylock(3)

NAME
tis_read_trylock - Attempts to acquire a read-write lock for read access. Does not wait if the lock cannot be immediately granted. LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <tis.h> int tis_read_trylock( tis_rwlock_t *lock); STANDARDS
None PARAMETERS
Address of the read-write lock to be acquired. DESCRIPTION
This routine attempts to acquire a read-write lock for read access. If the lock cannot be granted, the routine returns without waiting. When a thread calls this routine, an attempt is made to immediately acquire the lock for read access. If the lock is acquired, zero (0) is returned. If a holder of the lock for write access exists, [EBUSY] is returned. If the lock cannot be acquired for read access immediately, the calling program does not wait for the lock to be released. RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion; the lock was acquired. The lock is being held for write access. The lock for read access was not acquired. ERRORS
None RELATED INFORMATION
Functions: tis_read_lock(3), tis_read_unlock(3), tis_rwlock_destroy(3), tis_rwlock_init(3), tis_write_lock(3), tis_write_trylock(3), tis_write_unlock(3) Manuals: Guide to DECthreads and Programmer's Guide delim off tis_read_trylock(3)

Check Out this Related Man Page

tis_write_lock(3)					     Library Functions Manual						 tis_write_lock(3)

NAME
tis_write_lock - Acquires the specified read-write lock for write access. LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <tis.h> int tis_write_lock( tis_rwlock_t *lock); STANDARDS
None PARAMETERS
Address of the read-write lock to be acquired for write access. DESCRIPTION
This routine acquires a read-write lock for write access. This routine waits for any other active locks (for either read or write access) to be unlocked before this acquisition request is granted. This routine returns when the specified read-write lock is acquired for write access. RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion. The value specified by lock is not a valid read-write lock. ERRORS
None RELATED INFORMATION
Functions: tis_read_lock(3), tis_read_trylock(3), tis_read_unlock(3), tis_rwlock_destroy(3), tis_rwlock_init(3), tis_write_trylock(3), tis_write_unlock(3) Manuals: Guide to DECthreads and Programmer's Guide delim off tis_write_lock(3)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

lock file!

I found a lock file like this lrwxrwxr-x 1 sskb apollo 16 Oct 22 22:00 lock -> hostname:2747 (pl. note that hostname is a number like 123.4.5.6) but this was not shown in the file manager eventhough I had selected to show the hidden files. I could not even read the... (4 Replies)
Discussion started by: sskb
4 Replies

2. UNIX for Dummies Questions & Answers

setting file access restriction

is there a way to "lock" an entire directory to where it currently resides for securtiy purposes? only certain users can access these data, however i want to prevent the possibility of transferring/duplicating the data to where other unauthorized users can access it. Any one who knows a good... (4 Replies)
Discussion started by: Deanne
4 Replies

3. UNIX for Advanced & Expert Users

How to lock file system access

Hi Everybody.. I am using Moblin V2 which has nautilus file manager the one which is also used in Ubuntu. I want to lock the access to file system such that i can only browse my home folder not other locations like /, /usr, /bin and all. Or i want to create a partition of 10 or 15 GB so... (1 Reply)
Discussion started by: lokeshsingla
1 Replies

4. UNIX for Dummies Questions & Answers

How to lock file system access

Hi Everybody.. I am using Moblin V2 which has nautilus file manager the one which is also used in Ubuntu. I want to lock the access to file system such that i can only browse my home folder not other locations like /, /usr, /bin and all. Or i want to create a partition of 10 or 15 GB so... (4 Replies)
Discussion started by: lokeshsingla
4 Replies

5. Shell Programming and Scripting

lock on files

Hi, I want to write a code where in the file once taken genrates a lock number and other developer/user cannot take the file to make any changes in it. He gets the file only as read only. (2 Replies)
Discussion started by: rac
2 Replies

6. Ubuntu

Help me to lock my system.

Hi All! I am not able to lock my Ubuntu 12.04 LXDE. Can anybody tell me the shortcut to lock the system. I have tried all conventional keyboard shortcuts as well as buttons. (2 Replies)
Discussion started by: nixhead
2 Replies

7. UNIX for Dummies Questions & Answers

Does Shell Scripting in a Resume carry value?

Hi All, I have learnt a lot by getting help from these forums. By the knowledge acquired, i have done the following automations which have helped prevent financial loss to my client. Detecting when the listener goes down - Earlier, a downstream team used to inform us whenever they were not... (2 Replies)
Discussion started by: srkmish
2 Replies