JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... memalign(void ** memptr , size_t alignment , size_t size ); void *aligned_alloc(size_t alignment , size_t size ); void *valloc(size_t size ); #include < malloc.h > void *memalign(size_t alignment ... _t size ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): posix_memalign (): _POSIX_C_SOURCE >= 200112L aligned_alloc (): _ISOC11_SOURCE valloc (): glibc 2.12 以降: (_XOPEN_SOURCE >= 500) && !(_POSIX_C_SOURCE >= 200112L) || /* glibc 2 ... ターを返す。 メモリーのアドレスは alignment の倍数になっているはずである。 alignment は 2 のべき乗でなければならない。 関数 aligned_alloc () は memalign () と同じだが、 size が alignment の倍数でなければならないという追加の制限がある点が異なる。 廃止され ... ... memalign(void ** memptr , size_t alignment , size_t size ); void *aligned_alloc(size_t alignment , size_t size ); void *valloc(size_t size ); #include < malloc.h > void *memalign(size_t alignment ... _t size ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): posix_memalign (): _POSIX_C_SOURCE >= 200112L aligned_alloc (): _ISOC11_SOURCE valloc (): glibc 2.12 以降: (_XOPEN_SOURCE >= 500) && !(_POSIX_C_SOURCE >= 200112L) || /* glibc 2 ... ターを返す。 メモリーのアドレスは alignment の倍数になっているはずである。 alignment は 2 のべき乗でなければならない。 関数 aligned_alloc () は memalign () と同じだが、 size が alignment の倍数でなければならないという追加の制限がある点が異なる。 廃止され ... ... memalign(void ** memptr , size_t alignment , size_t size ); void *aligned_alloc(size_t alignment , size_t size ); void *valloc(size_t size ); #include < malloc.h > void *memalign(size_t alignment ... _t size ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): posix_memalign (): _POSIX_C_SOURCE >= 200112L aligned_alloc (): _ISOC11_SOURCE valloc (): glibc 2.12 以降: (_XOPEN_SOURCE >= 500) && !(_POSIX_C_SOURCE >= 200112L) || /* glibc 2 ... ターを返す。 メモリーのアドレスは alignment の倍数になっているはずである。 alignment は 2 のべき乗でなければならない。 関数 aligned_alloc () は memalign () と同じだが、 size が alignment の倍数でなければならないという追加の制限がある点が異なる。 廃止され ... ... memalign(void ** memptr , size_t alignment , size_t size ); void *aligned_alloc(size_t alignment , size_t size ); void *valloc(size_t size ); #include < malloc.h > void *memalign(size_t alignment ... _t size ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): posix_memalign (): _POSIX_C_SOURCE >= 200112L aligned_alloc (): _ISOC11_SOURCE valloc (): glibc 2.12 以降: (_XOPEN_SOURCE >= 500) && !(_POSIX_C_SOURCE >= 200112L) || /* glibc 2 ... ターを返す。 メモリーのアドレスは alignment の倍数になっているはずである。 alignment は 2 のべき乗でなければならない。 関数 aligned_alloc () は memalign () と同じだが、 size が alignment の倍数でなければならないという追加の制限がある点が異なる。 廃止され ... ... memalign(void ** memptr , size_t alignment , size_t size ); void *aligned_alloc(size_t alignment , size_t size ); void *valloc(size_t size ); #include < malloc.h > void *memalign(size_t alignment ... _t size ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): posix_memalign (): _POSIX_C_SOURCE >= 200112L aligned_alloc (): _ISOC11_SOURCE valloc (): glibc 2.12 以降: (_XOPEN_SOURCE >= 500) && !(_POSIX_C_SOURCE >= 200112L) || /* glibc 2 ... ターを返す。 メモリーのアドレスは alignment の倍数になっているはずである。 alignment は 2 のべき乗でなければならない。 関数 aligned_alloc () は memalign () と同じだが、 size が alignment の倍数でなければならないという追加の制限がある点が異なる。 廃止され ... ... * CMSG_DATA () returns a pointer to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but sh ... iobuf, .iov_len = sizeof(iobuf) }; union { /* Ancillary data buffer, wrapped in a union in order to ensure it is suitably aligned */ char buf[CMSG_SPACE(sizeof(myfds))]; struct cmsghdr align; } u; msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control ... ... * CMSG_DATA () returns a pointer to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but sh ... iobuf, .iov_len = sizeof(iobuf) }; union { /* Ancillary data buffer, wrapped in a union in order to ensure it is suitably aligned */ char buf[CMSG_SPACE(sizeof(myfds))]; struct cmsghdr align; } u; msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control ... ... * CMSG_DATA () returns a pointer to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but sh ... iobuf, .iov_len = sizeof(iobuf) }; union { /* Ancillary data buffer, wrapped in a union in order to ensure it is suitably aligned */ char buf[CMSG_SPACE(sizeof(myfds))]; struct cmsghdr align; } u; msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control ... ... * CMSG_DATA () returns a pointer to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but sh ... iobuf, .iov_len = sizeof(iobuf) }; union { /* Ancillary data buffer, wrapped in a union in order to ensure it is suitably aligned */ char buf[CMSG_SPACE(sizeof(myfds))]; struct cmsghdr align; } u; msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control ... ... * CMSG_DATA () returns a pointer to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but sh ... iobuf, .iov_len = sizeof(iobuf) }; union { /* Ancillary data buffer, wrapped in a union in order to ensure it is suitably aligned */ char buf[CMSG_SPACE(sizeof(myfds))]; struct cmsghdr align; } u; msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。