[libc][bazel] Mark socket functions weak (#115088)
Downstream ther'es a user that needs the syscall wrappers to be weak. I intend to set up a proper mechanism for just listing which functions should be weak eventually, but for now this is necessary.
This commit is contained in:
@@ -4648,6 +4648,7 @@ libc_function(
|
||||
name = "socket",
|
||||
srcs = ["src/sys/socket/linux/socket.cpp"],
|
||||
hdrs = ["src/sys/socket/socket.h"],
|
||||
weak = True,
|
||||
deps = [
|
||||
":__support_common",
|
||||
":__support_osutil_syscall",
|
||||
@@ -4659,6 +4660,7 @@ libc_function(
|
||||
name = "socketpair",
|
||||
srcs = ["src/sys/socket/linux/socketpair.cpp"],
|
||||
hdrs = ["src/sys/socket/socketpair.h"],
|
||||
weak = True,
|
||||
deps = [
|
||||
":__support_common",
|
||||
":__support_osutil_syscall",
|
||||
@@ -4670,6 +4672,7 @@ libc_function(
|
||||
name = "send",
|
||||
srcs = ["src/sys/socket/linux/send.cpp"],
|
||||
hdrs = ["src/sys/socket/send.h"],
|
||||
weak = True,
|
||||
deps = [
|
||||
":__support_common",
|
||||
":__support_osutil_syscall",
|
||||
@@ -4684,6 +4687,7 @@ libc_function(
|
||||
name = "sendto",
|
||||
srcs = ["src/sys/socket/linux/sendto.cpp"],
|
||||
hdrs = ["src/sys/socket/sendto.h"],
|
||||
weak = True,
|
||||
deps = [
|
||||
":__support_common",
|
||||
":__support_osutil_syscall",
|
||||
@@ -4698,6 +4702,7 @@ libc_function(
|
||||
name = "sendmsg",
|
||||
srcs = ["src/sys/socket/linux/sendmsg.cpp"],
|
||||
hdrs = ["src/sys/socket/sendmsg.h"],
|
||||
weak = True,
|
||||
deps = [
|
||||
":__support_common",
|
||||
":__support_osutil_syscall",
|
||||
@@ -4711,6 +4716,7 @@ libc_function(
|
||||
name = "recv",
|
||||
srcs = ["src/sys/socket/linux/recv.cpp"],
|
||||
hdrs = ["src/sys/socket/recv.h"],
|
||||
weak = True,
|
||||
deps = [
|
||||
":__support_common",
|
||||
":__support_osutil_syscall",
|
||||
@@ -4725,6 +4731,7 @@ libc_function(
|
||||
name = "recvfrom",
|
||||
srcs = ["src/sys/socket/linux/recvfrom.cpp"],
|
||||
hdrs = ["src/sys/socket/recvfrom.h"],
|
||||
weak = True,
|
||||
deps = [
|
||||
":__support_common",
|
||||
":__support_osutil_syscall",
|
||||
@@ -4739,6 +4746,7 @@ libc_function(
|
||||
name = "recvmsg",
|
||||
srcs = ["src/sys/socket/linux/recvmsg.cpp"],
|
||||
hdrs = ["src/sys/socket/recvmsg.h"],
|
||||
weak = True,
|
||||
deps = [
|
||||
":__support_common",
|
||||
":__support_osutil_syscall",
|
||||
|
||||
Reference in New Issue
Block a user