On Thu, Apr 15, 2010 at 10:02:16PM +0200, Nguy�n Thái Ng�c Duy wrote:
> +int fcntl(int fd UNUSED_PARAM, int cmd, ...)
> +{
> + if (cmd == F_GETFD || cmd == F_SETFD || cmd == F_GETFL)
> + return 0;
> + errno = EINVAL;
> + return -1;
> +}
Returing 0 makes sense for F_GETFD and F_SETFD, but won't returning 0 be
wrong for F_GETFL if some file status flags are set on open?
>>> Dan
--
http://www.MoveAnnouncer.com The web change of address service
Let webmasters know that your web site has moved
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox