Mark more functions returning internal buffers for const auditing.

This commit is contained in:
mycroft 1998-07-27 09:33:44 +00:00
parent 633b8f45a9
commit 4f4968a946
4 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grp.h,v 1.12 1998/07/27 09:09:25 mycroft Exp $ */
/* $NetBSD: grp.h,v 1.13 1998/07/27 09:33:44 mycroft Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -68,7 +68,7 @@ void endgrent __P((void));
#endif
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
void setgrfile __P((const char *));
char *group_from_gid __P((gid_t, int));
__aconst char *group_from_gid __P((gid_t, int));
int setgroupent __P((int));
#endif
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: pwd.h,v 1.16 1998/07/27 09:09:26 mycroft Exp $ */
/* $NetBSD: pwd.h,v 1.17 1998/07/27 09:33:44 mycroft Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -105,7 +105,7 @@ void endpwent __P((void));
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
int pw_scan __P((char *bp, struct passwd *pw, int *flags));
int setpassent __P((int));
char *user_from_uid __P((uid_t, int));
__aconst char *user_from_uid __P((uid_t, int));
#endif
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: stdlib.h,v 1.34 1998/07/26 23:03:30 mycroft Exp $ */
/* $NetBSD: stdlib.h,v 1.35 1998/07/27 09:33:44 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -110,7 +110,7 @@ div_t div __P((int, int));
__dead void
exit __P((int));
void free __P((void *));
char *getenv __P((const char *));
__aconst char *getenv __P((const char *));
__pure long
labs __P((long));
ldiv_t ldiv __P((long, long));
@ -216,7 +216,7 @@ int cgetstr __P((char *, const char *, char **));
int cgetustr __P((char *, const char *, char **));
int daemon __P((int, int));
char *devname __P((dev_t, mode_t));
__aconst char *devname __P((dev_t, mode_t));
int getloadavg __P((double [], int));
void cfree __P((void *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: unistd.h,v 1.61 1998/07/27 09:09:27 mycroft Exp $ */
/* $NetBSD: unistd.h,v 1.62 1998/07/27 09:33:45 mycroft Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -120,7 +120,7 @@ gid_t getegid __P((void));
uid_t geteuid __P((void));
gid_t getgid __P((void));
int getgroups __P((int, gid_t []));
char *getlogin __P((void));
__aconst char *getlogin __P((void));
pid_t getpgrp __P((void));
pid_t getpid __P((void));
pid_t getppid __P((void));
@ -141,7 +141,7 @@ unsigned int sleep __P((unsigned int));
long sysconf __P((int));
pid_t tcgetpgrp __P((int));
int tcsetpgrp __P((int, pid_t));
char *ttyname __P((int));
__aconst char *ttyname __P((int));
int unlink __P((const char *));
ssize_t write __P((int, const void *, size_t));
@ -204,9 +204,9 @@ int rename __P((const char *, const char *)) __RENAME(__posix_rename);
*/
#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \
(_XOPEN_SOURCE - 0) >= 4
char *crypt __P((const char *, const char *));
__aconst char *crypt __P((const char *, const char *));
int encrypt __P((char *, int));
char *getpass __P((const char *));
__aconst char *getpass __P((const char *));
pid_t getsid __P((pid_t));
#endif