diff --git a/include/stdio.h b/include/stdio.h index 08b633f32fc6..907864f2e02c 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.58 2005/02/09 21:35:46 kleink Exp $ */ +/* $NetBSD: stdio.h,v 1.59 2005/05/25 16:01:24 kleink Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -221,12 +221,13 @@ int fflush(FILE *); int fgetc(FILE *); int fgetpos(FILE * __restrict, fpos_t * __restrict); char *fgets(char * __restrict, int, FILE * __restrict); -FILE *fopen(const char *, const char *); +FILE *fopen(const char * __restrict , const char * __restrict); int fprintf(FILE * __restrict , const char * __restrict, ...); int fputc(int, FILE *); int fputs(const char * __restrict, FILE * __restrict); size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); -FILE *freopen(const char *, const char *, FILE * __restrict); +FILE *freopen(const char * __restrict, const char * __restrict, + FILE * __restrict); int fscanf(FILE * __restrict, const char * __restrict, ...); int fseek(FILE *, long, int); int fsetpos(FILE *, const fpos_t *); diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3 index c7bf39326984..41a2d3d9b935 100644 --- a/lib/libc/stdio/fopen.3 +++ b/lib/libc/stdio/fopen.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: fopen.3,v 1.22 2003/08/07 16:43:24 agc Exp $ +.\" $NetBSD: fopen.3,v 1.23 2005/05/25 16:01:24 kleink Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -46,11 +46,11 @@ .Sh SYNOPSIS .In stdio.h .Ft FILE * -.Fn fopen "const char *path" "const char *mode" +.Fn fopen "const char * restrict path" "const char * restrict mode" .Ft FILE * .Fn fdopen "int fildes" "const char *mode" .Ft FILE * -.Fn freopen "const char *path" "const char *mode" "FILE * restrict stream" +.Fn freopen "const char * restrict path" "const char * restrict mode" "FILE * restrict stream" .Sh DESCRIPTION The .Fn fopen