summary refs log tree commit diff
path: root/src/libstddjb/open3.c
blob: 21fd90476a04cb377a73d75ea5fb19ab39b68777 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <skalibs/nonposix.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>

int open3 (char const *s, unsigned int flags, unsigned int mode)
{
  int r ;
  do r = open(s, flags, mode) ;
  while ((r == -1) && (errno == EINTR)) ;
  return r ;
}