getline incompatibility with Linux
Joe Marcus Clarke
marcus at FreeBSD.org
Sun Mar 29 14:38:48 PDT 2009
The new getline() function in FreeBSD is not completely compatible with
Linux's implementation. The result is that programs which assume Linux
getline may enter a tight infinite loop.
According to the Linux getline(3) manpage, getline(3) returns -1 on
error (including EOF). Our implementation returns 0 on EOF. Would it
be possible to return -1 on EOF in our implementation?
Joe
--
Joe Marcus Clarke
FreeBSD GNOME Team :: gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090329/3725fdcf/attachment.pgp
More information about the freebsd-current
mailing list