16 lines
265 B
C
16 lines
265 B
C
#define _GNU_SOURCE
|
|
#include <sys/socket.h>
|
|
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
|
|
#include "pipe_utils.h"
|
|
|
|
void
|
|
allocation_primitive(int fd[2])
|
|
{
|
|
pipe2(fd, O_NONBLOCK);
|
|
fcntl(fd[0], F_SETPIPE_SZ, 8192);
|
|
char buffer[0x100] = { 0 };
|
|
write(fd[1], buffer, 8);
|
|
}
|