mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Reformat the world
This commit is contained in:
parent
194cb24547
commit
b2f171ec69
714 changed files with 35149 additions and 35203 deletions
14
src/Pipe.cc
14
src/Pipe.cc
|
@ -2,14 +2,15 @@
|
|||
|
||||
#include "zeek/Pipe.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <cstdio>
|
||||
|
||||
#include "zeek/Reporter.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
namespace zeek::detail
|
||||
{
|
||||
|
||||
static void pipe_fail(int eno)
|
||||
{
|
||||
|
@ -88,8 +89,7 @@ static int dup_or_fail(int fd, int flags, int status_flags)
|
|||
return rval;
|
||||
}
|
||||
|
||||
Pipe::Pipe(int flags0, int flags1, int status_flags0, int status_flags1,
|
||||
int* arg_fds)
|
||||
Pipe::Pipe(int flags0, int flags1, int status_flags0, int status_flags1, int* arg_fds)
|
||||
{
|
||||
if ( arg_fds )
|
||||
{
|
||||
|
@ -155,8 +155,8 @@ Pipe& Pipe::operator=(const Pipe& other)
|
|||
|
||||
PipePair::PipePair(int flags, int status_flags, int* fds)
|
||||
: pipes{Pipe(flags, flags, status_flags, status_flags, fds ? fds + 0 : nullptr),
|
||||
Pipe(flags, flags, status_flags, status_flags, fds ? fds + 2 : nullptr)}
|
||||
Pipe(flags, flags, status_flags, status_flags, fds ? fds + 2 : nullptr)}
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace zeek::detail
|
||||
} // namespace zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue