Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 10:22, Warner Losh пишет: > > > On Mon, Nov 26, 2018 at 8:18 PM Eugene Grosbein > wrote: > > 27.11.2018 7:15, Warner Losh wrote: > > > time_t is 64-bits in FreeBSD for all architectures regardless of > __LP64__, except it's 32-bits on i386. > >

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Warner Losh
On Mon, Nov 26, 2018 at 8:18 PM Eugene Grosbein wrote: > 27.11.2018 7:15, Warner Losh wrote: > > > time_t is 64-bits in FreeBSD for all architectures regardless of > __LP64__, except it's 32-bits on i386. > > > > Warner > > sys/powerpc/include/_types.h defines time_t being 32 or 64 bit depending

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 7:15, Warner Losh wrote: > time_t is 64-bits in FreeBSD for all architectures regardless of __LP64__, > except it's 32-bits on i386. > > Warner sys/powerpc/include/_types.h defines time_t being 32 or 64 bit depending on __LP64__ just like sys/x86/include/_types.h does. Does 32-bit

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 7:15, Warner Losh wrote: > I'm not sure I get it right: do you mean there is a difference for some > platform we have? > > time_t is 64-bits in FreeBSD for all architectures regardless of __LP64__, > except it's 32-bits on i386. Now I've got it :-) thanks. ___

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Warner Losh
On Mon, Nov 26, 2018 at 4:29 PM Eugene Grosbein wrote: > 27.11.2018 4:26, John Baldwin wrote: > > >> /* Parse type for timeval */ > >> static const struct ng_parse_struct_field > ng_source_timeval_type_fields[] = { > >> +#ifdef __LP64__ > >> +{ "tv_sec", &ng_parse_int64_type

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Ian Lepore
On Tue, 2018-11-27 at 06:45 +0700, Eugene Grosbein wrote: > 27.11.2018 6:35, Ian Lepore wrote: > > > > > > > > > > > > > > #ifdef __LP64__ > > > > { "tv_usec",&ng_parse_int32_type }, > > > > #else > > > > { "tv_usec",&ng_parse_int64_type }, > > > > #endif > > > I'm not s

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 6:35, Ian Lepore wrote: >>> #ifdef __LP64__ >>> { "tv_usec",&ng_parse_int32_type }, >>> #else >>> { "tv_usec",&ng_parse_int64_type }, >>> #endif >> I'm not sure I get it right: do you mean there is a difference for >> some platform we have? > > I think there's a

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Ian Lepore
On Tue, 2018-11-27 at 06:29 +0700, Eugene Grosbein wrote: > 27.11.2018 4:26, John Baldwin wrote: > > > > > > > > >  /* Parse type for timeval */ > > >  static const struct ng_parse_struct_field > > > ng_source_timeval_type_fields[] = { > > > +#ifdef __LP64__ > > > + { "tv_sec", &ng_p

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 4:26, John Baldwin wrote: >> /* Parse type for timeval */ >> static const struct ng_parse_struct_field ng_source_timeval_type_fields[] = >> { >> +#ifdef __LP64__ >> +{ "tv_sec", &ng_parse_int64_type}, >> +{ "tv_usec",&ng_parse_int64_type}, >> +

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread John Baldwin
On 11/18/18 11:27 PM, Eugene Grosbein wrote: > Author: eugen > Date: Mon Nov 19 07:27:50 2018 > New Revision: 340617 > URL: https://svnweb.freebsd.org/changeset/base/340617 > > Log: > Unbreak ng_source(4) for 64-bit platforms including amd64. > > Modified: > head/sys/netgraph/ng_source.c > >

svn commit: r340617 - head/sys/netgraph

2018-11-18 Thread Eugene Grosbein
Author: eugen Date: Mon Nov 19 07:27:50 2018 New Revision: 340617 URL: https://svnweb.freebsd.org/changeset/base/340617 Log: Unbreak ng_source(4) for 64-bit platforms including amd64. Modified: head/sys/netgraph/ng_source.c Modified: head/sys/netgraph/ng_source.c