#3633 new defect

add getdelim() and getline() to stdio.h

Reported by: Himanshu Sekhar Nayak Owned by:
Priority: normal Milestone: Indefinite
Component: tool/newlib Version:
Severity: normal Keywords: POSIX-Compliance
Cc: Blocked By:
Blocking:

Description

Seems like these two functions are throwing errors as getdelim and getline are not declared in stdio.h . I had added #define _POSIX_C_SOURCE 200809L but didn't worked either. Also I found that both getline() and getdelim() are originally GNU extensions. So any fix for that ?

Change History (3)

comment:1 Changed on Dec 5, 2018 at 7:19:58 PM by Himanshu Sekhar Nayak

Component: admintool/newlib

comment:2 Changed on Dec 5, 2018 at 7:24:33 PM by Himanshu Sekhar Nayak

Keywords: POSIX-Compliance added
Milestone: Indefinite

comment:3 Changed on Dec 5, 2018 at 8:05:24 PM by Joel Sherrill

newlib does not prototype these and may or may not have them. If the test code compiles on Linux, include it in the patch, list the two files in the Makefile.am section where I did 3371, and list the test files to update when this ticket is addressed in this ticket.

Basically you found a bug of some sort in newlib. This ticket is to track fixing that and subsequently updating the psxhdrs to build these. Good job!

Note: See TracTickets for help on using tickets.