]> andersk Git - moira.git/blobdiff - include/moira_site.h
deal with ^D in input, don't return a pointer into the stack, don't
[moira.git] / include / moira_site.h
index 5c0d2d92f01c235605c773898ba215353ff19bb3..f564416472284538ce3e8d136ac422f1c28e8c5d 100644 (file)
@@ -1,9 +1,13 @@
-/*     This is the file infodefs.h for the SMS Client, which allows a nieve
- *      user to quickly and easily maintain most parts of the SMS database.
- *     It Contains: useful typdefs.
- *     
- *     Created:        6/8/88
- *     By:             Chris D. Peterson
+/*
+ * This file contains all definitions that allow easy access to 
+ * elements returned by most of the @i[SMS] queries.
+ *
+ * If the order of the arguments in the @i[SMS] queries change (again)
+ * then all that needs to be changed are the values of these items 
+ * and all should be well, (hopefully :-).
+ *
+ *                                 Chris D. Peterson - kit@athena
+ *                                   7/27/88
  *
  *      $Source$
  *      $Author$
  *     see the file mit-copyright.h
  */
 
-/*
- *     This file contains all definitions that allow easy access to 
- * elements returned by most of the @i[SMS] queries.
- *
- *     If the order of the arguments in the @i[SMS] queries change (again)
- *  then all that needs to be changed are the values of these items 
- * and all should be well, (hopefully :-).
- *
- *                                 Chris D. Peterson - kit@athena
- *                                   7/27/88
- */
-
-#ifndef _infodefs_
-#define _infodefs_
+#ifndef _sms_app_
+#define _sms_app_
 
 #include "mit-copyright.h"
 
+/* Default SMS server to connect to */
+#define SMS_SERVER     "SMS.MIT.EDU:sms_db"
+
 #define NAME 0
 
 /* get_ace_use */
 #define DM_MEMBER    2
 #define DM_END       3
 
-/* Filesys queries (attachmaint) */
+/* Finger queries */
+
+#define F_NAME          0
+#define F_FULLNAME      1
+#define F_NICKNAME      2
+#define F_HOME_ADDR     3
+#define F_HOME_PHONE    4
+#define F_OFFICE_ADDR   5
+#define F_OFFICE_PHONE  6
+#define F_MIT_DEPT      7
+#define F_MIT_AFFIL     8
+#define F_MODTIME       9
+#define F_MODBY         10
+#define F_MODWITH       11
+#define F_END           12
+
+/* Filesys queries */
 
 #define FS_NAME         0
 #define FS_TYPE         1
 #define Q_MODWITH   7
 #define Q_END       8
 
-/* User Information queries */
-
-#define U_NAME    0
-#define U_UID     1
-#define U_SHELL   2
-#define U_LAST    3
-#define U_FIRST   4
-#define U_MIDDLE  5
-#define U_STATE   6  
-#define U_MITID   7
-#define U_CLASS   8
-#define U_MODTIME 9
-#define U_MODBY   10
-#define U_MODWITH 11
-#define U_END     12
-
-/* User states (the value of argv[U_STATE] from a user query) */
-#define US_NO_LOGIN_YET 0
-#define US_REGISTERED   1
-#define US_NO_PASSWD    2
-#define US_DELETED      3
-#define US_NOT_ALLOWED  4
-#define US_END          5
-
 /* Service info */
+
 #define SVC_SERVICE    0
 #define SVC_INTERVAL   1
 #define SVC_TARGET     2
 #define SVC_END                16
 
 /* Service add/update */
+
 #define SC_SERVICE     0
 #define SC_INTERVAL    1
 #define SC_TARGET      2
 #define SC_END         8
 
 /* Service/host tuples */
+
 #define SH_SERVICE     0
 #define SH_MACHINE     1
 #define SH_ENABLE      2
 #define SH_END         16
 
 /* Service/host tuple add & updates */
+
 #define SHI_SERVICE    0
 #define SHI_MACHINE    1
 #define SHI_ENABLE     2
 #define SHI_VALUE3     5
 #define SHI_END                6
 
-#endif _infodefs_              /* Do not add anything after this line. */
+/* User Information queries */
+
+#define U_NAME    0
+#define U_UID     1
+#define U_SHELL   2
+#define U_LAST    3
+#define U_FIRST   4
+#define U_MIDDLE  5
+#define U_STATE   6  
+#define U_MITID   7
+#define U_CLASS   8
+#define U_MODTIME 9
+#define U_MODBY   10
+#define U_MODWITH 11
+#define U_END     12
+
+/* User states (the value of argv[U_STATE] from a user query) */
+
+#define US_NO_LOGIN_YET 0
+#define US_REGISTERED   1
+#define US_NO_PASSWD    2
+#define US_DELETED      3
+#define US_NOT_ALLOWED  4
+#define US_END          5
+
+/* User shell queries */
+
+#define USH_NAME        0
+#define USH_SHELL       1
+#define USH_END         2
+
+#endif _sms_app_               /* Do not add anything after this line. */
This page took 0.048849 seconds and 4 git commands to generate.