summaryrefslogtreecommitdiff
path: root/include/utmpx.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-18 06:17:03 -0500
committerMike Frysinger <vapier@gentoo.org>2012-11-18 06:17:03 -0500
commit290e19f8147d9b3c0166d3520e718ae5603e4cef (patch)
tree3c77d58f8cd8115b861809560e644699341c14ee /include/utmpx.h
parent266bdc1f623fe6fe489e5115e0f8ef723705d949 (diff)
drop support for pre ISO-C compilers
This drops __signed, __volatile, and __const. Only the latter was used in the code base, and for uClibc, not consistently. Much of the code used plain "const" which meant "__const" was useless. Really, the point of this is to stay in sync with what glibc did. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/utmpx.h')
-rw-r--r--include/utmpx.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/utmpx.h b/include/utmpx.h
index 8509a1404..f3481275d 100644
--- a/include/utmpx.h
+++ b/include/utmpx.h
@@ -68,19 +68,19 @@ extern struct utmpx *getutxent (void);
This function is a possible cancellation point and therefore not
marked with __THROW. */
-extern struct utmpx *getutxid (__const struct utmpx *__id);
+extern struct utmpx *getutxid (const struct utmpx *__id);
/* Get the user accounting database entry corresponding to LINE.
This function is a possible cancellation point and therefore not
marked with __THROW. */
-extern struct utmpx *getutxline (__const struct utmpx *__line);
+extern struct utmpx *getutxline (const struct utmpx *__line);
/* Write the entry UTMPX into the user accounting database.
This function is a possible cancellation point and therefore not
marked with __THROW. */
-extern struct utmpx *pututxline (__const struct utmpx *__utmpx);
+extern struct utmpx *pututxline (const struct utmpx *__utmpx);
#ifdef __USE_GNU
@@ -90,7 +90,7 @@ extern struct utmpx *pututxline (__const struct utmpx *__utmpx);
cancellation point. But due to similarity with an POSIX interface
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
-extern int utmpxname (__const char *__file);
+extern int utmpxname (const char *__file);
/* Append entry UTMP to the wtmpx-like file WTMPX_FILE.
@@ -98,8 +98,8 @@ extern int utmpxname (__const char *__file);
cancellation point. But due to similarity with an POSIX interface
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
-extern void updwtmpx (__const char *__wtmpx_file,
- __const struct utmpx *__utmpx);
+extern void updwtmpx (const char *__wtmpx_file,
+ const struct utmpx *__utmpx);
/* Copy the information in UTMPX to UTMP.
@@ -108,7 +108,7 @@ extern void updwtmpx (__const char *__wtmpx_file,
cancellation point. But due to similarity with an POSIX interface
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
-extern void getutmp (__const struct utmpx *__utmpx,
+extern void getutmp (const struct utmpx *__utmpx,
struct utmp *__utmp);
/* Copy the information in UTMP to UTMPX.
@@ -117,7 +117,7 @@ extern void getutmp (__const struct utmpx *__utmpx,
cancellation point. But due to similarity with an POSIX interface
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
-extern void getutmpx (__const struct utmp *__utmp,
+extern void getutmpx (const struct utmp *__utmp,
struct utmpx *__utmpx);
#endif