summaryrefslogtreecommitdiff
path: root/src/libstddjb/openwritevnclose_suffix_internal_deprecated.c
blob: 47278e57e490fc91192cf778d54cc96294d6e505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <skalibs/devino.h>
#include <skalibs/djbunix.h>

int openwritevnclose_suffix_internal (char const *fn, struct iovec const *v, unsigned int n, dev_t *dev, ino_t *ino, int dosync, char const *suffix)
{
  devino di ;
  if (!openwritevnclose_suffix6(fn, v, n, dev || ino ? &di : 0, !!dosync, suffix)) return 0 ;	
  if (dev) *dev = di.dev ;
  if (ino) *ino = di.ino ;
  return 1 ;
}