Add const qualifiers in some non-standard function declarations.

This makes their headers and their specifications in the manual consistent with their actual behavior. The const qualifiers in the headers may prevent errors when using strict type checking.
This commit is contained in:
Stephen Heumann 2023-07-30 09:45:16 -05:00
parent f815c1bda6
commit 6905d8dced
3 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -35,6 +35,6 @@ int fcntl(int, int, ...);
long lseek(int, long, int);
int open(const char *, int, ...);
int read(int, void *, unsigned);
int write(int, void *, unsigned);
int write(int, const void *, unsigned);
#endif

View File

@ -46,12 +46,12 @@ int strncmp(const char *, const char *, size_t);
char *strncpy(char *, const char *, size_t);
char *strpbrk(const char *, const char *);
#ifndef __KeepNamespacePure__
int strpos(char *, char);
int strpos(const char *, char);
#endif
char *strrchr(const char *, int);
#ifndef __KeepNamespacePure__
char *strrpbrk(char *, char *);
int strrpos(char *, char);
char *strrpbrk(const char *, const char *);
int strrpos(const char *, char);
#endif
size_t strspn(const char *, const char *);
char *strstr(const char *, const char *);