04-27-2008
7 More Discussions You Might Find Interesting
1. Programming
how does exec() do it? on successful call of exec() family of functions, they never return...
how to i emulate that.
assume the standard example,
execl("/bin/ls","ls",NULL);
now this would never return.
i m trying to emulate exec()'s never to return feature...
#include<unistd.h>... (4 Replies)
Discussion started by: c_d
4 Replies
2. Solaris
Had to reboot over 30 servers out of 70 or so during out of family code load. Still searching but may all have VxVM 3.5 in common. Our last window had similar outcome but on HPUX. I think it has to do with time outs and volume manager is offlining the devices. This just started happening. Anyone... (0 Replies)
Discussion started by: GaryP
0 Replies
3. UNIX for Dummies Questions & Answers
hello
is there a family tree, or words that would illustrate the family tree of,
Unix -> Linux
As i would understand Unix, it is a OS.
And Linux is a ?, is Linux a OS or a sub structure inside of the Unix OS ?.
Have you ever seen one of those family tree`s where ma and pa are shown at... (3 Replies)
Discussion started by: cowLips
3 Replies
4. Programming
Hi,
I am studying exec family of functions.Its man page says,it replaces the current process image with a new process image. If it replaces the binary,then after returning back,how does it get the previous parameters of the process which called exec?As replacing process image means replacing all... (1 Reply)
Discussion started by: Radha.Krishna
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am studying exec family of functions.Its man page says,it replaces the current process image with a new process image. If it replaces the binary,then after returning back,how does it get the previous parameters of the process which called exec?As replacing process image means replacing... (5 Replies)
Discussion started by: Radha.Krishna
5 Replies
6. AIX
Folks,
Again a very silly question :D Could someone tell me, how to determine the power family(540, 520, 575, 595 etc) just by looking into the model # info from prtconf/lsconf o/p of the lpar?
I dont want run a search on any search engine to find out the power family or hit IBM website to... (3 Replies)
Discussion started by: thisissouvik
3 Replies
7. Programming
# Erroneous question, so can be removed. (0 Replies)
Discussion started by: beginnerboy
0 Replies
LEARN ABOUT SUNOS
socketpair
socketpair(3SOCKET) Sockets Library Functions socketpair(3SOCKET)
NAME
socketpair - create a pair of connected sockets
SYNOPSIS
cc [ flag ... ] file ... -lsocket -lnsl [ library ... ]
#include <sys/types.h>
#include <sys/socket.h>
int socketpair(int domain, int type, int protocol, int sv[2]);
DESCRIPTION
The socketpair() library call creates an unnamed pair of connected sockets in the specified address family domain, of the specified type,
that uses the optionally specified protocol. The descriptors that are used in referencing the new sockets are returned in sv[0] and sv[1].
The two sockets are indistinguishable.
RETURN VALUES
socketpair() returns -1 on failure and 0 on success.
ERRORS
The call succeeds unless:
EAFNOSUPPORT The specified address family is not supported on this machine.
EMFILE Too many descriptors are in use by this process.
ENOMEM There was insufficient user memory for the operation to complete.
ENOSR There were insufficient STREAMS resources for the operation to complete.
EOPNOTSUPP The specified protocol does not support creation of socket pairs.
EPROTONOSUPPORT The specified protocol is not supported on this machine.
EACCES The process does not have appropriate privileges.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
pipe(2), read(2), write(2), socket.h(3HEAD), attributes(5)
NOTES
This call is currently implemented only for the AF_UNIX address family.
SunOS 5.10 10 Jan 2001 socketpair(3SOCKET)