From 4e0554ec1a41c5b5d840b8e29e149a0efe77a52c Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Thu, 5 Apr 2001 17:47:01 +0000 Subject: Introduce d_u32align / U32_REQUIRES_ALIGNMENT, needed for ext/Digest/MD5/Makefile.PL and t/lib/md5-align.t. Introduce probes for struct msghdr, struct cmsghdr, sendmsg, recvmsg, readv, writev, setitimer, getitimer, ualarm, usleep, for possible later extension work. p4raw-id: //depot/perl@9560 --- vos/config.alpha.def | 10 ++++++++ vos/config.alpha.h | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ vos/config.ga.def | 10 ++++++++ vos/config.ga.h | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+) (limited to 'vos') diff --git a/vos/config.alpha.def b/vos/config.alpha.def index 3128752a27..1242114a1f 100644 --- a/vos/config.alpha.def +++ b/vos/config.alpha.def @@ -36,6 +36,7 @@ $d_charvspr='undef' $d_chown='undef' $d_chroot='undef' $d_chsize='undef' +$d_cmsghdr_s='undef' $d_const='define' $d_crypt='undef' $d_csh='undef' @@ -86,6 +87,7 @@ $d_gethbyname='define' $d_gethent='define' $d_gethname='define' $d_gethostprotos='define' +$d_getitimer='undef' $d_getlogin='define' $d_getmnt='undef' $d_getmntent='undef' @@ -156,6 +158,7 @@ $d_msg_dontroute='undef' $d_msg_oob='undef' $d_msg_peek='undef' $d_msg_proxy='undef' +$d_msghdr_s='undef' $d_msync='undef' $d_munmap='undef' $d_mymalloc='undef' @@ -187,6 +190,8 @@ $d_pwquota='undef' $d_quad='undef' $d_readdir='define' $d_readlink='define' +$d_readv='undef' +$d_recvmsg='undef' $d_rename='define' $d_rewinddir='define' $d_rmdir='define' @@ -202,6 +207,7 @@ $d_select='define' $d_sem='undef' $d_semctl_semid_ds='undef' $d_semctl_semun='undef' +$d_sendmsg='undef' $d_setegid='undef' $d_seteuid='undef' $d_setgrent='undef' @@ -274,9 +280,12 @@ $d_telldirproto='undef' $d_times='define' $d_truncate='undef' $d_tzname='define' +$d_u32align='define' +$d_ualarm='undef' $d_umask='define' $d_uname='define' $d_union_semun='undef' +$d_usleep='undef' $d_ustat='undef' $d_vendorarch='define' $d_vendorlib='define' @@ -288,6 +297,7 @@ $d_wait4='undef' $d_waitpid='define' $d_wcstombs='define' $d_wctomb='define' +$d_writev='undef' $db_hashtype='int' $db_prefixtype='int' $defvoidused='15' diff --git a/vos/config.alpha.h b/vos/config.alpha.h index a4d0f3dc84..c4291f9fa2 100644 --- a/vos/config.alpha.h +++ b/vos/config.alpha.h @@ -442,6 +442,19 @@ */ #define HAS_READLINK /**/ +/* HAS_READV: + * This symbol, if defined, indicates that the readv routine is + * available to do gather reads. You will also need + * and there I_SYSUIO. + */ +/*#define HAS_READV /**/ + +/* HAS_RECVMSG: + * This symbol, if defined, indicates that the recvmsg routine is + * available to send structured socket messages. + */ +/*#define HAS_RECVMSG /**/ + /* HAS_RENAME: * This symbol, if defined, indicates that the rename routine is available * to rename files. Otherwise you should do the unlink(), link(), unlink() @@ -667,6 +680,12 @@ */ #define HAS_UMASK /**/ +/* HAS_USLEEP: + * This symbol, if defined, indicates that the usleep routine is + * available to let the process sleep on a sub-second accuracy. + */ +/*#define HAS_USLEEP /**/ + /* HASVOLATILE: * This symbol, if defined, indicates that this C compiler knows about * the volatile declaration. @@ -1258,6 +1277,12 @@ */ /*#define VOID_CLOSEDIR /**/ +/* HAS_STRUCT_CMSGHDR: + * This symbol, if defined, indicates that the struct cmsghdr + * is supported. + */ +/*#define HAS_STRUCT_CMSGHDR / **/ + /* HAS_CSH: * This symbol, if defined, indicates that the C-shell exists. */ @@ -1472,6 +1497,12 @@ */ #define HAS_GETHOST_PROTOS /**/ +/* HAS_GETITIMER: + * This symbol, if defined, indicates that the getitimer routine is + * available to return interval timers. + */ +/*#define HAS_GETITIMER /**/ + /* HAS_GETMNT: * This symbol, if defined, indicates that the getmnt routine is * available to get filesystem mount info by filename. @@ -1762,6 +1793,12 @@ */ /*#define HAS_MSG /**/ +/* HAS_STRUCT_MSGHDR: + * This symbol, if defined, indicates that the struct msghdr + * is supported. + */ +/*#define HAS_STRUCT_MSGHDR / **/ + /* HAS_OFF64_T: * This symbol will be defined if the C compiler supports off64_t. */ @@ -1840,6 +1877,12 @@ */ /*#define HAS_SEM /**/ +/* HAS_SENDMSG: + * This symbol, if defined, indicates that the sendmsg routine is + * available to send structured socket messages. + */ +/*#define HAS_SENDMSG /**/ + /* HAS_SETGRENT: * This symbol, if defined, indicates that the setgrent routine is * available for initializing sequential access of the group database. @@ -1859,6 +1902,12 @@ */ #define HAS_SETHOSTENT /**/ +/* HAS_SETITIMER: + * This symbol, if defined, indicates that the setitimer routine is + * available to set interval timers. + */ +/*#define HAS_SETITIMER /**/ + /* HAS_SETNETENT: * This symbol, if defined, indicates that the setnetent() routine is * available. @@ -2189,6 +2238,12 @@ */ #define HAS_TIMES /**/ +/* HAS_UALARM: + * This symbol, if defined, indicates that the ualarm routine is + * available to do alarms with microsecond granularity. + */ +/*#define HAS_UALARM /**/ + /* HAS_UNION_SEMUN: * This symbol, if defined, indicates that the union semun is * defined by including . If not, the user code @@ -2244,6 +2299,12 @@ #define HAS_VPRINTF /**/ /*#define USE_CHAR_VSPRINTF /**/ +/* HAS_WRITEV: + * This symbol, if defined, indicates that the writev routine is + * available to do scatter writes. + */ +/*#define HAS_WRITEV /**/ + /* USE_DYNAMIC_LOADING: * This symbol, if defined, indicates that dynamic loading of * some sort is available. @@ -3262,4 +3323,10 @@ */ /*#define HAS_SOCKATMARK / **/ +/* U32_ALIGNMENT_REQUIRED: + * This symbol, if defined, indicates that you must access + * character data through U32-aligned pointers. + */ +#define U32_ALIGNMENT_REQUIRED /**/ + #endif diff --git a/vos/config.ga.def b/vos/config.ga.def index 7f0cbdbfcc..63d2aa9882 100644 --- a/vos/config.ga.def +++ b/vos/config.ga.def @@ -36,6 +36,7 @@ $d_charvspr='undef' $d_chown='define' $d_chroot='undef' $d_chsize='undef' +$d_cmsghdr_s='undef' $d_const='define' $d_crypt='undef' $d_csh='define' @@ -86,6 +87,7 @@ $d_gethbyname='define' $d_gethent='define' $d_gethname='define' $d_gethostprotos='define' +$d_getitimer='undef' $d_getlogin='define' $d_getmnt='undef' $d_getmntent='undef' @@ -156,6 +158,7 @@ $d_msg_dontroute='undef' $d_msg_oob='undef' $d_msg_peek='undef' $d_msg_proxy='undef' +$d_msghdr_s='undef' $d_msync='undef' $d_munmap='define' $d_mymalloc='undef' @@ -187,6 +190,8 @@ $d_pwquota='undef' $d_quad='undef' $d_readdir='define' $d_readlink='define' +$d_readv='undef' +$d_recvmsg='undef' $d_rename='define' $d_rewinddir='define' $d_rmdir='define' @@ -202,6 +207,7 @@ $d_select='define' $d_sem='undef' $d_semctl_semid_ds='undef' $d_semctl_semun='undef' +$d_sendmsg='undef' $d_setegid='define' $d_seteuid='define' $d_setgrent='undef' @@ -274,9 +280,12 @@ $d_telldirproto='undef' $d_times='define' $d_truncate='undef' $d_tzname='define' +$d_u32align='define' +$d_ualarm='undef' $d_umask='define' $d_uname='define' $d_union_semun='undef' +$d_usleep='undef' $d_ustat='undef' $d_vendorarch='define' $d_vendorlib='define' @@ -288,6 +297,7 @@ $d_wait4='define' $d_waitpid='define' $d_wcstombs='define' $d_wctomb='define' +$d_writev='undef' $db_hashtype='int' $db_prefixtype='int' $defvoidused='15' diff --git a/vos/config.ga.h b/vos/config.ga.h index f54c4de5b5..642b65b26d 100644 --- a/vos/config.ga.h +++ b/vos/config.ga.h @@ -442,6 +442,19 @@ */ #define HAS_READLINK /**/ +/* HAS_READV: + * This symbol, if defined, indicates that the readv routine is + * available to do gather reads. You will also need + * and there I_SYSUIO. + */ +/*#define HAS_READV /**/ + +/* HAS_RECVMSG: + * This symbol, if defined, indicates that the recvmsg routine is + * available to send structured socket messages. + */ +/*#define HAS_RECVMSG /**/ + /* HAS_RENAME: * This symbol, if defined, indicates that the rename routine is available * to rename files. Otherwise you should do the unlink(), link(), unlink() @@ -679,6 +692,12 @@ */ #define HAS_UMASK /**/ +/* HAS_USLEEP: + * This symbol, if defined, indicates that the usleep routine is + * available to let the process sleep on a sub-second accuracy. + */ +/*#define HAS_USLEEP /**/ + /* HASVOLATILE: * This symbol, if defined, indicates that this C compiler knows about * the volatile declaration. @@ -1270,6 +1289,12 @@ */ /*#define VOID_CLOSEDIR /**/ +/* HAS_STRUCT_CMSGHDR: + * This symbol, if defined, indicates that the struct cmsghdr + * is supported. + */ +/*#define HAS_STRUCT_CMSGHDR / **/ + /* HAS_CSH: * This symbol, if defined, indicates that the C-shell exists. */ @@ -1484,6 +1509,12 @@ */ #define HAS_GETHOST_PROTOS /**/ +/* HAS_GETITIMER: + * This symbol, if defined, indicates that the getitimer routine is + * available to return interval timers. + */ +/*#define HAS_GETITIMER /**/ + /* HAS_GETMNT: * This symbol, if defined, indicates that the getmnt routine is * available to get filesystem mount info by filename. @@ -1774,6 +1805,12 @@ */ /*#define HAS_MSG /**/ +/* HAS_STRUCT_MSGHDR: + * This symbol, if defined, indicates that the struct msghdr + * is supported. + */ +/*#define HAS_STRUCT_MSGHDR / **/ + /* HAS_OFF64_T: * This symbol will be defined if the C compiler supports off64_t. */ @@ -1852,6 +1889,12 @@ */ /*#define HAS_SEM /**/ +/* HAS_SENDMSG: + * This symbol, if defined, indicates that the sendmsg routine is + * available to send structured socket messages. + */ +/*#define HAS_SENDMSG /**/ + /* HAS_SETGRENT: * This symbol, if defined, indicates that the setgrent routine is * available for initializing sequential access of the group database. @@ -1871,6 +1914,12 @@ */ #define HAS_SETHOSTENT /**/ +/* HAS_SETITIMER: + * This symbol, if defined, indicates that the setitimer routine is + * available to set interval timers. + */ +/*#define HAS_SETITIMER /**/ + /* HAS_SETNETENT: * This symbol, if defined, indicates that the setnetent() routine is * available. @@ -2189,6 +2238,12 @@ */ #define HAS_TIMES /**/ +/* HAS_UALARM: + * This symbol, if defined, indicates that the ualarm routine is + * available to do alarms with microsecond granularity. + */ +/*#define HAS_UALARM /**/ + /* HAS_UNION_SEMUN: * This symbol, if defined, indicates that the union semun is * defined by including . If not, the user code @@ -2244,6 +2299,12 @@ #define HAS_VPRINTF /**/ /*#define USE_CHAR_VSPRINTF /**/ +/* HAS_WRITEV: + * This symbol, if defined, indicates that the writev routine is + * available to do scatter writes. + */ +/*#define HAS_WRITEV /**/ + /* USE_DYNAMIC_LOADING: * This symbol, if defined, indicates that dynamic loading of * some sort is available. @@ -3262,4 +3323,10 @@ */ /*#define HAS_SOCKATMARK / **/ +/* U32_ALIGNMENT_REQUIRED: + * This symbol, if defined, indicates that you must access + * character data through U32-aligned pointers. + */ +#define U32_ALIGNMENT_REQUIRED /**/ + #endif -- cgit v1.2.1