Sponsored Content
Full Discussion: Why close my ask?
Contact Us Post Here to Contact Site Administrators and Moderators Why close my ask? Post 302585229 by Neo on Wednesday 28th of December 2011 02:10:40 AM
Old 12-28-2011
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

How to close a thread

Hi Dumb question I know but I am new to this forum and have looked every where on this site but can not find "How to close" a thread I have posted.... Please advise on the procedures. Thanks Andrek (3 Replies)
Discussion started by: Andrek
3 Replies

2. HP-UX

Close Socket at HP-UX

Hi all, I have a HP-UX 11.23 that have a Server establishing connections on port 8888 . The problem is that when i need to stop and restart the Server, the connections mantain the same state and i need to wait about 20-30 minutes before all connections finishes. The connections remain at... (2 Replies)
Discussion started by: Renato Gregio
2 Replies

3. UNIX and Linux Applications

any way to close socket

I have written a socker program. I have executed that program many times without closing the socket. So I want to find which all sockets binded with which file descriptor. Is there any way to close those socket, which have been opened in that program's execution. please help me!.. (3 Replies)
Discussion started by: pa.chidhambaram
3 Replies

4. Forum Support Area for Unregistered Users & Account Problems

How to close a post

Hi, Pls let me know how i can close a thread if i already find answer to my question. Thanks, Am (1 Reply)
Discussion started by: am_yadav
1 Replies

5. Post Here to Contact Site Administrators and Moderators

How to close a topic?

No wonder that so few topics are closed. Looking for the fourth time as I do not find! (4 Replies)
Discussion started by: popescu1954
4 Replies

6. Post Here to Contact Site Administrators and Moderators

How to close account

Hi, I want to close my account and cannot find any relevant links in the user control panel or account preferences. Can someone point me in the right direction, or a moderator/admin close this account? Thanks. (1 Reply)
Discussion started by: glen.barber
1 Replies

7. Programming

when parent process close, how to close the child?

can someone provide an example, where if the parent process quits for any reason, then the child process will also close? (3 Replies)
Discussion started by: omega666
3 Replies

8. Programming

Close browser

I just would like to have a javascript function ( for user logout ) which can close the browser that the user run this function , for example , if the user is using IE to click this function , then close ALL IE browser , is it possible ? if it can not be make , could the function close ALL opened... (2 Replies)
Discussion started by: ust3
2 Replies

9. Post Here to Contact Site Administrators and Moderators

Please close this account

Hi admins and moderators! I would request you to please close this account as I will not be using it ever. Thank you all. Ravi Singh (1 Reply)
Discussion started by: Ravi Singh
1 Replies

10. Post Here to Contact Site Administrators and Moderators

Please close the following threads:)

Hello Admin, The issue that i posted in the following threads has been resolved, https://www.unix.com/ubuntu/266128-how-access-website-without-port-ubuntu-14-04-a.html https://www.unix.com/red-hat/265635-error-while-extending-logicalvolume.html Kindly close the threads.Thanks:) (1 Reply)
Discussion started by: gull05
1 Replies
sem_close(3RT)						    Realtime Library Functions						    sem_close(3RT)

NAME
sem_close - close a named semaphore SYNOPSIS
cc [ flag... ] file... -lrt [ library... ] #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(3RT)) are undefined. The sem_close() function deallocates (that is, make available for reuse by a subsequent sem_open(3RT) 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(3RT), then sem_close() has no effect on the state of the semaphore. If the sem_unlink(3RT) function has been successfully invoked for name after the most recent call to sem_open(3RT) with O_CREAT for this sema- phore, 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(3RT). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
sem_init(3RT), sem_open(3RT), sem_unlink(3RT), 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.10 28 Jun 2002 sem_close(3RT)
All times are GMT -4. The time now is 03:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy