diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-01-31 13:47:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:34 -0500 |
commit | c24854433a28cc066072a7107e29aa7fe2bec3c8 (patch) | |
tree | bc27f30c6e3697b6c7ef0d4551b7f5992fccc97d /source/lib | |
parent | 65f473d22bd8f3b04becfc0be369758898fdadb6 (diff) | |
download | samba-c24854433a28cc066072a7107e29aa7fe2bec3c8.tar.gz samba-c24854433a28cc066072a7107e29aa7fe2bec3c8.tar.xz samba-c24854433a28cc066072a7107e29aa7fe2bec3c8.zip |
r21084: Make the Samba4 files compile in Samba3, not activated yet.
Volker
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/util.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 5e2588e5b90..b416907c41c 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -3007,11 +3007,24 @@ struct process_id procid_self(void) return pid_to_procid(sys_getpid()); } +struct server_id server_id_self(void) +{ + struct server_id id; + id.id = procid_self(); + return id; +} + BOOL procid_equal(const struct process_id *p1, const struct process_id *p2) { return (p1->pid == p2->pid); } +BOOL cluster_id_equal(const struct server_id *id1, + const struct server_id *id2) +{ + return procid_equal(&id1->id, &id2->id); +} + BOOL procid_is_me(const struct process_id *pid) { return (pid->pid == sys_getpid()); |