+void cmd_newu (char *cmdbuf);
+void start_chkpwd_daemon(void);
+
+
+#define RENAMEUSER_OK 0 /* Operation succeeded */
+#define RENAMEUSER_LOGGED_IN 1 /* Cannot rename a user who is currently logged in */
+#define RENAMEUSER_NOT_FOUND 2 /* The old user name does not exist */
+#define RENAMEUSER_ALREADY_EXISTS 3 /* An account with the desired new name already exists */
+
+int rename_user(char *oldname, char *newname);
+
+///#ifndef CTDL_INLINE_USR
+////#define CTDL_INLINE_USR static INLINE
+///#endif
+
+///CTDL_INLINE_USR
+static INLINE long cutuserkey(char *username) {
+ long len;
+ len = strlen(username);
+ if (len >= USERNAME_SIZE)
+ {
+ syslog(LOG_INFO, "Username too long: %s", username);
+ len = USERNAME_SIZE - 1;
+ username[len]='\0';
+ }
+ return len;
+}