aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Gu <guhaoyu2005@gmail.com>2023-09-24 22:34:43 +0000
committerEd Maste <emaste@FreeBSD.org>2023-09-24 22:37:58 +0000
commit5e29272bf57e24a16f3a17f037f9a5e7cf25ed90 (patch)
tree3e3b2dafeda657f5db7eeae5aee4ba48a34f4e1a
parentabcdc1b9aed7e0b7b07b47ae14c960c9cefe882f (diff)
downloadsrc-5e29272bf57e24a16f3a17f037f9a5e7cf25ed90.tar.gz
src-5e29272bf57e24a16f3a17f037f9a5e7cf25ed90.zip
syscalls.master: Fix SAL annotation for getdirentires basep argument
getdirentires last argument "off_t *basep" is an optional output argument. It returns the value only when the passed-in value(pointer) is non-NULL. This is a part of the research work at RCSLab, University of Waterloo. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41969
-rw-r--r--sys/kern/syscalls.master6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 69a669844629..f7c235ced26c 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -999,7 +999,7 @@
int fd,
_Out_writes_bytes_(count) char *buf,
u_int count,
- _Out_ long *basep
+ _Out_opt_ long *basep
);
}
157 AUE_STATFS COMPAT4 {
@@ -1185,7 +1185,7 @@
int fd,
_Out_writes_bytes_(count) char *buf,
u_int count,
- _Out_ long *basep
+ _Out_opt_ long *basep
);
}
197 AUE_MMAP COMPAT6|CAPENABLED {
@@ -3097,7 +3097,7 @@
int fd,
_Out_writes_bytes_(count) char *buf,
size_t count,
- _Out_ off_t *basep
+ _Out_opt_ off_t *basep
);
}
555 AUE_STATFS STD {