svn commit: r316594 - in head/sys: compat/freebsd32 kern

Brooks Davis brooks at FreeBSD.org
Thu Apr 6 23:40:15 UTC 2017


Author: brooks
Date: Thu Apr  6 23:40:13 2017
New Revision: 316594
URL: https://svnweb.freebsd.org/changeset/base/316594

Log:
  Change the size argument of __getcwd() to size_t.
  
  This matches the getcwd() definition.
  
  This is technically an ABI change, but that would only effect 64-bit
  big-endian platforms that pass arguments on the stack. We have none of
  those.
  
  Reviewed by:	jhb
  Obtained from:	CheriABI
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D9428

Modified:
  head/sys/compat/freebsd32/syscalls.master
  head/sys/kern/syscalls.master

Modified: head/sys/compat/freebsd32/syscalls.master
==============================================================================
--- head/sys/compat/freebsd32/syscalls.master	Thu Apr  6 23:35:10 2017	(r316593)
+++ head/sys/compat/freebsd32/syscalls.master	Thu Apr  6 23:40:13 2017	(r316594)
@@ -586,7 +586,7 @@
 323	AUE_NULL	OBSOL	thr_wakeup
 324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
 325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
-326	AUE_GETCWD	NOPROTO	{ int __getcwd(char *buf, u_int buflen); }
+326	AUE_GETCWD	NOPROTO	{ int __getcwd(char *buf, size_t buflen); }
 
 327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
 				    const struct sched_param *param); }

Modified: head/sys/kern/syscalls.master
==============================================================================
--- head/sys/kern/syscalls.master	Thu Apr  6 23:35:10 2017	(r316593)
+++ head/sys/kern/syscalls.master	Thu Apr  6 23:40:13 2017	(r316594)
@@ -573,7 +573,7 @@
 323	AUE_NULL	OBSOL	thr_wakeup
 324	AUE_MLOCKALL	STD	{ int mlockall(int how); }
 325	AUE_MUNLOCKALL	STD	{ int munlockall(void); }
-326	AUE_GETCWD	STD	{ int __getcwd(char *buf, u_int buflen); }
+326	AUE_GETCWD	STD	{ int __getcwd(char *buf, size_t buflen); }
 
 327	AUE_NULL	STD	{ int sched_setparam (pid_t pid, \
 				    const struct sched_param *param); }


More information about the svn-src-all mailing list