From: Lawrence S. <ljs...@us...> - 2014-03-15 02:44:41
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 9fc71f07e1032165f39e4422ca171ed105837bd6 (commit) from dcbe25916d0cca0bc02310a4de9b217b020507ab (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 9fc71f07e1032165f39e4422ca171ed105837bd6 Author: Lawrence Sebald <ljs...@us...> Date: Fri Mar 14 22:43:58 2014 -0400 Add a few constants that Newlib fails to define for any platforms other than Cygwin. ----------------------------------------------------------------------- Summary of changes: include/sys/_types.h | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/include/sys/_types.h b/include/sys/_types.h index 682bf80..24bc22a 100644 --- a/include/sys/_types.h +++ b/include/sys/_types.h @@ -99,6 +99,29 @@ typedef void *_iconv_t; /** \brief PDP Endian test macro */ #define PDP_ENDIAN 3412 +/* Sigh... for some reason, Newlib only bothers defining these on Cygwin... + We're only actually concerned with AT_SYMLINK_NOFOLLOW currently. These + should all be defined in <fcntl.h>, by the way. */ +#ifndef AT_EACCESS +/** \brief Check access using effective user and group ID */ +#define AT_EACCESS 1 +#endif + +#ifndef AT_SYMLINK_NOFOLLOW +/** \brief Do not follow symlinks */ +#define AT_SYMLINK_NOFOLLOW 2 +#endif + +#ifndef AT_SYMLINK_FOLLOW +/** \brief Follow symbolic links */ +#define AT_SYMLINK_FOLLOW 4 +#endif + +#ifndef AT_REMOVEDIR +/** \brief Remove directory instead of file */ +#define AT_REMOVEDIR 8 +#endif + // And this is for old KOS source compatability. #include <arch/types.h> hooks/post-receive -- A pseudo Operating System for the Dreamcast. |