Print this page
8688 svcadm does not handle multiple partial FMRI arguments
Reviewed by: Dominik Hassler <hadfl@omniosce.org>


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  * Copyright 2013 Joyent, Inc.  All rights reserved.

  26  */
  27 
  28 #include "libscf_impl.h"
  29 
  30 #include <assert.h>
  31 #include <dlfcn.h>
  32 #include <libintl.h>
  33 #include <pthread.h>
  34 #include <stdarg.h>
  35 #include <stdio.h>
  36 #include <stdlib.h>
  37 #include <string.h>
  38 #include <sys/machelf.h>
  39 #include <thread.h>
  40 
  41 #include <ucontext.h>
  42 
  43 extern int ndebug;
  44 
  45 static struct scf_error_info {


 182                 return (dgettext(TEXT_DOMAIN,
 183                     "Pattern '%s' doesn't match any services\n"));
 184 
 185         case SCF_MSG_PATTERN_NOENTITY:
 186                 return (dgettext(TEXT_DOMAIN,
 187                     "Pattern '%s' doesn't match any entities\n"));
 188 
 189         case SCF_MSG_PATTERN_MULTIMATCH:
 190                 return (dgettext(TEXT_DOMAIN,
 191                     "Pattern '%s' matches multiple instances:\n"));
 192 
 193         case SCF_MSG_PATTERN_POSSIBLE:
 194                 return (dgettext(TEXT_DOMAIN, "    %s\n"));
 195 
 196         case SCF_MSG_PATTERN_LEGACY:
 197                 return (dgettext(TEXT_DOMAIN,
 198                     "Operation not supported for legacy service '%s'\n"));
 199 
 200         case SCF_MSG_PATTERN_MULTIPARTIAL:
 201                 return (dgettext(TEXT_DOMAIN,
 202                     "Partial FMRI matches multiple instances\n"));
 203 
 204         default:
 205                 abort();
 206                 /* NOTREACHED */
 207         }
 208 
 209 }


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  * Copyright 2013 Joyent, Inc.  All rights reserved.
  26  * Copyright 2017 OmniOS Community Edition (OmniOSce) Association.
  27  */
  28 
  29 #include "libscf_impl.h"
  30 
  31 #include <assert.h>
  32 #include <dlfcn.h>
  33 #include <libintl.h>
  34 #include <pthread.h>
  35 #include <stdarg.h>
  36 #include <stdio.h>
  37 #include <stdlib.h>
  38 #include <string.h>
  39 #include <sys/machelf.h>
  40 #include <thread.h>
  41 
  42 #include <ucontext.h>
  43 
  44 extern int ndebug;
  45 
  46 static struct scf_error_info {


 183                 return (dgettext(TEXT_DOMAIN,
 184                     "Pattern '%s' doesn't match any services\n"));
 185 
 186         case SCF_MSG_PATTERN_NOENTITY:
 187                 return (dgettext(TEXT_DOMAIN,
 188                     "Pattern '%s' doesn't match any entities\n"));
 189 
 190         case SCF_MSG_PATTERN_MULTIMATCH:
 191                 return (dgettext(TEXT_DOMAIN,
 192                     "Pattern '%s' matches multiple instances:\n"));
 193 
 194         case SCF_MSG_PATTERN_POSSIBLE:
 195                 return (dgettext(TEXT_DOMAIN, "    %s\n"));
 196 
 197         case SCF_MSG_PATTERN_LEGACY:
 198                 return (dgettext(TEXT_DOMAIN,
 199                     "Operation not supported for legacy service '%s'\n"));
 200 
 201         case SCF_MSG_PATTERN_MULTIPARTIAL:
 202                 return (dgettext(TEXT_DOMAIN,
 203                     "Partial FMRI '%s' matches multiple instances\n"));
 204 
 205         default:
 206                 abort();
 207                 /* NOTREACHED */
 208         }
 209 
 210 }