]> git.pld-linux.org Git - packages/pinfo.git/commitdiff
- obsolete
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 18 Mar 2006 18:23:48 +0000 (18:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pinfo-mkstemp.patch -> 1.2
    pinfo-sig11.patch -> 1.3

pinfo-mkstemp.patch [deleted file]
pinfo-sig11.patch [deleted file]

diff --git a/pinfo-mkstemp.patch b/pinfo-mkstemp.patch
deleted file mode 100644 (file)
index 78f3a92..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
---- pinfo-0.6.0/src/manual.c.mkstemp   Wed Aug  2 14:14:21 2000
-+++ pinfo-0.6.0/src/manual.c   Wed Aug  2 14:25:11 2000
-@@ -168,13 +168,18 @@
-   size_t macroline_size;
-   int ignored_items = 0, i = 0;
-   char zipped = 0;
-+  char tempbuf[PATH_MAX] = "/tmp/pinfoXXXXXX";
-+  int fd;
-   if (tmpfilename1)
-     {
-       unlink (tmpfilename1);
-       xfree (tmpfilename1);
-     }
--  tmpfilename1 = tempnam ("/tmp", NULL);
-+  fd = mkstemp(tempbuf);
-+  fchmod(fd, S_IRUSR | S_IWUSR);
-+  close(fd);
-+  tmpfilename1 = strdup(tempbuf);
- #ifdef getmaxyx
-   init_curses ();
-@@ -199,6 +204,8 @@
-   if (ignoredmacros)          /* if the pointer is non-null */
-     if (*ignoredmacros && strlen (ignoredmacros))     /* if there are some macros */
-       {                               /* that should be ignored   */
-+        char tempbuf[PATH_MAX] = "/tmp/pinfoXXXXXX";
-+        int fd;
-       *location = '\0';
-       snprintf (cmd, 255, "man -W %s %s",     /* we need to know the path */
-                 ManOptions,
-@@ -268,9 +275,11 @@
-         }
-       else
-         source = fopen (location, "r");       /* from cmd output  */
--      name = tempnam ("/tmp", NULL);
-+      fd = mkstemp(tempbuf);
-+        fchmod(fd, S_IRUSR | S_IWUSR);
-+      name = strdup(tempbuf);
-       raw_tempfilename = name;
--      id = fopen (name, "w");
-+      id = fdopen (fd, "w");
-       while (!feof (source))  /* we read until eof */
-         {
-@@ -370,12 +379,17 @@
-       manual_aftersearch = 0;
-       if (return_value != -1) /* -1 is quit key */
-       {
-+          char tempbuf[PATH_MAX] = "/tmp/pinfoXXXXXX";
-+          int fd;
-         if (tmpfilename2)
-           {
-             unlink (tmpfilename2);
-             xfree (tmpfilename2);
-           }
--        tmpfilename2 = tempnam ("/tmp", NULL);
-+        fd = mkstemp(tempbuf);
-+        fchmod(fd, S_IRUSR | S_IWUSR);
-+          close(fd);
-+        tmpfilename2 = strdup(tempbuf);
-         if (return_value != -2)       /* key_back is not pressed;
-                                          and return_value is an
-                                          offset to manuallinks */
---- pinfo-0.6.0/src/filehandling_functions.c.mkstemp   Wed Aug  2 14:14:26 2000
-+++ pinfo-0.6.0/src/filehandling_functions.c   Wed Aug  2 14:25:42 2000
-@@ -452,12 +452,17 @@
-   if (number == 0)            /* initialize tmp filename for file 1 */
-     {
-+      char tmpbuf[PATH_MAX] = "/tmp/pinfoXXXXXX";
-+      int fd;
-       if (tmpfilename1)
-       {
-         unlink (tmpfilename1);        /* erase old tmpfile */
-         free (tmpfilename1);
-       }
--      tmpfilename1 = tempnam ("/tmp", NULL);
-+      fd = mkstemp(tmpbuf);
-+      fchmod(fd, S_IRUSR | S_IWUSR);
-+      close(fd);
-+      tmpfilename1 = strdup(tmpbuf);
-       tmpfilename = tmpfilename1;     /* later we will refere only to tmp1 */
-     }
-   for (i = 0; i < infopathcount; i++) /* go through all paths */
-@@ -601,23 +606,33 @@
-   if (number == 0)            /* initialize tmp filename for file 1 */
-     {
-+      char tmpbuf[PATH_MAX] = "/tmp/pinfoXXXXXX";
-+      int fd;
-       if (tmpfilename1)
-       {
-         unlink (tmpfilename1);        /* erase old tmpfile */
-         free (tmpfilename1);
-       }
--      tmpfilename1 = tempnam ("/tmp", NULL);
-+      fd = mkstemp(tmpbuf);
-+      fchmod(fd, S_IRUSR | S_IWUSR);
-+      close(fd);
-+      tmpfilename1 = strdup(tmpbuf);
-       tmpfilename = tmpfilename1;     /* later we will refere only to tmp1 */
-     }
-   else
-     /* initialize tmp filename for file 2 */
-     {
-+      char tmpbuf[PATH_MAX] = "/tmp/pinfoXXXXXX";
-+      int fd;
-       if (tmpfilename2)
-       {
-         unlink (tmpfilename2);        /* erase old tmpfile */
-         free (tmpfilename2);
-       }
--      tmpfilename2 = tempnam ("/tmp", NULL);
-+      fd = mkstemp(tmpbuf);
-+      fchmod(fd, S_IRUSR | S_IWUSR);
-+      close(fd);
-+      tmpfilename2 = strdup(tmpbuf);
-       tmpfilename = tmpfilename2;     /* later we will refere only to tmp2 */
-     }
---- pinfo-0.6.0/src/common_includes.h.mkstemp  Wed Aug  2 14:22:04 2000
-+++ pinfo-0.6.0/src/common_includes.h  Wed Aug  2 14:22:15 2000
-@@ -14,6 +14,7 @@
- #include <stdlib.h>
- #include <signal.h>
- #include <unistd.h>
-+#include <limits.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <pwd.h>
diff --git a/pinfo-sig11.patch b/pinfo-sig11.patch
deleted file mode 100644 (file)
index ef57e49..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -urN pinfo-0.6.8/src/video.c pinfo-0.6.8.patch/src/video.c
---- pinfo-0.6.8/src/video.c    2002-07-21 20:42:00.000000000 +0200
-+++ pinfo-0.6.8.patch/src/video.c      2004-09-25 05:20:10.042759936 +0200
-@@ -66,7 +66,8 @@
-   attrset (normal);
-   for (i = pos; (i < lines) && (i < pos + maxy - 2); i++)
-     {
--      int tmp = strlen (message[i]) - 1;
-+      int tmp = strlen (message[i]);
-+      if (tmp) tmp--;
-       message[i][tmp] = 0;
-       if(tmp>column)
-         mvaddstr (i + 1 - pos, 0, message[i]+column);
This page took 0.090797 seconds and 4 git commands to generate.