From owner-freebsd-standards@FreeBSD.ORG Sun Jan 7 20:39:02 2007 Return-Path: X-Original-To: freebsd-standards@FreeBSD.ORG Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 900E716A407; Sun, 7 Jan 2007 20:39:02 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 0804A13C43E; Sun, 7 Jan 2007 20:39:01 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (mzsxer@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l07K4Ihk053502; Sun, 7 Jan 2007 21:04:23 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l07K4Iko053501; Sun, 7 Jan 2007 21:04:18 +0100 (CET) (envelope-from olli) Date: Sun, 7 Jan 2007 21:04:18 +0100 (CET) Message-Id: <200701072004.l07K4Iko053501@lurza.secnetix.de> From: Oliver Fromme To: freebsd-standards@FreeBSD.ORG, jau@iki.fi, bug-followup@FreeBSD.ORG In-Reply-To: <200701051108.l05B8Zl8008051@www.freebsd.org> X-Newsgroups: list.freebsd-standards User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Sun, 07 Jan 2007 21:04:24 +0100 (CET) Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-standards@FreeBSD.ORG, jau@iki.fi, bug-followup@FreeBSD.ORG List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 20:39:02 -0000 Jukka Ukkonen wrote: > This is SUS compatibility only. > This was not strictly required by POSIX at the time it was implemented > for SUS, but since SUS clearly is a major driver in the POSIX activities, > tcgetsid() might be an obvious future extension to POSIX anyhow. > And furthermore there is no sane reason for sticking to POSIX only, > if the extension needed to become better compatible with other major > specifications happens to be this easy. In fact, tcgetsid() is part of IEEE Std 1003.1-2001 a.k.a. POSIX-2001, which is equivalent to SUSv3. The proposed implementation looks good to me (we would also need an appropriate manual page, though). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "I invented Ctrl-Alt-Delete, but Bill Gates made it famous." -- David Bradley, original IBM PC design team From owner-freebsd-standards@FreeBSD.ORG Sun Jan 7 20:41:05 2007 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CCB0E16A417 for ; Sun, 7 Jan 2007 20:41:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B96E213C448 for ; Sun, 7 Jan 2007 20:41:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l07KeHmh092875 for ; Sun, 7 Jan 2007 20:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l07KeHO4092874; Sun, 7 Jan 2007 20:40:17 GMT (envelope-from gnats) Date: Sun, 7 Jan 2007 20:40:17 GMT Message-Id: <200701072040.l07KeHO4092874@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Oliver Fromme Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Fromme List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 20:41:05 -0000 The following reply was made to PR standards/107561; it has been noted by GNATS. From: Oliver Fromme To: freebsd-standards@FreeBSD.ORG, jau@iki.fi, bug-followup@FreeBSD.ORG Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() Date: Sun, 7 Jan 2007 21:04:18 +0100 (CET) Jukka Ukkonen wrote: > This is SUS compatibility only. > This was not strictly required by POSIX at the time it was implemented > for SUS, but since SUS clearly is a major driver in the POSIX activities, > tcgetsid() might be an obvious future extension to POSIX anyhow. > And furthermore there is no sane reason for sticking to POSIX only, > if the extension needed to become better compatible with other major > specifications happens to be this easy. In fact, tcgetsid() is part of IEEE Std 1003.1-2001 a.k.a. POSIX-2001, which is equivalent to SUSv3. The proposed implementation looks good to me (we would also need an appropriate manual page, though). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "I invented Ctrl-Alt-Delete, but Bill Gates made it famous." -- David Bradley, original IBM PC design team From owner-freebsd-standards@FreeBSD.ORG Sun Jan 7 21:27:06 2007 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2E5BD16A40F for ; Sun, 7 Jan 2007 21:27:06 +0000 (UTC) (envelope-from "") Received: from shelbyville.concord.org (shelbyville.concord.org [63.138.152.75]) by mx1.freebsd.org (Postfix) with ESMTP id CCECF13C44C for ; Sun, 7 Jan 2007 21:27:03 +0000 (UTC) (envelope-from "") Received: from fc.concord.org (fc.concord.org [63.138.152.60]) by shelbyville.concord.org (8.13.8/8.13.8) with ESMTP id l07KdAt8005102 for ; Sun, 7 Jan 2007 15:39:10 -0500 Message-id: Date: Sun, 07 Jan 2007 15:39:22 -0500 X-Mailer: FirstClass 8.2 (build 8.094) X-FC-Icon-ID: 13401 X-FC-SERVER-TZ: 181273068 X-FC-MachineGenerated: true To: freebsd-standards@freebsd.org From: Gateway@shelbyville.concord.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: NDN: Re: standards/107561: Missing SUS function tcgetsid() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 21:27:06 -0000 Sorry. Your message could not be delivered to: library,Concord Consortium (The name was not found at the remote site. Check that the name has been entered correctly.) From owner-freebsd-standards@FreeBSD.ORG Sun Jan 7 21:40:19 2007 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F19F16A40F for ; Sun, 7 Jan 2007 21:40:19 +0000 (UTC) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (khavrinen.csail.mit.edu [128.30.28.20]) by mx1.freebsd.org (Postfix) with ESMTP id 52EB313C467 for ; Sun, 7 Jan 2007 21:40:19 +0000 (UTC) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (localhost.csail.mit.edu [127.0.0.1]) by khavrinen.csail.mit.edu (8.13.6/8.13.6) with ESMTP id l07L5FWQ007744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.csail.mit.edu issuer=Client+20CA) for ; Sun, 7 Jan 2007 16:05:15 -0500 (EST) (envelope-from wollman@khavrinen.csail.mit.edu) Received: (from wollman@localhost) by khavrinen.csail.mit.edu (8.13.6/8.13.6/Submit) id l07L5F0P007741; Sun, 7 Jan 2007 16:05:15 -0500 (EST) (envelope-from wollman) From: Garrett Wollman MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17825.24715.553352.395317@khavrinen.csail.mit.edu> Date: Sun, 7 Jan 2007 16:05:15 -0500 To: freebsd-standards@freebsd.org In-Reply-To: <200701072004.l07K4Iko053501@lurza.secnetix.de> References: <200701051108.l05B8Zl8008051@www.freebsd.org> <200701072004.l07K4Iko053501@lurza.secnetix.de> X-Mailer: VM 7.17 under 21.4 (patch 20) "Double Solitaire" XEmacs Lucid X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-3.0 (khavrinen.csail.mit.edu [127.0.0.1]); Sun, 07 Jan 2007 16:05:15 -0500 (EST) Subject: Re: standards/107561: Missing SUS function tcgetsid() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 21:40:19 -0000 < said: > In fact, tcgetsid() is part of IEEE Std 1003.1-2001 a.k.a. > POSIX-2001, which is equivalent to SUSv3. That is not entirely true. IEEE Std.1003.1-2001 describes a set of base interfaces and several sets of layered options which complement the base interfaces. SUSv3 uses the same document, but some of the interfaces which are optional in 1003.1-2001 are mandatory in SUSv3. Most significantly, this includes the XSI option, which standardizes old System V (and X/Open) mistakes. -GAWollman From owner-freebsd-standards@FreeBSD.ORG Mon Jan 8 08:51:56 2007 Return-Path: X-Original-To: freebsd-standards@FreeBSD.ORG Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3AAFF16A40F; Mon, 8 Jan 2007 08:51:56 +0000 (UTC) (envelope-from jau@jau.iki.fi) Received: from jau.iki.fi (ip193-64-26-117.cust.eunet.fi [193.64.26.117]) by mx1.freebsd.org (Postfix) with ESMTP id B40F313C458; Mon, 8 Jan 2007 08:51:55 +0000 (UTC) (envelope-from jau@jau.iki.fi) Received: from jau.iki.fi (localhost [127.0.0.1]) by jau.iki.fi (8.13.8/8.13.8) with ESMTP id l088XrPM056527; Mon, 8 Jan 2007 10:33:53 +0200 (EET) (envelope-from jau@jau.iki.fi) Received: (from jau@localhost) by jau.iki.fi (8.13.8/8.13.8/Submit) id l088XqFr056526; Mon, 8 Jan 2007 10:33:52 +0200 (EET) (envelope-from jau) Posted-Date: Mon, 8 Jan 2007 10:33:52 +0200 (EET) Message-Id: <200701080833.l088XqFr056526@jau.iki.fi> To: freebsd-standards@FreeBSD.ORG, jau@iki.fi, bug-followup@FreeBSD.ORG Date: Mon, 8 Jan 2007 10:33:52 +0200 (EET) In-Reply-To: <200701072004.l07K4Iko053501@lurza.secnetix.de> from "Oliver Fromme" at Jan 7, 7 09:04:18 pm From: jau@iki.fi (Jukka A. Ukkonen) Sender: jau@iki.fi Latin-Date: dies Lunae VIII Ianuarie a.d. MMVII Organization: Private person OS-Platform: FreeBSD Phone: +358-9-6215280 (home) / +358-500-606671 (gsm) Content-Conversion: prohibited X-Mailer: ELM [version 2.4 PL25+pgp] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jau@iki.fi List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 08:51:56 -0000 Quoting Oliver Fromme: > > In fact, tcgetsid() is part of IEEE Std 1003.1-2001 a.k.a. > POSIX-2001, which is equivalent to SUSv3. Oops! I did not notice that. > The proposed implementation looks good to me (we would > also need an appropriate manual page, though). Right, I will try to remember to provide also a manual page some time in not so distant future. Cheers, // jau .--- ..- -.- -.- .- .- .-.-.- ..- -.- -.- --- -. . -. / Jukka A. Ukkonen, Oxit Ltd, Finland /__ M.Sc. (sw-eng & cs) (Phone) +358-500-606-671 / Internet: Jukka.Ukkonen(a)Oxit.Fi (Home) +358-9-6215-280 / Internet: jau(a)iki.fi v .--- .- ..- ...-.- .. -.- .. .-.-.- ..-. .. + + + + My opinions are mine and mine alone, not my employers. + + + + From owner-freebsd-standards@FreeBSD.ORG Mon Jan 8 09:00:37 2007 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9469316A492 for ; Mon, 8 Jan 2007 09:00:37 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 44EA713C442 for ; Mon, 8 Jan 2007 09:00:37 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0890a9Y006620 for ; Mon, 8 Jan 2007 09:00:36 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0890aHx006619; Mon, 8 Jan 2007 09:00:36 GMT (envelope-from gnats) Date: Mon, 8 Jan 2007 09:00:36 GMT Message-Id: <200701080900.l0890aHx006619@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: jau@iki.fi (Jukka A. Ukkonen) Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Jukka A. Ukkonen" List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 09:00:37 -0000 The following reply was made to PR standards/107561; it has been noted by GNATS. From: jau@iki.fi (Jukka A. Ukkonen) To: freebsd-standards@FreeBSD.ORG, jau@iki.fi, bug-followup@FreeBSD.ORG Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() Date: Mon, 8 Jan 2007 10:33:52 +0200 (EET) Quoting Oliver Fromme: > > In fact, tcgetsid() is part of IEEE Std 1003.1-2001 a.k.a. > POSIX-2001, which is equivalent to SUSv3. Oops! I did not notice that. > The proposed implementation looks good to me (we would > also need an appropriate manual page, though). Right, I will try to remember to provide also a manual page some time in not so distant future. Cheers, // jau .--- ..- -.- -.- .- .- .-.-.- ..- -.- -.- --- -. . -. / Jukka A. Ukkonen, Oxit Ltd, Finland /__ M.Sc. (sw-eng & cs) (Phone) +358-500-606-671 / Internet: Jukka.Ukkonen(a)Oxit.Fi (Home) +358-9-6215-280 / Internet: jau(a)iki.fi v .--- .- ..- ...-.- .. -.- .. .-.-.- ..-. .. + + + + My opinions are mine and mine alone, not my employers. + + + + From owner-freebsd-standards@FreeBSD.ORG Mon Jan 8 11:08:55 2007 Return-Path: X-Original-To: freebsd-standards@FreeBSD.org Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 954E816A505 for ; Mon, 8 Jan 2007 11:08:55 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7441013C455 for ; Mon, 8 Jan 2007 11:08:55 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l08B8tXZ016635 for ; Mon, 8 Jan 2007 11:08:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l08B8rdK016630 for freebsd-standards@FreeBSD.org; Mon, 8 Jan 2007 11:08:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Jan 2007 11:08:53 GMT Message-Id: <200701081108.l08B8rdK016630@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 11:08:55 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/25542 standards /bin/sh: null char in quoted string o kern/46239 standards posix semaphore implementation errors o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/82654 standards C99 long double math functions are missing o stand/94729 standards fcntl() throws undocumented ENOTTY o stand/104422 standards TCP-MD5 key length limits 6 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/21519 standards sys/dir.h should be deprecated some more o bin/24390 standards Replacing old dir-symlinks when using /bin/ln s stand/24590 standards timezone function not compatible witn Single Unix Spec s kern/28260 standards UIO_MAXIOV needs to be made public s stand/36076 standards Implementation of POSIX fuser command o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings p stand/41576 standards POSIX compliance of ln(1) o stand/44425 standards getcwd() succeeds even if current dir has perm 000. o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/54833 standards [pcvt] more pcvt deficits o stand/54839 standards [pcvt] pcvt deficits p stand/55112 standards glob.h, glob_t's gl_pathc should be "size_t", not "int o stand/56476 standards cd9660 unicode support simple hack o stand/58676 standards grantpt(3) alters storage used by ptsname(3) s stand/62858 standards malloc(0) not C99 compliant s kern/64875 standards [libc] [patch] [feature request] add a system call: fd o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- o stand/66531 standards _gettemp uses a far smaller set of filenames than docu o stand/70813 standards [PATCH] ls(1) not Posix compliant o stand/72006 standards floating point formating in non-C locales o stand/79056 standards regex(3) regression tests a stand/80293 standards sysconf() does not support well-defined unistd values o stand/81287 standards [PATCH]: fingerd(8) might send a line not ending in CR o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm o stand/85080 standards output of long double subnormals (with printf) is wron o stand/92360 standards [headers] [patch] Missing TAB3 in kernel headers o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/96016 standards clock_getres et al should be in o stand/96236 standards [PATCH] [POSIX] sed.1 incorrectly describes a function p stand/99517 standards Missing SIGRTMIN and SIGRTMAX signals o stand/99960 standards [Patch] [make] Add -p flag o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/104743 standards Wrong values for _POSIX_ minimal limits o stand/104841 standards C99 long double square root. o stand/107561 standards Missing SUS function tcgetsid() 36 problems total. From owner-freebsd-standards@FreeBSD.ORG Wed Jan 10 08:52:31 2007 Return-Path: X-Original-To: freebsd-standards@FreeBSD.ORG Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CFCD16A407; Wed, 10 Jan 2007 08:52:31 +0000 (UTC) (envelope-from jau@jau.iki.fi) Received: from jau.iki.fi (ip193-64-26-117.cust.eunet.fi [193.64.26.117]) by mx1.freebsd.org (Postfix) with ESMTP id 25F6113C448; Wed, 10 Jan 2007 08:52:30 +0000 (UTC) (envelope-from jau@jau.iki.fi) Received: from jau.iki.fi (localhost [127.0.0.1]) by jau.iki.fi (8.13.8/8.13.8) with ESMTP id l0A8XWtk009469; Wed, 10 Jan 2007 10:33:32 +0200 (EET) (envelope-from jau@jau.iki.fi) Received: (from jau@localhost) by jau.iki.fi (8.13.8/8.13.8/Submit) id l0A8XWXM009467; Wed, 10 Jan 2007 10:33:32 +0200 (EET) (envelope-from jau) Posted-Date: Wed, 10 Jan 2007 10:33:32 +0200 (EET) Message-Id: <200701100833.l0A8XWXM009467@jau.iki.fi> To: freebsd-standards@FreeBSD.ORG, bug-followup@FreeBSD.ORG Date: Wed, 10 Jan 2007 10:33:31 +0200 (EET) In-Reply-To: <200701072004.l07K4Iko053501@lurza.secnetix.de> from "Oliver Fromme" at Jan 7, 7 09:04:18 pm From: jau@iki.fi (Jukka A. Ukkonen) Sender: jau@iki.fi Latin-Date: dies Mercurii X Ianuarie a.d. MMVII Organization: Private person OS-Platform: FreeBSD Phone: +358-9-6215280 (home) / +358-500-606671 (gsm) Content-Conversion: prohibited X-Mailer: ELM [version 2.4 PL25+pgp] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jau@iki.fi List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 08:52:31 -0000 Quoting Oliver Fromme: > > The proposed implementation looks good to me (we would > also need an appropriate manual page, though). Right, find attached at the end an initial version of the manual page. If you wish to publish my name as the author in the HISTORY or AUTHOR sections, you are welcome to do so, but, please, do not include my e-mail address in there. I get quite a load of spam already every day. Though it makes perfect sense to always publish the names of authors, I would like it to be done in a way that does not increase my spam levels. Cheers, // jau .--- ..- -.- -.- .- .- .-.-.- ..- -.- -.- --- -. . -. / Jukka A. Ukkonen, Oxit Ltd, Finland /__ M.Sc. (sw-eng & cs) (Phone) +358-500-606-671 / Internet: Jukka.Ukkonen(a)Oxit.Fi (Home) +358-9-6215-280 / Internet: jau(a)iki.fi v .--- .- ..- ...-.- .. -.- .. .-.-.- ..-. .. + + + + My opinions are mine and mine alone, not my employers. + + + + o \ / - X ------------------------- clip clip ------------------------------ / \ O .\" Copyright (C) 1992-2007 .\" The FreeBSD Project. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" $Id: tcgetsid.3,v 1.3 2007/01/10 06:45:53 jau Exp jau $ .\" .Dd January 10, 2007 .Dt TCGETSID 3 .Os Standard C Library Functions .Sh NAME .Nm tcgetsid .Nd get session ID for controlling terminal .Sh LIBRARY .Lb libc .Sh SYNOPSIS .In termios.h .Ft pid_t .Fn tcgetsid "int fd" .Sh DESCRIPTION The .Fn tcgetsid function obtains the session ID of the session for which the terminal specified by fd is the controlling terminal. .Pp This function is a convenience function only and in practice it is equal to calling .Nm getsid ( .Nm tcgetpgrp ( .Ar "int fd" )). .Pp The session ID is equal to the process group ID (and the process ID) for the session leader for the controlling terminal. .Sh RETURN VALUES Upon successful completion, tcgetsid() returns the process group ID associated with the terminal. Otherwise, a value of (pid_t)-1 is returned and errno is set to indicate the error. .Sh ERRORS The .Fn tcgetsid function may fail with .Nm errno set to the following values: .Bl -tag -width Er .It Bq Er EACCES The .Fa fd argument is not associated with a controlling terminal. .It Bq Er EBADF The .Fa fd argument is not a valid file descriptor. .It Bq Er ENOTTY The file associated with .Fa fd is not a terminal. .It Bq Er ESRCH There is no process with a process ID equal to the process group ID of the terminal. .Pp Note that an implementation may restrict the availability of this function to processes within the same session ID as the calling process. .El .Sh SEE ALSO .Xr getsid 2 , .Xr tcgetpgrp 3 .Sh STANDARDS The .Fn tcgetsid function is expected to be compliant with the .St -p1003.1-2001 .Sh AUTHOR Jukka A. Ukkonen, 2007 .Sh HISTORY This manual page was adapted from SunOS 5.9 29 Dec 1996 tcgetsid(3C). From owner-freebsd-standards@FreeBSD.ORG Wed Jan 10 09:00:39 2007 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DFF4116A417 for ; Wed, 10 Jan 2007 09:00:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id C235A13C458 for ; Wed, 10 Jan 2007 09:00:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0A90cfJ041735 for ; Wed, 10 Jan 2007 09:00:38 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0A90bME041734; Wed, 10 Jan 2007 09:00:37 GMT (envelope-from gnats) Date: Wed, 10 Jan 2007 09:00:37 GMT Message-Id: <200701100900.l0A90bME041734@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: jau@iki.fi (Jukka A. Ukkonen) Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Jukka A. Ukkonen" List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 09:00:39 -0000 The following reply was made to PR standards/107561; it has been noted by GNATS. From: jau@iki.fi (Jukka A. Ukkonen) To: freebsd-standards@FreeBSD.ORG, bug-followup@FreeBSD.ORG Cc: Subject: Re: standards/107561: Missing SUS function tcgetsid() Date: Wed, 10 Jan 2007 10:33:31 +0200 (EET) Quoting Oliver Fromme: > > The proposed implementation looks good to me (we would > also need an appropriate manual page, though). Right, find attached at the end an initial version of the manual page. If you wish to publish my name as the author in the HISTORY or AUTHOR sections, you are welcome to do so, but, please, do not include my e-mail address in there. I get quite a load of spam already every day. Though it makes perfect sense to always publish the names of authors, I would like it to be done in a way that does not increase my spam levels. Cheers, // jau .--- ..- -.- -.- .- .- .-.-.- ..- -.- -.- --- -. . -. / Jukka A. Ukkonen, Oxit Ltd, Finland /__ M.Sc. (sw-eng & cs) (Phone) +358-500-606-671 / Internet: Jukka.Ukkonen(a)Oxit.Fi (Home) +358-9-6215-280 / Internet: jau(a)iki.fi v .--- .- ..- ...-.- .. -.- .. .-.-.- ..-. .. + + + + My opinions are mine and mine alone, not my employers. + + + + o \ / - X ------------------------- clip clip ------------------------------ / \ O .\" Copyright (C) 1992-2007 .\" The FreeBSD Project. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" $Id: tcgetsid.3,v 1.3 2007/01/10 06:45:53 jau Exp jau $ .\" .Dd January 10, 2007 .Dt TCGETSID 3 .Os Standard C Library Functions .Sh NAME .Nm tcgetsid .Nd get session ID for controlling terminal .Sh LIBRARY .Lb libc .Sh SYNOPSIS .In termios.h .Ft pid_t .Fn tcgetsid "int fd" .Sh DESCRIPTION The .Fn tcgetsid function obtains the session ID of the session for which the terminal specified by fd is the controlling terminal. .Pp This function is a convenience function only and in practice it is equal to calling .Nm getsid ( .Nm tcgetpgrp ( .Ar "int fd" )). .Pp The session ID is equal to the process group ID (and the process ID) for the session leader for the controlling terminal. .Sh RETURN VALUES Upon successful completion, tcgetsid() returns the process group ID associated with the terminal. Otherwise, a value of (pid_t)-1 is returned and errno is set to indicate the error. .Sh ERRORS The .Fn tcgetsid function may fail with .Nm errno set to the following values: .Bl -tag -width Er .It Bq Er EACCES The .Fa fd argument is not associated with a controlling terminal. .It Bq Er EBADF The .Fa fd argument is not a valid file descriptor. .It Bq Er ENOTTY The file associated with .Fa fd is not a terminal. .It Bq Er ESRCH There is no process with a process ID equal to the process group ID of the terminal. .Pp Note that an implementation may restrict the availability of this function to processes within the same session ID as the calling process. .El .Sh SEE ALSO .Xr getsid 2 , .Xr tcgetpgrp 3 .Sh STANDARDS The .Fn tcgetsid function is expected to be compliant with the .St -p1003.1-2001 .Sh AUTHOR Jukka A. Ukkonen, 2007 .Sh HISTORY This manual page was adapted from SunOS 5.9 29 Dec 1996 tcgetsid(3C).