From patchwork Fri Nov 10 20:08:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luke Shumaker X-Patchwork-Id: 836863 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-86965-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="ISafBjkq"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yYWM40vt2z9t3h for ; Sat, 11 Nov 2017 07:08:47 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=VP5no7REPihRMIKD3DPneB8WtTfkhw4 nQxccdHCTCE3iB9KQlmKsFmWNDSRzQuG6GvgRn7pCmruI6hS0tiUHkjiwucRHflC 7pomwsh9p4IDujyispb8W/quAnd8u0+APabFF/DBY4C1y4C2GvIfGDkdaQts0JrQ B3ryDNDinnLc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=AYkNE2GlrIggPjQfiEy48JoyWcg=; b=ISafB jkqTqiz62sPQtgROIz1hxFgiRDTQuFPnnxT5uxTrKjJpn753rjix4WV29MKPcIg1 /DsjKOiIq49+Zc17pbyHyC5VOqvWir06dpJAEIfzNdqnrY1+CCsMwNs5YaPWFpP0 SwFSHgONm08eBPuMN7DiLxQADJOAHMy7omisx0= Received: (qmail 42682 invoked by alias); 10 Nov 2017 20:08:30 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 42308 invoked by uid 89); 10 Nov 2017 20:08:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: mav.lukeshu.com From: Luke Shumaker To: libc-alpha@sourceware.org Cc: christian.brauner@mailbox.org Subject: [PATCH v6 1/6] manual: Update to mention ENODEV for ttyname and ttyname_r Date: Fri, 10 Nov 2017 15:08:22 -0500 Message-Id: <20171110200827.32265-2-lukeshu@lukeshu.com> In-Reply-To: <20171110200827.32265-1-lukeshu@lukeshu.com> References: <20171110200827.32265-1-lukeshu@lukeshu.com> From: Luke Shumaker Commit 15e9a4f378c8607c2ae1aa465436af4321db0e23 introduced ENODEV as a possible error condition for ttyname and ttyname_r. Update the manual to mention this GNU extension. v2: - Fix typo: psuedo->pseudo - Improve wording - Fix ChangeLog item name v3: - Revise commit message Reviewed-by: Christian Brauner --- ChangeLog | 5 +++++ manual/terminal.texi | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index bc8c473f09..dc4094bdc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-11-07 Luke Shumaker + + * manual/terminal.texi (Is It a Terminal): + Mention ENODEV for ttyname and ttyname_r. + 2017-11-07 Joseph Myers * include/float.h diff --git a/manual/terminal.texi b/manual/terminal.texi index 4fef5045b8..4aace48b14 100644 --- a/manual/terminal.texi +++ b/manual/terminal.texi @@ -109,6 +109,11 @@ The @var{filedes} is not associated with a terminal. @item ERANGE The buffer length @var{len} is too small to store the string to be returned. + +@item ENODEV +The @var{filedes} is associated with a terminal device that is a slave +pseudo-terminal, but the file name associated with that device could +not be determined. This is a GNU extension. @end table @end deftypefun