#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <rz_types.h>
#include <rz_util.h>
#include "transport.h"
#include <errno.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/un.h>
Go to the source code of this file.
◆ iob_pipe_close()
static bool iob_pipe_close |
( |
void * |
p | ) |
|
|
static |
Definition at line 86 of file iob_pipe.c.
87 return close((
int)(
size_t)
p) == 0;
static static fork const void static count close
References close, and p.
◆ iob_pipe_open()
static void* iob_pipe_open |
( |
const char * |
path | ) |
|
|
static |
Definition at line 63 of file iob_pipe.c.
76 strncpy(sa.sun_path,
path,
sizeof(sa.sun_path) - 1);
77 sa.sun_path[
sizeof(sa.sun_path) - 1] = 0;
83 return (
void *)(
size_t)sock;
static static fork const void static count static fd const char const char static newpath const char static path const char path
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd socket
return memset(p, 0, total)
References AF_UNIX, close, memset(), path, SOCK_STREAM, socket, and sockaddr_un::sun_path.
◆ iob_pipe_read()
Definition at line 90 of file iob_pipe.c.
103 if (errno ==
EINTR) {
112 return recv((
int)(
size_t)
p,
buf,
count, 0);
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval tv
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char static mode static oldfd struct tms static buf static getgid static geteuid const char static filename static arg static mask struct ustat static ubuf static getppid static setsid static egid sigset_t static set struct timeval struct timezone static tz select
static const z80_opcode fd[]
References count, EINTR, fd, FD_ISSET, FD_SET, FD_ZERO, int, NULL, p, select, timeout, and tv.
◆ iob_pipe_write()
◆ iob_pipe
Initial value:= {
.name = "pipe",
}
static int iob_pipe_read(void *p, uint8_t *buf, const uint64_t count, const int timeout)
static int iob_pipe_write(void *p, const uint8_t *buf, const uint64_t count, const int timeout)
static bool iob_pipe_close(void *p)
static void * iob_pipe_open(const char *path)
Definition at line 130 of file iob_pipe.c.
Referenced by __open().