CVS commit: [netbsd-5] src/include

2015-02-26 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Thu Feb 26 21:59:43 UTC 2015

Modified Files:
src/include [netbsd-5]: wchar.h

Log Message:
Apply patch (requested by christos in ticket #1943):
Properly expose wcsto{f,ld,ll,ull} and v{fw,sw,ws}scanf when
_POSIX_C_SOURCE = 200112L and _XOPEN_SOURCE = 600.


To generate a diff of this commit:
cvs rdiff -u -r1.27.8.1 -r1.27.8.2 src/include/wchar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/wchar.h
diff -u src/include/wchar.h:1.27.8.1 src/include/wchar.h:1.27.8.2
--- src/include/wchar.h:1.27.8.1	Fri May 20 19:18:37 2011
+++ src/include/wchar.h	Thu Feb 26 21:59:43 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: wchar.h,v 1.27.8.1 2011/05/20 19:18:37 bouyer Exp $	*/
+/*	$NetBSD: wchar.h,v 1.27.8.2 2015/02/26 21:59:43 snj Exp $	*/
 
 /*-
  * Copyright (c)1999 Citrus Project,
@@ -138,7 +138,8 @@ long int wcstol(const wchar_t * __restri
 double wcstod(const wchar_t * __restrict, wchar_t ** __restrict);
 
 #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0)  199901L || \
-defined(_NETBSD_SOURCE)
+defined(_NETBSD_SOURCE) || \
+(_POSIX_C_SOURCE - 0) = 200112L || (_XOPEN_SOURCE - 0) = 600
 float wcstof(const wchar_t * __restrict, wchar_t ** __restrict);
 long double wcstold(const wchar_t * __restrict, wchar_t ** __restrict);
 
@@ -174,7 +175,8 @@ int vwprintf(const wchar_t * __restrict,
 int wprintf(const wchar_t * __restrict, ...);
 int wscanf(const wchar_t * __restrict, ...);
 #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0)  199901L || \
-defined(_NETBSD_SOURCE)
+defined(_NETBSD_SOURCE) || \
+	(_POSIX_C_SOURCE - 0) = 200112L || (_XOPEN_SOURCE - 0) = 600
 int vfwscanf(FILE * __restrict, const wchar_t * __restrict, _BSD_VA_LIST_);
 int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict,
 _BSD_VA_LIST_);



CVS commit: [netbsd-5] src/include

2011-05-20 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Fri May 20 19:18:37 UTC 2011

Modified Files:
src/include [netbsd-5]: inttypes.h stddef.h stdlib.h wchar.h

Log Message:
Pull up following revision(s) (requested by joerg in ticket #1611):
include/inttypes.h: revision 1.7
include/stddef.h: revision 1.16
include/wchar.h: revision 1.28
include/stdlib.h: revision 1.90
Don't define wchar_t for c++; it is native in the language. From Alexander
Nasonov


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.4.1 src/include/inttypes.h
cvs rdiff -u -r1.15 -r1.15.26.1 src/include/stddef.h
cvs rdiff -u -r1.85 -r1.85.4.1 src/include/stdlib.h
cvs rdiff -u -r1.27 -r1.27.8.1 src/include/wchar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/inttypes.h
diff -u src/include/inttypes.h:1.6 src/include/inttypes.h:1.6.4.1
--- src/include/inttypes.h:1.6	Mon Aug  4 21:19:45 2008
+++ src/include/inttypes.h	Fri May 20 19:18:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: inttypes.h,v 1.6 2008/08/04 21:19:45 matt Exp $	*/
+/*	$NetBSD: inttypes.h,v 1.6.4.1 2011/05/20 19:18:37 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #include sys/inttypes.h
 #include machine/ansi.h
 
-#ifdef	_BSD_WCHAR_T_
+#if defined(_BSD_WCHAR_T_)  !defined(__cplusplus)
 typedef	_BSD_WCHAR_T_	wchar_t;
 #undef	_BSD_WCHAR_T_
 #endif

Index: src/include/stddef.h
diff -u src/include/stddef.h:1.15 src/include/stddef.h:1.15.26.1
--- src/include/stddef.h:1.15	Mon Aug 21 16:58:29 2006
+++ src/include/stddef.h	Fri May 20 19:18:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: stddef.h,v 1.15 2006/08/21 16:58:29 thorpej Exp $	*/
+/*	$NetBSD: stddef.h,v 1.15.26.1 2011/05/20 19:18:37 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -45,7 +45,7 @@
 #undef	_BSD_SIZE_T_
 #endif
 
-#ifdef	_BSD_WCHAR_T_
+#if defined(_BSD_WCHAR_T_)  !defined(__cplusplus)
 typedef	_BSD_WCHAR_T_	wchar_t;
 #undef	_BSD_WCHAR_T_
 #endif

Index: src/include/stdlib.h
diff -u src/include/stdlib.h:1.85 src/include/stdlib.h:1.85.4.1
--- src/include/stdlib.h:1.85	Sat Jun 21 00:58:00 2008
+++ src/include/stdlib.h	Fri May 20 19:18:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdlib.h,v 1.85 2008/06/21 00:58:00 gmcgarry Exp $	*/
+/*	$NetBSD: stdlib.h,v 1.85.4.1 2011/05/20 19:18:37 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -48,7 +48,7 @@
 #undef	_BSD_SIZE_T_
 #endif
 
-#ifdef	_BSD_WCHAR_T_
+#if defined(_BSD_WCHAR_T_)  !defined(__cplusplus)
 typedef	_BSD_WCHAR_T_	wchar_t;
 #undef	_BSD_WCHAR_T_
 #endif

Index: src/include/wchar.h
diff -u src/include/wchar.h:1.27 src/include/wchar.h:1.27.8.1
--- src/include/wchar.h:1.27	Mon Apr 28 20:22:54 2008
+++ src/include/wchar.h	Fri May 20 19:18:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: wchar.h,v 1.27 2008/04/28 20:22:54 martin Exp $	*/
+/*	$NetBSD: wchar.h,v 1.27.8.1 2011/05/20 19:18:37 bouyer Exp $	*/
 
 /*-
  * Copyright (c)1999 Citrus Project,
@@ -66,7 +66,7 @@
 
 #include stdio.h /* for FILE* */
 
-#ifdef	_BSD_WCHAR_T_
+#if defined(_BSD_WCHAR_T_)  !defined(__cplusplus)
 typedef	_BSD_WCHAR_T_	wchar_t;
 #undef	_BSD_WCHAR_T_
 #endif



CVS commit: [netbsd-5] src/include

2010-01-08 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sat Jan  9 00:55:56 UTC 2010

Modified Files:
src/include [netbsd-5]: paths.h

Log Message:
Pull up following revision(s) (requested by pooka in ticket #1205):
include/paths.h: revision 1.35
+_PATH_PUD


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.34.4.1 src/include/paths.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/paths.h
diff -u src/include/paths.h:1.34 src/include/paths.h:1.34.4.1
--- src/include/paths.h:1.34	Sun Sep 28 06:38:02 2008
+++ src/include/paths.h	Sat Jan  9 00:55:56 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: paths.h,v 1.34 2008/09/28 06:38:02 lukem Exp $	*/
+/*	$NetBSD: paths.h,v 1.34.4.1 2010/01/09 00:55:56 snj Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -82,6 +82,7 @@
 #define	_PATH_MIXER0	/dev/mixer0
 #define	_PATH_NOLOGIN	/etc/nologin
 #define	_PATH_PRINTCAP	/etc/printcap
+#define	_PATH_PUD	/dev/pud
 #define	_PATH_PUFFS	/dev/puffs
 #define	_PATH_RANDOM	/dev/random
 #define	_PATH_SENDMAIL	/usr/sbin/sendmail



CVS commit: [netbsd-5] src/include

2009-11-08 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Nov  8 22:39:34 UTC 2009

Modified Files:
src/include [netbsd-5]: link_elf.h

Log Message:
Pull up following revision(s) (requested by pooka in ticket #1125):
include/link_elf.h: revision 1.8
typedef struct link_map as Link_map (for solaris-compat)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.28.1 src/include/link_elf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/link_elf.h
diff -u src/include/link_elf.h:1.7 src/include/link_elf.h:1.7.28.1
--- src/include/link_elf.h:1.7	Wed Jan 11 22:50:35 2006
+++ src/include/link_elf.h	Sun Nov  8 22:39:34 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: link_elf.h,v 1.7 2006/01/11 22:50:35 uwe Exp $	*/
+/*	$NetBSD: link_elf.h,v 1.7.28.1 2009/11/08 22:39:34 snj Exp $	*/
 
 /*
  * This only exists for GDB.
@@ -11,7 +11,7 @@
 
 #include machine/elf_machdep.h
 
-struct link_map {
+typedef struct link_map {
 	caddr_t		 l_addr;	/* Base Address of library */
 #ifdef __mips__
 	caddr_t		 l_offs;	/* Load Offset of library */
@@ -20,7 +20,7 @@
 	void		*l_ld;		/* Pointer to .dynamic in memory */
 	struct link_map	*l_next;	/* linked list of of mapped libs */
 	struct link_map *l_prev;
-};
+} Link_map;
 
 struct r_debug {
 	int r_version;			/* not used */