Android-cuttlefish cvd tool
Functions
sysdeps_unix.cpp File Reference
#include "sysdeps.h"
#include <sys/utsname.h>
#include <android-base/logging.h>
#include <android-base/stringprintf.h>
Include dependency graph for sysdeps_unix.cpp:

Functions

bool set_tcp_keepalive (borrowed_fd fd, int interval_sec)
 
static __inline__ void disable_close_on_exec (borrowed_fd fd)
 
Process adb_launch_process (std::string_view executable, std::vector< std::string > args, std::initializer_list< int > fds_to_inherit)
 
std::string GetOSVersion (void)
 
std::optional< ssize_t > network_peek (borrowed_fd fd)
 

Function Documentation

◆ adb_launch_process()

Process adb_launch_process ( std::string_view  executable,
std::vector< std::string >  args,
std::initializer_list< int >  fds_to_inherit 
)

◆ disable_close_on_exec()

static __inline__ void disable_close_on_exec ( borrowed_fd  fd)
static

◆ GetOSVersion()

std::string GetOSVersion ( void  )

◆ network_peek()

std::optional< ssize_t > network_peek ( borrowed_fd  fd)

◆ set_tcp_keepalive()

bool set_tcp_keepalive ( borrowed_fd  fd,
int  interval_sec 
)