Unverified Commit 521f5534 authored by forking-google-bazel-bot[bot]'s avatar forking-google-bazel-bot[bot] Committed by GitHub
Browse files

[Bazel] Fixes 89894b67 (#194321)



This fixes 89894b67.

Co-authored-by: default avatarGoogle Bazel Bot <google-bazel-bot@google.com>
parent 1fee6a1e
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
@@ -366,11 +366,27 @@ libc_support_library(
    deps = [":llvm_libc_macros_complex_macros"],
)

libc_support_library(
    name = "llvm_libc_types_struct_cmsghdr",
    hdrs = ["include/llvm-libc-types/struct_cmsghdr.h"],
    deps = [
        ":llvm_libc_types_size_t",
    ],
)

libc_support_library(
    name = "llvm_libc_macros_fcntl_macros",
    hdrs = ["include/llvm-libc-macros/linux/fcntl-macros.h"],
)

libc_support_library(
    name = "llvm_libc_macros_sys_socket_macros",
    hdrs = [
        "include/llvm-libc-macros/linux/sys-socket-macros.h",
        "include/llvm-libc-macros/sys-socket-macros.h",
    ],
)

libc_support_library(
    name = "llvm_libc_types_size_t",
    hdrs = ["include/llvm-libc-types/size_t.h"],
@@ -414,6 +430,14 @@ libc_support_library(
    hdrs = ["hdr/sys_epoll_macros.h"],
)

libc_support_library(
    name = "hdr_sys_socket_macros",
    hdrs = ["hdr/sys_socket_macros.h"],
    deps = [
        ":llvm_libc_macros_sys_socket_macros",
    ],
)

libc_support_library(
    name = "hdr_errno_macros",
    hdrs = ["hdr/errno_macros.h"],
@@ -675,6 +699,12 @@ libc_support_library(
    hdrs = ["hdr/types/struct_msghdr.h"],
)

libc_support_library(
    name = "types_struct_cmsghdr",
    hdrs = ["hdr/types/struct_cmsghdr.h"],
    deps = [":llvm_libc_types_struct_cmsghdr"],
)

libc_support_library(
    name = "types_wchar_t",
    hdrs = ["hdr/types/wchar_t.h"],
@@ -2006,6 +2036,22 @@ libc_support_library(
    ],
)

libc_support_library(
    name = "__support_osutil_linux_syscall_wrappers_getsockopt",
    hdrs = ["src/__support/OSUtil/linux/syscall_wrappers/getsockopt.h"],
    target_compatible_with = select({
        "@platforms//os:linux": [],
        "//conditions:default": ["@platforms//:incompatible"],
    }),
    deps = [
        ":__support_common",
        ":__support_error_or",
        ":__support_macros_config",
        ":__support_osutil_syscall",
        ":types_socklen_t",
    ],
)

libc_support_library(
    name = "__support_osutil_linux_syscall_wrappers_getrandom",
    hdrs = ["src/__support/OSUtil/linux/syscall_wrappers/getrandom.h"],
@@ -11949,6 +11995,20 @@ libc_function(
    ],
)

libc_function(
    name = "getsockopt",
    srcs = ["src/sys/socket/linux/getsockopt.cpp"],
    hdrs = ["src/sys/socket/getsockopt.h"],
    deps = [
        ":__support_common",
        ":__support_libc_errno",
        ":__support_macros_config",
        ":__support_osutil_linux_syscall_wrappers_getsockopt",
        ":errno",
        ":types_socklen_t",
    ],
)

libc_function(
    name = "recv",
    srcs = ["src/sys/socket/linux/recv.cpp"],
+6 −0
Original line number Diff line number Diff line
@@ -55,8 +55,14 @@ libc_test(
    srcs = ["linux/sendmsg_recvmsg_test.cpp"],
    deps = [
        "//libc:close",
        "//libc:getsockopt",
        "//libc:hdr_sys_socket_macros",
        "//libc:llvm_libc_macros_sys_socket_macros",
        "//libc:memcpy",
        "//libc:memset",
        "//libc:recvmsg",
        "//libc:sendmsg",
        "//libc:socketpair",
        "//libc:types_struct_cmsghdr",
    ],
)