define ROKEN_LIB_FUNCTION on all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14773 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -80,24 +80,24 @@ static int getent (char **, size_t *, char **, int, const char *, int, char *);
|
||||
static int nfcmp (char *, char *);
|
||||
|
||||
|
||||
int cgetset(const char *ent);
|
||||
char *cgetcap(char *buf, const char *cap, int type);
|
||||
int cgetent(char **buf, char **db_array, const char *name);
|
||||
int cgetmatch(const char *buf, const char *name);
|
||||
int cgetclose(void);
|
||||
int ROKEN_LIB_FUNCTION cgetset(const char *ent);
|
||||
char *ROKEN_LIB_FUNCTION cgetcap(char *buf, const char *cap, int type);
|
||||
int ROKEN_LIB_FUNCTION cgetent(char **buf, char **db_array, const char *name);
|
||||
int ROKEN_LIB_FUNCTION cgetmatch(const char *buf, const char *name);
|
||||
int ROKEN_LIB_FUNCTION cgetclose(void);
|
||||
#if 0
|
||||
int cgetfirst(char **buf, char **db_array);
|
||||
int cgetnext(char **bp, char **db_array);
|
||||
#endif
|
||||
int cgetstr(char *buf, const char *cap, char **str);
|
||||
int cgetustr(char *buf, const char *cap, char **str);
|
||||
int cgetnum(char *buf, const char *cap, long *num);
|
||||
int ROKEN_LIB_FUNCTION cgetstr(char *buf, const char *cap, char **str);
|
||||
int ROKEN_LIB_FUNCTION cgetustr(char *buf, const char *cap, char **str);
|
||||
int ROKEN_LIB_FUNCTION cgetnum(char *buf, const char *cap, long *num);
|
||||
/*
|
||||
* Cgetset() allows the addition of a user specified buffer to be added
|
||||
* to the database array, in effect "pushing" the buffer on top of the
|
||||
* virtual database. 0 is returned on success, -1 on failure.
|
||||
*/
|
||||
int
|
||||
int ROKEN_LIB_FUNCTION
|
||||
cgetset(const char *ent)
|
||||
{
|
||||
const char *source, *check;
|
||||
@@ -150,7 +150,7 @@ cgetset(const char *ent)
|
||||
* If (cap, '@') or (cap, terminator, '@') is found before (cap, terminator)
|
||||
* return NULL.
|
||||
*/
|
||||
char *
|
||||
char * ROKEN_LIB_FUNCTION
|
||||
cgetcap(char *buf, const char *cap, int type)
|
||||
{
|
||||
char *bp;
|
||||
@@ -201,7 +201,7 @@ cgetcap(char *buf, const char *cap, int type)
|
||||
* encountered (couldn't open/read a file, etc.), and -3 if a potential
|
||||
* reference loop is detected.
|
||||
*/
|
||||
int
|
||||
int ROKEN_LIB_FUNCTION
|
||||
cgetent(char **buf, char **db_array, const char *name)
|
||||
{
|
||||
size_t dummy;
|
||||
@@ -695,7 +695,7 @@ static FILE *pfp;
|
||||
static int slash;
|
||||
static char **dbp;
|
||||
|
||||
int
|
||||
int ROKEN_LIB_FUNCTION
|
||||
cgetclose(void)
|
||||
{
|
||||
if (pfp != NULL) {
|
||||
@@ -842,7 +842,7 @@ cgetnext(char **bp, char **db_array)
|
||||
* couldn't be found, -2 if a system error was encountered (storage
|
||||
* allocation failure).
|
||||
*/
|
||||
int
|
||||
int ROKEN_LIB_FUNCTION
|
||||
cgetstr(char *buf, const char *cap, char **str)
|
||||
{
|
||||
u_int m_room;
|
||||
@@ -966,7 +966,7 @@ cgetstr(char *buf, const char *cap, char **str)
|
||||
* -1 if the requested string capability couldn't be found, -2 if a system
|
||||
* error was encountered (storage allocation failure).
|
||||
*/
|
||||
int
|
||||
int ROKEN_LIB_FUNCTION
|
||||
cgetustr(char *buf, const char *cap, char **str)
|
||||
{
|
||||
u_int m_room;
|
||||
@@ -1035,7 +1035,7 @@ cgetustr(char *buf, const char *cap, char **str)
|
||||
* the long pointed to by num. 0 is returned on success, -1 if the requested
|
||||
* numeric capability couldn't be found.
|
||||
*/
|
||||
int
|
||||
int ROKEN_LIB_FUNCTION
|
||||
cgetnum(char *buf, const char *cap, long *num)
|
||||
{
|
||||
long n;
|
||||
|
Reference in New Issue
Block a user