Searched refs:sun_path (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/lldb/source/Host/posix/ |
| H A D | DomainSocket.cpp | 25 (offsetof(struct sockaddr_un, sun_path) + strlen((ptr)->sun_path)) 34 if (name.size() + name_offset > sizeof(saddr_un->sun_path)) in SetSockAddr() 40 memcpy(saddr_un->sun_path + name_offset, name.data(), name.size()); in SetSockAddr() 49 offsetof(struct sockaddr_un, sun_path) + name_offset + name.size(); in SetSockAddr() 137 if (sock_addr_len <= offsetof(struct sockaddr_un, sun_path)) in GetSocketName() 140 llvm::StringRef name(saddr_un.sun_path + GetNameOffset(), in GetSocketName() 141 sock_addr_len - offsetof(struct sockaddr_un, sun_path) - in GetSocketName()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | offsetof.c | 6 char sun_path[104]; member 10 return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]); in test()
|
| /llvm-project-15.0.7/lldb/tools/darwin-debug/ |
| H A D | darwin-debug.cpp | 283 ::strncpy(saddr_un.sun_path, unix_socket_name.c_str(), in main() 284 sizeof(saddr_un.sun_path) - 1); in main() 285 saddr_un.sun_path[sizeof(saddr_un.sun_path) - 1] = '\0'; in main()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | offsetof.c | 42 char sun_path[104]; member 45 int a[__builtin_offsetof(struct sockaddr_un, sun_path[len+1])]; in a()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | filesystem_test_helper.h | 296 assert(file.size() <= sizeof(address.sun_path)); in create_socket() 297 ::strncpy(address.sun_path, file.c_str(), sizeof(address.sun_path)); in create_socket()
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | debugserver.cpp | 677 ::strlcpy(saddr_un.sun_path, unix_socket_name, in PortWasBoundCallbackUnixSocket() 678 sizeof(saddr_un.sun_path) - 1); in PortWasBoundCallbackUnixSocket() 679 saddr_un.sun_path[sizeof(saddr_un.sun_path) - 1] = '\0'; in PortWasBoundCallbackUnixSocket()
|