2010-06-29 Antony King <antony.king@sr.com>
* libc/ctype/ctype_.c (__ctype_ptr): Reinstate definition (guarded by _NEED_OLD_CTYPE_PTR_DEFINITION) for backwards compatibility with newlib 1.16.0 and earlier. 2010-06-28 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> * libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE.
This commit is contained in:
parent
5eb491d26e
commit
ca56076ae2
|
@ -1,3 +1,13 @@
|
||||||
|
2010-06-29 Antony King <antony.king@sr.com>
|
||||||
|
|
||||||
|
* libc/ctype/ctype_.c (__ctype_ptr): Reinstate definition (guarded by
|
||||||
|
_NEED_OLD_CTYPE_PTR_DEFINITION) for backwards compatibility with newlib
|
||||||
|
1.16.0 and earlier.
|
||||||
|
|
||||||
|
2010-06-28 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||||
|
|
||||||
|
* libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE.
|
||||||
|
|
||||||
2010-06-18 Pavel Pisa <ppisa4lists@pikron.com>
|
2010-06-18 Pavel Pisa <ppisa4lists@pikron.com>
|
||||||
|
|
||||||
* libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to
|
* libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to
|
||||||
|
|
|
@ -98,6 +98,13 @@ char _ctype_b[128 + 256] = {
|
||||||
_CTYPE_DATA_128_255
|
_CTYPE_DATA_128_255
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _NEED_OLD_CTYPE_PTR_DEFINITION
|
||||||
|
#ifndef _MB_CAPABLE
|
||||||
|
_CONST
|
||||||
|
#endif
|
||||||
|
char __EXPORT *__ctype_ptr = (char *) _ctype_b + 128;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _MB_CAPABLE
|
#ifndef _MB_CAPABLE
|
||||||
_CONST
|
_CONST
|
||||||
#endif
|
#endif
|
||||||
|
@ -129,6 +136,13 @@ _CONST char _ctype_[1 + 256] = {
|
||||||
_CTYPE_DATA_128_255
|
_CTYPE_DATA_128_255
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _NEED_OLD_CTYPE_PTR_DEFINITION
|
||||||
|
#ifndef _MB_CAPABLE
|
||||||
|
_CONST
|
||||||
|
#endif
|
||||||
|
char *__ctype_ptr = (char *) _ctype_ + 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _MB_CAPABLE
|
#ifndef _MB_CAPABLE
|
||||||
_CONST
|
_CONST
|
||||||
#endif
|
#endif
|
||||||
|
@ -160,8 +174,14 @@ __set_ctype (const char *charset)
|
||||||
else
|
else
|
||||||
++idx;
|
++idx;
|
||||||
# if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
|
# if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
|
||||||
|
#ifdef _NEED_OLD_CTYPE_PTR_DEFINITION
|
||||||
|
__ctype_ptr = (char *) (__ctype_iso[idx] + 128);
|
||||||
|
#endif
|
||||||
__ctype_ptr__ = (char *) (__ctype_iso[idx] + 127);
|
__ctype_ptr__ = (char *) (__ctype_iso[idx] + 127);
|
||||||
# else
|
# else
|
||||||
|
#ifdef _NEED_OLD_CTYPE_PTR_DEFINITION
|
||||||
|
__ctype_ptr = (char *) __ctype_iso[idx] + 1;
|
||||||
|
#endif
|
||||||
__ctype_ptr__ = (char *) __ctype_iso[idx];
|
__ctype_ptr__ = (char *) __ctype_iso[idx];
|
||||||
# endif
|
# endif
|
||||||
return;
|
return;
|
||||||
|
@ -172,8 +192,14 @@ __set_ctype (const char *charset)
|
||||||
if (idx < 0)
|
if (idx < 0)
|
||||||
break;
|
break;
|
||||||
# if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
|
# if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
|
||||||
|
#ifdef _NEED_OLD_CTYPE_PTR_DEFINITION
|
||||||
|
__ctype_ptr = (char *) (__ctype_cp[idx] + 128);
|
||||||
|
#endif
|
||||||
__ctype_ptr__ = (char *) (__ctype_cp[idx] + 127);
|
__ctype_ptr__ = (char *) (__ctype_cp[idx] + 127);
|
||||||
# else
|
# else
|
||||||
|
#ifdef _NEED_OLD_CTYPE_PTR_DEFINITION
|
||||||
|
__ctype_ptr = (char *) __ctype_cp[idx] + 1;
|
||||||
|
#endif
|
||||||
__ctype_ptr__ = (char *) __ctype_cp[idx];
|
__ctype_ptr__ = (char *) __ctype_cp[idx];
|
||||||
# endif
|
# endif
|
||||||
return;
|
return;
|
||||||
|
@ -182,8 +208,14 @@ __set_ctype (const char *charset)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
# if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
|
# if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
|
||||||
|
#ifdef _NEED_OLD_CTYPE_PTR_DEFINITION
|
||||||
|
__ctype_ptr = (char *) _ctype_b + 128;
|
||||||
|
#endif
|
||||||
__ctype_ptr__ = (char *) _ctype_b + 127;
|
__ctype_ptr__ = (char *) _ctype_b + 127;
|
||||||
# else
|
# else
|
||||||
|
#ifdef _NEED_OLD_CTYPE_PTR_DEFINITION
|
||||||
|
__ctype_ptr = (char *) _ctype_ + 1;
|
||||||
|
#endif
|
||||||
__ctype_ptr__ = (char *) _ctype_;
|
__ctype_ptr__ = (char *) _ctype_;
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,12 @@ struct stat
|
||||||
#define S_IWOTH 0000002 /* write permission, other */
|
#define S_IWOTH 0000002 /* write permission, other */
|
||||||
#define S_IXOTH 0000001/* execute/search permission, other */
|
#define S_IXOTH 0000001/* execute/search permission, other */
|
||||||
|
|
||||||
|
#ifndef _POSIX_SOURCE
|
||||||
|
#define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) /* 0777 */
|
||||||
|
#define ALLPERMS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) /* 07777 */
|
||||||
|
#define DEFFILEMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) /* 0666 */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define S_ISBLK(m) (((m)&_IFMT) == _IFBLK)
|
#define S_ISBLK(m) (((m)&_IFMT) == _IFBLK)
|
||||||
#define S_ISCHR(m) (((m)&_IFMT) == _IFCHR)
|
#define S_ISCHR(m) (((m)&_IFMT) == _IFCHR)
|
||||||
#define S_ISDIR(m) (((m)&_IFMT) == _IFDIR)
|
#define S_ISDIR(m) (((m)&_IFMT) == _IFDIR)
|
||||||
|
|
Loading…
Reference in New Issue