chiark / gitweb /
Allow the caller to configure the administration socket permissions.
[tripe] / server / tripe.h
index d1093f7b774874659cde5cd04419dd5a48cc8560..c5694dc13f7170d73c1fa5d9116ab501e19e09e1 100644 (file)
@@ -933,13 +933,15 @@ extern void a_daemon(void);
  * Arguments:  @const char *sock@ = socket name to create
  *             @uid_t u@ = user to own the socket
  *             @gid_t g@ = group to own the socket
+ *             @mode_t m@ = permissions to set on the socket
  *
  * Returns:    ---
  *
  * Use:                Creates the admin listening socket.
  */
 
-extern void a_init(const char */*sock*/, uid_t /*u*/, gid_t /*g*/);
+extern void a_init(const char */*sock*/,
+                  uid_t /*u*/, gid_t /*g*/, mode_t /*m*/);
 
 /*----- Mapping with addresses as keys ------------------------------------*/