__fputws_xpg5.c revision e8031f0a8ed0e45c6d8847c5e09424e66fd34a4b
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
/* This module is created for NLS on Sep.03.86 */
/*
* fputws transforms the process code string pointed to by "ptr"
* into a byte string, and writes the string to the named
* output "iop".
*
* Use an intermediate buffer to transform a string from wchar_t to
* multibyte char. In order to not overflow the intermediate buffer,
* impose a limit on the length of string to output to PC_MAX process
* codes. If the input string exceeds PC_MAX process codes, process
* the string in a series of smaller buffers.
*/
#include "synonyms.h"
#include "file64.h"
#include "mse_int.h"
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <widec.h>
#include <macros.h>
#include <errno.h>
#include "libc.h"
#include "stdiom.h"
#include "mse.h"
#define PC_MAX 256
int
{
int nbytes, i;
void *lc;
return (EOF);
}
while (pclen > 0) {
nbytes = 0;
return (EOF);
}
}
*mp = '\0';
/*
* In terms of locking, since libc is using rmutex_t
* for locking iop, we can call fputs() with iop that
* has been already locked.
* But again,
* can wide I/O functions call byte I/O functions
* because a steam bound to WIDE should not be used
* by byte I/O functions ?
*/
return (EOF);
}
}
return ((int)pccnt);
else
return (EOF);
}