delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/09/13:13:30

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=mGh
ivCfmW4/N9cv95OyMdHq9iSNIzYNB3ybJVnYKNKdeKo1gx+P7zyj1uYgmPTptQ/4
QLcNeKXo1JIZdHq/wqmEqkgeS3RrPnPGUsCXq/d+8nz2sxe+KD6wq685fhCaiuS4
mkwKHZKHlh4TIj9vUh81Xt0w/d8mApu8ROX4fq+Y=
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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=ktfBETKF7
QFffYE9jHcxAcJzaEo=; b=MxdbYMI6Pf5RU09oGEnN4XE0GP197g4qM/LetQN3o
0oN3DDF7dwftz6+ZnefWxBUV4yzNOs0zzhFHLQ4YdxLXXkM4Rm/y+b/0E+Ocd+h5
md1oitPiZu8tqpyjz3cz0Y2U0QkRDvrGalR/YWURqVOPWKFvaEBLoMkGBbBtxMWJ
N4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=*****************************************************
X-HELO: mail-it0-f66.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=c26XZZJENLbdAT1dBsjKyaj/VXNufjqpdMk5f2uxTHE=; b=kQoIA1eICQKJNP1AZ4uOmk3Nsmaf6A0ZtZ9HWuPecpnti4FkpzIq2LNOe7RwOjYeKd MDvY50RjKi9mcDYqvRmGbQLvGCfY4fX7DCuXigaFw6xjqRW/cIGS1i03KhSTJNsde/w6 XGa7CzkfB/ucLR45lGME8+LQJTPbssTPHqzhBLFEttBFGH8dcOd56ptTdkgGYk7K1sy7 9dqouyWCPx1IeQKZkVX8e6t2+FlRWDop4fk4MU7B2RfDPdyvjw8qXI5mQfbkyWavat8i SzZCl0E4Q1Qb3IPicTfPMBdgEt17geWwRY1aiE8zjQmziAPIcld+/Mh14hfII87Sf8Tu M9mw==
X-Gm-Message-State: ABUngvfUjhq+Yat9XiQ+nPvGFlD+bbJfSvgw/bm9Bdi8zfx18LfrsbSAdh15i+Xlf7eCPA==
X-Received: by 10.36.84.82 with SMTP id t79mr1182328ita.51.1478715190898; Wed, 09 Nov 2016 10:13:10 -0800 (PST)
To: cygwin AT cygwin DOT com
From: cyg Simple <cygsimple AT gmail DOT com>
Subject: issetugid - not declared when _XOPEN_SOURCE is also defined
Message-ID: <d61199c7-85d2-039d-58cb-29fb8d6ff369@gmail.com>
Date: Wed, 9 Nov 2016 13:13:02 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
X-IsSubscribed: yes

The following program demonstrates the issue.  Should issetugid be
declared with this scenario?

/*****************************************************/
#define _XOPEN_SOURCE 1  /* Causes declare warning */
#define __BSD_VISIBLE 1
#include <unistd.h>

int main(int argc, char ** argv) {
	int result;
	result = issetugid();
}
/****************************************************/

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019