Date: Thu, 22 Feb 2018 01:59:59 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329787 - head/sys/sys Message-ID: <201802220159.w1M1xxMc053088@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Thu Feb 22 01:59:59 2018 New Revision: 329787 URL: https://svnweb.freebsd.org/changeset/base/329787 Log: Use 'const int *' for sysentvec errno translation table This allows an sv_errtbl to be read-only .rodata. Sponsored by: Turing Robotic Industries Inc. Modified: head/sys/sys/sysent.h Modified: head/sys/sys/sysent.h ============================================================================== --- head/sys/sys/sysent.h Thu Feb 22 01:57:38 2018 (r329786) +++ head/sys/sys/sysent.h Thu Feb 22 01:59:59 2018 (r329787) @@ -94,7 +94,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?201802220159.w1M1xxMc053088>