Unnamed Fossil Project

Check-in [28b3fd99fc]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fix headers in imported compat files
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:28b3fd99fcd309a0b3f66929959553f718e5b5de
User & Date: labla 2012-05-17 19:16:38
Context
2012-05-17
19:27
fix some compilers warnings check-in: abbbf8afdc user: labla tags: trunk
19:16
fix headers in imported compat files check-in: 28b3fd99fc user: labla tags: trunk
19:11
import missing functions from illumos check-in: 48f7346e40 user: labla tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to wsdup.c.

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 *	string duplication
 *	returns pointer to a new string which is the duplicate of string
 *	pointed to by s1
 *	NULL is returned if new string can't be created
 */

#include "lint.h"
#include <stdlib.h>
#include <widec.h>
#include "libc.h"

wchar_t *
wcsdup(const wchar_t *s1)
{
	wchar_t *s2;

	s2 = malloc((wcslen(s1) + 1) * sizeof (wchar_t));







|
<
<
<







29
30
31
32
33
34
35
36



37
38
39
40
41
42
43
/*
 *	string duplication
 *	returns pointer to a new string which is the duplicate of string
 *	pointed to by s1
 *	NULL is returned if new string can't be created
 */

#include "awk.h"




wchar_t *
wcsdup(const wchar_t *s1)
{
	wchar_t *s2;

	s2 = malloc((wcslen(s1) + 1) * sizeof (wchar_t));

Changes to wslen.c.

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Returns the number of non-NULL characters in s.
 */

#pragma weak _wcslen = wcslen
#pragma weak _wslen = wslen

#include <stdlib.h>
#include <wchar.h>

size_t
wcslen(const wchar_t *s)
{
	const wchar_t *s0 = s + 1;

	while (*s++)







|
<







32
33
34
35
36
37
38
39

40
41
42
43
44
45
46
/*
 * Returns the number of non-NULL characters in s.
 */

#pragma weak _wcslen = wcslen
#pragma weak _wslen = wslen

#include "awk.h"


size_t
wcslen(const wchar_t *s)
{
	const wchar_t *s0 = s + 1;

	while (*s++)

Changes to wsprintf.c.

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 */

/*	Copyright (c) 1986 AT&T	*/
/*	  All Rights Reserved  	*/

#pragma ident	"%Z%%M%	%I%	%E% SMI"

#include "lint.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <widec.h>
#include <string.h>
#include <limits.h>

/*
 * 	wsprintf -- this function will output a wchar_t string
 *		    according to the conversion format.
 *		    Note that the maximum length of the output
 *		    string is 1024 bytes.
 */







|
<

<
<
<
<







25
26
27
28
29
30
31
32

33




34
35
36
37
38
39
40
 */

/*	Copyright (c) 1986 AT&T	*/
/*	  All Rights Reserved  	*/

#pragma ident	"%Z%%M%	%I%	%E% SMI"

#include "awk.h"

#include <stdarg.h>





/*
 * 	wsprintf -- this function will output a wchar_t string
 *		    according to the conversion format.
 *		    Note that the maximum length of the output
 *		    string is 1024 bytes.
 */