summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-10 01:25:32 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-10 01:25:32 +0000
commit65a29b0ca56a78148b415fd817af245afc2bb0b9 (patch)
tree6d1cf84b352f5d35bab0059144a402778afeb678 /source3/utils
parent59e2e2c7d8df317c17b860a4f924c791e8dbbca8 (diff)
downloadsamba-65a29b0ca56a78148b415fd817af245afc2bb0b9.tar.gz
samba-65a29b0ca56a78148b415fd817af245afc2bb0b9.tar.bz2
samba-65a29b0ca56a78148b415fd817af245afc2bb0b9.zip
the rest of the binaries now compile and link
(This used to be commit 7fecc3d5a2fb641237f24a3f39c6556fde648a8a)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/status.c67
1 files changed, 34 insertions, 33 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c
index 8ece6ed4c1..225f1712fe 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -66,6 +66,40 @@ files_struct Files[MAX_OPEN_FILES];
struct current_user current_user;
+/* added by OH */
+static void Ucrit_addUsername(char *username)
+{
+ pstrcpy(Ucrit_username, username);
+ if(strlen(Ucrit_username) > 0)
+ Ucrit_IsActive = 1;
+}
+
+static unsigned int Ucrit_checkUsername(char *username)
+{
+ if ( !Ucrit_IsActive) return 1;
+ if (strcmp(Ucrit_username,username) ==0) return 1;
+ return 0;
+}
+
+static void Ucrit_addPid(int pid)
+{
+ int i;
+ if ( !Ucrit_IsActive) return;
+ for (i=0;i<Ucrit_MaxPid;i++)
+ if( pid == Ucrit_pid[i] ) return;
+ Ucrit_pid[Ucrit_MaxPid++] = pid;
+}
+
+static unsigned int Ucrit_checkPid(int pid)
+{
+ int i;
+ if ( !Ucrit_IsActive) return 1;
+ for (i=0;i<Ucrit_MaxPid;i++)
+ if( pid == Ucrit_pid[i] ) return 1;
+ return 0;
+}
+
+
static void print_share_mode(share_mode_entry *e, char *fname)
{
static int count;
@@ -296,36 +330,3 @@ static void print_share_mode(share_mode_entry *e, char *fname)
return (0);
}
-/* added by OH */
-void Ucrit_addUsername(pstring username)
-{
- pstrcpy(Ucrit_username, username);
- if(strlen(Ucrit_username) > 0)
- Ucrit_IsActive = 1;
-}
-
-unsigned int Ucrit_checkUsername(pstring username)
-{
- if ( !Ucrit_IsActive) return 1;
- if (strcmp(Ucrit_username,username) ==0) return 1;
- return 0;
-}
-
-void Ucrit_addPid(int pid)
-{
- int i;
- if ( !Ucrit_IsActive) return;
- for (i=0;i<Ucrit_MaxPid;i++)
- if( pid == Ucrit_pid[i] ) return;
- Ucrit_pid[Ucrit_MaxPid++] = pid;
-}
-
-unsigned int Ucrit_checkPid(int pid)
-{
- int i;
- if ( !Ucrit_IsActive) return 1;
- for (i=0;i<Ucrit_MaxPid;i++)
- if( pid == Ucrit_pid[i] ) return 1;
- return 0;
-}
-