aboutsummaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-30 07:21:13 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-30 07:28:12 +0200
commit8d1f854d60d159931594f31993599b9d9168552b (patch)
treeaa19e4f4bc12be041f2f1fb67b6a9d38fb7dab7d /login
parent3640654575bef7b56840fbadc1a6d6180ea011a7 (diff)
downloadglibc-8d1f854d60d159931594f31993599b9d9168552b.zip
glibc-8d1f854d60d159931594f31993599b9d9168552b.tar.gz
glibc-8d1f854d60d159931594f31993599b9d9168552b.tar.bz2
login: Hidden prototypes for _getpt, __ptsname_r, grantpt, unlockpt
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'login')
-rw-r--r--login/getpt.c1
-rw-r--r--login/grantpt.c2
-rw-r--r--login/ptsname.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/login/getpt.c b/login/getpt.c
index 585bc3b..9b71765 100644
--- a/login/getpt.c
+++ b/login/getpt.c
@@ -27,6 +27,7 @@ __getpt (void)
__set_errno (ENOSYS);
return -1;
}
+libc_hidden_def (__getpt)
weak_alias (__getpt, getpt)
/* We cannot define posix_openpt in general for BSD systems. */
diff --git a/login/grantpt.c b/login/grantpt.c
index 7dc5db3..9390966 100644
--- a/login/grantpt.c
+++ b/login/grantpt.c
@@ -28,5 +28,5 @@ grantpt (int fd __attribute__ ((unused)))
__set_errno (ENOSYS);
return -1;
}
-
+libc_hidden_def (grantpt)
stub_warning (grantpt)
diff --git a/login/ptsname.c b/login/ptsname.c
index c42f27d..ae94fbd 100644
--- a/login/ptsname.c
+++ b/login/ptsname.c
@@ -38,6 +38,7 @@ __ptsname_r (int fd __attribute__ ((unused)),
__set_errno (ENOSYS);
return ENOSYS;
}
+libc_hidden_def (__ptsname_r)
weak_alias (__ptsname_r, ptsname_r)
stub_warning(ptsname)