10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I need a script on which if i will pass the port number and the host name as external parameter then it should respond me if the port is open or not
thread moved (0 Replies)
Discussion started by: patitapaban
0 Replies
2. Solaris
Hi there,
I tried just open a port but I failed ;-(
# telnet localhost 9876
That should work so I did ...
# vi /etc/services
myport 9876/tcp # my port
# svcadm restart inetd
-> New pid, see ps - ef | grep inet
# netstat -an | grep 9876
No port 9876 is waiting ;(
#... (4 Replies)
Discussion started by: System
4 Replies
3. IP Networking
i want to kill a tcp connection by killing its pid
with netstat -an i got the tcp ip connection on port 5914
but when i type ps -a or ps-e there is not such process running on port 5914
is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies
4. Red Hat
Hi,
What iptables command do I need to run in order to open up the following port for incomming traffic on the following server:
# telnet 127.0.0.1 1521
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection... (3 Replies)
Discussion started by: Duffs22
3 Replies
5. UNIX for Advanced & Expert Users
hi experts,
I'm using Linux Centos kernel 2.6
Here is the print out of some my port :
tcp 0 0 127.0.0.1:10080 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:10081 0.0.0.0:* LISTEN
tcp 0 0... (4 Replies)
Discussion started by: justbow
4 Replies
6. Solaris
Dear members,
My release is open Solaris b103
1- How to know the opening port in my system
2- How to open a specific port like port number 53
3- How to closed the specific port like port number 53
Your feedback highly appreciated (10 Replies)
Discussion started by: dellroxy
10 Replies
7. IP Networking
Hi. I ran nmap on my server, and I get the following:
Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-19 16:33 EDT
Interesting ports on -------- (-----):
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
6881/tcp open bittorrent-tracker
The... (0 Replies)
Discussion started by: Rledley
0 Replies
8. AIX
Hi Guys,
i am trying to open a port in AIX.
but i am not able to get the command for this. AIX is not having the iptables file present.
So please any body can tell me how to open a port in AIX...
Thanks
sanju (2 Replies)
Discussion started by: sanju_d1231
2 Replies
9. Linux
How can I open a port on linux machine ??? (5 Replies)
Discussion started by: mm00123
5 Replies
10. Solaris
hi all,
My OS is solaris 8 with core system installation only. so far everything works fine. by i do some testing from my xp pc as client to nmap and scan opening port to my solaris. the result as below:
Initiating SYN Stealth Scan against 10.10.10.10 at 16:25
Discovered open port 21/tcp on... (3 Replies)
Discussion started by: hezry79
3 Replies
LEARN ABOUT CENTOS
pthread_key_delete
PTHREAD_KEY_DELETE(3P) POSIX Programmer's Manual PTHREAD_KEY_DELETE(3P)
PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME
pthread_key_delete - thread-specific data key deletion
SYNOPSIS
#include <pthread.h>
int pthread_key_delete(pthread_key_t key);
DESCRIPTION
The pthread_key_delete() function shall delete a thread-specific data key previously returned by pthread_key_create(). The thread-specific
data values associated with key need not be NULL at the time pthread_key_delete() is called. It is the responsibility of the application
to free any application storage or perform any cleanup actions for data structures related to the deleted key or associated thread-specific
data in any threads; this cleanup can be done either before or after pthread_key_delete() is called. Any attempt to use key following the
call to pthread_key_delete() results in undefined behavior.
The pthread_key_delete() function shall be callable from within destructor functions. No destructor functions shall be invoked by
pthread_key_delete(). Any destructor function that may have been associated with key shall no longer be called upon thread exit.
RETURN VALUE
If successful, the pthread_key_delete() function shall return zero; otherwise, an error number shall be returned to indicate the error.
ERRORS
The pthread_key_delete() function may fail if:
EINVAL The key value is invalid.
The pthread_key_delete() function shall not return an error code of [EINTR].
The following sections are informative.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
A thread-specific data key deletion function has been included in order to allow the resources associated with an unused thread-specific
data key to be freed. Unused thread-specific data keys can arise, among other scenarios, when a dynamically loaded module that allocated a
key is unloaded.
Conforming applications are responsible for performing any cleanup actions needed for data structures associated with the key to be
deleted, including data referenced by thread-specific data values. No such cleanup is done by pthread_key_delete(). In particular,
destructor functions are not called. There are several reasons for this division of responsibility:
1. The associated destructor functions used to free thread-specific data at thread exit time are only guaranteed to work correctly when
called in the thread that allocated the thread-specific data. (Destructors themselves may utilize thread-specific data.) Thus, they
cannot be used to free thread-specific data in other threads at key deletion time. Attempting to have them called by other threads at
key deletion time would require other threads to be asynchronously interrupted. But since interrupted threads could be in an arbitrary
state, including holding locks necessary for the destructor to run, this approach would fail. In general, there is no safe mechanism
whereby an implementation could free thread-specific data at key deletion time.
2. Even if there were a means of safely freeing thread-specific data associated with keys to be deleted, doing so would require that
implementations be able to enumerate the threads with non-NULL data and potentially keep them from creating more thread-specific data
while the key deletion is occurring. This special case could cause extra synchronization in the normal case, which would otherwise be
unnecessary.
For an application to know that it is safe to delete a key, it has to know that all the threads that might potentially ever use the key do
not attempt to use it again. For example, it could know this if all the client threads have called a cleanup procedure declaring that they
are through with the module that is being shut down, perhaps by setting a reference count to zero.
FUTURE DIRECTIONS
None.
SEE ALSO
pthread_key_create(), the Base Definitions volume of IEEE Std 1003.1-2001, <pthread.h>
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE
/The Open Group 2003 PTHREAD_KEY_DELETE(3P)