Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-05-30 21:18:05 +0400
committerChristopher Faylor <me@cgf.cx>2000-05-30 21:18:05 +0400
commitd2dd57657cb7aa40e7020c0b825345647d4514aa (patch)
tree91eb96cabe8476d07c1ebc5d535ee031427d9b95 /newlib/libc
parentec50441f4a994f6c320de61bacea1cf19412cc52 (diff)
* libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
* libc/include/malloc.h: Ditto. * libc/include/process.h: Ditto. * libc/include/stdio.h: Ditto. * libc/include/stdlib.h: Ditto. * libc/include/time.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/include/sys/errno.h: Ditto. * libc/include/sys/signal.h: Ditto. * libc/include/sys/stat.h: Ditto. * libc/include/sys/time.h: Ditto. * libc/include/sys/unistd.h: Ditto. * libc/include/string.h: Ditto. strsignal should return a const char *.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/ctype.h2
-rw-r--r--newlib/libc/include/machine/setjmp.h4
-rw-r--r--newlib/libc/include/malloc.h4
-rw-r--r--newlib/libc/include/process.h2
-rw-r--r--newlib/libc/include/stdio.h4
-rw-r--r--newlib/libc/include/stdlib.h4
-rw-r--r--newlib/libc/include/string.h4
-rw-r--r--newlib/libc/include/sys/errno.h2
-rw-r--r--newlib/libc/include/sys/signal.h4
-rw-r--r--newlib/libc/include/sys/stat.h2
-rw-r--r--newlib/libc/include/sys/time.h4
-rw-r--r--newlib/libc/include/sys/unistd.h6
-rw-r--r--newlib/libc/include/time.h4
13 files changed, 23 insertions, 23 deletions
diff --git a/newlib/libc/include/ctype.h b/newlib/libc/include/ctype.h
index 7c4f28adf..56ca356ee 100644
--- a/newlib/libc/include/ctype.h
+++ b/newlib/libc/include/ctype.h
@@ -36,7 +36,7 @@ int _EXFUN(_toupper, (int __c));
#define _X 0100
#define _B 0200
-#if !defined(__CYGWIN32__) || defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
+#if !defined(__CYGWIN__) || defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
extern _CONST char _ctype_[];
#else
extern _CONST char _ctype_[] __declspec(dllimport);
diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h
index 4656c0ff1..2a54daaa5 100644
--- a/newlib/libc/include/machine/setjmp.h
+++ b/newlib/libc/include/machine/setjmp.h
@@ -147,7 +147,7 @@ typedef _JBTYPE jmp_buf[_JBLEN];
typedef int jmp_buf[_JBLEN];
#endif
-#if defined(__CYGWIN32__) || defined(__rtems__)
+#if defined(__CYGWIN__) || defined(__rtems__)
#include <signal.h>
/* POSIX sigsetjmp/siglongjmp macros */
@@ -164,5 +164,5 @@ typedef int sigjmp_buf[_JBLEN+2];
sigprocmask (SIG_SETMASK, (sigset_t *) &env[_SIGMASK], 0):0),\
longjmp (env, val))
-#endif /* __CYGWIN32__ or __rtems__ */
+#endif /* __CYGWIN__ or __rtems__ */
#endif
diff --git a/newlib/libc/include/malloc.h b/newlib/libc/include/malloc.h
index 64abe91cf..fa4527cd5 100644
--- a/newlib/libc/include/malloc.h
+++ b/newlib/libc/include/malloc.h
@@ -79,7 +79,7 @@ extern void cfree _PARAMS ((_PTR));
extern _VOID mstats _PARAMS ((char *));
extern _VOID _mstats_r _PARAMS ((struct _reent *, char *));
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
/* Cygwin32 needs to be able to copy all the malloc information from
the parent to the child. However, cygwin32 does not normally copy
@@ -88,7 +88,7 @@ extern _VOID _mstats_r _PARAMS ((struct _reent *, char *));
extern int __malloc_copy _PARAMS ((int (*) (void *, void *, void *, int),
void *, int));
-#endif /* __CYGWIN32 */
+#endif /* __CYGWIN */
#ifdef __cplusplus
}
diff --git a/newlib/libc/include/process.h b/newlib/libc/include/process.h
index ca5b451ce..49560e2a5 100644
--- a/newlib/libc/include/process.h
+++ b/newlib/libc/include/process.h
@@ -27,7 +27,7 @@ int spawnve(int mode, const char *path, char * const *argv, const char * const *
int spawnvp(int mode, const char *path, const char * const *argv);
int spawnvpe(int mode, const char *path, const char * const *argv, const char * const *envp);
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
/* Secure exec() functions family */
/* The first arg should really be a HANDLE which is a void *. But we
can't include windows.h here so... */
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h
index 2a14f90b8..5d794bd55 100644
--- a/newlib/libc/include/stdio.h
+++ b/newlib/libc/include/stdio.h
@@ -66,7 +66,7 @@ typedef struct __sFILE FILE;
#define __SNPT 0x0800 /* do not do fseek() optimisation */
#define __SOFF 0x1000 /* set iff _offset is in fact correct */
#define __SMOD 0x2000 /* true => fgetline modified _p text */
-#if defined(__CYGWIN__) || defined(__CYGWIN32__)
+#if defined(__CYGWIN__) || defined(__CYGWIN__)
#define __SCLE 0x4000 /* convert line endings CR/LF <-> NL */
#endif
@@ -334,7 +334,7 @@ static __inline int __sputc(int _c, FILE *_p) {
__swbuf((int)(x), p) == EOF : (*(p)->_p = (x), (p)->_p++, 0))
#define L_cuserid 9 /* posix says it goes in stdio.h :( */
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
#define L_ctermid 16
#endif
#endif
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 8c21de647..a61517f26 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -39,7 +39,7 @@ typedef struct
#define RAND_MAX 0x7fffffff
-#if (defined(__CYGWIN__) || defined(__CYGWIN32__)) && ! defined(_COMPILING_NEWLIB)
+#if (defined(__CYGWIN__) || defined(__CYGWIN__)) && ! defined(_COMPILING_NEWLIB)
extern __declspec(dllimport) int __mb_cur_max;
#else
extern int __mb_cur_max;
@@ -113,7 +113,7 @@ char * _EXFUN(ecvtf,(float,int,int *,int *));
char * _EXFUN(dtoa,(double, int, int, int *, int*, char**));
int _EXFUN(rand_r,(unsigned *__seed));
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
char * _EXFUN(realpath,(const char *, char *));
void _EXFUN(unsetenv,(const char *__string));
void _EXFUN(_unsetenv_r,(struct _reent *, const char *__string));
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h
index 50f2307a3..557800e14 100644
--- a/newlib/libc/include/string.h
+++ b/newlib/libc/include/string.h
@@ -66,8 +66,8 @@ int _EXFUN(strncasecmp,(const char *, const char *, size_t));
char *_EXFUN(strsep,(char **, const char *));
char *_EXFUN(strlwr,(char *));
char *_EXFUN(strupr,(char *));
-#ifdef __CYGWIN32__
-char *_EXFUN(strsignal, (int __signo));
+#ifdef __CYGWIN__
+const char *_EXFUN(strsignal, (int __signo));
int _EXFUN(strtosigno, (const char *__name));
#endif
void _EXFUN(swab,(const void *, void *, ssize_t));
diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h
index 6d85d49a9..cc791fcb2 100644
--- a/newlib/libc/include/sys/errno.h
+++ b/newlib/libc/include/sys/errno.h
@@ -15,7 +15,7 @@ extern "C" {
extern int *__errno _PARAMS ((void));
#endif
-#if !defined(__CYGWIN32__) || defined(__INSIDE_CYGWIN__)
+#if !defined(__CYGWIN__) || defined(__INSIDE_CYGWIN__)
extern _CONST char * _CONST _sys_errlist[];
extern int _sys_nerr;
#else
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
index 00d25ead3..4f4119937 100644
--- a/newlib/libc/include/sys/signal.h
+++ b/newlib/libc/include/sys/signal.h
@@ -31,7 +31,7 @@ struct sigaction
int sigprocmask (int __how, const sigset_t *__a, sigset_t *__b);
/* protos for functions found in winsup sources */
-#if defined(__CYGWIN32__)
+#if defined(__CYGWIN__)
#undef sigaddset
#undef sigemptyset
/* The first argument to kill should be pid_t. Right now
@@ -86,7 +86,7 @@ int _EXFUN(sigpause, (int));
#define SIGUSR1 18
#define SIGUSR2 19
#define NSIG 20
-#elif defined(__CYGWIN32__) /* BSD signals symantics */
+#elif defined(__CYGWIN__) /* BSD signals symantics */
#define SIGHUP 1 /* hangup */
#define SIGINT 2 /* interrupt */
#define SIGQUIT 3 /* quit */
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index 5c419b713..c5102aaf7 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -134,7 +134,7 @@ int _EXFUN(lstat,( const char *__path, struct stat *__buf ));
int _EXFUN(_fstat,( int __fd, struct stat *__sbuf ));
int _EXFUN(_stat,( const char *__path, struct stat *__sbuf ));
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
int _EXFUN(lstat,( const char *__path, struct stat *__buf ));
#endif
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h
index bc08820a5..ff0963676 100644
--- a/newlib/libc/include/sys/time.h
+++ b/newlib/libc/include/sys/time.h
@@ -23,9 +23,9 @@ struct timezone {
int tz_dsttime;
};
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
#include <sys/select.h>
-#endif /* __CYGWIN32__ */
+#endif /* __CYGWIN__ */
#endif /* _WINSOCK_H */
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 2b8c6a0f0..1986edea6 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -83,7 +83,7 @@ void * _EXFUN(_sbrk, (size_t __incr));
int _EXFUN(_unlink, (const char *__path ));
int _EXFUN(_write, (int __fildes, const void *__buf, size_t __nbyte ));
-#if defined(__CYGWIN32__) || defined(__rtems__)
+#if defined(__CYGWIN__) || defined(__rtems__)
unsigned _EXFUN(usleep, (unsigned int __useconds));
int _EXFUN(ftruncate, (int __fd, off_t __length));
int _EXFUN(truncate, (const char *, off_t __length));
@@ -125,7 +125,7 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2));
#endif
#endif
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
# define _POSIX_JOB_CONTROL 1
# define _POSIX_SAVED_IDS 0
# define _POSIX_VERSION 199009L
@@ -166,7 +166,7 @@ long _EXFUN(sysconf, (int __name));
# endif /* _POSIX_SOURCE */
/* FIXME: This is temporary until winsup gets sorted out. */
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
#define MAXPATHLEN (260 - 1 /* NUL */)
#else
# define MAXPATHLEN 1024
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h
index 4a9661779..91616b7f8 100644
--- a/newlib/libc/include/time.h
+++ b/newlib/libc/include/time.h
@@ -72,7 +72,7 @@ char *_EXFUN(ctime_r, (const time_t *, char *));
struct tm *_EXFUN(gmtime_r, (const time_t *, struct tm *));
struct tm *_EXFUN(localtime_r, (const time_t *, struct tm *));
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
#ifndef __STRICT_ANSI__
extern time_t _timezone __declspec(dllimport);
extern int _daylight __declspec(dllimport);
@@ -81,7 +81,7 @@ extern char *_tzname[2] __declspec(dllimport);
char *_EXFUN(timezone, (void));
void _EXFUN(tzset, (void));
#endif
-#endif /* __CYGWIN32__ */
+#endif /* __CYGWIN__ */
#ifdef __cplusplus
}