Date: Sun, 28 Apr 2019 13:16:54 +0000 (UTC) From: Dmitry Chagin <dchagin@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: r346815 - stable/11/sys/sys Message-ID: <201904281316.x3SDGsbK011920@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Sun Apr 28 13:16:54 2019 New Revision: 346815 URL: https://svnweb.freebsd.org/changeset/base/346815 Log: MFC r329787 (by emaste@): Use 'const int *' for sysentvec errno translation table This allows an sv_errtbl to be read-only .rodata. Modified: stable/11/sys/sys/sysent.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/sys/sysent.h ============================================================================== --- stable/11/sys/sys/sysent.h Sun Apr 28 13:07:38 2019 (r346814) +++ stable/11/sys/sys/sysent.h Sun Apr 28 13:16:54 2019 (r346815) @@ -92,7 +92,7 @@ struct sysentvec { struct sysent *sv_table; /* pointer to sysent */ u_int sv_mask; /* optional mask to index */ int sv_errsize; /* size of errno translation table */ - int *sv_errtbl; /* errno translation table */ + const int *sv_errtbl; /* errno translation table */ int (*sv_transtrap)(int, int); /* translate trap-to-signal mapping */ int (*sv_fixup)(register_t **, struct image_params *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904281316.x3SDGsbK011920>