Print this page
3352 would like 64bit install libraries

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/pylibbe/common/libbe_py.c
          +++ new/usr/src/lib/pylibbe/common/libbe_py.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2012 OmniTI Computer Consulting, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  #include <Python.h>
  27   28  #include <sys/varargs.h>
  28   29  #include <stdio.h>
  29   30  #include <libnvpair.h>
  30   31  
  31   32  #include <libbe.h>
  32   33  #include <libbe_priv.h>
  33   34  
↓ open down ↓ 127 lines elided ↑ open up ↑
 161  162  /* ARGSUSED */
 162  163  PyObject *
 163  164  beCopy(PyObject *self, PyObject *args)
 164  165  {
 165  166          char    *trgtBeName = NULL;
 166  167          char    *srcBeName = NULL;
 167  168          char    *srcSnapName = NULL;
 168  169          char    *trgtSnapName = NULL;
 169  170          char    *rpool = NULL;
 170  171          char    *beDescription = NULL;
 171      -        int             pos = 0;
      172 +        Py_ssize_t      pos = 0;
 172  173          int             ret = BE_PY_SUCCESS;
 173  174          nvlist_t        *beAttrs = NULL;
 174  175          nvlist_t        *beProps = NULL;
 175  176          PyObject        *beNameProperties = NULL;
 176  177          PyObject        *pkey = NULL;
 177  178          PyObject        *pvalue = NULL;
 178  179          PyObject        *retVals = NULL;
 179  180  
 180  181          if (!PyArg_ParseTuple(args, "|zzzzOz", &trgtBeName, &srcBeName,
 181  182              &srcSnapName, &rpool, &beNameProperties, &beDescription)) {
↓ open down ↓ 913 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX