diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-19 14:38:59 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-19 14:38:59 +0000 |
commit | ed66f77079bc5bb211e47ca10c75bcb842f05d30 (patch) | |
tree | 39a849ff4f37162a83f7226a42d71b594bb37c01 /bin/systrace/intercept.h | |
parent | 771ab6f40e69d0d58417b233ebfc999aa73ac143 (diff) |
constify, have missing prototypes, use pedantic compilation options.
niels ok
Diffstat (limited to 'bin/systrace/intercept.h')
-rw-r--r-- | bin/systrace/intercept.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/bin/systrace/intercept.h b/bin/systrace/intercept.h index 2c1fb96421b..9ccc6eb0f4e 100644 --- a/bin/systrace/intercept.h +++ b/bin/systrace/intercept.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intercept.h,v 1.7 2002/07/16 01:22:48 provos Exp $ */ +/* $OpenBSD: intercept.h,v 1.8 2002/07/19 14:38:57 itojun Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -44,7 +44,7 @@ struct intercept_system { int (*detach)(int, pid_t); int (*report)(int, pid_t); int (*read)(int); - int (*getsyscallnumber)(char *, char *); + int (*getsyscallnumber)(const char *, const char *); char *(*getcwd)(int, pid_t, char *, size_t); int (*restcwd)(int); int (*io)(int, pid_t, int, void *, u_char *, size_t); @@ -125,20 +125,21 @@ int intercept_detach(int, pid_t); int intercept_read(int); int intercept_newpolicy(int); int intercept_assignpolicy(int, pid_t, int); -int intercept_modifypolicy(int, int, char *, char *, short); +int intercept_modifypolicy(int, int, const char *, const char *, short); +void intercept_child_info(pid_t, pid_t); int intercept_replace_init(struct intercept_replace *); int intercept_replace_add(struct intercept_replace *, int, u_char *, size_t); int intercept_replace(int, pid_t, struct intercept_replace *); int intercept_register_sccb(char *, char *, - short (*)(int, pid_t, int, char *, int, char *, void *, int, + short (*)(int, pid_t, int, const char *, int, const char *, void *, int, struct intercept_tlq *, void *), void *); void *intercept_sccb_cbarg(char *, char *); -int intercept_register_gencb(short (*)(int, pid_t, int, char *, int, char *, void *, int, void *), void *); -int intercept_register_execcb(void (*)(int, pid_t, int, char *, char *, void *), void *); +int intercept_register_gencb(short (*)(int, pid_t, int, const char *, int, const char *, void *, int, void *), void *); +int intercept_register_execcb(void (*)(int, pid_t, int, const char *, const char *, void *), void *); struct intercept_translate *intercept_register_translation(char *, char *, int, struct intercept_translate *); @@ -163,5 +164,9 @@ int intercept_existpids(void); char *intercept_get_string(int, pid_t, void *); char *intercept_filename(int, pid_t, void *, int); +void intercept_syscall(int, pid_t, int, const char *, int, const char *, + void *, int); +void intercept_syscall_result(int, pid_t, int, const char *, int, const char *, + void *, int, int, void *); #endif /* _INTERCEPT_H_ */ |