nmh-commits
[Top][All Lists]
Advanced

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

[Nmh-commits] [SCM] The nmh Mail Handling System branch, posix, updated.


From: Lyndon Nerenberg
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, posix, updated. 8d90b255d7a09e7a644a8156ee62d2d810e7d921
Date: Mon, 26 Dec 2011 22:18:42 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, posix has been updated
       via  8d90b255d7a09e7a644a8156ee62d2d810e7d921 (commit)
       via  6ea1378b2ed768b3185584a4aed21b4e8ce6dfb9 (commit)
       via  6e8f47b221eba133801b1fd434fe9dab8621a5a4 (commit)
       via  69d969acbcbfec2f1e58c02e1a49cdabe045732a (commit)
       via  59edead4a72ddfc2f7d25a54ceb268b8a347696a (commit)
       via  7463eafe08c3ef0e68b78349437fa51a90a30207 (commit)
       via  8fbde62fe261d486bdf744b3cc7a77a38b985280 (commit)
       via  701d214a4bf411956220c19bb664acd582428182 (commit)
      from  94a615743d3366dc143d921f78811b15ab0c0886 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=8d90b255d7a09e7a644a8156ee62d2d810e7d921


commit 8d90b255d7a09e7a644a8156ee62d2d810e7d921
Author: Lyndon Nerenberg <address@hidden>
Date:   Mon Dec 26 14:17:13 2011 -0800

    Nuke unused VFORK defines.

diff --git a/config.h b/config.h
index f634f73..a124742 100644
--- a/config.h
+++ b/config.h
@@ -219,12 +219,6 @@
 /* Define to 1 if you have the `tzset' function. */
 #define HAVE_TZSET 1
 
-/* Define to 1 if you have the `vfork' function. */
-#define HAVE_VFORK 1
-
-/* Define to 1 if you have the <vfork.h> header file. */
-/* #undef HAVE_VFORK_H */
-
 /* Define to 1 if you have the <wchar.h> header file. */
 #define HAVE_WCHAR_H 1
 

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=6ea1378b2ed768b3185584a4aed21b4e8ce6dfb9


commit 6ea1378b2ed768b3185584a4aed21b4e8ce6dfb9
Author: Lyndon Nerenberg <address@hidden>
Date:   Mon Dec 26 09:19:35 2011 -0800

    Remove #ifdef around use of sigsetjmp().

diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c
index d12266e..ad0e0f3 100644
--- a/uip/mhshowsbr.c
+++ b/uip/mhshowsbr.c
@@ -20,16 +20,6 @@
 #include <h/mhparse.h>
 #include <h/utils.h>
 
-/*
- * Just use sigjmp/longjmp on older machines that
- * don't have sigsetjmp/siglongjmp.
- */
-#ifndef HAVE_SIGSETJMP
-# define sigjmp_buf jmp_buf
-# define sigsetjmp(env,mask) setjmp(env)
-# define siglongjmp(env,val) longjmp(env,val)
-#endif
-
 extern int debugsw;
 
 int pausesw  = 1;

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=6e8f47b221eba133801b1fd434fe9dab8621a5a4


commit 6e8f47b221eba133801b1fd434fe9dab8621a5a4
Author: Lyndon Nerenberg <address@hidden>
Date:   Sun Dec 25 19:17:58 2011 -0800

    Remove overrides for 'broken' stat macros.
    Remove redundant SEEK_* macro definitions.

diff --git a/config.h b/config.h
index e8eb907..f634f73 100644
--- a/config.h
+++ b/config.h
@@ -305,9 +305,6 @@
 /* Define if you want SMTP (simple mail transport protocol) support. */
 #define SMTPMTS 1
 
-/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
-/* #undef STAT_MACROS_BROKEN */
-
 /* Defined for Solaris 2.x, Irix, OSF/1, HP-UX, AIX; only used in vmh.c which
    is not built. */
 /* #undef SVR4 */
diff --git a/h/nmh.h b/h/nmh.h
index 8ff4ba8..00c408f 100644
--- a/h/nmh.h
+++ b/h/nmh.h
@@ -25,19 +25,6 @@
 # include <limits.h>
 
 /*
- * symbolic constants for lseek and fseek
- */
-#ifndef SEEK_SET
-# define SEEK_SET 0
-#endif
-#ifndef SEEK_CUR
-# define SEEK_CUR 1
-#endif
-#ifndef SEEK_END
-# define SEEK_END 2
-#endif
-
-/*
  * we should be getting this value from pathconf(_PC_PATH_MAX)
  */
 #ifndef PATH_MAX
@@ -78,41 +65,3 @@
 #define bcopy(b1,b2,length)     memcpy (b2, b1, length)
 #define bcpy(b1,b2,length)      memcmp (b1, b2, length)
 #define bzero(b,length)         memset (b, 0, length)
-
-/*
- * If your stat macros are broken,
- * we will just undefine them.
- */
-#ifdef STAT_MACROS_BROKEN
-# ifdef S_ISBLK
-#  undef S_ISBLK
-# endif 
-# ifdef S_ISCHR
-#  undef S_ISCHR
-# endif 
-# ifdef S_ISDIR
-#  undef S_ISDIR
-# endif 
-# ifdef S_ISFIFO
-#  undef S_ISFIFO
-# endif 
-# ifdef S_ISLNK
-#  undef S_ISLNK
-# endif 
-# ifdef S_ISMPB
-#  undef S_ISMPB
-# endif 
-# ifdef S_ISMPC
-#  undef S_ISMPC
-# endif 
-# ifdef S_ISNWK
-#  undef S_ISNWK
-# endif 
-# ifdef S_ISREG
-#  undef S_ISREG
-# endif 
-# ifdef S_ISSOCK
-#  undef S_ISSOCK
-# endif 
-#endif  /* STAT_MACROS_BROKEN.  */
-

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=69d969acbcbfec2f1e58c02e1a49cdabe045732a


commit 69d969acbcbfec2f1e58c02e1a49cdabe045732a
Author: Lyndon Nerenberg <address@hidden>
Date:   Sun Dec 25 18:11:53 2011 -0800

    In add_children(), revert the 'is this a directory?' check to always
    use stat(), since POSIX doesn't provide the d_type field in the dirent
    struct.

diff --git a/sbr/crawl_folders.c b/sbr/crawl_folders.c
index d8bcdba..78c9558 100644
--- a/sbr/crawl_folders.c
+++ b/sbr/crawl_folders.c
@@ -72,25 +72,11 @@ add_children (char *name, struct crawl_context *crawl)
     }
 
     while ((dp = readdir (dd))) {
-       /* If the system supports it, try to skip processing of children we
-        * know are not directories or symlinks. */
-       child_is_folder = -1;
-#if defined(HAVE_STRUCT_DIRENT_D_TYPE)
-       if (dp->d_type == DT_DIR) {
-           child_is_folder = 1;
-       } else if (dp->d_type != DT_LNK && dp->d_type != DT_UNKNOWN) {
-           continue;
-       }
-#endif
        if (!strcmp (dp->d_name, ".") || !strcmp (dp->d_name, "..")) {
            continue;
        }
        child = concat (prefix, dp->d_name, (void *)NULL);
-       /* If we have no d_type or d_type is DT_LNK or DT_UNKNOWN, stat the
-        * child to see what it is. */
-       if (child_is_folder == -1) {
-           child_is_folder = (stat (child, &st) != -1 && S_ISDIR(st.st_mode));
-       }
+       child_is_folder = (stat (child, &st) != -1 && S_ISDIR(st.st_mode));
        if (child_is_folder) {
            /* add_folder saves child in the list, don't free it */
            add_folder (child, crawl);

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=59edead4a72ddfc2f7d25a54ceb268b8a347696a


commit 59edead4a72ddfc2f7d25a54ceb268b8a347696a
Author: Lyndon Nerenberg <address@hidden>
Date:   Sun Dec 25 17:37:02 2011 -0800

    Add defines for NI_MAXHOST and NI_MAXSERV. These aren't present in a
    strict POSIX environment.

diff --git a/h/mh.h b/h/mh.h
index abcf445..4eba7b0 100644
--- a/h/mh.h
+++ b/h/mh.h
@@ -27,6 +27,17 @@
 #endif
 typedef unsigned char  boolean;  /* not int so we can pack in a structure */
 
+#ifdef _POSIX_C_SOURCE
+/*
+ * Some useful constants that aren't present in a strict POSIX environment.
+ */
+
+/* gettaddrinfo() and friends; usually in <netdb.h> */
+# define NI_MAXHOST 1025
+# define NI_MAXSERV 32
+
+#endif /* _POSIX_C_SOURCE */
+
 /* If we're using gcc then give it some information about
  * functions that abort.
  */

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=7463eafe08c3ef0e68b78349437fa51a90a30207


commit 7463eafe08c3ef0e68b78349437fa51a90a30207
Author: Lyndon Nerenberg <address@hidden>
Date:   Sun Dec 25 17:20:26 2011 -0800

    Include <stdio.h> for snprintf() prototype.

diff --git a/config/config.c b/config/config.c
index c2d307e..b08b3e2 100644
--- a/config/config.c
+++ b/config/config.c
@@ -8,6 +8,7 @@
  */
 
 #include <h/mh.h>
+#include <stdio.h>
 
 #ifdef MHRC
 # include <pwd.h>

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=8fbde62fe261d486bdf744b3cc7a77a38b985280


commit 8fbde62fe261d486bdf744b3cc7a77a38b985280
Author: Lyndon Nerenberg <address@hidden>
Date:   Sun Dec 25 17:15:49 2011 -0800

    Set _POSIX_C_SOURCE=200112L. We require IEEE Std 1003.1-2001 conformance.
    Also, remove _POSIX_SOURCE from CPPFLAGS since no 1003.1-2001 conforming
    program will rely on it.

diff --git a/Makefile b/Makefile
index a7576c3..12827ee 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ default_editor = /usr/bin/vi
 # default pager
 default_pager = /usr/bin/more
 
-CPPFLAGS = -D_POSIX_SOURCE -D_POSIX_C_SOURCE
+CPPFLAGS = -D_POSIX_C_SOURCE=200112L
 CFLAGS   = -Wall -Wno-pointer-sign -O2
 LDFLAGS  = 
 LIBS     = -liconv 

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=701d214a4bf411956220c19bb664acd582428182


commit 701d214a4bf411956220c19bb664acd582428182
Author: Lyndon Nerenberg <address@hidden>
Date:   Sun Dec 25 17:06:13 2011 -0800

    Ensure CPPFLAGS is propagated to sub-directory makes.
    Define _POSIX_SOURCE and POSIX_C_SOURCE in CPPFLAGS.

diff --git a/Makefile b/Makefile
index 90f2c40..a7576c3 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ default_editor = /usr/bin/vi
 # default pager
 default_pager = /usr/bin/more
 
-CPPFLAGS = 
+CPPFLAGS = -D_POSIX_SOURCE -D_POSIX_C_SOURCE
 CFLAGS   = -Wall -Wno-pointer-sign -O2
 LDFLAGS  = 
 LIBS     = -liconv 
diff --git a/config/Makefile b/config/Makefile
index 496aeb8..76e2dcf 100644
--- a/config/Makefile
+++ b/config/Makefile
@@ -26,8 +26,8 @@ INCLUDES   = -I.. -I$(top_srcdir)
 CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' 
-DNMHLIBDIR='"$(libdir)"' \
              -DDEFAULT_EDITOR='"$(default_editor)"' 
-DDEFAULT_PAGER='"$(default_pager)"'
 
-COMPILE  = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
-COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
+COMPILE  = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
+COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
 
 .SUFFIXES:
 .SUFFIXES: .c .o
diff --git a/mts/smtp/Makefile b/mts/smtp/Makefile
index 0fd31c4..35f0472 100644
--- a/mts/smtp/Makefile
+++ b/mts/smtp/Makefile
@@ -20,7 +20,7 @@ INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
 LINT   = echo 'No lint program found'
 LINTFLAGS = 
 
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
 
 .SUFFIXES:
 .SUFFIXES: .c .o
diff --git a/sbr/Makefile b/sbr/Makefile
index 0f4f788..9a11664 100644
--- a/sbr/Makefile
+++ b/sbr/Makefile
@@ -33,8 +33,8 @@ LIBOBJS =
 mailspool    = /var/mail
 sendmailpath = /usr/sbin/sendmail
 
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
-COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
+COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
 
 
 
diff --git a/uip/Makefile b/uip/Makefile
index d89b3e2..d0679e3 100644
--- a/uip/Makefile
+++ b/uip/Makefile
@@ -32,7 +32,7 @@ TERMLIB = -ltermcap
 LEXLIB  = -lfl
 POPLIB  = 
 
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
 LINK    = $(CC) $(LDFLAGS) -o $@
 LN = ln
 

-----------------------------------------------------------------------

Summary of changes:
 Makefile            |    2 +-
 config.h            |    9 ---------
 config/Makefile     |    4 ++--
 config/config.c     |    1 +
 h/mh.h              |   11 +++++++++++
 h/nmh.h             |   51 ---------------------------------------------------
 mts/smtp/Makefile   |    2 +-
 sbr/Makefile        |    4 ++--
 sbr/crawl_folders.c |   16 +---------------
 uip/Makefile        |    2 +-
 uip/mhshowsbr.c     |   10 ----------
 11 files changed, 20 insertions(+), 92 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System



reply via email to

[Prev in Thread] Current Thread [Next in Thread]