Print this page
remove support for non-ANSI compilation
@@ -18,10 +18,12 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983,1984,1985,1986,1987,1988,1989 AT&T */
@@ -33,12 +35,10 @@
*/
#ifndef _UTMPX_H
#define _UTMPX_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/feature_tests.h>
#include <sys/types.h>
#include <sys/time.h>
#include <utmp.h>
@@ -125,12 +125,10 @@
#define nonuserx(utx) ((utx).ut_exit.e_exit == NONROOT_USRX ? 1 : 0)
#define setuserx(utx) ((utx).ut_exit.e_exit = NONROOT_USRX)
#endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
-#if defined(__STDC__)
-
extern void endutxent(void);
extern struct utmpx *getutxent(void);
extern struct utmpx *getutxid(const struct utmpx *);
extern struct utmpx *getutxline(const struct utmpx *);
extern struct utmpx *pututxline(const struct utmpx *);
@@ -144,31 +142,10 @@
extern void getutmpx(const struct utmp *, struct utmpx *);
extern void updwtmp(const char *, struct utmp *);
extern void updwtmpx(const char *, struct utmpx *);
#endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
-#else /* __STDC__ */
-
-extern void endutxent();
-extern struct utmpx *getutxent();
-extern struct utmpx *getutxid();
-extern struct utmpx *getutxline();
-extern struct utmpx *pututxline();
-extern void setutxent();
-
-#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
-extern int utmpxname();
-extern struct utmpx *makeutx();
-extern struct utmpx *modutx();
-extern void getutmp();
-extern void getutmpx();
-extern void updwtmp();
-extern void updwtmpx();
-#endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
-
-#endif /* __STDC__ */
-
#ifdef __cplusplus
}
#endif
#endif /* _UTMPX_H */