* $Header$
*
* Copyright (C) 1987 by the Massachusetts Institute of Technology
- *
- * $Log$
- * Revision 1.1 1987-09-03 03:13:40 wesommer
- * Initial revision
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*
*/
static char *rcsid_nfsparttype_c = "$Header$";
#endif lint
-#include <sms.h>
+#include <mit-copyright.h>
+#include <moira.h>
#include <stdio.h>
-#include <strings.h>
+#include <string.h>
#include <ctype.h>
extern char *strsave();
*/
static struct pair fs_names[] = {
- { SMS_FS_STUDENT, "Student" },
- { SMS_FS_FACULTY, "Faculty/Project" },
- { SMS_FS_FACULTY, "Faculty" },
- { SMS_FS_FACULTY, "Project" },
- { SMS_FS_STAFF, "Staff" },
- { SMS_FS_MISC, "Other" },
+ { MR_FS_STUDENT, "Student" },
+ { MR_FS_FACULTY, "Faculty" },
+ { MR_FS_STAFF, "Staff" },
+ { MR_FS_MISC, "Other" },
+ { MR_FS_GROUPQUOTA, "GroupQuota" },
/* Insert new entries before the 0,0 pair */
{ 0, 0 },
};
do {
/* Copy next component of type to temp */
- char *t = index (cp, ',');
+ char *t = strchr (cp, ',');
if (t) {
- bcopy(cp, temp, t-cp);
+ memcpy(temp, cp, t-cp);
temp[t-cp]='\0';
cp = t + 1; /* one after the comma */
} else {
t = strtrim(temp); /* nuke leading and trailing whitespace */
for (pp = fs_names; pp->type; pp++) {
- if (cistrcmp(pp->name, t) == 0) {
+ if (strcasecmp(pp->name, t) == 0) {
flags |= pp->type;
break;
}