[all-commits] [llvm/llvm-project] ee17fd: [libc] add socket function

michaelrj-google via All-commits all-commits at lists.llvm.org
Wed May 3 11:01:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee17fd7d46a914bed4619f656cc9062c40951e5c
      https://github.com/llvm/llvm-project/commit/ee17fd7d46a914bed4619f656cc9062c40951e5c
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M libc/config/linux/api.td
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/include/CMakeLists.txt
    M libc/include/llvm-libc-macros/linux/sys-socket-macros.h
    M libc/include/llvm-libc-types/CMakeLists.txt
    A libc/include/llvm-libc-types/sa_family_t.h
    A libc/include/llvm-libc-types/struct_sockaddr.h
    M libc/spec/linux.td
    M libc/spec/posix.td
    M libc/src/sys/CMakeLists.txt
    A libc/src/sys/socket/CMakeLists.txt
    A libc/src/sys/socket/linux/CMakeLists.txt
    A libc/src/sys/socket/linux/socket.cpp
    A libc/src/sys/socket/socket.h
    M libc/test/src/sys/CMakeLists.txt
    A libc/test/src/sys/socket/CMakeLists.txt
    A libc/test/src/sys/socket/linux/CMakeLists.txt
    A libc/test/src/sys/socket/linux/socket_test.cpp

  Log Message:
  -----------
  [libc] add socket function

This patch adds the function "socket" from the header "sys/socket". It's
a simple syscall wrapper, and I plan on adding the related functions in
a followup patch.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D149622




More information about the All-commits mailing list