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 | 113e21f0a57af49d61cfb0dd1afd38b4a8fd5128 (patch) | |
tree | 0ed50b9c6a348759586f6ddbb3decc663a531d7d /source3/lib | |
parent | b9af9646807373ba3264a4c44779c0b2eea68723 (diff) | |
download | samba-113e21f0a57af49d61cfb0dd1afd38b4a8fd5128.tar.gz samba-113e21f0a57af49d61cfb0dd1afd38b4a8fd5128.tar.bz2 samba-113e21f0a57af49d61cfb0dd1afd38b4a8fd5128.zip |
r21084: Make the Samba4 files compile in Samba3, not activated yet.
Volker
(This used to be commit c24854433a28cc066072a7107e29aa7fe2bec3c8)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 5e2588e5b9..b416907c41 100644 --- a/source3/lib/util.c +++ b/source3/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()); |