]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 28 Sep 2004 23:08:14 +0000 (23:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 28 Sep 2004 23:08:14 +0000 (23:08 +0000)
* sunrpc/Makefile (xtests): Add tst-getmyaddr.
* sunrpc/tst-getmyaddr.c: New file.

ChangeLog
nptl/ChangeLog
sunrpc/Makefile
sunrpc/tst-getmyaddr.c [new file with mode: 0644]

index f96596caec9c3809d9664e56554423964cf1e472..e0e6f916e892583fa8edea249d79e9cc5afbb628 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@
        getifaddrs call.
        * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
        * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
+       * sunrpc/Makefile (xtests): Add tst-getmyaddr.
+       * sunrpc/tst-getmyaddr.c: New file.
 
        * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
        disable all checking.
index f916d6fed6902b62eb6dd6d0b395ae6818137d49..2c4526970a82bfa21416ddf0a5bb68bf8de86c14 100644 (file)
@@ -1,5 +1,12 @@
 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
+       allow SIGSETXID to be sent.
+       * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
+       for SIGSETXID to be defined.
+       * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
+       SIGSETXID cannot be blocked.
+
        * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
        Add __extension__ to long long types.
        * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
index 6431324f3e9cea92912e6942f256e6f95ad662d8..284e355cc3b71af4a3e6d7b204fe510fcd5a082d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1994-2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 1994-2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -85,6 +85,8 @@ all: # Make this the default target; it will be defined in Rules.
 
 include ../Makeconfig
 
+xtests := tst-getmyaddr
+
 ifeq ($(have-thread-library),yes)
 xtests += thrsvc
 endif
diff --git a/sunrpc/tst-getmyaddr.c b/sunrpc/tst-getmyaddr.c
new file mode 100644 (file)
index 0000000..1eaf9b2
--- /dev/null
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include <string.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <rpc/clnt.h>
+
+
+static int
+do_test (void)
+{
+  struct sockaddr_in ad;
+  struct sockaddr_in ad2;
+  memset (&ad, '\0', sizeof (ad));
+  memset (&ad2, '\0', sizeof (ad2));
+
+  get_myaddress (&ad);
+
+  printf ("addr = %s:%d\n", inet_ntoa (ad.sin_addr), ad.sin_port);
+
+  return memcmp (&ad, &ad2, sizeof (ad)) == 0;
+}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"