* understand line continuation conventions).
*/
ATTR_ACCESS(write_only, 1, 2)
- /*@null@*/char *(*fgets)(/*@returned@*/char *s, int n, FILE *stream);
+ /*@null@*/char *(*fgets)(/*@returned@*/char *restrict s, int n,
+ FILE *restrict stream);
int (*fputs) (const char *, FILE *);
/*
/*@null@*/char *
-fgetsx(/*@returned@*/char *buf, int cnt, FILE * f)
+fgetsx(/*@returned@*/char *restrict buf, int cnt, FILE *restrict f)
{
char *cp = buf;
char *ep;
* It supports decimal, hexadecimal or octal representations.
*/
int
-getlong(const char *numstr, long *result)
+getlong(const char *restrict numstr, long *restrict result)
{
char *endptr;
long val;
* It supports decimal, hexadecimal or octal representations.
*/
int
-getulong(const char *numstr, unsigned long *result)
+getulong(const char *restrict numstr, unsigned long *restrict result)
{
char *endptr;
unsigned long val;
/* getlong.c */
ATTR_ACCESS(write_only, 2)
-extern int getlong(const char *numstr, long *result);
+extern int getlong(const char *restrict numstr, long *restrict result);
/* get_pid.c */
extern int get_pid (const char *pidstr, pid_t *pid);
/* getulong.c */
ATTR_ACCESS(write_only, 2)
-extern int getulong(const char *numstr, unsigned long *result);
+extern int getulong(const char *restrict numstr, unsigned long *restrict result);
/* fputsx.c */
ATTR_ACCESS(write_only, 1, 2)
-extern /*@null@*/char *fgetsx(/*@returned@*/char *, int, FILE *);
+extern /*@null@*/char *fgetsx(/*@returned@*/char *restrict, int, FILE *restrict);
extern int fputsx (const char *, FILE *);
/* groupio.c */
/* spawn.c */
ATTR_ACCESS(write_only, 4)
extern int run_command(const char *cmd, const char *argv[],
- /*@null@*/const char *envp[], int *status);
+ /*@null@*/const char *envp[], int *restrict status);
/* strtoday.c */
extern long strtoday (const char *);
int
run_command(const char *cmd, const char *argv[],
- /*@null@*/const char *envp[], int *status)
+ /*@null@*/const char *envp[], int *restrict status)
{
pid_t pid, wpid;