gcc/fixincludes/tests/base/sys/stat.h
Olivier Hainque a54d11749f Adjust VxWorks fixincludes hack for mkdir to work for C++
For VxWorks, replace an attempt at providing a posix API for
mkdir via macro by a varargs prototype, which works better for
C++ references like std::mkdir(arg1, arg2).

2021-12-16  Olivier Hainque  <hainque@adacore.com>

fixincludes/
	* inclhack.def (vxworks_posix_mkdir): Refine to expose a
	varargs interface.
	* tests/base/sys/stat.h: Update expected results.
	* fixincl.x: Regenerate.
2022-01-04 10:27:11 +00:00

40 lines
953 B
C

/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"fixinc/tests/inc/sys/stat.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#if defined( GLIBC_C99_INLINE_2_CHECK )
#ifdef __GNUC_GNU_INLINE__
extern
#endif
__inline__ int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2));
#ifdef __GNUC_GNU_INLINE__
extern
#endif
__inline__ int
__NTH (fstat64 (int __fd, struct stat64 *__statbuf))
{}
#endif /* GLIBC_C99_INLINE_2_CHECK */
#if defined( RS6000_FCHMOD_CHECK )
extern int fchmod(int, mode_t);
#endif /* RS6000_FCHMOD_CHECK */
#if defined( VXWORKS_POSIX_MKDIR_CHECK )
extern STATUS mkdir(const char *dir, ...);
#endif /* VXWORKS_POSIX_MKDIR_CHECK */
#if defined( VXWORKS_NEEDS_VXWORKS_CHECK )
#include </dev/null> /* ULONG */
# define __INCstath <sys/stat.h>
#include <types/vxTypesOld.h>
#endif /* VXWORKS_NEEDS_VXWORKS_CHECK */