contrib/chg/chg.c
changeset 46177 0c320e6032f1
parent 45851 81da6feb5000
child 47024 8fcc0a829f3d
equal deleted inserted replaced
46176:300f6e23882a 46177:0c320e6032f1
   449  * The command list is not designed to cover all cases. But it's fast, and does
   449  * The command list is not designed to cover all cases. But it's fast, and does
   450  * not depend on the server.
   450  * not depend on the server.
   451  */
   451  */
   452 static int isunsupported(int argc, const char *argv[])
   452 static int isunsupported(int argc, const char *argv[])
   453 {
   453 {
   454 	enum { SERVE = 1,
   454 	enum {
   455 	       DAEMON = 2,
   455 		SERVE = 1,
   456 	       SERVEDAEMON = SERVE | DAEMON,
   456 		DAEMON = 2,
       
   457 		SERVEDAEMON = SERVE | DAEMON,
   457 	};
   458 	};
   458 	unsigned int state = 0;
   459 	unsigned int state = 0;
   459 	int i;
   460 	int i;
   460 	/* use fcntl to test missing stdio fds */
   461 	/* use fcntl to test missing stdio fds */
   461 	if (fcntl(STDIN_FILENO, F_GETFD) == -1 ||
   462 	if (fcntl(STDIN_FILENO, F_GETFD) == -1 ||