Change strmode argument type to mode_t
Finally, we have the correct function definition for strmode. NetBSD/OpenBSD did this many years ago. This code is weird sign extension safe. Reviewed by: imp@ Pull Request: https://github.com/freebsd/freebsd-src/pull/493
This commit is contained in:
committed by
Warner Losh
parent
ed1a156b03
commit
849dcdb1c0
+7
-1
@@ -96,7 +96,13 @@ size_t strlcpy(char * __restrict, const char * __restrict, size_t);
|
||||
#endif
|
||||
size_t strlen(const char *) __pure;
|
||||
#if __BSD_VISIBLE
|
||||
void strmode(int, char *);
|
||||
|
||||
#ifndef _MODE_T_DECLARED
|
||||
typedef __mode_t mode_t;
|
||||
#define _MODE_T_DECLARED
|
||||
#endif
|
||||
|
||||
void strmode(mode_t, char *);
|
||||
#endif
|
||||
char *strncat(char * __restrict, const char * __restrict, size_t);
|
||||
int strncmp(const char *, const char *, size_t) __pure;
|
||||
|
||||
Reference in New Issue
Block a user