Debian Bug report logs - #445436
manpages-dev: fstatat: #include <sys/stat.h> does not define AT_SYMLINK_NOFOLLOW

version graph

Package: manpages-dev; Maintainer for manpages-dev is Dr. Tobias Quathamer <[email protected]>; Source for manpages-dev is src:manpages (PTS, buildd, popcon).

Reported by: Timo Juhani Lindfors <[email protected]>

Date: Fri, 5 Oct 2007 19:18:01 UTC

Severity: wishlist

Tags: fixed-upstream

Found in version manpages/2.63-1

Done: Martin Schulze <[email protected]>

Bug is archived. No further changes may be made.

Full log


Message #5 received at [email protected] (full text, mbox, reply):

Received: (at submit) by bugs.debian.org; 5 Oct 2007 19:15:23 +0000
From [email protected] Fri Oct 05 19:15:23 2007
X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02 
	(2006-07-26) on rietz.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=3.1.4-bugs.debian.org_2005_01_02
Return-path: <[email protected]>
Received: from smtp.netsonic.fi ([194.29.192.26])
	by rietz.debian.org with esmtp (Exim 4.50)
	id 1Idsdv-0004wi-0N
	for [email protected]; Fri, 05 Oct 2007 19:15:23 +0000
Received: from sauna (kulho150.adsl.netsonic.fi [81.17.193.150])
	by smtp.netsonic.fi (Postfix) with ESMTP id 1D5281F81DE;
	Fri,  5 Oct 2007 22:15:21 +0300 (EEST)
Received: from nfs ([192.168.0.99] helo=[192.168.1.32])
	by sauna with esmtp (Exim 3.36 #1 (Debian))
	id 1Idsdt-0000bu-00; Fri, 05 Oct 2007 22:15:21 +0300
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Timo Juhani Lindfors <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: manpages-dev: fstatat: #include <sys/stat.h> does not define
 AT_SYMLINK_NOFOLLOW
Message-ID: <20071005191521.2236.10600.reportbug@sauna>
X-Mailer: reportbug 3.39
Date: Fri, 05 Oct 2007 22:15:21 +0300
Delivered-To: [email protected]
Package: manpages-dev
Version: 2.63-1
Severity: wishlist

Steps to reproduce:
1) cat >testcase.c <<EOF
#define _ATFILE_SOURCE
#include <sys/stat.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
    printf("%d\n", AT_SYMLINK_NOFOLLOW);
    return 0;
}
EOF
2) gcc -c testcase.c

Expected results:
2) gcc compiles code into testcase.o

Actual results:
2) compilation fails with the error messages

a.c: In function 'main':
a.c:6: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in this function)
a.c:6: error: (Each undeclared identifier is reported only once
a.c:6: error: for each function it appears in.)

even though ma fstatat mentions that

#define _ATFILE_SOURCE
#include <sys/stat.h>

should be enough to get AT_SYMLINK_NOFOLLOW defined.

More info:
1) It seems that

#include <fcntl.h>

defines AT_SYMLINK_NOFOLLOW -- maybe this should be documented?




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Wed Nov 13 13:03:08 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.