Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   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 2010 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 /*
  27  * Copyright (c) 2012, Joyent, Inc.  All rights reserved.
  28  */
  29 
  30 /*
  31  * Stubs for the standalone to reduce the dependence on external libraries
  32  */
  33 
  34 #include <string.h>
  35 #include "misc.h"
  36 
  37 /*ARGSUSED*/
  38 int
  39 cond_init(cond_t *cvp, int type, void *arg)
  40 {
  41         return (0);
  42 }


 128 {
 129         return (1);
 130 }
 131 
 132 int
 133 _tmem_get_nentries(void)
 134 {
 135         return (0);
 136 }
 137 
 138 uintptr_t
 139 _tmem_get_base(void)
 140 {
 141         return (0);
 142 }
 143 
 144 /*ARGSUSED*/
 145 void
 146 _tmem_set_cleanup(void (*f)(int, void *))
 147 {















 148 }


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   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 2014 Garrett D'Amore <garrett@damore.org>
  24  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  25  * Use is subject to license terms.
  26  */
  27 /*
  28  * Copyright (c) 2012, Joyent, Inc.  All rights reserved.
  29  */
  30 
  31 /*
  32  * Stubs for the standalone to reduce the dependence on external libraries
  33  */
  34 
  35 #include <string.h>
  36 #include "misc.h"
  37 
  38 /*ARGSUSED*/
  39 int
  40 cond_init(cond_t *cvp, int type, void *arg)
  41 {
  42         return (0);
  43 }


 129 {
 130         return (1);
 131 }
 132 
 133 int
 134 _tmem_get_nentries(void)
 135 {
 136         return (0);
 137 }
 138 
 139 uintptr_t
 140 _tmem_get_base(void)
 141 {
 142         return (0);
 143 }
 144 
 145 /*ARGSUSED*/
 146 void
 147 _tmem_set_cleanup(void (*f)(int, void *))
 148 {
 149 }
 150 
 151 int
 152 isspace(int c)
 153 {
 154         switch (c) {
 155         case ' ':
 156         case '\t':
 157         case '\n':
 158         case '\r':
 159         case '\f':
 160         case '\v':
 161                 return (1);
 162         }
 163         return (0);
 164 }