]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Merge branch 'refs/heads/t/rm_osx'
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 4 Apr 2017 06:42:28 +0000 (08:42 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 4 Apr 2017 06:52:22 +0000 (08:52 +0200)
Two simple patches which remove code and documentation related to
Mac OS. Cooking since 2017-01-04.

* refs/heads/t/rm_osx:
  build: Remove compatibility check for clock_gettime().
  Drop support for Mac OS.

NEWS.md
afh.h
base64.c
interactive.c
ogg_afh_common.c
t/t0001-oggdec-correctness.sh

diff --git a/NEWS.md b/NEWS.md
index d9326db76cfa80b50a8a268fef1b29f966cdeb09..d441db42d13aaeed62942369acef56a2fdffacae 100644 (file)
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,9 +1,24 @@
 NEWS
 ====
 
+------------------------------------
+0.6.0 (to be announced) "fuzzy flux"
+------------------------------------
+- Support for Mac OS X has been removed.
+- On Linux systems, glibc-2.17 or newer is required to build the
+  source tree.
+
+Downloads:
+[tarball](./releases/paraslash-git.tar.bz2),
+
 -------------------------------------
 0.5.7 (2016-12-31) "semantic density"
 -------------------------------------
+
+Mostly a bug fix release, and a bunch of internal improvements.
+The only user-visible changes are the sanity checks for the touch
+command and the new options to the ls command.
+
 - Speedup of the base64 decoder.
 - One of the two source browsers has been removed from the web pages.
   The doxygen API reference still contains an HTML version of each
diff --git a/afh.h b/afh.h
index a6f9c50073bd39563d05a76f38c5377b10451b16..801c168c0ca1dc578745e9af87c60028a9774827 100644 (file)
--- a/afh.h
+++ b/afh.h
@@ -101,7 +101,7 @@ struct audio_format_handler {
         * \sa struct afh_info
         */
        int (*get_file_info)(char *map, size_t numbytes, int fd,
-               struct afh_info *afi);
+               struct afh_info *afhi);
        /** Optional, used for header-rewriting. See \ref afh_get_header(). */
        void (*get_header)(void *map, size_t mapsize, char **buf, size_t *len);
        /**
index 7b8fe2920cf6e55fb02a23cb7b57624e3139d587..122465f8feea79cf06d09bfd759d2446ee0f3f12 100644 (file)
--- a/base64.c
+++ b/base64.c
@@ -13,8 +13,6 @@
 #include "base64.h"
 #include "string.h"
 
-static const char Base64[] =
-       "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
 static const unsigned char base64_tab[256] = {
        255, 255, 255, 255, 255, 255, 255, 255, /* 00-07 */
        255, 255, 255, 255, 255, 255, 255, 255, /* 08-0f */
index bda5a0b8c89093abfccb0c776d368f0f0c3c5854..91ab1559629725f4b9ae25a3ec167231937bc27d 100644 (file)
@@ -38,6 +38,7 @@ struct i9e_private {
        bool caught_sigterm;
        Keymap standard_km;
        Keymap bare_km;
+       int fd_flags[2];
 };
 static struct i9e_private i9e_private, *i9ep = &i9e_private;
 
@@ -235,6 +236,8 @@ void i9e_close(void)
        if (hf)
                write_history(hf);
        wipe_bottom_line();
+       fcntl(i9ep->ici->fds[0], F_SETFL, i9ep->fd_flags[0]);
+       fcntl(i9ep->ici->fds[1], F_SETFL, i9ep->fd_flags[1]);
 }
 
 static void clear_bottom_line(void)
@@ -457,6 +460,14 @@ int i9e_open(struct i9e_client_info *ici, struct sched *s)
        memset(i9ep, 0, sizeof(struct i9e_private));
        if (!isatty(ici->fds[0]))
                return -E_I9E_SETUPTERM;
+       ret = fcntl(ici->fds[0], F_GETFL);
+       if (ret < 0)
+               return -E_I9E_SETUPTERM;
+       i9ep->fd_flags[0] = ret;
+       ret = fcntl(ici->fds[1], F_GETFL);
+       if (ret < 0)
+               return -E_I9E_SETUPTERM;
+       i9ep->fd_flags[1] = ret;
        ret = mark_fd_nonblocking(ici->fds[0]);
        if (ret < 0)
                return ret;
index adab7f481fbb0e7873c1d1e1ac4968834bd81fe3..6e5a89347e383340f943e591254f64f05cc6f358 100644 (file)
@@ -127,19 +127,18 @@ int ogg_get_file_info(char *map, size_t numbytes, struct afh_info *afhi,
 {
        ogg_sync_state oss;
        ogg_page op;
-       long len = numbytes;
        char *buf;
        int ret, i, j, frames_per_chunk, ct_size;
        long long unsigned num_frames = 0;
 
        ogg_sync_init(&oss);
        ret = -E_OGG_SYNC;
-       buf = ogg_sync_buffer(&oss, len);
+       buf = ogg_sync_buffer(&oss, numbytes);
        if (!buf)
                goto out;
-       memcpy(buf, map, len);
+       memcpy(buf, map, numbytes);
        ret = -E_OGG_SYNC;
-       if (ogg_sync_wrote(&oss, len) < 0)
+       if (ogg_sync_wrote(&oss, numbytes) < 0)
                goto out;
        ret = process_ogg_packets(&oss, afhi, ci);
        if (ret < 0)
index 554dfdf85dd654ef81c3114a847102ede377e6bc..0b30539acbbfd527a46c586e47818ac5f49d02fd 100755 (executable)
@@ -11,7 +11,7 @@ implementation.'
 test_require_objects "oggdec_filter"
 missing_objects="$result"
 
-test_require_executables oggdec sha1sum
+test_require_executables oggdec shasum
 missing_executables="$result"
 
 get_audio_file_paths ogg
@@ -28,9 +28,9 @@ for ogg in $oggs; do
                continue
        fi
        test_expect_success "${ogg##*/}" "
-               $PARA_FILTER -f oggdec < $ogg | sha1sum > filter.sha1 &&
-               oggdec --quiet --raw --output - -  < $ogg | sha1sum > oggdec.sha1 &&
-               diff -u filter.sha1 oggdec.sha1
+               $PARA_FILTER -f oggdec < $ogg | shasum > filter.sha &&
+               oggdec --quiet --raw --output - -  < $ogg | shasum > oggdec.sha &&
+               diff -u filter.sha oggdec.sha
        "
 done
 test_done