01-29-2012
Solaris 9 when I was still in university, spent one of the sem break learning Solaris and finally took the CX105 test last year. It took 3 months and 10 angry emails before I receive my certification
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I m working on many Linux servers in my project. But i am unable to know which Linux Distribution i am using Like whether i am using SUSE or REDHAT or MONDRAKE. I tried with "uname" command. But it does not help me. Please provide me the command if u know.
Regards,
Basavaraja KC (3 Replies)
Discussion started by: BasavarajaKC
3 Replies
2. UNIX for Dummies Questions & Answers
Hey
I am right now working on an old Compaq computer, and because I have a newer one I thought of installing Linux on this one. The thing is that I don't know which Linux distribution that would work with a minimum of lag. My computer specifications is:
Compaq Presario 7000
Intel Pentium... (7 Replies)
Discussion started by: Sixmax
7 Replies
3. Shell Programming and Scripting
Hi,
I m working on many Linux servers in my project. But i am unable to know which Linux Distribution i am using Like whether i am using SUSE or REDHAT or MONDRAKE. I tried with "uname" command. But it does not help me. Please provide me the command if u know.
Regards,
Basavaraja KC (5 Replies)
Discussion started by: BasavarajaKC
5 Replies
4. Programming
Hi,
Can anyone please tell me, what is the best Linux distribution for Software Development.
Thanks,
Philip. (4 Replies)
Discussion started by: Phi01
4 Replies
5. Linux
Hi
I consider changing operating system onto Linux. But I'm not sure what kind of distribution should I use :
- Red Hat
- Suse
- Ubuntu
- Debian
- Fedora
Operating system will be operating on the notebook to replace Win XP and must be stable version with all drivers to hardware (WiFi... (7 Replies)
Discussion started by: presul
7 Replies
6. Linux
Dear all
i am new to Linux, i need a Linux OS that have been "qt development and lesstif" together.
Regards (5 Replies)
Discussion started by: mkhorami76
5 Replies
7. Fedora
Hi,
i'm currently part of an apprenticeship becoming a IT specialist.
Because I'm already an electronic technician (finished apprenticeship) I can do this one in 2 years (normally you need 3).
Thing is, in school they started out with basic unix stuff (working with the shell) in the first... (3 Replies)
Discussion started by: Dr. Nick
3 Replies
LEARN ABOUT OPENSOLARIS
sem_close
sem_close(3C) Standard C Library Functions sem_close(3C)
NAME
sem_close - close a named semaphore
SYNOPSIS
#include <semaphore.h>
int sem_close(sem_t *sem);
DESCRIPTION
The sem_close() function is used to indicate that the calling process is finished using the named semaphore indicated by sem. The effects
of calling sem_close() for an unnamed semaphore (one created by sem_init(3C)) are undefined. The sem_close() function deallocates (that is,
make available for reuse by a subsequent sem_open(3C) by this process) any system resources allocated by the system for use by this process
for this semaphore. The effect of subsequent use of the semaphore indicated by sem by this process is undefined. If the semaphore has not
been removed with a successful call to sem_unlink(3C), then sem_close() has no effect on the state of the semaphore. If the sem_unlink(3C)
function has been successfully invoked for name after the most recent call to sem_open(3C) with O_CREAT for this semaphore, then when all
processes that have opened the semaphore close it, the semaphore is no longer be accessible.
RETURN VALUES
If successful, sem_close() returns 0, otherwise it returns -1 and sets errno to indicate the error.
ERRORS
The sem_close() function will fail if:
EINVAL The sem argument is not a valid semaphore descriptor.
ENOSYS The sem_close() function is not supported by the system.
USAGE
The sem_close() function should not be called for an unnamed semaphore initialized by sem_init(3C).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
|ATTRIBUTE TYPE |ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
|Standard |See standards(5). |
+-----------------------------+-----------------------------+
SEE ALSO
sem_init(3C), sem_open(3C), sem_unlink(3C), attributes(5), standards(5)
NOTES
Solaris 2.6 was the first release to support the Asynchronous Input and Output option. Prior to this release, this function always returned
-1 and set errno to ENOSYS.
SunOS 5.11 5 Feb 2008 sem_close(3C)