Print this page
remove support for non-ANSI compilation
*** 22,41 ****
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _UTMP_H
#define _UTMP_H
- #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5.1.7 */
-
/*
* Note: The getutent(3c) family of interfaces are obsolete.
* The getutxent(3c) family provide a superset of this functionality
* and should be used in place of getutent(3c).
*/
--- 22,41 ----
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _UTMP_H
#define _UTMP_H
/*
* Note: The getutent(3c) family of interfaces are obsolete.
* The getutxent(3c) family provide a superset of this functionality
* and should be used in place of getutent(3c).
*/
*** 149,175 ****
#define NONROOT_USR 2
#define nonuser(ut) ((ut).ut_exit.e_exit == NONROOT_USR ? 1 : 0)
#define setuser(ut) ((ut).ut_exit.e_exit = NONROOT_USR)
- #if defined(__STDC__)
extern void endutent(void);
extern struct utmp *getutent(void);
extern struct utmp *getutid(const struct utmp *);
extern struct utmp *getutline(const struct utmp *);
extern struct utmp *pututline(const struct utmp *);
extern void setutent(void);
extern int utmpname(const char *);
- #else
- extern void endutent();
- extern struct utmp *getutent();
- extern struct utmp *getutid();
- extern struct utmp *getutline();
- extern struct utmp *pututline();
- extern void setutent();
- extern int utmpname();
- #endif
#endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
#ifdef __cplusplus
}
--- 149,165 ----