Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2018 12:08:41 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327962 - head/lib/libsysdecode
Message-ID:  <201801141208.w0EC8fjw022410@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sun Jan 14 12:08:41 2018
New Revision: 327962
URL: https://svnweb.freebsd.org/changeset/base/327962

Log:
  Add suppor for the supported PR-SCTP policies.

Modified:
  head/lib/libsysdecode/Makefile
  head/lib/libsysdecode/flags.c
  head/lib/libsysdecode/mktables
  head/lib/libsysdecode/sysdecode.h
  head/lib/libsysdecode/sysdecode_enum.3

Modified: head/lib/libsysdecode/Makefile
==============================================================================
--- head/lib/libsysdecode/Makefile	Sun Jan 14 09:51:25 2018	(r327961)
+++ head/lib/libsysdecode/Makefile	Sun Jan 14 12:08:41 2018	(r327962)
@@ -50,6 +50,7 @@ MLINKS+=sysdecode_enum.3 sysdecode_acltype.3 \
 	sysdecode_enum.3 sysdecode_rlimit.3 \
 	sysdecode_enum.3 sysdecode_rtprio_function.3 \
 	sysdecode_enum.3 sysdecode_scheduler_policy.3 \
+	sysdecode_enum.3 sysdecode_sctp_pr_policy.3 \
 	sysdecode_enum.3 sysdecode_semctl_cmd.3 \
 	sysdecode_enum.3 sysdecode_shmctl_cmd.3 \
 	sysdecode_enum.3 sysdecode_shutdown_how.3 \

Modified: head/lib/libsysdecode/flags.c
==============================================================================
--- head/lib/libsysdecode/flags.c	Sun Jan 14 09:51:25 2018	(r327961)
+++ head/lib/libsysdecode/flags.c	Sun Jan 14 12:08:41 2018	(r327962)
@@ -1158,3 +1158,10 @@ sysdecode_cap_rights(FILE *fp, cap_rights_t *rightsp)
 		}
 	}
 }
+
+const char *
+sysdecode_sctp_pr_policy(int policy)
+{
+
+	return (lookup_value(sctpprpolicy, policy));
+}

Modified: head/lib/libsysdecode/mktables
==============================================================================
--- head/lib/libsysdecode/mktables	Sun Jan 14 09:51:25 2018	(r327961)
+++ head/lib/libsysdecode/mktables	Sun Jan 14 12:08:41 2018	(r327962)
@@ -157,6 +157,7 @@ gen_table "sigcode"         "SI_[A-Z]+[[:space:]]+0(x[
 gen_table "umtxcvwaitflags" "CVWAIT_[A-Z_]+[[:space:]]+0x[0-9]+"           "sys/umtx.h"
 gen_table "umtxrwlockflags" "URWLOCK_PREFER_READER[[:space:]]+0x[0-9]+"    "sys/umtx.h"
 gen_table "caprights"       "CAP_[A-Z_]+[[:space:]]+CAPRIGHT\([0-9],[[:space:]]+0x[0-9]{16}ULL\)"   "sys/capsicum.h"
+gen_table "sctpprpolicy"    "SCTP_PR_SCTP_[A-Z_]+"                         "netinet/sctp_uio.h" "SCTP_PR_SCTP_BUF|SCTP_PR_SCTP_MAX|SCTP_PR_SCTP_ALL"
 if [ -e "${include_dir}/x86/sysarch.h" ]; then
 	gen_table "sysarchnum" "(AMD64|I386)_[A-Z86_]+[[:space:]]+[0-9]+"  "x86/sysarch.h"
 else

Modified: head/lib/libsysdecode/sysdecode.h
==============================================================================
--- head/lib/libsysdecode/sysdecode.h	Sun Jan 14 09:51:25 2018	(r327961)
+++ head/lib/libsysdecode/sysdecode.h	Sun Jan 14 12:08:41 2018	(r327962)
@@ -90,6 +90,7 @@ bool	sysdecode_rfork_flags(FILE *_fp, int _flags, int 
 const char *sysdecode_rlimit(int _resource);
 const char *sysdecode_rtprio_function(int _function);
 const char *sysdecode_scheduler_policy(int _policy);
+const char *sysdecode_sctp_pr_policy(int _policy);
 const char *sysdecode_semctl_cmd(int _cmd);
 bool	sysdecode_semget_flags(FILE *_fp, int _flag, int *_rem);
 bool	sysdecode_sendfile_flags(FILE *_fp, int _flags, int *_rem);

Modified: head/lib/libsysdecode/sysdecode_enum.3
==============================================================================
--- head/lib/libsysdecode/sysdecode_enum.3	Sun Jan 14 09:51:25 2018	(r327961)
+++ head/lib/libsysdecode/sysdecode_enum.3	Sun Jan 14 12:08:41 2018	(r327962)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd September 3, 2017
+.Dd January 14, 2018
 .Dt sysdecode_enum 3
 .Os
 .Sh NAME
@@ -53,6 +53,7 @@
 .Nm sysdecode_rlimit ,
 .Nm sysdecode_rtprio_function ,
 .Nm sysdecode_scheduler_policy ,
+.Nm sysdecode_sctp_pr_policy ,
 .Nm sysdecode_semctl_cmd ,
 .Nm sysdecode_shmctl_cmd ,
 .Nm sysdecode_shutdown_how ,
@@ -126,6 +127,8 @@
 .Ft const char *
 .Fn sysdecode_scheduler_policy "int policy"
 .Ft const char *
+.Fn sysdecode_sctp_pr_policy "int policy"
+.Ft const char *
 .Fn sysdecode_semctl_cmd "int cmd"
 .Ft const char *
 .Fn sysdecode_shmctl_cmd "int cmd"
@@ -229,6 +232,8 @@ Other functions decode the values described below:
 .Bl -tag -width "Fn sysdecode_sockaddr_family"
 .It Fn sysdecode_ipproto
 An IP protocol.
+.It Fn sysdecode_sctp_pr_policy
+A PR-SCTP policy.
 .It Fn sysdecode_signal
 A process signal.
 .It Fn sysdecode_sockaddr_family



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801141208.w0EC8fjw022410>