This commit was generated by cvs2svn to compensate for changes in r30,
[kai/samba-autobuild/.git] / source4 / utils / rewrite.c
1 #include "includes.h"
2
3 /*
4
5  this is a set of temporary stub functions used during the samba4 rewrite.
6  This file will need to go away before the rewrite is complete.
7 */
8
9 BOOL become_user_permanently(uid_t uid, gid_t gid)
10 { return True; }
11
12 BOOL is_setuid_root(void)
13 { return False; }
14
15 int share_mode_forall(SHAREMODE_FN(fn))
16 { return 0; }
17
18 #define BRLOCK_FN(fn) \
19         void (*fn)(SMB_DEV_T dev, SMB_INO_T ino, int pid, \
20                                  enum brl_type lock_type, \
21                                  br_off start, br_off size)
22 int brl_forall(BRLOCK_FN(fn))
23 { return 0; }
24
25 BOOL locking_end(void)
26 { return True; }
27
28 BOOL locking_init(int read_only)
29 { return True; }
30
31 uid_t sec_initial_gid(void)
32 { return 0; }