Blame support/xposix_spawn_file_actions_addclose.c

Packit Service b31fca
/* xposix_spawn_file_actions_addclose implementation.
Packit Service b31fca
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Service b31fca
   This file is part of the GNU C Library.
Packit Service b31fca
Packit Service b31fca
   The GNU C Library is free software; you can redistribute it and/or
Packit Service b31fca
   modify it under the terms of the GNU Lesser General Public
Packit Service b31fca
   License as published by the Free Software Foundation; either
Packit Service b31fca
   version 2.1 of the License, or (at your option) any later version.
Packit Service b31fca
Packit Service b31fca
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service b31fca
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service b31fca
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service b31fca
   Lesser General Public License for more details.
Packit Service b31fca
Packit Service b31fca
   You should have received a copy of the GNU Lesser General Public
Packit Service b31fca
   License along with the GNU C Library; if not, see
Packit Service b31fca
   <http://www.gnu.org/licenses/>.  */
Packit Service b31fca
Packit Service b31fca
#include <support/xspawn.h>
Packit Service b31fca
#include <support/check.h>
Packit Service b31fca
Packit Service b31fca
int
Packit Service b31fca
xposix_spawn_file_actions_addclose (posix_spawn_file_actions_t *fa, int fd)
Packit Service b31fca
{
Packit Service b31fca
  int status = posix_spawn_file_actions_addclose (fa, fd);
Packit Service b31fca
  if (status == -1)
Packit Service b31fca
    FAIL_EXIT1 ("posix_spawn_file_actions_addclose failed: %m\n");
Packit Service b31fca
  return status;
Packit Service b31fca
}