Print this page
12721 would like svcadm disable -c

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libscf/inc/libscf.h
          +++ new/usr/src/lib/libscf/inc/libscf.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2016 RackTop Systems.
  25      - * Copyright (c) 2012, Joyent, Inc. All rights reserved.
       25 + * Copyright 2020 Joyent, Inc.
  26   26   */
  27   27  
  28   28  #ifndef _LIBSCF_H
  29   29  #define _LIBSCF_H
  30   30  
  31   31  
  32   32  #include <stddef.h>
  33   33  #include <libnvpair.h>
  34   34  
  35   35  #ifndef NATIVE_BUILD
↓ open down ↓ 283 lines elided ↑ open up ↑
 319  319  #define SCF_PG_TM_MAN_PREFIX            "tm_man_"
 320  320  #define SCF_PG_TM_DOC_PREFIX            "tm_doc_"
 321  321  
 322  322  /*
 323  323   * Standard property names
 324  324   */
 325  325  #define SCF_PROPERTY_ACTIVE_POSTFIX             "active"
 326  326  #define SCF_PROPERTY_AUX_STATE                  "auxiliary_state"
 327  327  #define SCF_PROPERTY_AUX_FMRI                   "auxiliary_fmri"
 328  328  #define SCF_PROPERTY_AUX_TTY                    "auxiliary_tty"
      329 +#define SCF_PROPERTY_COMMENT                    "comment"
 329  330  #define SCF_PROPERTY_CONTRACT                   "contract"
 330  331  #define SCF_PROPERTY_COREFILE_PATTERN           "corefile_pattern"
 331  332  #define SCF_PROPERTY_DEGRADED                   "degraded"
 332  333  #define SCF_PROPERTY_DEGRADE_IMMEDIATE          "degrade_immediate"
 333  334  #define SCF_PROPERTY_DODUMP                     "do_dump"
 334  335  #define SCF_PROPERTY_DURATION                   "duration"
 335  336  #define SCF_PROPERTY_ENABLED                    "enabled"
 336  337  #define SCF_PROPERTY_DEATHROW                   "deathrow"
 337  338  #define SCF_PROPERTY_ENTITY_STABILITY           "entity_stability"
 338  339  #define SCF_PROPERTY_ENTITIES                   "entities"
↓ open down ↓ 139 lines elided ↑ open up ↑
 478  479  
 479  480  scf_error_t scf_error(void);
 480  481  const char *scf_strerror(scf_error_t);
 481  482  
 482  483  ssize_t scf_limit(uint32_t code);
 483  484  #define SCF_LIMIT_MAX_NAME_LENGTH       -2000U
 484  485  #define SCF_LIMIT_MAX_VALUE_LENGTH      -2001U
 485  486  #define SCF_LIMIT_MAX_PG_TYPE_LENGTH    -2002U
 486  487  #define SCF_LIMIT_MAX_FMRI_LENGTH       -2003U
 487  488  
      489 +
      490 +#define SCF_COMMENT_MAX_LENGTH          (1024)
      491 +
 488  492  scf_handle_t *scf_handle_create(scf_version_t);
 489  493  
 490  494  int scf_handle_decorate(scf_handle_t *, const char *, scf_value_t *);
 491  495  #define SCF_DECORATE_CLEAR      ((scf_value_t *)0)
 492  496  
 493  497  int scf_handle_bind(scf_handle_t *);
 494  498  int scf_handle_unbind(scf_handle_t *);
 495  499  void scf_handle_destroy(scf_handle_t *);
 496  500  
 497  501  int scf_type_base_type(scf_type_t type, scf_type_t *out);
↓ open down ↓ 387 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX