Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2018 20:57:27 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332243 - stable/11/lib/libsysdecode
Message-ID:  <201804072057.w37KvR0P004093@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sat Apr  7 20:57:27 2018
New Revision: 332243
URL: https://svnweb.freebsd.org/changeset/base/332243

Log:
  MFC r327962:
  
  Add support for the supported PR-SCTP policies.

Modified:
  stable/11/lib/libsysdecode/Makefile
  stable/11/lib/libsysdecode/flags.c
  stable/11/lib/libsysdecode/mktables
  stable/11/lib/libsysdecode/sysdecode.h
  stable/11/lib/libsysdecode/sysdecode_enum.3
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libsysdecode/Makefile
==============================================================================
--- stable/11/lib/libsysdecode/Makefile	Sat Apr  7 20:56:07 2018	(r332242)
+++ stable/11/lib/libsysdecode/Makefile	Sat Apr  7 20:57:27 2018	(r332243)
@@ -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: stable/11/lib/libsysdecode/flags.c
==============================================================================
--- stable/11/lib/libsysdecode/flags.c	Sat Apr  7 20:56:07 2018	(r332242)
+++ stable/11/lib/libsysdecode/flags.c	Sat Apr  7 20:57:27 2018	(r332243)
@@ -1156,3 +1156,10 @@ sysdecode_cap_rights(FILE *fp, cap_rights_t *rightsp)
 		}
 	}
 }
+
+const char *
+sysdecode_sctp_pr_policy(int policy)
+{
+
+	return (lookup_value(sctpprpolicy, policy));
+}

Modified: stable/11/lib/libsysdecode/mktables
==============================================================================
--- stable/11/lib/libsysdecode/mktables	Sat Apr  7 20:56:07 2018	(r332242)
+++ stable/11/lib/libsysdecode/mktables	Sat Apr  7 20:57:27 2018	(r332243)
@@ -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: stable/11/lib/libsysdecode/sysdecode.h
==============================================================================
--- stable/11/lib/libsysdecode/sysdecode.h	Sat Apr  7 20:56:07 2018	(r332242)
+++ stable/11/lib/libsysdecode/sysdecode.h	Sat Apr  7 20:57:27 2018	(r332243)
@@ -89,6 +89,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: stable/11/lib/libsysdecode/sysdecode_enum.3
==============================================================================
--- stable/11/lib/libsysdecode/sysdecode_enum.3	Sat Apr  7 20:56:07 2018	(r332242)
+++ stable/11/lib/libsysdecode/sysdecode_enum.3	Sat Apr  7 20:57:27 2018	(r332243)
@@ -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?201804072057.w37KvR0P004093>