From: Erik A. <er...@aa...> - 2001-10-23 23:03:46
|
On 23 October 2001, Raymond Toy <to...@rt...> wrote: > >>>>> "Sam" == Sam Steingold <sd...@gn...> writes: > Sam> at any rate, unless someone tells me how do I know whether "/foo/bar" is > Sam> a socket, there is nothing I could do. > > On Solaris, there's a S_ISSOCK (see stat(5)). I assume this is how ls > knows that /tmp/.X11-unix/X0 is a socket and prints a = after it. Linux has this as well. I see this on our Solaris boxen, too. I wonder what version they added it? -- # Erik Arneson <er...@aa...> AARG Net <http://www.aarg.net/> # # GPG Key ID: 1024D/43AD6AB8 <http://erik.arneson.org/> # # "Resistance to tyrants is obedience to God!" - Thomas Jefferson # |