From owner-freebsd-current Thu Jan 29 10:14:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA20099 for current-outgoing; Thu, 29 Jan 1998 10:14:38 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from sendero.simon-shapiro.org (sendero-fxp0.Simon-Shapiro.ORG [206.190.148.34]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA20092 for ; Thu, 29 Jan 1998 10:14:34 -0800 (PST) (envelope-from shimon@sendero-fxp0.simon-shapiro.org) Received: (qmail 503 invoked by uid 1000); 29 Jan 1998 18:15:40 -0000 Message-ID: X-Mailer: XFMail 1.3-alpha-011998 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Thu, 29 Jan 1998 10:15:40 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe current" I am on shaky ground here, so be kind to me: I am trying to get a very new PostgreSQL snapshot to work. One of the things it does is create a UNIX Socket in /tmp. It uses a template to create the ``filename'': #define UNIXSOCK_PATH(sun,port) \ (sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)) + \ sizeof ((sun).sun_family)) This seems to work OK (I traced it in the RDBMS code), up to the bind syscall. The port is 5432, and the socket gets created as: srwx------ 1 pgsql bin 0 Jan 27 16:18 /tmp/.s.PGSQL.543 The bind(2) call is: ---------- Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.799.2313