Mercurial > hg > xemacs-beta
diff src/broken-sun.h @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 8de8e3f6228a |
children | 943eaba38521 |
line wrap: on
line diff
--- a/src/broken-sun.h Mon Aug 13 11:33:40 2007 +0200 +++ b/src/broken-sun.h Mon Aug 13 11:35:02 2007 +0200 @@ -34,15 +34,15 @@ /*********************** stdlib functions *********************/ -/* void * memchr (CONST void *, int, size_t); */ +/* void * memchr (const void *, int, size_t); */ -/* int memcmp (CONST void *, CONST void *, size_t); */ -/* void * memcpy (void *, CONST void *, size_t); */ -/* void * memmove (void *, CONST void *, size_t);*/ +/* int memcmp (const void *, const void *, size_t); */ +/* void * memcpy (void *, const void *, size_t); */ +/* void * memmove (void *, const void *, size_t);*/ /* void * memset (void *, int, int); */ -/* char * strcat (char *, CONST char *); */ -/* char * strchr (CONST char *, int); */ -/* int strcmp (CONST char *, CONST char *); */ +/* char * strcat (char *, const char *); */ +/* char * strchr (const char *, int); */ +/* int strcmp (const char *, const char *); */ int strcasecmp (char *, char *); /* Yes, they even left these functions out! */ @@ -53,39 +53,39 @@ #include <stdio.h> /* else can't declare FILE */ -/* FILE *fopen (CONST char *, CONST char *); */ -/* FILE *freopen (CONST char *, CONST char *, FILE *); */ +/* FILE *fopen (const char *, const char *); */ +/* FILE *freopen (const char *, const char *, FILE *); */ FILE *tmpfile (void); int fclose (FILE *); char *fgets (char *, int, FILE *); int fgetc (FILE *); int fflush (FILE *); -int fprintf (FILE *, CONST char *, ...); +int fprintf (FILE *, const char *, ...); int fputc (char, FILE *); -int fputs (CONST char *, FILE *); +int fputs (const char *, FILE *); size_t fread (void *, size_t, size_t, FILE *); -int fscanf (FILE *, CONST char *, ...); +int fscanf (FILE *, const char *, ...); int fgetpos (FILE *, long *); int fseek (FILE *, long, int); -int fsetpos (FILE *, CONST long *); +int fsetpos (FILE *, const long *); long ftell (FILE *); -size_t fwrite (CONST void *, size_t, size_t, FILE *); +size_t fwrite (const void *, size_t, size_t, FILE *); char *gets (char *); int pclose (FILE *); -void perror (CONST char *); -int printf (CONST char *, ...); -int puts (CONST char *); -int remove (CONST char *); -int rename (CONST char *, CONST char *); +void perror (const char *); +int printf (const char *, ...); +int puts (const char *); +int remove (const char *); +int rename (const char *, const char *); int rewind (FILE *); -int scanf (CONST char *, ...); -int sscanf (CONST char *, CONST char *, ...); +int scanf (const char *, ...); +int sscanf (const char *, const char *, ...); void setbuf (FILE *, char *); int setvbuf (FILE *, char *, int, size_t); int ungetc (int, FILE *); -int vprintf (CONST char *, void *); -int vfprintf (FILE *, CONST char *, void *); -char *vsprintf (char *, CONST char *, void *); +int vprintf (const char *, void *); +int vfprintf (FILE *, const char *, void *); +char *vsprintf (char *, const char *, void *); /*********************** signal functions *********************/ @@ -101,7 +101,7 @@ struct timeval; struct timezone; -int utimes (CONST char *, struct timeval *); +int utimes (const char *, struct timeval *); void tzset (void); time_t time (time_t *); int gettimeofday (struct timeval *, struct timezone *); @@ -112,12 +112,12 @@ #include </usr/include/sys/types.h> int fsync (int); -int lstat (CONST char *, struct stat *); +int lstat (const char *, struct stat *); int fchmod (int, mode_t); char *mktemp (char *); -/* int creat (CONST char *, mode_t); better no decl than a conflicting one... */ -int symlink (CONST char *, CONST char *); -int readlink (CONST char *, char *, int); +/* int creat (const char *, mode_t); better no decl than a conflicting one... */ +int symlink (const char *, const char *); +int readlink (const char *, char *, int); void sync (void); int select (int, fd_set *, fd_set *, fd_set *, struct timeval *); char * getwd (char *); @@ -146,7 +146,7 @@ int ioctl (int, int, ...); struct nlist; -int nlist (CONST char *, struct nlist *); +int nlist (const char *, struct nlist *); int munmap (void *, int); int brk (void *); void * sbrk (int); @@ -158,7 +158,7 @@ /*********************** miscellaneous functions *********************/ -void tputs (CONST char *cp, int affcnt, void (*)(int)); +void tputs (const char *cp, int affcnt, void (*)(int)); long random (void); int srandom (int seed);