setenv.c - include strings.h for bcopy prototype
add prototypes for getmode, lchmod, lchown eliminates implicit declaration warnings building pax and mtree with Forte compiler on Solaris.
This commit is contained in:
parent
84a08de65c
commit
394bcaacf9
3 changed files with 26 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: extern.h,v 1.2 2003/05/22 18:10:43 jschauma Exp $ */
|
/* $NetBSD: extern.h,v 1.3 2003/07/13 02:36:17 grant Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
|
@ -77,11 +77,14 @@ char *user_from_uid(uid_t, int);
|
||||||
char *group_from_gid(gid_t, int);
|
char *group_from_gid(gid_t, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_GETMODE
|
||||||
|
mode_t getmode(const void *, mode_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_SETMODE
|
#ifndef HAVE_SETMODE
|
||||||
void *setmode(const char *);
|
void *setmode(const char *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void addtag(slist_t *, char *);
|
void addtag(slist_t *, char *);
|
||||||
int check_excludes(const char *, const char *);
|
int check_excludes(const char *, const char *);
|
||||||
int compare(NODE *, FTSENT *);
|
int compare(NODE *, FTSENT *);
|
||||||
|
|
|
@ -285,6 +285,14 @@ int inet_pton(int, const char *, void *);
|
||||||
int mkstemp(char *);
|
int mkstemp(char *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_LCHMOD
|
||||||
|
int lchmod(const char *, mode_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_LCHOWN
|
||||||
|
int lchown(const char *, uid_t, gid_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_SETPROGNAME
|
#ifndef HAVE_SETPROGNAME
|
||||||
const char *getprogname(void);
|
const char *getprogname(void);
|
||||||
void setprogname(const char *);
|
void setprogname(const char *);
|
||||||
|
@ -302,6 +310,10 @@ char *strdup(const char *);
|
||||||
char *strerror(int);
|
char *strerror(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_STRMODE
|
||||||
|
void strmode(mode_t, char *);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_STRPTIME) || !defined(HAVE_STRPTIME_D)
|
#if !defined(HAVE_STRPTIME) || !defined(HAVE_STRPTIME_D)
|
||||||
char *strptime(const char *, const char *, struct tm *);
|
char *strptime(const char *, const char *, struct tm *);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,9 +33,17 @@
|
||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
/*static char *sccsid = "from: @(#)setenv.c 5.6 (Berkeley) 6/4/91";*/
|
/*static char *sccsid = "from: @(#)setenv.c 5.6 (Berkeley) 6/4/91";*/
|
||||||
static char *rcsid = "$Id: setenv.c,v 1.2 2003/07/12 19:43:53 grant Exp $";
|
static char *rcsid = "$Id: setenv.c,v 1.3 2003/07/13 02:36:18 grant Exp $";
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_STRINGS_H
|
||||||
|
#include <strings.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in a new issue