Bug 130819
| Summary: | gcc 3.[45] with -std=c99, fileno() not declared in stdio.h | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | John Ellson <john.ellson> |
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED DUPLICATE | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-02-21 19:05:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
fileno is POSIX, but not ISO C function. *** This bug has been marked as a duplicate of 130815 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |
Description of problem: fileno() not declared in stdio.h contrary to man 3 fileno Version-Release number of selected component (if applicable): glibc-headers-2.3.3-46 gcc35-3.5.0-0.9 gcc-3.4.1-9 How reproducible: 100% Steps to Reproduce: 1. ellson@ontap:~> cat bug.c #include <stdio.h> int main() { return (fileno(stdin)); } ellson@ontap:~> gcc35 -std=c99 bug.c bug.c: In function `main': bug.c:3: warning: implicit declaration of function 'fileno' ellson@ontap:~> 2. 3. Actual results: warning about implicit declaration Expected results: no warning Additional info: