From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27009 invoked by alias); 6 Jan 2005 15:20:32 -0000 Mailing-List: contact glibc-bugs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sources.redhat.com Received: (qmail 26984 invoked by uid 48); 6 Jan 2005 15:20:28 -0000 Date: Thu, 06 Jan 2005 15:20:00 -0000 From: "sebastien dot decugis at ext dot bull dot net" To: glibc-bugs@sources.redhat.com Message-ID: <20050106152027.640.sebastien.decugis@ext.bull.net> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug nptl/640] New: ftruncate should be visible when including without XSI features X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg00018.txt.bz2 List-Id: According to the SUSv3, ftruncate(...) routine shall be visible when including unistd.h; but it is not when _POSIX_C_SOURCE only is defined (no XSI features). Sample code: ---------------- #define _POSIX_C_SOURCE 200112L #include #include typedef int (*ftruncate_test)(int fildes, off_t length); int dummyfcn (void) { ftruncate_test dummyvar; dummyvar = ftruncate; return 0; } -- Summary: ftruncate should be visible when including without XSI features Product: glibc Version: unspecified Status: NEW Severity: minor Priority: P3 Component: nptl AssignedTo: drepper at redhat dot com ReportedBy: sebastien dot decugis at ext dot bull dot net CC: glibc-bugs at sources dot redhat dot com http://sources.redhat.com/bugzilla/show_bug.cgi?id=640 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.