This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: bzero in libc/include/sys/types.h
- To: Egor Duda <deo at logos-m dot ru>
- Subject: Re: bzero in libc/include/sys/types.h
- From: jjohnstn <jjohnstn at cygnus dot com>
- Date: Wed, 06 Sep 2000 17:05:21 -0400
- CC: newlib <newlib at sources dot redhat dot com>
- References: <145345343978.20000901124417@logos-m.ru>
Egor,
A patch has been made to libc/include/sys/types.h to inline the zeroing code
rather than calling bzero so the
header file is not needed.
-- Jeff Johnston (Red Hat Inc)
Egor Duda wrote:
> Hi!
>
> libc/include/sys/types.h contains a reference to bzero, but it's
> declared elsewhere. so code
>
> #include <sys/time.h>
> /* sys/time.h is required for fdset and FD_ZERO, but it includes
> sys/types.h, where they actually defined */
>
> int
> main ()
> {
> fdset fds;
> FD_ZERO ( &fds );
> }
>
> produces compiler warning.
>
> should #include <strings.h> be added to <sys/types.h>?
>
> Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19