mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2001-09-25 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't declare __cmsg_data field if its size would be bigger than 0. (CMSG_DATA): Adjust accordingly. * sysdeps/unix/sysv/aix/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise. * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
This commit is contained in:
15
ChangeLog
15
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
2001-09-25 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
|
||||||
|
declare __cmsg_data field if its size would be bigger than 0.
|
||||||
|
(CMSG_DATA): Adjust accordingly.
|
||||||
|
* sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
|
||||||
|
|
||||||
2001-09-25 Ulrich Drepper <drepper@redhat.com>
|
2001-09-25 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
|
* iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
|
||||||
@ -764,7 +777,7 @@
|
|||||||
* elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
|
* elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
|
||||||
instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
|
instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
|
||||||
Pass type_class to _dl_lookup_*.
|
Pass type_class to _dl_lookup_*.
|
||||||
* elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
|
* elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
|
||||||
Pass around just type_class instead of noexec, noplt pair.
|
Pass around just type_class instead of noexec, noplt pair.
|
||||||
(_dl_lookup_versioned_symbol): Likewise.
|
(_dl_lookup_versioned_symbol): Likewise.
|
||||||
(_dl_lookup_symbol_skip): Pass around just type_class instead of
|
(_dl_lookup_symbol_skip): Pass around just type_class instead of
|
||||||
|
@ -199,12 +199,13 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||||
#else
|
#else
|
||||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||||
|
@ -203,14 +203,13 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
unsigned char __cmsg_data[0]; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||||
#else
|
#else
|
||||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||||
|
@ -233,12 +233,13 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||||
#else
|
#else
|
||||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||||
|
@ -233,12 +233,13 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||||
#else
|
#else
|
||||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||||
|
@ -233,12 +233,13 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||||
#else
|
#else
|
||||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||||
|
@ -233,12 +233,13 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||||
#else
|
#else
|
||||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||||
|
@ -233,12 +233,13 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||||
#else
|
#else
|
||||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||||
|
@ -239,12 +239,13 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L
|
||||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||||
#else
|
#else
|
||||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||||
|
Reference in New Issue
Block a user