diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-06-06 11:50:25 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-10-20 02:48:44 +1100 |
commit | 1011d10a515f165c29fb5470ad04acf856a6217a (patch) | |
tree | 743782c10fd8cff7c00142b4fa88e2e3b733697f /ctdb/common/system_freebsd.c | |
parent | ef79dc012e8867116ea71880940fe531d41d2649 (diff) | |
download | samba-1011d10a515f165c29fb5470ad04acf856a6217a.tar.gz samba-1011d10a515f165c29fb5470ad04acf856a6217a.tar.xz samba-1011d10a515f165c29fb5470ad04acf856a6217a.zip |
common: Add routines to get process and lock information
Currently these functions are implemented only for Linux.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit be4051326b0c6a0fd301561af10fd15a0e90023b)
Diffstat (limited to 'ctdb/common/system_freebsd.c')
-rw-r--r-- | ctdb/common/system_freebsd.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ctdb/common/system_freebsd.c b/ctdb/common/system_freebsd.c index ed30f8ccb72..37f1c74b451 100644 --- a/ctdb/common/system_freebsd.c +++ b/ctdb/common/system_freebsd.c @@ -368,3 +368,21 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid) /* FIXME not implemented */ return 1; } + +char *ctdb_get_process_name(pid_t pid) +{ + /* FIXME: not implemented */ + return NULL; +} + +bool ctdb_get_lock_info(pid_t req_pid, struct ctdb_lock_info *lock_info) +{ + /* FIXME: not implemented */ + return false; +} + +bool ctdb_get_blocker_pid(struct ctdb_lock_info *reqlock, pid_t *blocker_pid) +{ + /* FIXME: not implemented */ + return false; +} |