Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/xorg]: xsrc/external/mit/libXau/dist initial import of libXau-1.0.10



details:   https://anonhg.NetBSD.org/xsrc/rev/fdaab1660ced
branches:  xorg
changeset: 7149:fdaab1660ced
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Sep 09 03:35:49 2022 +0000

description:
initial import of libXau-1.0.10

diffstat:

 external/mit/libXau/dist/AuDispose.c         |      6 +-
 external/mit/libXau/dist/AuRead.c            |     59 +-
 external/mit/libXau/dist/Autest.c            |     11 +-
 external/mit/libXau/dist/ChangeLog           |     91 +-
 external/mit/libXau/dist/Makefile.in         |    144 +-
 external/mit/libXau/dist/README              |      2 +-
 external/mit/libXau/dist/aclocal.m4          |  20213 ++++++++++++------------
 external/mit/libXau/dist/compile             |     17 +-
 external/mit/libXau/dist/config.guess        |   1488 +-
 external/mit/libXau/dist/config.h.in         |    101 +-
 external/mit/libXau/dist/config.sub          |   2885 +-
 external/mit/libXau/dist/configure           |  14716 +++++++++--------
 external/mit/libXau/dist/configure.ac        |     10 +-
 external/mit/libXau/dist/depcomp             |     10 +-
 external/mit/libXau/dist/include/X11/Xauth.h |      2 +-
 external/mit/libXau/dist/install-sh          |    172 +-
 external/mit/libXau/dist/ltmain.sh           |    881 +-
 external/mit/libXau/dist/man/Makefile.in     |     18 +-
 external/mit/libXau/dist/missing             |     16 +-
 external/mit/libXau/dist/test-driver         |     27 +-
 external/mit/libXau/dist/xau.pc.in           |      2 +-
 21 files changed, 21398 insertions(+), 19473 deletions(-)

diffs (truncated from 48336 to 300 lines):

diff -r 9ee3ac826e53 -r fdaab1660ced external/mit/libXau/dist/AuDispose.c
--- a/external/mit/libXau/dist/AuDispose.c      Fri Sep 09 03:35:46 2022 +0000
+++ b/external/mit/libXau/dist/AuDispose.c      Fri Sep 09 03:35:49 2022 +0000
@@ -38,10 +38,14 @@
        free (auth->number);
        free (auth->name);
        if (auth->data) {
+#ifdef HAVE_EXPLICIT_BZERO
+           (void) explicit_bzero (auth->data, auth->data_length);
+#else
            (void) bzero (auth->data, auth->data_length);
+#endif
            (void) free (auth->data);
        }
-       free ((char *) auth);
+       free (auth);
     }
     return;
 }
diff -r 9ee3ac826e53 -r fdaab1660ced external/mit/libXau/dist/AuRead.c
--- a/external/mit/libXau/dist/AuRead.c Fri Sep 09 03:35:46 2022 +0000
+++ b/external/mit/libXau/dist/AuRead.c Fri Sep 09 03:35:49 2022 +0000
@@ -56,7 +56,11 @@
        if (!data)
            return 0;
        if (fread (data, sizeof (char), len, file) != len) {
+#ifdef HAVE_EXPLICIT_BZERO
+           explicit_bzero (data, len);
+#else
            bzero (data, len);
+#endif
            free (data);
            return 0;
        }
@@ -69,39 +73,44 @@
 Xauth *
 XauReadAuth (FILE *auth_file)
 {
-    Xauth   local;
+    Xauth   local = { 0, 0, NULL, 0, NULL, 0, NULL, 0, NULL };
     Xauth   *ret;
 
-    if (read_short (&local.family, auth_file) == 0)
-       return NULL;
-    if (read_counted_string (&local.address_length, &local.address, auth_file) == 0)
-       return NULL;
-    if (read_counted_string (&local.number_length, &local.number, auth_file) == 0) {
-       free (local.address);
-       return NULL;
+    if (read_short (&local.family, auth_file) == 0) {
+       goto fail;
+    }
+    if (read_counted_string (&local.address_length, &local.address, auth_file)
+        == 0) {
+       goto fail;
+    }
+    if (read_counted_string (&local.number_length, &local.number, auth_file)
+        == 0) {
+       goto fail;
     }
     if (read_counted_string (&local.name_length, &local.name, auth_file) == 0) {
-       free (local.address);
-       free (local.number);
-       return NULL;
+       goto fail;
     }
     if (read_counted_string (&local.data_length, &local.data, auth_file) == 0) {
-       free (local.address);
-       free (local.number);
-       free (local.name);
-       return NULL;
+       goto fail;
     }
-    ret = (Xauth *) malloc (sizeof (Xauth));
-    if (!ret) {
-       free (local.address);
-       free (local.number);
-       free (local.name);
-       if (local.data) {
-           bzero (local.data, local.data_length);
-           free (local.data);
-       }
-       return NULL;
+    ret = malloc (sizeof (Xauth));
+    if (ret == NULL) {
+       goto fail;
     }
     *ret = local;
     return ret;
+
+  fail:
+    free (local.address);
+    free (local.number);
+    free (local.name);
+    if (local.data) {
+#ifdef HAVE_EXPLICIT_BZERO
+       explicit_bzero (local.data, local.data_length);
+#else
+       bzero (local.data, local.data_length);
+#endif
+       free (local.data);
+    }
+    return NULL;
 }
diff -r 9ee3ac826e53 -r fdaab1660ced external/mit/libXau/dist/Autest.c
--- a/external/mit/libXau/dist/Autest.c Fri Sep 09 03:35:46 2022 +0000
+++ b/external/mit/libXau/dist/Autest.c Fri Sep 09 03:35:49 2022 +0000
@@ -35,8 +35,11 @@
 main (int argc, char **argv)
 {
     Xauth   test_data;
-    char    *name = "XAU-TEST-1";
-    char    *data = "Do not begin the test until instructed to do so.";
+    char    defname[] = "XAU-TEST-1";
+    char    defdata[] = "Do not begin the test until instructed to do so.";
+    char    empty[] = "";
+    char    *name = defname;
+    char    *data = defdata;
     char    *file = NULL;
     int            state = 0;
     FILE    *output;
@@ -54,9 +57,9 @@
     }
     test_data.family = 0;
     test_data.address_length = 0;
-    test_data.address = "";
+    test_data.address = empty;
     test_data.number_length = 0;
-    test_data.number = "";
+    test_data.number = empty;
     test_data.name_length = strlen (name);
     test_data.name = name;
     test_data.data_length = strlen (data);
diff -r 9ee3ac826e53 -r fdaab1660ced external/mit/libXau/dist/ChangeLog
--- a/external/mit/libXau/dist/ChangeLog        Fri Sep 09 03:35:46 2022 +0000
+++ b/external/mit/libXau/dist/ChangeLog        Fri Sep 09 03:35:49 2022 +0000
@@ -1,3 +1,90 @@
+commit 4fbefa02d6c842401ff79065d364edd7087a12a6
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Fri Aug 26 16:01:41 2022 -0700
+
+    libXau 1.0.10
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 83f33926d43f6ae4cf9734e3aedbef23fb0d6b74
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Jul 17 10:06:05 2022 -0700
+
+    XauReadAuth: move failure handling code to a common code block
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 3db78d0fa60e07a4ffda61a19849ad30623f70cf
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jul 9 11:00:50 2022 -0700
+
+    Remove unnnecessary casts from malloc() and free() calls
+    
+    These are not needed in C89 and later.
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 7f43a321e59b998e731b36039b744138a2d5b776
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jul 9 10:54:58 2022 -0700
+
+    Autest.c: Fix -Wdiscarded-qualifiers warnings
+    
+    Autest.c: In function ‘main’:
+    Autest.c:38:21: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
+       38 |     char    *name = "XAU-TEST-1";
+          |                     ^~~~~~~~~~~~
+    Autest.c:39:21: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
+       39 |     char    *data = "Do not begin the test until instructed to do so.";
+          |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    Autest.c:57:23: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
+       57 |     test_data.address = "";
+          |                       ^
+    Autest.c:59:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
+       59 |     test_data.number = "";
+          |                      ^
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit b98078c15874c12dfd4e01594ef9277897ade1df
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jul 9 10:50:11 2022 -0700
+
+    Fix spelling/wording issues
+    
+    Found by using:
+        codespell --builtin clear,rare,usage,informal,names
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit d824fa5517cf445dc1e204f05ee2098c254f2bdb
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jul 9 10:48:33 2022 -0700
+
+    Build xz tarballs instead of bzip2
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 8928883477ff32cbbb97ee0e871324812e3b5c96
+Author: Tobias Stoeckmann <tobias%stoeckmann.org@localhost>
+Date:   Sun Jul 3 11:52:44 2022 +0200
+
+    Use explicit_bzero if available
+    
+    Optimizing compilers may remove the bzero call because it is followed
+    by free. The function explicit_bzero avoids this optimization. Use it
+    if it is available.
+    
+    Signed-off-by: Tobias Stoeckmann <tobias%stoeckmann.org@localhost>
+
+commit 19b13bf20de5b15ab87fb4019ec910ef3216129f
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jul 9 10:20:45 2022 -0700
+
+    gitlab CI: add a basic build test
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
 commit d9443b2c57b512cfb250b35707378654d86c7dea
 Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
 Date:   Sun Feb 10 14:42:30 2019 -0800
@@ -900,7 +987,7 @@
         source can reference them with <X11/...>.
 
 commit 56a655e717c5de6d91c890fdc6f9b0469ad1dd1a
-Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
+Author: Søren Sandmann Pedersen  <sandmann%daimi.au.dk@localhost>
 Date:   Wed May 11 22:44:53 2005 +0000
 
     lib/Xau:
@@ -918,7 +1005,7 @@
     - New script that adds #include <config.h> to files
 
 commit 60177d823918d9ef7575da27870796c1285a2032
-Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
+Author: Søren Sandmann Pedersen  <sandmann%daimi.au.dk@localhost>
 Date:   Mon May 9 22:04:21 2005 +0000
 
     Add Xau library to lib/ and symlink.sh
diff -r 9ee3ac826e53 -r fdaab1660ced external/mit/libXau/dist/Makefile.in
--- a/external/mit/libXau/dist/Makefile.in      Fri Sep 09 03:35:46 2022 +0000
+++ b/external/mit/libXau/dist/Makefile.in      Fri Sep 09 03:35:49 2022 +0000
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.16.5 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -164,7 +164,12 @@
 am__v_at_1 = 
 DEFAULT_INCLUDES = -I.@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
+am__maybe_remake_depfiles = depfiles
+am__depfiles_remade = ./$(DEPDIR)/AuDispose.Plo \
+       ./$(DEPDIR)/AuFileName.Plo ./$(DEPDIR)/AuGetAddr.Plo \
+       ./$(DEPDIR)/AuGetBest.Plo ./$(DEPDIR)/AuLock.Plo \
+       ./$(DEPDIR)/AuRead.Plo ./$(DEPDIR)/AuUnlock.Plo \
+       ./$(DEPDIR)/AuWrite.Plo ./$(DEPDIR)/Autest.Po
 am__mv = mv -f
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -208,9 +213,10 @@
   $(RECURSIVE_CLEAN_TARGETS) \
   $(am__extra_recursive_targets)
 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
-       cscope check recheck distdir dist dist-all distcheck
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
-       $(LISP)config.h.in
+       cscope check recheck distdir distdir-am dist dist-all \
+       distcheck
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
+       config.h.in
 # Read a list of newline-separated strings from the standard input,
 # and print each of them once, without duplicates.  Input order is
 # *not* preserved.
@@ -227,9 +233,6 @@
   unique=`for i in $$list; do \
     if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-CSCOPE = cscope
 am__tty_colors_dummy = \
   mgn= red= grn= lgn= blu= brg= std=; \
   am__color_tests=no
@@ -385,6 +388,7 @@
   bases='$(TEST_LOGS)'; \
   bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
   bases=`echo $$bases`


Home | Main Index | Thread Index | Old Index