Ports/mandoc: Remove obsolete patches
Since the creation of the port, we gained support for nanosleep(), WSTOPSIG(), and the getopt family of functions is now available in unistd.h.
This commit is contained in:
parent
29960faf20
commit
7893ae4233
Notes:
sideshowbarker
2024-07-17 22:13:18 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/7893ae42331 Pull-request: https://github.com/SerenityOS/serenity/pull/11381
6 changed files with 0 additions and 98 deletions
|
@ -1,32 +0,0 @@
|
|||
--- /dev/null Mon Jan 20 00:15:16 2020
|
||||
+++ mandoc-1.14.5/charclass.h Mon Jan 20 00:15:04 2020
|
||||
@@ -0,0 +1,29 @@
|
||||
+/*
|
||||
+ * Public domain, 2008, Todd C. Miller <millert@openbsd.org>
|
||||
+ *
|
||||
+ * $OpenBSD: charclass.h,v 1.2 2019/01/25 00:19:25 millert Exp $
|
||||
+ */
|
||||
+
|
||||
+/*
|
||||
+ * POSIX character class support for fnmatch() and glob().
|
||||
+ */
|
||||
+static struct cclass {
|
||||
+ const char *name;
|
||||
+ int (*isctype)(int);
|
||||
+} cclasses[] = {
|
||||
+ { "alnum", isalnum },
|
||||
+ { "alpha", isalpha },
|
||||
+ { "blank", isblank },
|
||||
+ { "cntrl", iscntrl },
|
||||
+ { "digit", isdigit },
|
||||
+ { "graph", isgraph },
|
||||
+ { "lower", islower },
|
||||
+ { "print", isprint },
|
||||
+ { "punct", ispunct },
|
||||
+ { "space", isspace },
|
||||
+ { "upper", isupper },
|
||||
+ { "xdigit", isxdigit },
|
||||
+ { NULL, NULL }
|
||||
+};
|
||||
+
|
||||
+#define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1)
|
|
@ -1,11 +0,0 @@
|
|||
--- mandoc-1.14.5/catman.c.orig Sun Jan 19 23:55:20 2020
|
||||
+++ mandoc-1.14.5/catman.c Sun Jan 19 23:55:30 2020
|
||||
@@ -113,7 +113,7 @@
|
||||
if ((sz = sendmsg(fd, &msg, 0)) != -1 ||
|
||||
errno != EAGAIN)
|
||||
break;
|
||||
- nanosleep(&timeout, NULL);
|
||||
+ sleep(1);
|
||||
}
|
||||
return sz;
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
--- mandoc-1.14.5/demandoc.c.orig Mon Jan 20 00:18:29 2020
|
||||
+++ mandoc-1.14.5/demandoc.c Mon Jan 20 00:18:39 2020
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "man.h"
|
||||
#include "mdoc.h"
|
||||
#include "mandoc_parse.h"
|
||||
+#include "getopt.h"
|
||||
|
||||
static void pline(int, int *, int *, int);
|
||||
static void pman(const struct roff_node *, int *, int *, int);
|
|
@ -8,14 +8,6 @@
|
|||
#if HAVE_SANDBOX_INIT
|
||||
#include <sandbox.h>
|
||||
#endif
|
||||
@@ -42,6 +41,7 @@
|
||||
#include <termios.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
+#include <getopt.h>
|
||||
|
||||
#include "mandoc_aux.h"
|
||||
#include "mandoc.h"
|
||||
@@ -54,6 +54,7 @@
|
||||
#include "main.h"
|
||||
#include "manconf.h"
|
||||
|
@ -24,20 +16,3 @@
|
|||
|
||||
enum outmode {
|
||||
OUTMODE_DEF = 0,
|
||||
@@ -660,6 +661,7 @@
|
||||
if (!WIFSTOPPED(status))
|
||||
break;
|
||||
|
||||
+#define WSTOPSIG(x) 0
|
||||
signum = WSTOPSIG(status);
|
||||
}
|
||||
tag_unlink();
|
||||
@@ -1239,7 +1241,7 @@
|
||||
/* Do not start the pager before controlling the terminal. */
|
||||
|
||||
while (tcgetpgrp(STDOUT_FILENO) != getpid())
|
||||
- nanosleep(&timeout, NULL);
|
||||
+ sleep(1);
|
||||
|
||||
execvp(argv[0], argv);
|
||||
err((int)MANDOCLEVEL_SYSERR, "exec %s", argv[0]);
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
--- mandoc-1.14.5/mandocdb.c.orig Sat Jan 25 20:18:09 2020
|
||||
+++ mandoc-1.14.5/mandocdb.c Sat Jan 25 20:18:22 2020
|
||||
@@ -45,6 +45,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
+#include <getopt.h>
|
||||
|
||||
#include "mandoc_aux.h"
|
||||
#include "mandoc_ohash.h"
|
|
@ -1,10 +0,0 @@
|
|||
--- mandoc-1.14.5/soelim.c.orig Mon Jan 20 00:18:44 2020
|
||||
+++ mandoc-1.14.5/soelim.c Mon Jan 20 00:18:55 2020
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "compat_stringlist.h"
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
+#include "getopt.h"
|
||||
|
||||
#define C_OPTION 0x1
|
||||
|
Loading…
Add table
Reference in a new issue