2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
+ * include/utmp.h (__updwtmp): Add libc_hidden_proto.
+ (__getutent): Likewise.
+ (__getutid): Likewise.
+ (__getutline): Likewise.
+ (__pututline): Likewise.
+ (__getutent_r): Likewise.
+ (__getutid_r): Likewise.
+ (__getutline_r): Likewise.
+ (__utmpname): Add attribute_hidden.
+ (__setutent): Likewise.
+ (__endutent): Likewise.
+ * login/getutent.c (__getutent): Add libc_hidden_def.
+ * login/getutent_r.c (__getutent_r): Likewise.
+ (__pututline): Likewise.
+ * login/getutid.c (__getutid): Likewise.
+ * login/getutid_r.c (__getutid_r): Likewise.
+ * login/getutline.c (__getutline): Likewise.
+ * login/getutline_r.c (__getutline_r): Likewise.
+ * login/updwtmp.c (__updwtmp): Likewise.
+
+2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ [BZ #18822]
* include/dirent.h (__opendir): Always add attribute_hidden.
(__fdopendir): Likewise.
(__closedir): Likewise.
/* Now define the internal interfaces. */
extern void __updwtmp (const char *__wtmp_file, const struct utmp *__utmp);
-extern int __utmpname (const char *__file);
+libc_hidden_proto (__updwtmp)
+extern int __utmpname (const char *__file) attribute_hidden;
extern struct utmp *__getutent (void);
-extern void __setutent (void);
-extern void __endutent (void);
+libc_hidden_proto (__getutent)
+extern void __setutent (void) attribute_hidden;
+extern void __endutent (void) attribute_hidden;
extern struct utmp *__getutid (const struct utmp *__id);
+libc_hidden_proto (__getutid)
extern struct utmp *__getutline (const struct utmp *__line);
+libc_hidden_proto (__getutline)
extern struct utmp *__pututline (const struct utmp *__utmp_ptr);
+libc_hidden_proto (__pututline)
extern int __getutent_r (struct utmp *__buffer, struct utmp **__result);
+libc_hidden_proto (__getutent_r)
extern int __getutid_r (const struct utmp *__id, struct utmp *__buffer,
struct utmp **__result);
+libc_hidden_proto (__getutid_r)
extern int __getutline_r (const struct utmp *__line,
struct utmp *__buffer, struct utmp **__result);
+libc_hidden_proto (__getutline_r)
libutil_hidden_proto (login_tty)
return result;
}
+libc_hidden_def (__getutent)
weak_alias (__getutent, getutent)
return retval;
}
+libc_hidden_def (__getutent_r)
weak_alias (__getutent_r, getutent_r)
return buffer;
}
+libc_hidden_def (__pututline)
weak_alias (__pututline, pututline)
return result;
}
+libc_hidden_def (__getutid)
weak_alias (__getutid, getutid)
return -1;
#endif
}
+libc_hidden_def (__getutid_r)
weak_alias (__getutid_r, getutid_r)
return result;
}
+libc_hidden_def (__getutline)
weak_alias (__getutline, getutline)
return retval;
}
+libc_hidden_def (__getutline_r)
weak_alias (__getutline_r, getutline_r)
(*__libc_utmp_file_functions.updwtmp) (file_name, utmp);
}
+libc_hidden_def (__updwtmp)
weak_alias (__updwtmp, updwtmp)