X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/0a7506c9bdc0d0d560d4b9c8a3d1089f5db425b9..b5d655f7532a546b54809da387f7467d128a756b:/include/util.h diff --git a/include/util.h b/include/util.h index a8078f8..bbfad2b 100644 --- a/include/util.h +++ b/include/util.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2007 Apple Inc. All rights reserved. + * Copyright (c) 2000, 2007, 2008 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -64,7 +64,7 @@ #include #include #include -#include +#include #define PIDLOCK_NONBLOCK 1 #define PIDLOCK_USEHOSTNAME 2 @@ -85,11 +85,15 @@ #define OPENDEV_BLCK 0x04 /* Open block, not character device. */ __BEGIN_DECLS +#ifdef UNIFDEF_LEGACY_UTMP_APIS struct utmp; /* forward reference to /usr/include/utmp.h */ -void login(struct utmp *) __DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER; +void login(struct utmp *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA); +#endif /* UNIFDEF_LEGACY_UTMP_APIS */ int login_tty(int); -int logout(const char *) __DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER; -void logwtmp(const char *, const char *, const char *) __DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER; +#ifdef UNIFDEF_LEGACY_UTMP_APIS +int logout(const char *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA); +#endif /* UNIFDEF_LEGACY_UTMP_APIS */ +void logwtmp(const char *, const char *, const char *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_2_0,__IPHONE_2_0); int opendev(char *, int, int, char **); int openpty(int *, int *, char *, struct termios *, struct winsize *); @@ -102,8 +106,10 @@ int ttyaction(char *tty, char *act, char *user); struct iovec; char *ttymsg(struct iovec *, int, const char *, int); __END_DECLS +#ifdef UNIFDEF_LEGACY_UTMP_APIS /* Include utmp.h last to avoid deprecation warning above */ #include +#endif /* UNIFDEF_LEGACY_UTMP_APIS */ #endif /* !_UTIL_H_ */