PERFORCE change 96473 for review

John Birrell jb at FreeBSD.org
Mon May 1 08:58:56 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=96473

Change 96473 by jb at jb_freebsd2 on 2006/05/01 08:57:59

	The function callbacks occur during a syscall and they have
	no way to report errors, so they might as well be void
	functions. If they can't do what they were intended to do,
	the best that they can do is just shut the %$&k up.

Affected files ...

.. //depot/projects/dtrace/src/sys/sys/sysent.h#3 edit

Differences ...

==== //depot/projects/dtrace/src/sys/sys/sysent.h#3 (text+ko) ====

@@ -42,13 +42,13 @@
 typedef	int	sy_call_t(struct thread *, void *);
 
 /* Used by the machine dependent syscall() code. */
-typedef	int (*systrace_probe_func_t)(u_int32_t, int, struct sysent *, void *);
+typedef	void (*systrace_probe_func_t)(u_int32_t, int, struct sysent *, void *);
 
 /*
  * Used by loaded syscalls to convert arguments to a DTrace array
  * of 64-bit arguments.
  */
-typedef	int (*systrace_args_func_t)(void *, u_int64_t *, int *);
+typedef	void (*systrace_args_func_t)(void *, u_int64_t *, int *);
 
 extern systrace_probe_func_t	systrace_probe_func;
 


More information about the p4-projects mailing list