gem5
v20.1.0.0
|
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | STATIC_MSG(fd, m) |
Statically allocate a string and write it to a file descriptor. More... | |
#define | STATIC_ERR(m) STATIC_MSG(STDERR_FILENO, m) |
Statically allocate a string and write it to STDERR. More... | |
Functions | |
ssize_t | atomic_read (int fd, void *s, size_t n) |
ssize_t | atomic_write (int fd, const void *s, size_t n) |
#define STATIC_ERR | ( | m | ) | STATIC_MSG(STDERR_FILENO, m) |
Statically allocate a string and write it to STDERR.
Definition at line 64 of file atomicio.hh.
#define STATIC_MSG | ( | fd, | |
m | |||
) |
Statically allocate a string and write it to a file descriptor.
Definition at line 50 of file atomicio.hh.
ssize_t atomic_read | ( | int | fd, |
void * | s, | ||
size_t | n | ||
) |
Definition at line 35 of file atomicio.cc.
References ArmISA::fd, ArmISA::n, MipsISA::p, and ArmISA::s.
Referenced by TEST().
ssize_t atomic_write | ( | int | fd, |
const void * | s, | ||
size_t | n | ||
) |
Definition at line 64 of file atomicio.cc.
References ArmISA::fd, ArmISA::n, MipsISA::p, and ArmISA::s.
Referenced by Terminal::accept(), VncServer::accept(), TEST(), Terminal::write(), and VncServer::write().