[PATCH] Change res_init to take (lazilly) effect in all threads

Andreas Schwab schwab@suse.de
Wed Aug 4 20:48:00 GMT 2004


Jakub Jelinek <jakub@redhat.com> writes:

> --- libc/resolv/resolv.h.jj	2004-08-04 14:42:23.000000000 +0200
> +++ libc/resolv/resolv.h	2004-08-04 14:54:25.568907618 +0200
> @@ -134,6 +134,12 @@ struct __res_state {
>  			u_int16_t		nscount6;
>  			u_int16_t		nsinit;
>  			struct sockaddr_in6	*nsaddrs[MAXNS];
> +#ifdef _LIBC
> +			unsigned long long int	initstamp
> +			  __attribute__((aligned (sizeof (long))));
> +#else
> +			unsigned int		_initstamp[2];
> +#endif

You can't decrease alignment with the aligned attribute unless you also
add packed.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-hacker mailing list