From c45cffdbe1a1b816fd9a88f88bb83bd7078a1e4e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 20 Jun 2021 12:38:27 -0400 Subject: sim: callback: add a getpid interface Rather than hit the OS interface directly, use the existing callback layer so the instantiator can decide behavior. --- include/sim/ChangeLog | 4 ++++ include/sim/callback.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/sim/ChangeLog b/include/sim/ChangeLog index 4fe3bc02403..b98631b37e5 100644 --- a/include/sim/ChangeLog +++ b/include/sim/ChangeLog @@ -1,3 +1,7 @@ +2021-06-22 Mike Frysinger + + * sim/callback.h (struct host_callback_struct): Add getpid. + 2021-05-14 Mike Frysinger * sim/callback.h (struct host_callback_struct): Change lseek return and diff --git a/include/sim/callback.h b/include/sim/callback.h index 4c162bc145e..a6c536b1be1 100644 --- a/include/sim/callback.h +++ b/include/sim/callback.h @@ -91,6 +91,7 @@ struct host_callback_struct int (*to_lstat) (host_callback *, const char *, struct stat *); int (*ftruncate) (host_callback *, int, int64_t); int (*truncate) (host_callback *, const char *, int64_t); + int (*getpid) (host_callback *); int (*pipe) (host_callback *, int *); /* Called by the framework when a read call has emptied a pipe buffer. */ -- cgit v1.2.1