From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: EMACS_GET_TTY_PGRP vs. emacs_get_tty_pgrp Date: Wed, 20 Oct 2010 23:36:14 +0200 Message-ID: References: <4CBEFB15.5050303@cornell.edu> <4CBF4AA6.3000200@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287611122 31142 80.91.229.12 (20 Oct 2010 21:45:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2010 21:45:22 +0000 (UTC) Cc: Ken Brown , emacs-devel To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 20 23:45:20 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8gTI-0006mF-B4 for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2010 23:45:20 +0200 Original-Received: from localhost ([127.0.0.1]:35303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8gTH-0007kj-7f for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2010 17:45:19 -0400 Original-Received: from [140.186.70.92] (port=42366 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8gKa-00037O-Uu for emacs-devel@gnu.org; Wed, 20 Oct 2010 17:36:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8gKa-0003xs-0G for emacs-devel@gnu.org; Wed, 20 Oct 2010 17:36:20 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:40350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8gKY-0003xN-MC; Wed, 20 Oct 2010 17:36:18 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 2518B1C00235; Wed, 20 Oct 2010 23:36:15 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-97-2.dynamic.mnet-online.de [88.217.97.2]) by mail.mnet-online.de (Postfix) with ESMTP id 62D0E1C00178; Wed, 20 Oct 2010 23:36:15 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id E6847CA2A0; Wed, 20 Oct 2010 23:36:14 +0200 (CEST) X-Yow: While you're chewing, think of STEVEN SPIELBERG'S bank account.. This will have the same effect as two ``STARCH BLOCKERS''! In-Reply-To: (Dan Nicolaescu's message of "Wed, 20 Oct 2010 16:28:28 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131914 Archived-At: Dan Nicolaescu writes: > The comment in emacs_get_tty_pgrp looks scary, it does not look > obvious that the code in the function can be replaced with tcgetpgrp. > Maybe it can, but, IMHO, it needs testing on a few platforms. In all Unix systems that define both they should be identical (ie. tcgetpgrp just calls the TIOCGPGRP ioctl). Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."