aboutsummaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2022-10-26 16:04:23 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-12-09 09:56:09 -0300
commit545eefc2f5da61801ba82b7a32ca2589b769ec90 (patch)
treee99beb311c68bea41b56759eed0c202e7a036b76 /nis
parentf4f2ca1509288f6f780af50659693a89949e7e46 (diff)
downloadglibc-545eefc2f5da61801ba82b7a32ca2589b769ec90.tar
glibc-545eefc2f5da61801ba82b7a32ca2589b769ec90.tar.gz
glibc-545eefc2f5da61801ba82b7a32ca2589b769ec90.tar.bz2
glibc-545eefc2f5da61801ba82b7a32ca2589b769ec90.zip
nis: Build libnsl with 64 bit time_t
And remove the usage of glibc reserved names. Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'nis')
-rw-r--r--nis/nis_call.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nis/nis_call.c b/nis/nis_call.c
index 90187e30b1..5b9dd50151 100644
--- a/nis/nis_call.c
+++ b/nis/nis_call.c
@@ -574,7 +574,7 @@ static struct nis_server_cache
unsigned int size;
unsigned int server_used;
unsigned int current_ep;
- __time64_t expires;
+ time_t expires;
char name[];
} *nis_server_cache[16];
static time_t nis_cold_start_mtime;
@@ -583,7 +583,7 @@ __libc_lock_define_initialized (static, nis_server_cache_lock)
static directory_obj *
nis_server_cache_search (const_nis_name name, int search_parent,
unsigned int *server_used, unsigned int *current_ep,
- struct __timespec64 *now)
+ struct timespec *now)
{
directory_obj *ret = NULL;
int i;
@@ -641,7 +641,7 @@ nis_server_cache_search (const_nis_name name, int search_parent,
static void
nis_server_cache_add (const_nis_name name, int search_parent,
directory_obj *dir, unsigned int server_used,
- unsigned int current_ep, struct __timespec64 *now)
+ unsigned int current_ep, struct timespec *now)
{
struct nis_server_cache **loc;
struct nis_server_cache *new;
@@ -707,7 +707,7 @@ __nisfind_server (const_nis_name name, int search_parent,
nis_error result = NIS_SUCCESS;
nis_error status;
directory_obj *obj;
- struct __timespec64 ts;
+ struct timespec ts;
unsigned int server_used = ~0;
unsigned int current_ep = ~0;
@@ -717,7 +717,7 @@ __nisfind_server (const_nis_name name, int search_parent,
if (*dir != NULL)
return NIS_SUCCESS;
- __clock_gettime64 (CLOCK_REALTIME, &ts);
+ clock_gettime (CLOCK_REALTIME, &ts);
if ((flags & NO_CACHE) == 0)
*dir = nis_server_cache_search (name, search_parent, &server_used,