13 .TH uopen 1 "5 May 2005" "Straylight/Edgeware" "Preload hacks"
15 uopen \- connect to Unix-domain sockets using open(2)
25 (by default, the calling user's shell, as determined by the
27 environment variable) in an environment where an attempt by the program
30 a Unix-domain socket results in a connection being made to the socket.
32 This might be used to implement a signature server which chooses a
33 random signature for newly-written news and mail messages. This can be
34 done by writing a simple program to choose and print a signature,
35 causing it to be invoked in response to connections to the socket
39 and running the message-drafting program under the control of
41 If we were willing to accept
43 as our signature generator, this can be done using, say
45 fw -d -p$HOME/.sigd.pid \e
46 "from unix:$HOME/.signature to exec[fortune -s]"
53 hack. It won't work on setuid programs.
55 The code is needlessly Linux-specific in some places.
57 It may not catch some uses of
59 or its friends from inside the Linux C library. It's a strange and
60 murky world in there, and glibc does all manner of strange linker tricks
61 to stop you messing with
68 Mark Wooding, <mdw@distorted.org.uk>