CVS commit: src/include
Module Name:src Committed By: gutteridge Date: Sun Aug 15 00:36:11 UTC 2021 Modified Files: src/include: utmpx.h Log Message: utmpx.h: fix comment missed in r. 1.10 _NETBSD_SOURCE changes To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/include/utmpx.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/utmpx.h diff -u src/include/utmpx.h:1.17 src/include/utmpx.h:1.18 --- src/include/utmpx.h:1.17 Sun Jan 11 19:09:29 2009 +++ src/include/utmpx.h Sun Aug 15 00:36:11 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: utmpx.h,v 1.17 2009/01/11 19:09:29 christos Exp $ */ +/* $NetBSD: utmpx.h,v 1.18 2021/08/15 00:36:11 gutteridge Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -124,7 +124,7 @@ struct lastlogx { char ll_host[_UTX_HOSTSIZE]; /* host name */ struct sockaddr_storage ll_ss; /* address where entry was made from */ }; -#endif /* !_XOPEN_SOURCE */ +#endif /* _NETBSD_SOURCE */ __BEGIN_DECLS
CVS commit: src/include
Module Name:src Committed By: christos Date: Sat Jul 3 14:07:13 UTC 2021 Modified Files: src/include: stdlib.h Log Message: PR/56250: Michael Forney: mkstemp/mkdtemp not declared with _POSIX_C_SOURCE=200809L To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123 src/include/stdlib.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/stdlib.h diff -u src/include/stdlib.h:1.122 src/include/stdlib.h:1.123 --- src/include/stdlib.h:1.122 Tue May 26 17:49:29 2020 +++ src/include/stdlib.h Sat Jul 3 10:07:13 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.122 2020/05/26 21:49:29 joerg Exp $ */ +/* $NetBSD: stdlib.h,v 1.123 2021/07/03 14:07:13 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -190,8 +190,6 @@ int mkostemp(char *, int); int mkostemps(char *, int, int); #endif -char *mkdtemp(char *); -int mkstemp(char *); char *mktemp(char *) #ifdef __MKTEMP_OK__ __RENAME(_mktemp) @@ -206,8 +204,6 @@ int ttyslot(void); void *valloc(size_t); /* obsoleted by malloc() */ -int getsubopt(char **, char * const *, char **); - int grantpt(int); int unlockpt(int); char *ptsname(int); @@ -256,6 +252,20 @@ int posix_memalign(void **, size_t, siz #endif /* + * The Open Group Base Specifications, Issue 7; IEEE Std 1003.1-2008 (POSIX) + * or + * X/Open Portability Guide >= Issue 4 Version 2 + */ +#if (_POSIX_C_SOURCE - 0) >= 200809L || \ +(defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ +(_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE) +char *mkdtemp(char *); +int mkstemp(char *); + +int getsubopt(char **, char * const *, char **); +#endif + +/* * Implementation-defined extensions */ #if defined(_NETBSD_SOURCE)
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Apr 30 16:07:49 UTC 2021 Modified Files: src/include: resolv.h Log Message: Default to check-names for safety. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/include/resolv.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/resolv.h diff -u src/include/resolv.h:1.40 src/include/resolv.h:1.41 --- src/include/resolv.h:1.40 Wed Nov 7 10:45:24 2012 +++ src/include/resolv.h Fri Apr 30 12:07:49 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: resolv.h,v 1.40 2012/11/07 15:45:24 christos Exp $ */ +/* $NetBSD: resolv.h,v 1.41 2021/04/30 16:07:49 christos Exp $ */ /* * Portions Copyright (C) 2004, 2005, 2008, 2009 Internet Systems Consortium, Inc. ("ISC") @@ -257,7 +257,7 @@ union res_sockaddr_union { #define RES_NO_NIBBLE2 0x8000 /*%< disable alternate nibble lookup */ #define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | \ - RES_DNSRCH | RES_NO_NIBBLE2 | RES_NOCHECKNAME) + RES_DNSRCH | RES_NO_NIBBLE2) /*% * Resolver "pfcode" values. Used by dig.
CVS commit: src/include
Module Name:src Committed By: christos Date: Tue Feb 23 17:14:42 UTC 2021 Modified Files: src/include: regex.h Log Message: - Replace REG_ENOSYS (unused) with REG_ILLSEQ. - Add REG_GNU To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/include/regex.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/regex.h diff -u src/include/regex.h:1.15 src/include/regex.h:1.16 --- src/include/regex.h:1.15 Thu Jan 14 16:45:18 2016 +++ src/include/regex.h Tue Feb 23 12:14:42 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: regex.h,v 1.15 2016/01/14 21:45:18 christos Exp $ */ +/* $NetBSD: regex.h,v 1.16 2021/02/23 17:14:42 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -101,6 +101,7 @@ typedef struct { #define REG_NOSPEC 0020 #define REG_PEND 0040 #define REG_DUMP 0200 +#define REG_GNU 0400 /* regerror() flags */ #define REG_NOMATCH 1 @@ -119,7 +120,7 @@ typedef struct { #define REG_EMPTY 14 #define REG_ASSERT 15 #define REG_INVARG 16 -#define REG_ENOSYS 17 +#define REG_ILLSEQ 17 #define REG_ATOI 255 /* convert name to number (!) */ #define REG_ITOA 0400 /* convert number to name (!) */
CVS commit: src/include
Module Name:src Committed By: kre Date: Fri Dec 4 23:04:58 UTC 2020 Modified Files: src/include: unistd.h Log Message: Correct typo in previous. To generate a diff of this commit: cvs rdiff -u -r1.160 -r1.161 src/include/unistd.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/unistd.h diff -u src/include/unistd.h:1.160 src/include/unistd.h:1.161 --- src/include/unistd.h:1.160 Fri Dec 4 20:39:10 2020 +++ src/include/unistd.h Fri Dec 4 23:04:58 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.160 2020/12/04 20:39:10 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.161 2020/12/04 23:04:58 kre Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -102,7 +102,7 @@ char *cuserid(char *); /* obsolete */ #endif /* __CUSERID_DECLARED */ int dup(int); int dup2(int, int); -int execl(const char *, const char *, ...) __null__sentinel; +int execl(const char *, const char *, ...) __null_sentinel; int execle(const char *, const char *, ...); int execlp(const char *, const char *, ...) __null_sentinel; int execv(const char *, char * const *);
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Dec 4 20:39:10 UTC 2020 Modified Files: src/include: unistd.h Log Message: Add __null_sentinel To generate a diff of this commit: cvs rdiff -u -r1.159 -r1.160 src/include/unistd.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/unistd.h diff -u src/include/unistd.h:1.159 src/include/unistd.h:1.160 --- src/include/unistd.h:1.159 Tue Sep 22 17:37:47 2020 +++ src/include/unistd.h Fri Dec 4 15:39:10 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.159 2020/09/22 21:37:47 nia Exp $ */ +/* $NetBSD: unistd.h,v 1.160 2020/12/04 20:39:10 christos Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -102,9 +102,9 @@ char *cuserid(char *); /* obsolete */ #endif /* __CUSERID_DECLARED */ int dup(int); int dup2(int, int); -int execl(const char *, const char *, ...); +int execl(const char *, const char *, ...) __null__sentinel; int execle(const char *, const char *, ...); -int execlp(const char *, const char *, ...); +int execlp(const char *, const char *, ...) __null_sentinel; int execv(const char *, char * const *); int execve(const char *, char * const *, char * const *); int execvp(const char *, char * const *);
CVS commit: src/include/arpa
Module Name:src Committed By: christos Date: Sat Oct 10 19:51:48 UTC 2020 Modified Files: src/include/arpa: nameser.h Log Message: - remove bitypes.h fossil - define u_{char,short,int,long} if we don't have _NETBSD_SOURCE defined so that this compiles (and resolv.h since it includes this). This is the simplest solution. Others: - always define them (bad, pollutes namespace) - create (bad, overkill) - change them to unsigned {char, short, int long} (bad, too disruptive) To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/include/arpa/nameser.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/arpa/nameser.h diff -u src/include/arpa/nameser.h:1.25 src/include/arpa/nameser.h:1.26 --- src/include/arpa/nameser.h:1.25 Sun Apr 12 13:07:34 2009 +++ src/include/arpa/nameser.h Sat Oct 10 15:51:48 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: nameser.h,v 1.25 2009/04/12 17:07:34 christos Exp $ */ +/* $NetBSD: nameser.h,v 1.26 2020/10/10 19:51:48 christos Exp $ */ /* * Portions Copyright (C) 2004, 2005, 2008, 2009 Internet Systems Consortium, Inc. ("ISC") @@ -56,13 +56,16 @@ #define BIND_4_COMPAT #include -#if (!defined(BSD)) || (BSD < 199306) -# include -#else -# include -#endif +#include #include +#if !defined(_NETBSD_SOURCE) +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +typedef unsigned long u_long; +#endif + /*% * Revision information. This is the release date in MMDD format. * It can change every day so the right thing to do with it is use it
CVS commit: src/include/rpc
Module Name:src Committed By: christos Date: Sat Oct 3 18:30:39 UTC 2020 Modified Files: src/include/rpc: auth.h Log Message: add set_rpc_maxgrouplist(3) To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/include/rpc/auth.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/rpc/auth.h diff -u src/include/rpc/auth.h:1.19 src/include/rpc/auth.h:1.20 --- src/include/rpc/auth.h:1.19 Fri Jan 22 21:34:09 2016 +++ src/include/rpc/auth.h Sat Oct 3 14:30:39 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: auth.h,v 1.19 2016/01/23 02:34:09 dholland Exp $ */ +/* $NetBSD: auth.h,v 1.20 2020/10/03 18:30:39 christos Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -172,6 +172,7 @@ extern AUTH *authnone_create (void); extern AUTH *authdes_create (char *, unsigned int, struct sockaddr_in *, des_block *); extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *); +extern void set_rpc_maxgrouplist (int); #define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip)) #define authsys_create_default() authunix_create_default()
CVS commit: src/include
Module Name:src Committed By: kamil Date: Tue Sep 22 01:52:16 UTC 2020 Modified Files: src/include: link_elf.h Log Message: Remove duplicate word in a comment To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 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.12 src/include/link_elf.h:1.13 --- src/include/link_elf.h:1.12 Mon Sep 21 16:08:57 2020 +++ src/include/link_elf.h Tue Sep 22 01:52:16 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: link_elf.h,v 1.12 2020/09/21 16:08:57 kamil Exp $ */ +/* $NetBSD: link_elf.h,v 1.13 2020/09/22 01:52:16 kamil Exp $ */ #ifndef _LINK_ELF_H_ #define _LINK_ELF_H_ @@ -15,7 +15,7 @@ typedef struct link_map { #endif const char *l_name; /* Absolute Path to Library */ void *l_ld; /* Pointer to .dynamic in memory */ - struct link_map *l_next; /* linked list of of mapped libs */ + struct link_map *l_next; /* linked list of mapped libs */ struct link_map *l_prev; } Link_map;
CVS commit: src/include
Module Name:src Committed By: kamil Date: Mon Sep 21 02:20:27 UTC 2020 Modified Files: src/include: link_elf.h Log Message: Refine the documentation of r_debug Obtained from OpenBSD link.h r.1.15. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 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.10 src/include/link_elf.h:1.11 --- src/include/link_elf.h:1.10 Sat Oct 16 10:27:06 2010 +++ src/include/link_elf.h Mon Sep 21 02:20:27 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: link_elf.h,v 1.10 2010/10/16 10:27:06 skrll Exp $ */ +/* $NetBSD: link_elf.h,v 1.11 2020/09/21 02:20:27 kamil Exp $ */ #ifndef _LINK_ELF_H_ #define _LINK_ELF_H_ @@ -18,13 +18,27 @@ typedef struct link_map { } Link_map; /* - * This only exists for GDB. + * Debug rendezvous struct. Pointer to this is set up in the + * target code pointed by the DT_DEBUG tag. If it is + * defined. */ struct r_debug { - int r_version; /* not used */ + int r_version; /* protocol version */ struct link_map *r_map; /* list of loaded images */ + + /* + * This is the address of a function internal to the run-time linker, + * that will always be called when the linker begins to map in a + * library or unmap it, and again when the mapping change is complete. + * The debugger can set a breakpoint at this address if it wants to + * notice shared object mapping changes. + */ void (*r_brk)(void); /* pointer to break point */ enum { + /* + * This state value describes the mapping change taking place + * when the `r_brk' address is called. + */ RT_CONSISTENT, /* things are stable */ RT_ADD, /* adding a shared library */ RT_DELETE /* removing a shared library */
CVS commit: src/include/arpa
Module Name:src Committed By: gutteridge Date: Sun Jun 28 02:16:19 UTC 2020 Modified Files: src/include/arpa: nameser_compat.h Log Message: nameser_compat.h: correct preprocessor error syntax To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/include/arpa/nameser_compat.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/arpa/nameser_compat.h diff -u src/include/arpa/nameser_compat.h:1.6 src/include/arpa/nameser_compat.h:1.7 --- src/include/arpa/nameser_compat.h:1.6 Tue Feb 24 17:57:08 2015 +++ src/include/arpa/nameser_compat.h Sun Jun 28 02:16:19 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: nameser_compat.h,v 1.6 2015/02/24 17:57:08 christos Exp $ */ +/* $NetBSD: nameser_compat.h,v 1.7 2020/06/28 02:16:19 gutteridge Exp $ */ /* Copyright (c) 1983, 1989 *The Regents of the University of California. All rights reserved. @@ -82,7 +82,7 @@ * which will force your compiles to bomb until you fix * the above macros. */ - error "Undefined or invalid BYTE_ORDER"; +#error "Undefined or invalid BYTE_ORDER" #endif /*%
CVS commit: src/include
Module Name:src Committed By: nia Date: Thu Jun 4 11:21:16 UTC 2020 Modified Files: src/include: netdb.h Log Message: Remove bogus tests for 64-bit i386 and SuperH To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/include/netdb.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/netdb.h diff -u src/include/netdb.h:1.69 src/include/netdb.h:1.70 --- src/include/netdb.h:1.69 Mon Aug 19 07:18:42 2013 +++ src/include/netdb.h Thu Jun 4 11:21:16 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: netdb.h,v 1.69 2013/08/19 07:18:42 christos Exp $ */ +/* $NetBSD: netdb.h,v 1.70 2020/06/04 11:21:16 nia Exp $ */ /* * ++Copyright++ 1980, 1983, 1988, 1993 @@ -162,13 +162,11 @@ struct netent { char *n_name; /*%< official name of net */ char **n_aliases; /*%< alias list */ int n_addrtype; /*%< net address type */ -#if (defined(__sparc__) && defined(_LP64)) || \ -(defined(__sh__) && defined(_LP64) && (_BYTE_ORDER == _BIG_ENDIAN)) +#if defined(__sparc__) && defined(_LP64) int __n_pad0; /* ABI compatibility */ #endif uint32_t n_net; /*%< network # */ -#if defined(__alpha__) || (defined(__i386__) && defined(_LP64)) || \ -(defined(__sh__) && defined(_LP64) && (_BYTE_ORDER == _LITTLE_ENDIAN)) +#if defined(__alpha__) int __n_pad0; /* ABI compatibility */ #endif }; @@ -208,7 +206,7 @@ struct addrinfo { int __ai_pad0; /* ABI compatibility */ #endif socklen_t ai_addrlen; /*%< length of ai_addr */ -#if defined(__alpha__) || (defined(__i386__) && defined(_LP64)) +#if defined(__alpha__) int __ai_pad0; /* ABI compatibility */ #endif char *ai_canonname; /*%< canonical name for hostname */
CVS commit: src/include
Module Name:src Committed By: joerg Date: Tue May 26 21:49:30 UTC 2020 Modified Files: src/include: stdlib.h Log Message: Avoid depending on namespace pollution in stdlib.h. To generate a diff of this commit: cvs rdiff -u -r1.121 -r1.122 src/include/stdlib.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/stdlib.h diff -u src/include/stdlib.h:1.121 src/include/stdlib.h:1.122 --- src/include/stdlib.h:1.121 Sat Jan 5 09:16:46 2019 +++ src/include/stdlib.h Tue May 26 21:49:29 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.121 2019/01/05 09:16:46 maya Exp $ */ +/* $NetBSD: stdlib.h,v 1.122 2020/05/26 21:49:29 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -272,7 +272,7 @@ uint32_t arc4random(void); void arc4random_stir(void); void arc4random_buf(void *, size_t); uint32_t arc4random_uniform(uint32_t); -void arc4random_addrandom(u_char *, int); +void arc4random_addrandom(unsigned char *, int); char *getbsize(int *, long *); char *cgetcap(char *, const char *, int); int cgetclose(void);
CVS commit: src/include
Module Name:src Committed By: joerg Date: Wed May 13 14:00:58 UTC 2020 Modified Files: src/include: stddef.h Log Message: Remove trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/include/stddef.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/stddef.h diff -u src/include/stddef.h:1.23 src/include/stddef.h:1.24 --- src/include/stddef.h:1.23 Sun Mar 1 22:08:17 2020 +++ src/include/stddef.h Wed May 13 14:00:58 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.23 2020/03/01 22:08:17 kamil Exp $ */ +/* $NetBSD: stddef.h,v 1.24 2020/05/13 14:00:58 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -65,7 +65,7 @@ typedef _BSD_WCHAR_T_ wchar_t; #endif #define offsetof(type, member) __offsetof__((reinterpret_cast \ (&reinterpret_cast(static_cast(0)->member -#endif +#endif #if (__STDC_VERSION__ - 0) >= 201112L || (__cplusplus - 0) >= 201103L typedef union { @@ -74,5 +74,5 @@ typedef union { long long int _ll; } max_align_t; #endif - + #endif /* _STDDEF_H_ */
CVS commit: src/include
Module Name:src Committed By: kamil Date: Fri Apr 17 15:22:35 UTC 2020 Modified Files: src/include: assert.h Log Message: Remove the static_assert() fallback for pre-C11 and pre-C++11 C++ without real static_assert() can be incompatible with the C fallback as presented in openjdk. A pre-C11 compiler can be picky on the implementation. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/include/assert.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/assert.h diff -u src/include/assert.h:1.24 src/include/assert.h:1.25 --- src/include/assert.h:1.24 Mon May 27 07:31:11 2019 +++ src/include/assert.h Fri Apr 17 15:22:34 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: assert.h,v 1.24 2019/05/27 07:31:11 kamil Exp $ */ +/* $NetBSD: assert.h,v 1.25 2020/04/17 15:22:34 kamil Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -105,10 +105,8 @@ void __diagassert13(const char *, int, c __END_DECLS #endif /* __ASSERT_DECLARED */ -#ifndef static_assert #if defined(_ISOC11_SOURCE) || (__STDC_VERSION__ - 0) >= 201101L +#ifndef static_assert #define static_assert _Static_assert -#elif defined(_NETBSD_SOURCE) && (__cplusplus - 0) < 201103L -#define static_assert(x, y) __CTASSERT(x) #endif /* static_assert */ #endif
CVS commit: src/include
Module Name:src Committed By: kamil Date: Tue Mar 31 16:50:31 UTC 2020 Modified Files: src/include: unistd.h Log Message: Add getsid(2) to the XOPEN namespace (again) To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 src/include/unistd.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/unistd.h diff -u src/include/unistd.h:1.155 src/include/unistd.h:1.156 --- src/include/unistd.h:1.155 Tue Mar 31 16:49:06 2020 +++ src/include/unistd.h Tue Mar 31 16:50:31 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.155 2020/03/31 16:49:06 kamil Exp $ */ +/* $NetBSD: unistd.h,v 1.156 2020/03/31 16:50:31 kamil Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -236,7 +236,8 @@ __aconst char *crypt(const char *, const int encrypt(char *, int); char *getpass(const char *); #endif -#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) +#if defined(_XOPEN_SOURCE) || (_POSIX_C_SOURCE - 0) >= 200809L || \ +defined(_NETBSD_SOURCE) pid_t getsid(pid_t); #endif
CVS commit: src/include
Module Name:src Committed By: kamil Date: Tue Mar 31 16:49:06 UTC 2020 Modified Files: src/include: unistd.h Log Message: Expose getsid(2) to POSIX >= 2008 To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 src/include/unistd.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/unistd.h diff -u src/include/unistd.h:1.154 src/include/unistd.h:1.155 --- src/include/unistd.h:1.154 Sun Sep 15 23:41:41 2019 +++ src/include/unistd.h Tue Mar 31 16:49:06 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.154 2019/09/15 23:41:41 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.155 2020/03/31 16:49:06 kamil Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -235,6 +235,8 @@ int nice(int); __aconst char *crypt(const char *, const char *); int encrypt(char *, int); char *getpass(const char *); +#endif +#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) pid_t getsid(pid_t); #endif
CVS commit: src/include
Module Name:src Committed By: joerg Date: Fri Mar 20 01:08:43 UTC 2020 Modified Files: src/include: ctype.h stdio.h wchar.h Log Message: Fix visibility of various C99 features, esp. for C++11. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/include/ctype.h cvs rdiff -u -r1.98 -r1.99 src/include/stdio.h cvs rdiff -u -r1.43 -r1.44 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/ctype.h diff -u src/include/ctype.h:1.34 src/include/ctype.h:1.35 --- src/include/ctype.h:1.34 Sun Apr 28 19:39:56 2013 +++ src/include/ctype.h Fri Mar 20 01:08:42 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: ctype.h,v 1.34 2013/04/28 19:39:56 joerg Exp $ */ +/* $NetBSD: ctype.h,v 1.35 2020/03/20 01:08:42 joerg Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -86,8 +86,11 @@ int _tolower(int); int _toupper(int); #endif -#if defined(_ISOC99_SOURCE) || (_POSIX_C_SOURCE - 0) > 200112L || \ -(_XOPEN_SOURCE - 0) > 600 || defined(_NETBSD_SOURCE) +#if (!defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ +!defined(_XOPEN_SOURCE)) || ((_POSIX_C_SOURCE - 0) >= 200112L || \ + defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \ + (__cplusplus - 0) >= 201103L || (_XOPEN_SOURCE - 0) > 600 || \ + defined(_NETBSD_SOURCE)) int isblank(int); #endif __END_DECLS Index: src/include/stdio.h diff -u src/include/stdio.h:1.98 src/include/stdio.h:1.99 --- src/include/stdio.h:1.98 Fri Dec 13 20:25:16 2019 +++ src/include/stdio.h Fri Mar 20 01:08:42 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.98 2019/12/13 20:25:16 mrg Exp $ */ +/* $NetBSD: stdio.h,v 1.99 2020/03/20 01:08:42 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,6 +41,13 @@ #include #include +#if (!defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ +!defined(_XOPEN_SOURCE)) || ((_POSIX_C_SOURCE - 0) >= 200809L || \ + defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \ + (__cplusplus - 0) >= 201103L || defined(_NETBSD_SOURCE)) +#define __STDIO_C99_FEATURES +#endif + #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ @@ -307,8 +314,8 @@ __END_DECLS /* * IEEE Std 1003.1c-95, also adopted by X/Open CAE Spec Issue 5 Version 2 */ -#if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ -defined(_REENTRANT) || defined(_NETBSD_SOURCE) +#if defined(__STDIO_C99_FEATURES) || (_POSIX_C_SOURCE - 0) >= 199506L || \ +(_XOPEN_SOURCE - 0) >= 500 || defined(_REENTRANT) __BEGIN_DECLS void flockfile(FILE *); int ftrylockfile(FILE *); @@ -318,7 +325,7 @@ int getchar_unlocked(void); int putc_unlocked(int, FILE *); int putchar_unlocked(int); __END_DECLS -#endif /* _POSIX_C_SOURCE >= 1995056 || _XOPEN_SOURCE >= 500 || ... */ +#endif /* C99 || _POSIX_C_SOURCE >= 1995056 || _XOPEN_SOURCE >= 500 || ... */ /* * Functions defined in POSIX 1003.2 and XPG2 or later. @@ -339,11 +346,9 @@ __END_DECLS /* * Functions defined in ISO XPG4.2, ISO C99, POSIX 1003.1-2001 or later. */ -#if ((__STDC_VERSION__ - 0) >= 199901L) || \ -((_POSIX_C_SOURCE - 0) >= 200112L) || \ +#if defined(__STDIO_C99_FEATURES) || (_POSIX_C_SOURCE - 0) >= 200112L || \ (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ -((_XOPEN_SOURCE - 0) >= 500) || \ -defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) +(_XOPEN_SOURCE - 0) >= 500 __BEGIN_DECLS int snprintf(char * __restrict, size_t, const char * __restrict, ...) __printflike(3, 4); @@ -387,7 +392,7 @@ __END_DECLS * Functions defined in ISO C99. Still put under _NETBSD_SOURCE due to * backward compatible. */ -#if defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) +#if defined(__STDIO_C99_FEATURES) __BEGIN_DECLS int vscanf(const char * __restrict, __va_list) __scanflike(1, 0); @@ -397,7 +402,7 @@ int vsscanf(const char * __restrict, co __va_list) __scanflike(2, 0); __END_DECLS -#endif /* _ISOC99_SOURCE || _NETBSD_SOURCE */ +#endif /* C99 */ /* * Routines that are purely local. Index: src/include/wchar.h diff -u src/include/wchar.h:1.43 src/include/wchar.h:1.44 --- src/include/wchar.h:1.43 Fri Dec 28 13:11:46 2018 +++ src/include/wchar.h Fri Mar 20 01:08:42 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: wchar.h,v 1.43 2018/12/28 13:11:46 maya Exp $ */ +/* $NetBSD: wchar.h,v 1.44 2020/03/20 01:08:42 joerg Exp $ */ /*- * Copyright (c)1999 Citrus Project, @@ -151,9 +151,9 @@ long int wcstol(const wchar_t * __restri wchar_t ** __restrict, int); double wcstod(const wchar_t * __restrict, wchar_t ** __restrict); -#if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) > 199901L || \ -defined(_NETBSD_SOURCE) || \ - (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 +#if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \ +(__cplusplus - 0) >= 201103L || defined(_NETBSD_SOURCE) |
CVS commit: src/include
Module Name:src Committed By: kamil Date: Sun Mar 1 22:08:17 UTC 2020 Modified Files: src/include: stddef.h Log Message: Revert previous Requested by joerg who wants to fix (ab)users. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/include/stddef.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/stddef.h diff -u src/include/stddef.h:1.22 src/include/stddef.h:1.23 --- src/include/stddef.h:1.22 Sun Mar 1 15:18:34 2020 +++ src/include/stddef.h Sun Mar 1 22:08:17 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.22 2020/03/01 15:18:34 kamil Exp $ */ +/* $NetBSD: stddef.h,v 1.23 2020/03/01 22:08:17 kamil Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -67,8 +67,7 @@ typedef _BSD_WCHAR_T_ wchar_t; (&reinterpret_cast(static_cast(0)->member #endif -#if (__STDC_VERSION__ - 0) > 199901L || defined(__cplusplus) -/* Introduced in C11/C++11, as an extension exposed to C99/C++98 */ +#if (__STDC_VERSION__ - 0) >= 201112L || (__cplusplus - 0) >= 201103L typedef union { void *_v; long double _ld;
CVS commit: src/include
Module Name:src Committed By: kamil Date: Sun Mar 1 15:18:34 UTC 2020 Modified Files: src/include: stddef.h Log Message: Fix typo in a comment To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/include/stddef.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/stddef.h diff -u src/include/stddef.h:1.21 src/include/stddef.h:1.22 --- src/include/stddef.h:1.21 Sun Mar 1 15:08:16 2020 +++ src/include/stddef.h Sun Mar 1 15:18:34 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.21 2020/03/01 15:08:16 kamil Exp $ */ +/* $NetBSD: stddef.h,v 1.22 2020/03/01 15:18:34 kamil Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -68,7 +68,7 @@ typedef _BSD_WCHAR_T_ wchar_t; #endif #if (__STDC_VERSION__ - 0) > 199901L || defined(__cplusplus) -/* Introduced in C99/C++11, as an extension exposed to C99/C++98 */ +/* Introduced in C11/C++11, as an extension exposed to C99/C++98 */ typedef union { void *_v; long double _ld;
CVS commit: src/include
Module Name:src Committed By: kamil Date: Sun Mar 1 15:08:16 UTC 2020 Modified Files: src/include: stddef.h Log Message: Expose max_align_t to C99/C++ max_align_t does not depend on any pre-C99 or !C++ language feature. This structure is in use in 3rd party essential C++ code as an extension for older language revisions and in gnu99 code in the NetBSD distribution (RTLD's build rules define -std=gnu11 just for exposing this struct). Exposing max_align_t from the central NetBSD header avoid duplicate definition in 3rd party code that could differ and produce ABI mismatched binaries between -std= revisions. This problem does not exist on OSs like Linux as they get this namespace visibility defined inside LLVM or GNU toolchain headers. NetBSD ships with its own stddef.h, rather than relying on a toolchain and its internal extensions. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/include/stddef.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/stddef.h diff -u src/include/stddef.h:1.20 src/include/stddef.h:1.21 --- src/include/stddef.h:1.20 Sun Mar 20 16:26:06 2016 +++ src/include/stddef.h Sun Mar 1 15:08:16 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.20 2016/03/20 16:26:06 christos Exp $ */ +/* $NetBSD: stddef.h,v 1.21 2020/03/01 15:08:16 kamil Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -67,7 +67,8 @@ typedef _BSD_WCHAR_T_ wchar_t; (&reinterpret_cast(static_cast(0)->member #endif -#if (__STDC_VERSION__ - 0) >= 201112L || (__cplusplus - 0) >= 201103L +#if (__STDC_VERSION__ - 0) > 199901L || defined(__cplusplus) +/* Introduced in C99/C++11, as an extension exposed to C99/C++98 */ typedef union { void *_v; long double _ld;
CVS commit: src/include
Module Name:src Committed By: joerg Date: Sat Feb 22 22:47:35 UTC 2020 Modified Files: src/include: math.h Log Message: Correct C99 / C++11 feature testing. Document remaining missing symbols. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/include/math.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/math.h diff -u src/include/math.h:1.65 src/include/math.h:1.66 --- src/include/math.h:1.65 Sun Jun 24 23:55:29 2018 +++ src/include/math.h Sat Feb 22 22:47:35 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: math.h,v 1.65 2018/06/24 23:55:29 christos Exp $ */ +/* $NetBSD: math.h,v 1.66 2020/02/22 22:47:35 joerg Exp $ */ /* * @@ -21,6 +21,16 @@ #include #include +/* + * Missing for C99 support: + * - MATH_ERRNO + * - MATH_ERREXCEPT + * - FP_FAST_FMA + * - FP_FAST_FMAF + * - FP_FAST_FMAL + * - math_errhandling + */ + union __float_u { unsigned char __dummy[sizeof(float)]; float __val; @@ -40,7 +50,14 @@ union __long_double_u { or __long_double_u */ #include /* for INT_{MIN,MAX} */ -#if ((_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)) +#if (!defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ +!defined(_XOPEN_SOURCE)) || ((_POSIX_C_SOURCE - 0) >= 200809L || \ + defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \ + (__cplusplus - 0) >= 201103L || defined(_NETBSD_SOURCE)) +#define __MATH_C99_FEATURES +#endif + +#ifdef __MATH_C99_FEATURES # if defined(__FLT_EVAL_METHOD__) && (__FLT_EVAL_METHOD__ - 0) == 0 typedef double double_t; typedef float float_t; @@ -83,12 +100,8 @@ extern const union __double_u __infinity /* * ISO C99 */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ -!defined(_XOPEN_SOURCE) || \ -((__STDC_VERSION__ - 0) >= 199901L) || \ -((_POSIX_C_SOURCE - 0) >= 200112L) || \ -((_XOPEN_SOURCE - 0) >= 600) || \ -defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) +#if defined(__MATH_C99_FEATURES) || \ +(_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 /* 7.12#3 HUGE_VAL, HUGELF, HUGE_VALL */ #if __GNUC_PREREQ__(3, 3) #define HUGE_VALF __builtin_huge_valf() @@ -133,7 +146,7 @@ extern const union __float_u __nanf; #define FP_ILOGB0 INT_MIN #define FP_ILOGBNAN INT_MAX -#endif /* !_ANSI_SOURCE && ... */ +#endif /* C99 || _XOPEN_SOURCE >= 600 */ /* * XOPEN/SVID @@ -238,16 +251,18 @@ double fabs(double); double floor(double); double fmod(double, double); -#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) +#if defined(__MATH_C99_FEATURES) || defined(_XOPEN_SOURCE) double erf(double); double erfc(double); -double gamma(double); double hypot(double, double); +#endif + +#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) int finite(double); +double gamma(double); double j0(double); double j1(double); double jn(int, double); -double lgamma(double); double y0(double); double y1(double); double yn(int, double); @@ -260,12 +275,7 @@ double scalb(double, double); /* * ISO C99 */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ -!defined(_XOPEN_SOURCE) || \ -((__STDC_VERSION__ - 0) >= 199901L) || \ -((_POSIX_C_SOURCE - 0) >= 200809L) || \ -((_XOPEN_SOURCE - 0) >= 500) || \ -defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) +#if defined(__MATH_C99_FEATURES) || (_XOPEN_SOURCE - 0) >= 500 double acosh(double); double asinh(double); double atanh(double); @@ -279,12 +289,8 @@ double remainder(double, double); double rint(double); #endif -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ -!defined(_XOPEN_SOURCE) || \ -((__STDC_VERSION__ - 0) >= 199901L) || \ -((_POSIX_C_SOURCE - 0) >= 200112L) || \ -((_XOPEN_SOURCE - 0) >= 600) || \ -defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) +#if defined(__MATH_C99_FEATURES) || (_XOPEN_SOURCE - 0) >= 600 || \ +(_POSIX_C_SOURCE - 0) >= 200112L /* 7.12.3.1 int fpclassify(real-floating x) */ #define fpclassify(__x) __fpmacro_unary_floating(fpclassify, __x) @@ -331,6 +337,8 @@ long double sinhl(long double); long double tanhl(long double); /* 7.12.6 exp / log */ +double scalbn(double, int); +double scalbln(double, long); float expf(float); float exp2f(float); @@ -378,6 +386,7 @@ long double sqrtl(long double); /* 7.12.8 error / gamma */ +double lgamma(double); double tgamma(double); float erff(float); float erfcf(float); @@ -436,6 +445,7 @@ long double remquol(long double, long do /* 7.12.11 manipulation */ +double copysign(double, double); double nan(const char *); double nearbyint(double); double nexttoward(double, long double); @@ -474,11 +484,7 @@ long double fminl(long double, long doub #endif /* !_ANSI_SOURCE && ... */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \ -!defined(_XOPEN_SOURCE) || \ -((__S
CVS commit: src/include
Module Name:src Committed By: mrg Date: Fri Dec 13 20:25:16 UTC 2019 Modified Files: src/include: stdio.h Log Message: move P_tmpdir from "/var/tmp/" to "/tmp/". the main effect of this is to make GCC and other libiberty using tools use /tmp instead of /var/tmp for compiler temp files, which can be a bottleneck on larger systems. a survey of other platforms shows only OSX also uses /var/tmp, everyone else has switched to /tmp long ago. cons: some smaller systems may have a smaller /tmp than /var/tmp, and this may cause builds to fail with out of space earlier. point the build to /var/tmp using TMPDIR in this case. one can argue that setting TMPDIR would work around this, but we want to have the effect for all users without having special setup. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/include/stdio.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/stdio.h diff -u src/include/stdio.h:1.97 src/include/stdio.h:1.98 --- src/include/stdio.h:1.97 Thu Mar 17 00:42:49 2016 +++ src/include/stdio.h Fri Dec 13 20:25:16 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.97 2016/03/17 00:42:49 christos Exp $ */ +/* $NetBSD: stdio.h,v 1.98 2019/12/13 20:25:16 mrg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -193,7 +193,7 @@ __END_DECLS /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) -#define P_tmpdir "/var/tmp/" +#define P_tmpdir "/tmp/" #endif #define L_tmpnam 1024 /* XXX must be == PATH_MAX */ /* Always ensure that this is consistent with */
CVS commit: src/include
Module Name:src Committed By: kre Date: Sun Dec 8 02:15:02 UTC 2019 Modified Files: src/include: monetary.h Log Message: PR lib/54744 (br...@haible.de) Add missing __END_DECLS for C++ compiles. XXX pullup -9 XXX pullup -8 (bug not present in -7). To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/include/monetary.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/monetary.h diff -u src/include/monetary.h:1.3 src/include/monetary.h:1.4 --- src/include/monetary.h:1.3 Wed Aug 16 13:53:20 2017 +++ src/include/monetary.h Sun Dec 8 02:15:02 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: monetary.h,v 1.3 2017/08/16 13:53:20 joerg Exp $ */ +/* $NetBSD: monetary.h,v 1.4 2019/12/08 02:15:02 kre Exp $ */ /*- * Copyright (c) 2001 Alexey Zelkin @@ -52,6 +52,7 @@ typedef struct _locale *locale_t; __BEGIN_DECLS ssize_t strfmon_l(char * __restrict, size_t, locale_t, const char * __restrict, ...) __attribute__((__format__(__strfmon__, 4, 5))); +__END_DECLS #endif __BEGIN_DECLS
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Apr 4 18:18:52 UTC 2019 Modified Files: src/include: tzfile.h Log Message: merge tzcode 2019a To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/include/tzfile.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/tzfile.h diff -u src/include/tzfile.h:1.8 src/include/tzfile.h:1.9 --- src/include/tzfile.h:1.8 Sat Jul 11 12:40:53 2015 +++ src/include/tzfile.h Thu Apr 4 14:18:52 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: tzfile.h,v 1.8 2015/07/11 16:40:53 christos Exp $ */ +/* $NetBSD: tzfile.h,v 1.9 2019/04/04 18:18:52 christos Exp $ */ #ifndef _TZFILE_H_ #define _TZFILE_H_ @@ -32,6 +32,9 @@ #define TZDEFRULES "posixrules" #endif /* !defined TZDEFRULES */ + +/* See Internet RFC 8536 for more details about the following format. */ + /* ** Each file begins with. . . */
CVS commit: src/include
Module Name:src Committed By: christos Date: Tue Mar 12 15:11:13 UTC 2019 Modified Files: src/include: malloc.h Log Message: remove global pointers, add get/seters. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/include/malloc.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/malloc.h diff -u src/include/malloc.h:1.7 src/include/malloc.h:1.8 --- src/include/malloc.h:1.7 Sun Mar 10 11:31:02 2019 +++ src/include/malloc.h Tue Mar 12 11:11:13 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: malloc.h,v 1.7 2019/03/10 15:31:02 christos Exp $ */ +/* $NetBSD: malloc.h,v 1.8 2019/03/12 15:11:13 christos Exp $ */ /*- * Copyright (c) 2019 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ __BEGIN_DECLS void *mallocx(size_t, int); void *rallocx(void *, size_t, int); size_t xallocx(void *, size_t, size_t, int); -size_t sallocx(void *, int); +size_t sallocx(const void *, int); void dallocx(void *, int); void sdallocx(void *, size_t, int); size_t nallocx(size_t, int); @@ -49,9 +49,11 @@ void malloc_stats_print(void (*)(void *, size_t malloc_usable_size(const void *); -extern void (*malloc_message)(void *, const char *); +void (*malloc_message_get(void))(void *, const char *); +void malloc_message_set(void (*)(void *, const char *)); -extern const char *malloc_conf; +const char *malloc_conf_get(void); +void malloc_conf_set(const char *); __END_DECLS
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Mar 10 15:31:02 UTC 2019 Modified Files: src/include: malloc.h Log Message: catch up with name change. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/include/malloc.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/malloc.h diff -u src/include/malloc.h:1.6 src/include/malloc.h:1.7 --- src/include/malloc.h:1.6 Sat Mar 9 22:54:08 2019 +++ src/include/malloc.h Sun Mar 10 11:31:02 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: malloc.h,v 1.6 2019/03/10 03:54:08 christos Exp $ */ +/* $NetBSD: malloc.h,v 1.7 2019/03/10 15:31:02 christos Exp $ */ /*- * Copyright (c) 2019 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ void sdallocx(void *, size_t, int); size_t nallocx(size_t, int); int mallctl(const char *, void *, size_t *, void *, size_t); -int mallctltomib(const char *, size_t *, size_t *); +int mallctlnametomib(const char *, size_t *, size_t *); int mallctlbymib(const size_t *, size_t, void *, size_t *, void *, size_t); void malloc_stats_print(void (*)(void *, const char *), void *, const char *);
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Mar 10 03:54:08 UTC 2019 Modified Files: src/include: malloc.h Log Message: add missing externs. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/include/malloc.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/malloc.h diff -u src/include/malloc.h:1.5 src/include/malloc.h:1.6 --- src/include/malloc.h:1.5 Sat Mar 9 01:12:55 2019 +++ src/include/malloc.h Sat Mar 9 22:54:08 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: malloc.h,v 1.5 2019/03/09 06:12:55 christos Exp $ */ +/* $NetBSD: malloc.h,v 1.6 2019/03/10 03:54:08 christos Exp $ */ /*- * Copyright (c) 2019 The NetBSD Foundation, Inc. @@ -49,9 +49,9 @@ void malloc_stats_print(void (*)(void *, size_t malloc_usable_size(const void *); -void (*malloc_message)(void *, const char *); +extern void (*malloc_message)(void *, const char *); -const char *malloc_conf; +extern const char *malloc_conf; __END_DECLS
CVS commit: src/include
Module Name:src Committed By: christos Date: Sat Mar 9 06:12:55 UTC 2019 Modified Files: src/include: malloc.h Log Message: add copyright. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/include/malloc.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/malloc.h diff -u src/include/malloc.h:1.4 src/include/malloc.h:1.5 --- src/include/malloc.h:1.4 Fri Mar 8 22:52:10 2019 +++ src/include/malloc.h Sat Mar 9 01:12:55 2019 @@ -1,4 +1,30 @@ -/* $NetBSD: malloc.h,v 1.4 2019/03/09 03:52:10 christos Exp $ */ +/* $NetBSD: malloc.h,v 1.5 2019/03/09 06:12:55 christos Exp $ */ + +/*- + * Copyright (c) 2019 The NetBSD Foundation, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #ifndef _MALLOC_H_ #define _MALLOC_H_
CVS commit: src/include
Module Name:src Committed By: christos Date: Sat Mar 9 03:52:11 UTC 2019 Modified Files: src/include: malloc.h Log Message: PR/54050: Ryo ONODERA: Add the jemalloc-specific api prototypes and extern. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/include/malloc.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/malloc.h diff -u src/include/malloc.h:1.3 src/include/malloc.h:1.4 --- src/include/malloc.h:1.3 Tue Oct 25 20:56:03 1994 +++ src/include/malloc.h Fri Mar 8 22:52:10 2019 @@ -1,3 +1,32 @@ -/* $NetBSD: malloc.h,v 1.3 1994/10/26 00:56:03 cgd Exp $ */ +/* $NetBSD: malloc.h,v 1.4 2019/03/09 03:52:10 christos Exp $ */ + +#ifndef _MALLOC_H_ +#define _MALLOC_H_ #include + +__BEGIN_DECLS + +void *mallocx(size_t, int); +void *rallocx(void *, size_t, int); +size_t xallocx(void *, size_t, size_t, int); +size_t sallocx(void *, int); +void dallocx(void *, int); +void sdallocx(void *, size_t, int); +size_t nallocx(size_t, int); + +int mallctl(const char *, void *, size_t *, void *, size_t); +int mallctltomib(const char *, size_t *, size_t *); +int mallctlbymib(const size_t *, size_t, void *, size_t *, void *, size_t); + +void malloc_stats_print(void (*)(void *, const char *), void *, const char *); + +size_t malloc_usable_size(const void *); + +void (*malloc_message)(void *, const char *); + +const char *malloc_conf; + +__END_DECLS + +#endif /* _MALLOC_H_ */
CVS commit: src/include
Module Name:src Committed By: joerg Date: Tue Jan 8 17:35:42 UTC 2019 Modified Files: src/include: signal.h Log Message: Provide global variables with C linkage, otherwise they will create conflicts for C++ modules use. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/include/signal.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/signal.h diff -u src/include/signal.h:1.56 src/include/signal.h:1.57 --- src/include/signal.h:1.56 Tue May 9 11:14:16 2017 +++ src/include/signal.h Tue Jan 8 17:35:42 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: signal.h,v 1.56 2017/05/09 11:14:16 kre Exp $ */ +/* $NetBSD: signal.h,v 1.57 2019/01/08 17:35:42 joerg Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -44,6 +44,7 @@ #include +__BEGIN_DECLS #if defined(_NETBSD_SOURCE) extern const char *const *sys_signame __RENAME(__sys_signame14); #ifndef __SYS_SIGLIST_DECLARED @@ -54,7 +55,6 @@ extern const char *const *sys_siglist __ extern const int sys_nsig __RENAME(__sys_nsig14); #endif -__BEGIN_DECLS int raise(int); #if defined(_NETBSD_SOURCE)
CVS commit: src/include
Module Name:src Committed By: maya Date: Sat Jan 5 09:16:46 UTC 2019 Modified Files: src/include: stdlib.h Log Message: We can make a stronger guarantee than __pure. abs/labs don't read global memory. Make GCC 9 happier. To generate a diff of this commit: cvs rdiff -u -r1.120 -r1.121 src/include/stdlib.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/stdlib.h diff -u src/include/stdlib.h:1.120 src/include/stdlib.h:1.121 --- src/include/stdlib.h:1.120 Wed Aug 15 10:21:42 2018 +++ src/include/stdlib.h Sat Jan 5 09:16:46 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.120 2018/08/15 10:21:42 martin Exp $ */ +/* $NetBSD: stdlib.h,v 1.121 2019/01/05 09:16:46 maya Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -95,7 +95,7 @@ extern size_t __mb_cur_max; __BEGIN_DECLS __dead void _Exit(int); __dead void abort(void); -__pure int abs(int); +__constfunc int abs(int); int atexit(void (*)(void)); double atof(const char *); int atoi(const char *); @@ -111,7 +111,7 @@ div_t div(int, int); __dead void exit(int); void free(void *); __aconst char *getenv(const char *); -__pure long +__constfunc long labs(long); ldiv_t ldiv(long, long); void *malloc(size_t);
CVS commit: src/include
Module Name:src Committed By: maya Date: Fri Dec 28 13:11:46 UTC 2018 Modified Files: src/include: wchar.h Log Message: Limit wcslcat, wcslcpy visibility to _NETBSD_SOURCE wcswidth, wcwidth to POSIX.1-2001 or _NETBSD_SOURCE Updated patch from kretschm in PR standards/39422 To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 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.42 src/include/wchar.h:1.43 --- src/include/wchar.h:1.42 Sat Oct 15 14:22:00 2016 +++ src/include/wchar.h Fri Dec 28 13:11:46 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: wchar.h,v 1.42 2016/10/15 14:22:00 kamil Exp $ */ +/* $NetBSD: wchar.h,v 1.43 2018/12/28 13:11:46 maya Exp $ */ /*- * Copyright (c)1999 Citrus Project, @@ -133,12 +133,18 @@ wchar_t *wmemcpy(wchar_t * __restrict, c wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t); wchar_t *wmemset(wchar_t *, wchar_t, size_t); +#if defined(_NETBSD_SOURCE) size_t wcslcat(wchar_t *, const wchar_t *, size_t); size_t wcslcpy(wchar_t *, const wchar_t *, size_t); +#endif + +#if defined(_NETBSD_SOURCE) || \ +(_POSIX_C_SOURCE - 0 >= 200112L) || (_XOPEN_SOURCE - 0) >= 600 int wcswidth(const wchar_t *, size_t); -int wctob(wint_t); int wcwidth(wchar_t); +#endif +int wctob(wint_t); unsigned long int wcstoul(const wchar_t * __restrict, wchar_t ** __restrict, int); long int wcstol(const wchar_t * __restrict,
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Nov 18 19:22:24 UTC 2018 Modified Files: src/include: unistd.h Log Message: more type protection macro lossage. To generate a diff of this commit: cvs rdiff -u -r1.150 -r1.151 src/include/unistd.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/unistd.h diff -u src/include/unistd.h:1.150 src/include/unistd.h:1.151 --- src/include/unistd.h:1.150 Wed Aug 15 06:21:42 2018 +++ src/include/unistd.h Sun Nov 18 14:22:23 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.150 2018/08/15 10:21:42 martin Exp $ */ +/* $NetBSD: unistd.h,v 1.151 2018/11/18 19:22:23 christos Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -244,9 +244,9 @@ pid_t getsid(pid_t); */ #if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE) -#ifndef intptr_t -typedef __intptr_t intptr_t; -#define intptr_t __intptr_t +#ifndef _BSD_INTPTR_T_ +typedef __intptr_t intptr_t; +#define _BSD_INTPTR_T_ #endif #define F_ULOCK 0
CVS commit: src/include
Module Name:src Committed By: martin Date: Wed Aug 15 10:21:42 UTC 2018 Modified Files: src/include: stdlib.h unistd.h Log Message: PR standards/53525: move getsubopt() to stdlib.h To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/include/stdlib.h cvs rdiff -u -r1.149 -r1.150 src/include/unistd.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/stdlib.h diff -u src/include/stdlib.h:1.119 src/include/stdlib.h:1.120 --- src/include/stdlib.h:1.119 Sat Oct 7 21:16:06 2017 +++ src/include/stdlib.h Wed Aug 15 10:21:42 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.119 2017/10/07 21:16:06 christos Exp $ */ +/* $NetBSD: stdlib.h,v 1.120 2018/08/15 10:21:42 martin Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -206,6 +206,8 @@ int ttyslot(void); void *valloc(size_t); /* obsoleted by malloc() */ +int getsubopt(char **, char * const *, char **); + int grantpt(int); int unlockpt(int); char *ptsname(int); Index: src/include/unistd.h diff -u src/include/unistd.h:1.149 src/include/unistd.h:1.150 --- src/include/unistd.h:1.149 Tue Feb 6 20:22:41 2018 +++ src/include/unistd.h Wed Aug 15 10:21:42 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.149 2018/02/06 20:22:41 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.150 2018/08/15 10:21:42 martin Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -355,7 +355,6 @@ char *getpassfd(const char *, char *, si char *getpass_r(const char *, char *, size_t); int getpeereid(int, uid_t *, gid_t *); -int getsubopt(char **, char * const *, char **); __aconst char *getusershell(void); int initgroups(const char *, gid_t); int iruserok(uint32_t, int, const char *, const char *);
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Jun 24 23:55:29 UTC 2018 Modified Files: src/include: math.h Log Message: Fix the rest of the functions that have been made visible by xopen5, posix 2017, and c99. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/include/math.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/math.h diff -u src/include/math.h:1.64 src/include/math.h:1.65 --- src/include/math.h:1.64 Sun Jun 24 18:07:46 2018 +++ src/include/math.h Sun Jun 24 19:55:29 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: math.h,v 1.64 2018/06/24 22:07:46 christos Exp $ */ +/* $NetBSD: math.h,v 1.65 2018/06/24 23:55:29 christos Exp $ */ /* * @@ -253,6 +253,19 @@ double y1(double); double yn(int, double); #if (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE) +double scalb(double, double); +#endif /* (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)*/ +#endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */ + +/* + * ISO C99 + */ +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ +!defined(_XOPEN_SOURCE) || \ +((__STDC_VERSION__ - 0) >= 199901L) || \ +((_POSIX_C_SOURCE - 0) >= 200809L) || \ +((_XOPEN_SOURCE - 0) >= 500) || \ +defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) double acosh(double); double asinh(double); double atanh(double); @@ -263,13 +276,9 @@ double log1p(double); double logb(double); double nextafter(double, double); double remainder(double, double); -double scalb(double, double); -#endif /* (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)*/ -#endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */ +double rint(double); +#endif -/* - * ISO C99 - */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) || \ ((__STDC_VERSION__ - 0) >= 199901L) || \ @@ -380,13 +389,13 @@ long double lgammal(long double); long double tgammal(long double); /* 7.12.9 nearest integer */ + /* LONGLONG */ long long int llrint(double); long int lround(double); /* LONGLONG */ long long int llround(double); long int lrint(double); -double rint(double); double round(double); double trunc(double);
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Jun 24 22:07:47 UTC 2018 Modified Files: src/include: math.h Log Message: PR/53393: coypu: move rint to the right section. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/include/math.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/math.h diff -u src/include/math.h:1.63 src/include/math.h:1.64 --- src/include/math.h:1.63 Mon Sep 16 11:54:42 2013 +++ src/include/math.h Sun Jun 24 18:07:46 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: math.h,v 1.63 2013/09/16 15:54:42 martin Exp $ */ +/* $NetBSD: math.h,v 1.64 2018/06/24 22:07:46 christos Exp $ */ /* * @@ -263,7 +263,6 @@ double log1p(double); double logb(double); double nextafter(double, double); double remainder(double, double); -double rint(double); double scalb(double, double); #endif /* (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)*/ #endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */ @@ -381,13 +380,13 @@ long double lgammal(long double); long double tgammal(long double); /* 7.12.9 nearest integer */ - /* LONGLONG */ long long int llrint(double); long int lround(double); /* LONGLONG */ long long int llround(double); long int lrint(double); +double rint(double); double round(double); double trunc(double);
CVS commit: src/include
Module Name:src Committed By: kamil Date: Tue Feb 20 02:35:24 UTC 2018 Modified Files: src/include: string.h Log Message: Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001 To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/include/string.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/string.h diff -u src/include/string.h:1.51 src/include/string.h:1.52 --- src/include/string.h:1.51 Wed Oct 12 20:01:22 2016 +++ src/include/string.h Tue Feb 20 02:35:24 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: string.h,v 1.51 2016/10/12 20:01:22 christos Exp $ */ +/* $NetBSD: string.h,v 1.52 2018/02/20 02:35:24 kamil Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -74,7 +74,8 @@ int strerror_r(int, char *, size_t); #endif /* _POSIX_C_SOURCE >= 199506 || XOPEN_SOURCE >= 500 || ... */ size_t strxfrm(char * __restrict, const char * __restrict, size_t); -#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) +#if (_POSIX_C_SOURCE - 0 >= 200112L) || defined(_XOPEN_SOURCE) || \ +defined(_NETBSD_SOURCE) void *memccpy(void *, const void *, int, size_t); char *strdup(const char *); #endif
CVS commit: src/include
Module Name:src Committed By: christos Date: Tue Feb 6 20:22:41 UTC 2018 Modified Files: src/include: unistd.h Log Message: fix typo To generate a diff of this commit: cvs rdiff -u -r1.148 -r1.149 src/include/unistd.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/unistd.h diff -u src/include/unistd.h:1.148 src/include/unistd.h:1.149 --- src/include/unistd.h:1.148 Tue Feb 6 15:21:21 2018 +++ src/include/unistd.h Tue Feb 6 15:22:41 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.148 2018/02/06 20:21:21 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.149 2018/02/06 20:22:41 christos Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -213,8 +213,8 @@ int fsync(int); #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_REENTRANT) || defined(_NETBSD_SOURCE) int ttyname_r(int, char *, size_t); -#ifndef __PTHREAD_AFORK_DECLARED -#define __PTHREAD_AFORK_DECLARED +#ifndef __PTHREAD_ATFORK_DECLARED +#define __PTHREAD_ATFORK_DECLARED int pthread_atfork(void (*)(void), void (*)(void), void (*)(void)); #endif #endif
CVS commit: src/include
Module Name:src Committed By: christos Date: Tue Feb 6 20:21:21 UTC 2018 Modified Files: src/include: unistd.h Log Message: detect duplicate declaration of pthread_atfork() in pthread.h To generate a diff of this commit: cvs rdiff -u -r1.147 -r1.148 src/include/unistd.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/unistd.h diff -u src/include/unistd.h:1.147 src/include/unistd.h:1.148 --- src/include/unistd.h:1.147 Thu Jun 30 11:29:20 2016 +++ src/include/unistd.h Tue Feb 6 15:21:21 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.147 2016/06/30 15:29:20 dholland Exp $ */ +/* $NetBSD: unistd.h,v 1.148 2018/02/06 20:21:21 christos Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -213,8 +213,11 @@ int fsync(int); #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_REENTRANT) || defined(_NETBSD_SOURCE) int ttyname_r(int, char *, size_t); +#ifndef __PTHREAD_AFORK_DECLARED +#define __PTHREAD_AFORK_DECLARED int pthread_atfork(void (*)(void), void (*)(void), void (*)(void)); #endif +#endif /* * X/Open Portability Guide, all issues
CVS commit: src/include
Module Name:src Committed By: christos Date: Sat Oct 7 21:16:06 UTC 2017 Modified Files: src/include: stdlib.h Log Message: remove recallocarray To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/include/stdlib.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/stdlib.h diff -u src/include/stdlib.h:1.118 src/include/stdlib.h:1.119 --- src/include/stdlib.h:1.118 Sat Oct 7 15:38:09 2017 +++ src/include/stdlib.h Sat Oct 7 17:16:06 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.118 2017/10/07 19:38:09 christos Exp $ */ +/* $NetBSD: stdlib.h,v 1.119 2017/10/07 21:16:06 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -126,7 +126,6 @@ unsigned long #ifdef _OPENBSD_SOURCE long long strtonum(const char *, long long, long long, const char **); void *reallocarray(void *, size_t, size_t); -void *recallocarray(void *, size_t, size_t, size_t); #endif int system(const char *);
CVS commit: src/include
Module Name:src Committed By: christos Date: Sat Oct 7 19:38:09 UTC 2017 Modified Files: src/include: stdlib.h Log Message: add recallocarray (used by openssh-7.6) To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/include/stdlib.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/stdlib.h diff -u src/include/stdlib.h:1.117 src/include/stdlib.h:1.118 --- src/include/stdlib.h:1.117 Fri Jul 1 18:42:01 2016 +++ src/include/stdlib.h Sat Oct 7 15:38:09 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.117 2016/07/01 22:42:01 christos Exp $ */ +/* $NetBSD: stdlib.h,v 1.118 2017/10/07 19:38:09 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -126,6 +126,7 @@ unsigned long #ifdef _OPENBSD_SOURCE long long strtonum(const char *, long long, long long, const char **); void *reallocarray(void *, size_t, size_t); +void *recallocarray(void *, size_t, size_t, size_t); #endif int system(const char *);
CVS commit: src/include/rpc
Module Name:src Committed By: christos Date: Wed Aug 16 08:35:48 UTC 2017 Modified Files: src/include/rpc: xdr.h Log Message: s/not sure why// and make these work :-) To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/include/rpc/xdr.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/rpc/xdr.h diff -u src/include/rpc/xdr.h:1.29 src/include/rpc/xdr.h:1.30 --- src/include/rpc/xdr.h:1.29 Fri Jan 22 21:34:09 2016 +++ src/include/rpc/xdr.h Wed Aug 16 04:35:48 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: xdr.h,v 1.29 2016/01/23 02:34:09 dholland Exp $ */ +/* $NetBSD: xdr.h,v 1.30 2017/08/16 08:35:48 christos Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -213,15 +213,11 @@ xdr_putint32(XDR *xdrs, int32_t *ip) (*(xdrs)->x_ops->x_control)(xdrs, req, op) #define xdr_control(xdrs, req, op) XDR_CONTROL(xdrs, req, op) -/* - * Solaris strips the '_t' from these types -- not sure why. - * But, let's be compatible. - */ -#define xdr_rpcvers(xdrs, versp) xdr_u_int32(xdrs, versp) -#define xdr_rpcprog(xdrs, progp) xdr_u_int32(xdrs, progp) -#define xdr_rpcproc(xdrs, procp) xdr_u_int32(xdrs, procp) -#define xdr_rpcprot(xdrs, protp) xdr_u_int32(xdrs, protp) -#define xdr_rpcport(xdrs, portp) xdr_u_int32(xdrs, portp) +#define xdr_rpcvers(xdrs, versp) xdr_u_int32_t(xdrs, versp) +#define xdr_rpcprog(xdrs, progp) xdr_u_int32_t(xdrs, progp) +#define xdr_rpcproc(xdrs, procp) xdr_u_int32_t(xdrs, procp) +#define xdr_rpcprot(xdrs, protp) xdr_u_int32_t(xdrs, protp) +#define xdr_rpcport(xdrs, portp) xdr_u_int32_t(xdrs, portp) /* * Support struct for discriminated unions.
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Apr 23 01:57:36 UTC 2017 Modified Files: src/include: vis.h Log Message: Add vis DQ. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/include/vis.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/vis.h diff -u src/include/vis.h:1.24 src/include/vis.h:1.25 --- src/include/vis.h:1.24 Thu Jan 14 15:42:14 2016 +++ src/include/vis.h Sat Apr 22 21:57:36 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: vis.h,v 1.24 2016/01/14 20:42:14 christos Exp $ */ +/* $NetBSD: vis.h,v 1.25 2017/04/23 01:57:36 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -51,6 +51,7 @@ #define VIS_NL 0x0010 /* also encode newline */ #define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL) #define VIS_SAFE 0x0020 /* only encode "unsafe" characters */ +#define VIS_DQ 0x8000 /* also encode double quotes */ /* * other
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Apr 9 15:29:07 UTC 2017 Modified Files: src/include: fenv.h Log Message: fexcept_t + fenv_t should be handled the same way for softfloat To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.25 src/include/fenv.h:1.26 --- src/include/fenv.h:1.25 Wed Mar 22 19:11:07 2017 +++ src/include/fenv.h Sun Apr 9 11:29:07 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.25 2017/03/22 23:11:07 chs Exp $ */ +/* $NetBSD: fenv.h,v 1.26 2017/04/09 15:29:07 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -52,10 +52,10 @@ typedef int fenv_t; * Common definitions for softfloat. */ -typedef int fexcept_t; - #ifndef __HAVE_FENV_SOFTFLOAT_DEFS +typedef int fexcept_t; + typedef struct { int __flags; int __mask;
CVS commit: src/include
Module Name:src Committed By: sevan Date: Tue Apr 4 12:25:41 UTC 2017 Modified Files: src/include: quota.h tgmath.h Log Message: Add RCS tag. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/include/quota.h cvs rdiff -u -r1.1 -r1.2 src/include/tgmath.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/quota.h diff -u src/include/quota.h:1.6 src/include/quota.h:1.7 --- src/include/quota.h:1.6 Wed Feb 1 05:46:45 2012 +++ src/include/quota.h Tue Apr 4 12:25:40 2017 @@ -1,3 +1,5 @@ +/* $NetBSD: quota.h,v 1.7 2017/04/04 12:25:40 sevan Exp $ */ + /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. * All rights reserved. Index: src/include/tgmath.h diff -u src/include/tgmath.h:1.1 src/include/tgmath.h:1.2 --- src/include/tgmath.h:1.1 Sun Sep 28 14:57:41 2008 +++ src/include/tgmath.h Tue Apr 4 12:25:40 2017 @@ -1,3 +1,5 @@ +/* $NetBSD: tgmath.h,v 1.2 2017/04/04 12:25:40 sevan Exp $ */ + /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. * All rights reserved.
CVS commit: src/include
Module Name:src Committed By: scole Date: Thu Feb 23 02:06:12 UTC 2017 Modified Files: src/include: fenv.h Log Message: Add fenv for ia64, imported from FreeBSD, compile tested only. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.23 src/include/fenv.h:1.24 --- src/include/fenv.h:1.23 Thu Aug 25 12:12:59 2016 +++ src/include/fenv.h Thu Feb 23 02:06:12 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.23 2016/08/25 12:12:59 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.24 2017/02/23 02:06:12 scole Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -30,6 +30,7 @@ #include #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ +&& !defined(__ia64__) \ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ && !defined(__x86_64__) && !defined(__alpha__) && !defined(__sh__) \
CVS commit: src/include
Module Name:src Committed By: christos Date: Mon Jan 16 19:15:28 UTC 2017 Modified Files: src/include: paths.h Log Message: add _PATH_DEVZERO To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 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.42 src/include/paths.h:1.43 --- src/include/paths.h:1.42 Wed May 6 19:06:26 2015 +++ src/include/paths.h Mon Jan 16 14:15:28 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: paths.h,v 1.42 2015/05/06 23:06:26 pgoyette Exp $ */ +/* $NetBSD: paths.h,v 1.43 2017/01/16 19:15:28 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -67,6 +67,7 @@ #define _PATH_DEVCDB "/var/run/dev.cdb" #define _PATH_DEVDB "/var/run/dev.db" #define _PATH_DEVNULL "/dev/null" +#define _PATH_DEVZERO "/dev/zero" #define _PATH_DRUM "/dev/drum" #define _PATH_ESDB "/usr/share/i18n/esdb" #define _PATH_FTPUSERS "/etc/ftpusers"
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Jan 15 20:10:25 UTC 2017 Modified Files: src/include: ucontext.h Log Message: elide strict-prototypes for unrepresentable function To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/include/ucontext.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/ucontext.h diff -u src/include/ucontext.h:1.9 src/include/ucontext.h:1.10 --- src/include/ucontext.h:1.9 Thu Nov 19 15:57:49 2015 +++ src/include/ucontext.h Sun Jan 15 15:10:25 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: ucontext.h,v 1.9 2015/11/19 20:57:49 reinoud Exp $ */ +/* $NetBSD: ucontext.h,v 1.10 2017/01/15 20:10:25 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -38,7 +38,12 @@ __BEGIN_DECLS int getcontext(ucontext_t *) __returns_twice; int setcontext(const ucontext_t *); + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-prototypes" void makecontext(ucontext_t *, void (*)(), int, ...); +#pragma GCC diagnostic pop + int swapcontext(ucontext_t * __restrict, const ucontext_t * __restrict); __END_DECLS
CVS commit: src/include/arpa
Module Name:src Committed By: christos Date: Thu Jan 12 18:42:53 UTC 2017 Modified Files: src/include/arpa: ftp.h telnet.h Log Message: Welcome to the constant age! To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/include/arpa/ftp.h cvs rdiff -u -r1.12 -r1.13 src/include/arpa/telnet.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/arpa/ftp.h diff -u src/include/arpa/ftp.h:1.6 src/include/arpa/ftp.h:1.7 --- src/include/arpa/ftp.h:1.6 Thu Aug 7 05:44:12 2003 +++ src/include/arpa/ftp.h Thu Jan 12 13:42:53 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: ftp.h,v 1.6 2003/08/07 09:44:12 agc Exp $ */ +/* $NetBSD: ftp.h,v 1.7 2017/01/12 18:42:53 christos Exp $ */ /* * Copyright (c) 1983, 1989, 1993 @@ -54,7 +54,7 @@ #define TYPE_L 4 /* local byte size */ #ifdef FTP_NAMES -char *typenames[] = {"0", "ASCII", "EBCDIC", "Image", "Local" }; +const char *typenames[] = {"0", "ASCII", "EBCDIC", "Image", "Local" }; #endif /* @@ -64,7 +64,7 @@ char *typenames[] = {"0", "ASCII", "EBC #define FORM_T 2 /* telnet format effectors */ #define FORM_C 3 /* carriage control (ASA) */ #ifdef FTP_NAMES -char *formnames[] = {"0", "Nonprint", "Telnet", "Carriage-control" }; +const char *formnames[] = {"0", "Nonprint", "Telnet", "Carriage-control" }; #endif /* @@ -74,7 +74,7 @@ char *formnames[] = {"0", "Nonprint", " #define STRU_R 2 /* record structure */ #define STRU_P 3 /* page structure */ #ifdef FTP_NAMES -char *strunames[] = {"0", "File", "Record", "Page" }; +const char *strunames[] = {"0", "File", "Record", "Page" }; #endif /* @@ -84,7 +84,7 @@ char *strunames[] = {"0", "File", "Reco #define MODE_B 2 /* block */ #define MODE_C 3 /* compressed */ #ifdef FTP_NAMES -char *modenames[] = {"0", "Stream", "Block", "Compressed" }; +const char *modenames[] = {"0", "Stream", "Block", "Compressed" }; #endif /* Index: src/include/arpa/telnet.h diff -u src/include/arpa/telnet.h:1.12 src/include/arpa/telnet.h:1.13 --- src/include/arpa/telnet.h:1.12 Tue Jan 24 12:13:59 2006 +++ src/include/arpa/telnet.h Thu Jan 12 13:42:53 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: telnet.h,v 1.12 2006/01/24 17:13:59 christos Exp $ */ +/* $NetBSD: telnet.h,v 1.13 2017/01/12 18:42:53 christos Exp $ */ /* * Copyright (c) 1983, 1993 @@ -231,11 +231,11 @@ extern const char *telopts[NTELOPTS+1]; 0 #ifdef SLC_NAMES -char *slc_names[] = { +const char *slc_names[] = { SLC_NAMELIST }; #else -extern char *slc_names[]; +extern const char *slc_names[]; #define SLC_NAMES SLC_NAMELIST #endif
CVS commit: src/include
Module Name:src Committed By: christos Date: Wed Oct 12 20:01:22 UTC 2016 Modified Files: src/include: string.h Log Message: add strchrnull To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/include/string.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/string.h diff -u src/include/string.h:1.50 src/include/string.h:1.51 --- src/include/string.h:1.50 Thu Mar 10 13:53:48 2016 +++ src/include/string.h Wed Oct 12 16:01:22 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: string.h,v 1.50 2016/03/10 18:53:48 leot Exp $ */ +/* $NetBSD: string.h,v 1.51 2016/10/12 20:01:22 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -98,6 +98,7 @@ __END_DECLS __BEGIN_DECLS void *memmem(const void *, size_t, const void *, size_t); char *strcasestr(const char *, const char *); +char *strchrnul(const char *, int); size_t strlcat(char *, const char *, size_t); size_t strlcpy(char *, const char *, size_t); char *strsep(char **, const char *);
CVS commit: src/include
Module Name:src Committed By: kamil Date: Mon Oct 3 12:08:39 UTC 2016 Modified Files: src/include: assert.h Log Message: Add static_assert macro definition in This declaration conforms to the C11 standard Reference: ISO/IEC 9899:201x 7.2 Diagnostics _Static_assert performs compile-time assertion checking. According to ISO/IEC 9899:201x (draft) 7.2 Diagnostics defines the static_assert macro which expands to _Static_assert. It's not conditionalized by NDEBUG like the assert macro. According to ISO/IEC N3242=11-0012 (C++1x) the header shall define only the assert macro, but not static_assert as it's already part of the C++11 language. Allow to define static_assert in C++ prior the C++11 standard. It might be broken but a nonstandard C++ compiler might support C11-like _Static_assert feature. Note that it's fatal for g++ 5.4, but it works for clang++ 3.8.1. Approved by . To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/include/assert.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/assert.h diff -u src/include/assert.h:1.21 src/include/assert.h:1.22 --- src/include/assert.h:1.21 Fri Aug 26 01:10:49 2011 +++ src/include/assert.h Mon Oct 3 12:08:39 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: assert.h,v 1.21 2011/08/26 01:10:49 joerg Exp $ */ +/* $NetBSD: assert.h,v 1.22 2016/10/03 12:08:39 kamil Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -104,3 +104,9 @@ void __diagassert(const char *, int, con void __diagassert13(const char *, int, const char *, const char *); __END_DECLS #endif /* __ASSERT_DECLARED */ + +#if ((__cplusplus - 0) < 201103L) +#ifndef static_assert +#define static_assert _Static_assert +#endif /* static_assert */ +#endif
CVS commit: src/include
Module Name:src Committed By: christos Date: Sat Sep 24 21:18:09 UTC 2016 Modified Files: src/include: mpool.h Log Message: remove mpool_getf To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/include/mpool.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/mpool.h diff -u src/include/mpool.h:1.15 src/include/mpool.h:1.16 --- src/include/mpool.h:1.15 Sat Sep 24 16:11:43 2016 +++ src/include/mpool.h Sat Sep 24 17:18:09 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: mpool.h,v 1.15 2016/09/24 20:11:43 christos Exp $ */ +/* $NetBSD: mpool.h,v 1.16 2016/09/24 21:18:09 christos Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -102,8 +102,7 @@ void mpool_filter(MPOOL *, void (*)(voi void *mpool_new(MPOOL *, pgno_t *); void *mpool_newf(MPOOL *, pgno_t *, unsigned int); int mpool_delete(MPOOL *, void *); -void *mpool_get(MPOOL *, pgno_t); -void *mpool_getf(MPOOL *, pgno_t, unsigned int); +void *mpool_get(MPOOL *, pgno_t, unsigned int); int mpool_put(MPOOL *, void *, unsigned int); int mpool_sync(MPOOL *); int mpool_close(MPOOL *);
CVS commit: src/include
Module Name:src Committed By: christos Date: Sat Sep 24 20:11:43 UTC 2016 Modified Files: src/include: db.h mpool.h Log Message: sync with mit/kerberos db To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/include/db.h cvs rdiff -u -r1.14 -r1.15 src/include/mpool.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/db.h diff -u src/include/db.h:1.26 src/include/db.h:1.27 --- src/include/db.h:1.26 Sat Nov 30 19:23:11 2013 +++ src/include/db.h Sat Sep 24 16:11:43 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: db.h,v 1.26 2013/12/01 00:23:11 christos Exp $ */ +/* $NetBSD: db.h,v 1.27 2016/09/24 20:11:43 christos Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -69,6 +69,23 @@ typedef struct { #define R_SETCURSOR 10 /* put (RECNO) */ #define R_RECNOSYNC 11 /* sync (RECNO) */ +/* + * Recursive sequential scan. + * + * This avoids using sibling pointers, permitting (possibly partial) + * recovery from some kinds of btree corruption. Start a sequential + * scan as usual, but use R_RNEXT or R_RPREV to move forward or + * backward. + * + * This probably doesn't work with btrees that allow duplicate keys. + * Database modifications during the scan can also modify the parent + * page stack needed for correct functioning. Intermixing + * non-recursive traversal by using R_NEXT or R_PREV can also make the + * page stack inconsistent with the cursor and cause problems. + */ +#define R_RNEXT 128 /* seq (BTREE, RECNO) */ +#define R_RPREV 129 /* seq (BTREE, RECNO) */ + typedef enum { DB_BTREE, DB_HASH, DB_RECNO } DBTYPE; /* Index: src/include/mpool.h diff -u src/include/mpool.h:1.14 src/include/mpool.h:1.15 --- src/include/mpool.h:1.14 Fri Nov 22 11:25:01 2013 +++ src/include/mpool.h Sat Sep 24 16:11:43 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: mpool.h,v 1.14 2013/11/22 16:25:01 christos Exp $ */ +/* $NetBSD: mpool.h,v 1.15 2016/09/24 20:11:43 christos Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -56,6 +56,7 @@ typedef struct _bkt { #define MPOOL_DIRTY 0x01 /* page needs to be written */ #define MPOOL_PINNED 0x02 /* page is pinned into memory */ +#define MPOOL_INUSE 0x04 /* page address is valid */ uint8_t flags; /* flags */ } BKT; @@ -86,12 +87,23 @@ typedef struct MPOOL { #endif } MPOOL; +/* flags for get/put */ +#define MPOOL_IGNOREPIN 0x01 /* Ignore if the page is pinned. */ +/* flags for newf */ +#define MPOOL_PAGE_REQUEST 0x01 /* Allocate a new page with a + specific page number. */ +#define MPOOL_PAGE_NEXT 0x02 /* Allocate a new page with the next + page number. */ + __BEGIN_DECLS MPOOL *mpool_open(void *, int, pgno_t, pgno_t); void mpool_filter(MPOOL *, void (*)(void *, pgno_t, void *), void (*)(void *, pgno_t, void *), void *); void *mpool_new(MPOOL *, pgno_t *); -void *mpool_get(MPOOL *, pgno_t, unsigned int); +void *mpool_newf(MPOOL *, pgno_t *, unsigned int); +int mpool_delete(MPOOL *, void *); +void *mpool_get(MPOOL *, pgno_t); +void *mpool_getf(MPOOL *, pgno_t, unsigned int); int mpool_put(MPOOL *, void *, unsigned int); int mpool_sync(MPOOL *); int mpool_close(MPOOL *);
CVS commit: src/include
Module Name:src Committed By: roy Date: Wed Sep 21 13:32:27 UTC 2016 Modified Files: src/include: ifaddrs.h Log Message: Add ifa_addrflags to ifaddrs (forgot to commit this file, thanks Ryo!) To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/include/ifaddrs.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/ifaddrs.h diff -u src/include/ifaddrs.h:1.7 src/include/ifaddrs.h:1.8 --- src/include/ifaddrs.h:1.7 Sat Jan 23 01:26:14 2016 +++ src/include/ifaddrs.h Wed Sep 21 13:32:27 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ifaddrs.h,v 1.7 2016/01/23 01:26:14 dholland Exp $ */ +/* $NetBSD: ifaddrs.h,v 1.8 2016/09/21 13:32:27 roy Exp $ */ /* * Copyright (c) 1995, 1999 @@ -36,6 +36,7 @@ struct ifaddrs { struct sockaddr *ifa_netmask; struct sockaddr *ifa_dstaddr; void *ifa_data; + unsigned int ifa_addrflags; }; /*
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Aug 25 12:12:59 UTC 2016 Modified Files: src/include: fenv.h Log Message: add sh To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.22 src/include/fenv.h:1.23 --- src/include/fenv.h:1.22 Tue Aug 23 05:59:46 2016 +++ src/include/fenv.h Thu Aug 25 08:12:59 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.22 2016/08/23 09:59:46 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.23 2016/08/25 12:12:59 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -32,7 +32,7 @@ #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ -&& !defined(__x86_64__) && !defined(__alpha__) \ +&& !defined(__x86_64__) && !defined(__alpha__) && !defined(__sh__) \ && !(defined(__m68k__) && !(defined(__mc68010__) || defined(__mcoldfire__))) # ifndef __TEST_FENV # error "fenv.h is currently not supported for this architecture"
CVS commit: src/include
Module Name:src Committed By: christos Date: Tue Aug 23 09:59:47 UTC 2016 Modified Files: src/include: fenv.h Log Message: add alpha To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.21 src/include/fenv.h:1.22 --- src/include/fenv.h:1.21 Mon Dec 28 20:58:26 2015 +++ src/include/fenv.h Tue Aug 23 05:59:46 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.21 2015/12/29 01:58:26 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.22 2016/08/23 09:59:46 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -32,7 +32,7 @@ #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ -&& !defined(__x86_64__) \ +&& !defined(__x86_64__) && !defined(__alpha__) \ && !(defined(__m68k__) && !(defined(__mc68010__) || defined(__mcoldfire__))) # ifndef __TEST_FENV # error "fenv.h is currently not supported for this architecture"
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Jul 1 22:42:01 UTC 2016 Modified Files: src/include: stdlib.h Log Message: add hmac(3) To generate a diff of this commit: cvs rdiff -u -r1.116 -r1.117 src/include/stdlib.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/stdlib.h diff -u src/include/stdlib.h:1.116 src/include/stdlib.h:1.117 --- src/include/stdlib.h:1.116 Sat Nov 7 11:21:42 2015 +++ src/include/stdlib.h Fri Jul 1 18:42:01 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.116 2015/11/07 16:21:42 nros Exp $ */ +/* $NetBSD: stdlib.h,v 1.117 2016/07/01 22:42:01 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -300,6 +300,8 @@ __aconst char *devname(dev_t, mode_t) __ int humanize_number(char *, size_t, int64_t, const char *, int, int); int dehumanize_number(const char *, int64_t *); +ssize_t hmac(const char *, const void *, size_t, const void *, size_t, void *, + size_t); devmajor_t getdevmajor(const char *, mode_t); int getloadavg(double [], int);
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Jul 1 16:42:46 UTC 2016 Modified Files: src/include: md2.h Log Message: define block length To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/include/md2.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/md2.h diff -u src/include/md2.h:1.6 src/include/md2.h:1.7 --- src/include/md2.h:1.6 Mon Dec 26 14:01:47 2005 +++ src/include/md2.h Fri Jul 1 12:42:46 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: md2.h,v 1.6 2005/12/26 19:01:47 perry Exp $ */ +/* $NetBSD: md2.h,v 1.7 2016/07/01 16:42:46 christos Exp $ */ #ifndef _MD2_H_ #define _MD2_H_ @@ -8,6 +8,7 @@ #define MD2_DIGEST_LENGTH 16 #define MD2_DIGEST_STRING_LENGTH 33 +#define MD2_BLOCK_LENGTH 16 /* MD2 context. */ typedef struct MD2Context {
CVS commit: src/include
Module Name:src Committed By: christos Date: Sat Apr 23 23:10:10 UTC 2016 Modified Files: src/include: time.h Log Message: add clock_cpugetclockid{2,} To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/include/time.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/time.h diff -u src/include/time.h:1.45 src/include/time.h:1.46 --- src/include/time.h:1.45 Thu Oct 29 13:48:55 2015 +++ src/include/time.h Sat Apr 23 19:10:10 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: time.h,v 1.45 2015/10/29 17:48:55 christos Exp $ */ +/* $NetBSD: time.h,v 1.46 2016/04/23 23:10:10 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -156,6 +156,12 @@ int timer_gettime(timer_t, struct itimer int timer_settime(timer_t, int, const struct itimerspec * __restrict, struct itimerspec * __restrict) __RENAME(__timer_settime50); #endif +#ifdef _NETBSD_SOURCE +#include +int clock_getcpuclockid2(idtype_t, id_t, clockid_t *); +#endif +int clock_getcpuclockid(pid_t, clockid_t *); + int timer_create(clockid_t, struct sigevent * __restrict, timer_t * __restrict); int timer_delete(timer_t);
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Mar 20 16:26:06 UTC 2016 Modified Files: src/include: stddef.h Log Message: use foo - 0 instead of testing for defined(foo); from joerg@ To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/include/stddef.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/stddef.h diff -u src/include/stddef.h:1.19 src/include/stddef.h:1.20 --- src/include/stddef.h:1.19 Sun Mar 20 10:11:49 2016 +++ src/include/stddef.h Sun Mar 20 12:26:06 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.19 2016/03/20 14:11:49 christos Exp $ */ +/* $NetBSD: stddef.h,v 1.20 2016/03/20 16:26:06 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -67,8 +67,7 @@ typedef _BSD_WCHAR_T_ wchar_t; (&reinterpret_cast(static_cast(0)->member #endif -#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \ - || (defined(__cplusplus) && __cplusplus >= 201103L) +#if (__STDC_VERSION__ - 0) >= 201112L || (__cplusplus - 0) >= 201103L typedef union { void *_v; long double _ld;
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Mar 20 14:11:50 UTC 2016 Modified Files: src/include: stddef.h Log Message: PR/50983: David Shao: Protect stddef; also make the pointer void *. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/include/stddef.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/stddef.h diff -u src/include/stddef.h:1.18 src/include/stddef.h:1.19 --- src/include/stddef.h:1.18 Wed Mar 16 20:03:38 2016 +++ src/include/stddef.h Sun Mar 20 10:11:49 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.18 2016/03/17 00:03:38 mrg Exp $ */ +/* $NetBSD: stddef.h,v 1.19 2016/03/20 14:11:49 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -67,10 +67,13 @@ typedef _BSD_WCHAR_T_ wchar_t; (&reinterpret_cast(static_cast(0)->member #endif +#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \ + || (defined(__cplusplus) && __cplusplus >= 201103L) typedef union { - char *_c; + void *_v; long double _ld; long long int _ll; } max_align_t; +#endif #endif /* _STDDEF_H_ */
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Mar 17 17:36:32 UTC 2016 Modified Files: src/include: locale.h Log Message: disable dso protected for clang now, so that packages can be built. (again this is the binutils warning about copy relocations on protected objects) To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/include/locale.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/locale.h diff -u src/include/locale.h:1.26 src/include/locale.h:1.27 --- src/include/locale.h:1.26 Mon Mar 7 22:58:31 2016 +++ src/include/locale.h Thu Mar 17 13:36:32 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: locale.h,v 1.26 2016/03/08 03:58:31 christos Exp $ */ +/* $NetBSD: locale.h,v 1.27 2016/03/17 17:36:32 christos Exp $ */ /* * Copyright (c) 1991, 1993 @@ -106,12 +106,20 @@ void freelocale(locale_t); struct lconv *localeconv_l(locale_t); locale_t newlocale(int, const char *, locale_t); +#ifdef __clang__ +extern struct _locale _lc_global_locale; +#else extern __dso_protected struct _locale _lc_global_locale; +#endif #define LC_GLOBAL_LOCALE (&_lc_global_locale) #endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */ #if defined(_NETBSD_SOURCE) +#ifdef __clang__ +extern const struct _locale _lc_C_locale; +#else extern __dso_protected const struct _locale _lc_C_locale; +#endif #define LC_C_LOCALE ((locale_t)__UNCONST(&_lc_C_locale)) #endif __END_DECLS
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Mar 17 00:15:28 UTC 2016 Modified Files: src/include: bitstring.h Log Message: appease gcc-5 |= #$@#% To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/include/bitstring.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/bitstring.h diff -u src/include/bitstring.h:1.12 src/include/bitstring.h:1.13 --- src/include/bitstring.h:1.12 Fri Nov 20 15:37:08 2015 +++ src/include/bitstring.h Wed Mar 16 20:15:27 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: bitstring.h,v 1.12 2015/11/20 20:37:08 christos Exp $ */ +/* $NetBSD: bitstring.h,v 1.13 2016/03/17 00:15:27 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -81,7 +81,8 @@ typedef unsigned char bitstr_t; /* set bit N of bitstring name */ #define bit_set(name, bit) \ - /*LINTED bitwise on signed*/((name)[_bit_byte(bit)] |= _bit_mask(bit)) + /*LINTED bitwise on signed*/ \ + ((name)[_bit_byte(bit)] = _bit_mask(bit) | (name)[bit_byte(bit)) /* clear bit N of bitstring name */ #define bit_clear(name, bit) \
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Mar 17 00:42:49 UTC 2016 Modified Files: src/include: stdio.h Log Message: gcc 5, my patience is waning. To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/include/stdio.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/stdio.h diff -u src/include/stdio.h:1.96 src/include/stdio.h:1.97 --- src/include/stdio.h:1.96 Tue Mar 24 03:44:52 2015 +++ src/include/stdio.h Wed Mar 16 20:42:49 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.96 2015/03/24 07:44:52 wiz Exp $ */ +/* $NetBSD: stdio.h,v 1.97 2016/03/17 00:42:49 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -483,7 +483,7 @@ static __inline int __sputc(int _c, FILE #define __sfeof(p) (((p)->_flags & __SEOF) != 0) #define __sferror(p) (((p)->_flags & __SERR) != 0) -#define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) +#define __sclearerr(p) ((void)((p)->_flags &= (unsigned short)~(__SERR|__SEOF))) #define __sfileno(p) \ ((p)->_file == -1 ? -1 : (int)(unsigned short)(p)->_file)
CVS commit: src/include
Module Name:src Committed By: mrg Date: Thu Mar 17 00:03:38 UTC 2016 Modified Files: src/include: stddef.h Log Message: add max_align_t. C11 defines this and GCC 5.3 really wants it. XXX: language laywers, please feel free to fix this as necessary. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/include/stddef.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/stddef.h diff -u src/include/stddef.h:1.17 src/include/stddef.h:1.18 --- src/include/stddef.h:1.17 Thu Dec 12 17:53:03 2013 +++ src/include/stddef.h Thu Mar 17 00:03:38 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.17 2013/12/12 17:53:03 matt Exp $ */ +/* $NetBSD: stddef.h,v 1.18 2016/03/17 00:03:38 mrg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -66,5 +66,11 @@ typedef _BSD_WCHAR_T_ wchar_t; #define offsetof(type, member) __offsetof__((reinterpret_cast \ (&reinterpret_cast(static_cast(0)->member #endif + +typedef union { + char *_c; + long double _ld; + long long int _ll; +} max_align_t; #endif /* _STDDEF_H_ */
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Mar 17 02:25:32 UTC 2016 Modified Files: src/include: bitstring.h Log Message: more casting fixes To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/include/bitstring.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/bitstring.h diff -u src/include/bitstring.h:1.13 src/include/bitstring.h:1.14 --- src/include/bitstring.h:1.13 Wed Mar 16 20:15:27 2016 +++ src/include/bitstring.h Wed Mar 16 22:25:32 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: bitstring.h,v 1.13 2016/03/17 00:15:27 christos Exp $ */ +/* $NetBSD: bitstring.h,v 1.14 2016/03/17 02:25:32 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -82,11 +82,13 @@ typedef unsigned char bitstr_t; /* set bit N of bitstring name */ #define bit_set(name, bit) \ /*LINTED bitwise on signed*/ \ - ((name)[_bit_byte(bit)] = _bit_mask(bit) | (name)[bit_byte(bit)) + ((name)[_bit_byte(bit)] = \ + (unsigned char)(_bit_mask(bit) | (name)[_bit_byte(bit)])) /* clear bit N of bitstring name */ #define bit_clear(name, bit) \ - /*LINTED bitwise on signed*/((name)[_bit_byte(bit)] &= ~_bit_mask(bit)) + /*LINTED bitwise on signed*/ \ + ((name)[_bit_byte(bit)] &= (unsigned char)~_bit_mask(bit)) /* clear bits start ... stop in bitstring */ #define bit_nclear(name, start, stop) do { \
CVS commit: src/include
Module Name:src Committed By: leot Date: Thu Mar 10 18:53:48 UTC 2016 Modified Files: src/include: string.h Log Message: strndup() is part of XSI from The Open Group Base Specification Issue 7 and had a similar history of stpcpy(), stpncpy() and strnlen(). Make it visible under XOPEN_SOURCE>=700 too (not just _NETBSD_SOURCE). ok dholland@ To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/include/string.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/string.h diff -u src/include/string.h:1.49 src/include/string.h:1.50 --- src/include/string.h:1.49 Wed Sep 24 18:16:36 2014 +++ src/include/string.h Thu Mar 10 18:53:48 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: string.h,v 1.49 2014/09/24 18:16:36 christos Exp $ */ +/* $NetBSD: string.h,v 1.50 2016/03/10 18:53:48 leot Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -83,6 +83,7 @@ char *strdup(const char *); defined(_NETBSD_SOURCE) char *stpcpy(char * __restrict, const char * __restrict); char *stpncpy(char * __restrict, const char * __restrict, size_t); +char *strndup(const char *, size_t); size_t strnlen(const char *, size_t); #ifndef __STRSIGNAL_DECLARED #define __STRSIGNAL_DECLARED @@ -101,7 +102,6 @@ size_t strlcat(char *, const char *, si size_t strlcpy(char *, const char *, size_t); char *strsep(char **, const char *); char *stresep(char **, const char *, int); -char *strndup(const char *, size_t); char *strnstr(const char *, const char *, size_t); void *memrchr(const void *, int, size_t); void *explicit_memset(void *, int, size_t);
CVS commit: src/include
Module Name:src Committed By: christos Date: Tue Mar 8 03:58:31 UTC 2016 Modified Files: src/include: locale.h Log Message: undo protected symbol hack. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/include/locale.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/locale.h diff -u src/include/locale.h:1.25 src/include/locale.h:1.26 --- src/include/locale.h:1.25 Fri Jan 29 10:18:33 2016 +++ src/include/locale.h Mon Mar 7 22:58:31 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: locale.h,v 1.25 2016/01/29 15:18:33 christos Exp $ */ +/* $NetBSD: locale.h,v 1.26 2016/03/08 03:58:31 christos Exp $ */ /* * Copyright (c) 1991, 1993 @@ -106,20 +106,12 @@ void freelocale(locale_t); struct lconv *localeconv_l(locale_t); locale_t newlocale(int, const char *, locale_t); -#if 1 // used to be _LIBC, workaround broken binutils -extern struct _locale _lc_global_locale; -#else extern __dso_protected struct _locale _lc_global_locale; -#endif #define LC_GLOBAL_LOCALE (&_lc_global_locale) #endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */ #if defined(_NETBSD_SOURCE) -# if 1 // used to be _LIBC, workaround broken binutils -extern const struct _locale _lc_C_locale; -# else extern __dso_protected const struct _locale _lc_C_locale; -# endif #define LC_C_LOCALE ((locale_t)__UNCONST(&_lc_C_locale)) #endif __END_DECLS
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Feb 26 17:10:23 UTC 2016 Modified Files: src/include: limits.h Log Message: We only have 28 timers available. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/include/limits.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/limits.h diff -u src/include/limits.h:1.34 src/include/limits.h:1.35 --- src/include/limits.h:1.34 Fri May 29 03:37:31 2015 +++ src/include/limits.h Fri Feb 26 12:10:23 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: limits.h,v 1.34 2015/05/29 07:37:31 manu Exp $ */ +/* $NetBSD: limits.h,v 1.35 2016/02/26 17:10:23 christos Exp $ */ /* * Copyright (c) 1988, 1993 @@ -92,7 +92,7 @@ /* Not yet: PTHREAD_STACK_MIN */ #define PTHREAD_THREADS_MAX _POSIX_THREAD_THREADS_MAX -#define _POSIX_TIMER_MAX 32 +#define _POSIX_TIMER_MAX 28 #define _POSIX_TTY_NAME_MAX 9 #define _POSIX_TZNAME_MAX 6
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Feb 21 22:45:25 UTC 2016 Modified Files: src/include: mntopts.h Log Message: Add relatime. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/include/mntopts.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/mntopts.h diff -u src/include/mntopts.h:1.16 src/include/mntopts.h:1.17 --- src/include/mntopts.h:1.16 Fri Jan 22 17:26:45 2016 +++ src/include/mntopts.h Sun Feb 21 17:45:25 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: mntopts.h,v 1.16 2016/01/22 22:26:45 dholland Exp $ */ +/* $NetBSD: mntopts.h,v 1.17 2016/02/21 22:45:25 christos Exp $ */ /*- * Copyright (c) 1994 @@ -55,6 +55,7 @@ struct mntopt { #define MOPT_USERQUOTA { "userquota", 0, 0, 0 } #define MOPT_GROUPQUOTA { "groupquota", 0, 0, 0 } #define MOPT_NOATIME { "atime", 1, MNT_NOATIME, 0 } +#define MOPT_RELATIME { "relatime", 0, MNT_RELATIME, 0 } #define MOPT_SYMPERM { "symperm", 0, MNT_SYMPERM, 0 } #define MOPT_SOFTDEP { "softdep", 0, MNT_SOFTDEP, 0 } #define MOPT_LOG { "log", 0, MNT_LOG, 0 }
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Jan 29 15:18:34 UTC 2016 Modified Files: src/include: locale.h Log Message: disable dso protected to work around binutils bug To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/include/locale.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/locale.h diff -u src/include/locale.h:1.24 src/include/locale.h:1.25 --- src/include/locale.h:1.24 Fri May 17 10:11:55 2013 +++ src/include/locale.h Fri Jan 29 10:18:33 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: locale.h,v 1.24 2013/05/17 14:11:55 joerg Exp $ */ +/* $NetBSD: locale.h,v 1.25 2016/01/29 15:18:33 christos Exp $ */ /* * Copyright (c) 1991, 1993 @@ -106,7 +106,7 @@ void freelocale(locale_t); struct lconv *localeconv_l(locale_t); locale_t newlocale(int, const char *, locale_t); -#ifndef _LIBC +#if 1 // used to be _LIBC, workaround broken binutils extern struct _locale _lc_global_locale; #else extern __dso_protected struct _locale _lc_global_locale; @@ -115,7 +115,7 @@ extern __dso_protected struct _locale _l #endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */ #if defined(_NETBSD_SOURCE) -# ifndef _LIBC +# if 1 // used to be _LIBC, workaround broken binutils extern const struct _locale _lc_C_locale; # else extern __dso_protected const struct _locale _lc_C_locale;
CVS commit: src/include/rpc
Module Name:src Committed By: dholland Date: Sat Jan 23 02:36:57 UTC 2016 Modified Files: src/include/rpc: svc.h Log Message: Needs sys/select.h for fd_set; fails only when _POSIX_SOURCE is defined, because then something else doesn't include it. (I guess.) To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/include/rpc/svc.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/rpc/svc.h diff -u src/include/rpc/svc.h:1.31 src/include/rpc/svc.h:1.32 --- src/include/rpc/svc.h:1.31 Sat Jan 23 02:34:09 2016 +++ src/include/rpc/svc.h Sat Jan 23 02:36:57 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: svc.h,v 1.31 2016/01/23 02:34:09 dholland Exp $ */ +/* $NetBSD: svc.h,v 1.32 2016/01/23 02:36:57 dholland Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -42,6 +42,7 @@ #define _RPC_SVC_H_ #include +#include #include /*
CVS commit: src/include/rpc
Module Name:src Committed By: dholland Date: Sat Jan 23 02:34:09 UTC 2016 Modified Files: src/include/rpc: auth.h auth_unix.h clnt.h clnt_soc.h pmap_clnt.h rpcb_prot.x svc.h svc_soc.h xdr.h Log Message: unsigned -> unsigned int in previous change to accomodate C++ boneheadedness. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/include/rpc/auth.h cvs rdiff -u -r1.9 -r1.10 src/include/rpc/auth_unix.h cvs rdiff -u -r1.23 -r1.24 src/include/rpc/clnt.h cvs rdiff -u -r1.4 -r1.5 src/include/rpc/clnt_soc.h cvs rdiff -u -r1.12 -r1.13 src/include/rpc/pmap_clnt.h cvs rdiff -u -r1.5 -r1.6 src/include/rpc/rpcb_prot.x cvs rdiff -u -r1.30 -r1.31 src/include/rpc/svc.h cvs rdiff -u -r1.3 -r1.4 src/include/rpc/svc_soc.h cvs rdiff -u -r1.28 -r1.29 src/include/rpc/xdr.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/rpc/auth.h diff -u src/include/rpc/auth.h:1.18 src/include/rpc/auth.h:1.19 --- src/include/rpc/auth.h:1.18 Sat Jan 23 01:05:30 2016 +++ src/include/rpc/auth.h Sat Jan 23 02:34:09 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: auth.h,v 1.18 2016/01/23 01:05:30 dholland Exp $ */ +/* $NetBSD: auth.h,v 1.19 2016/01/23 02:34:09 dholland Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -87,7 +87,7 @@ __END_DECLS struct opaque_auth { enum_t oa_flavor; /* flavor of auth */ caddr_t oa_base; /* address of more auth stuff */ - unsigned oa_length; /* not to exceed MAX_AUTH_BYTES */ + unsigned int oa_length; /* not to exceed MAX_AUTH_BYTES */ }; @@ -169,7 +169,7 @@ struct sockaddr_in; extern AUTH *authunix_create (char *, int, int, int, int *); extern AUTH *authunix_create_default (void); extern AUTH *authnone_create (void); -extern AUTH *authdes_create (char *, unsigned, +extern AUTH *authdes_create (char *, unsigned int, struct sockaddr_in *, des_block *); extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *); Index: src/include/rpc/auth_unix.h diff -u src/include/rpc/auth_unix.h:1.9 src/include/rpc/auth_unix.h:1.10 --- src/include/rpc/auth_unix.h:1.9 Sat Jan 23 01:05:30 2016 +++ src/include/rpc/auth_unix.h Sat Jan 23 02:34:09 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: auth_unix.h,v 1.9 2016/01/23 01:05:30 dholland Exp $ */ +/* $NetBSD: auth_unix.h,v 1.10 2016/01/23 02:34:09 dholland Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -63,7 +63,7 @@ struct authunix_parms { char *aup_machname; int aup_uid; int aup_gid; - unsigned aup_len; + unsigned int aup_len; int *aup_gids; }; Index: src/include/rpc/clnt.h diff -u src/include/rpc/clnt.h:1.23 src/include/rpc/clnt.h:1.24 --- src/include/rpc/clnt.h:1.23 Sat Jan 23 01:05:30 2016 +++ src/include/rpc/clnt.h Sat Jan 23 02:34:09 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: clnt.h,v 1.23 2016/01/23 01:05:30 dholland Exp $ */ +/* $NetBSD: clnt.h,v 1.24 2016/01/23 02:34:09 dholland Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -156,8 +156,8 @@ typedef struct __rpc_client { /* destroy this structure */ void (*cl_destroy)(struct __rpc_client *); /* the ioctl() of rpc */ - bool_t (*cl_control)(struct __rpc_client *, unsigned, -char *); + bool_t (*cl_control)(struct __rpc_client *, +unsigned int, char *); } *cl_ops; void *cl_private; /* private stuff */ char *cl_netid; /* network token */ @@ -365,8 +365,8 @@ extern CLIENT *clnt_tp_create(const char extern CLIENT *clnt_tli_create(const int, const struct netconfig *, const struct netbuf *, const rpcprog_t, -const rpcvers_t, const unsigned, -const unsigned); +const rpcvers_t, const unsigned int, +const unsigned int); /* * const register int fd; -- fd * const struct netconfig *nconf; -- netconfig structure @@ -382,7 +382,7 @@ extern CLIENT *clnt_tli_create(const int */ extern CLIENT *clnt_vc_create(const int, const struct netbuf *, const rpcprog_t, const rpcvers_t, - const unsigned, const unsigned); + const unsigned int, const unsigned int); /* * const int fd;-- open file descriptor * const struct netbuf *svcaddr; -- servers address @@ -397,7 +397,7 @@ extern CLIENT *clnt_vc_create(const int, */ extern CLIENT *clnt_dg_create(const int, const struct netbuf *, const rpcprog_t, const rpcvers_t, - const unsigned, const unsigned); + const unsigned int, const unsigned int); /* * const int fd;-- open file descriptor * const struct netbuf *svcaddr; -- servers address Index: src/include/rpc/clnt_soc.h diff -u src/include/rpc/clnt_soc.h:1.4 src/include/rpc/clnt_soc.h:1.5 --- src/include/rpc/clnt_soc.h:1.4 Sat Jan 23 01:05:30 2016 +++ src/include/rpc/clnt_soc.h Sat Jan 23 02:34:09 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: clnt_soc.h,v 1.4 2016/01/23 01:05:30 dholland Exp $ */ +/* $NetBSD: cln
CVS commit: src/include/rpc
Module Name:src Committed By: dholland Date: Sat Jan 23 01:05:31 UTC 2016 Modified Files: src/include/rpc: auth.h auth_unix.h clnt.h clnt_soc.h pmap_clnt.h rpc.h rpcb_prot.x svc.h svc_soc.h xdr.h Log Message: u_int -> unsigned, u_long -> unsigned long, etc. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/include/rpc/auth.h cvs rdiff -u -r1.8 -r1.9 src/include/rpc/auth_unix.h cvs rdiff -u -r1.22 -r1.23 src/include/rpc/clnt.h cvs rdiff -u -r1.3 -r1.4 src/include/rpc/clnt_soc.h cvs rdiff -u -r1.11 -r1.12 src/include/rpc/pmap_clnt.h cvs rdiff -u -r1.15 -r1.16 src/include/rpc/rpc.h cvs rdiff -u -r1.4 -r1.5 src/include/rpc/rpcb_prot.x cvs rdiff -u -r1.29 -r1.30 src/include/rpc/svc.h cvs rdiff -u -r1.2 -r1.3 src/include/rpc/svc_soc.h cvs rdiff -u -r1.27 -r1.28 src/include/rpc/xdr.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/rpc/auth.h diff -u src/include/rpc/auth.h:1.17 src/include/rpc/auth.h:1.18 --- src/include/rpc/auth.h:1.17 Mon Dec 26 19:01:47 2005 +++ src/include/rpc/auth.h Sat Jan 23 01:05:30 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: auth.h,v 1.17 2005/12/26 19:01:47 perry Exp $ */ +/* $NetBSD: auth.h,v 1.18 2016/01/23 01:05:30 dholland Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -87,7 +87,7 @@ __END_DECLS struct opaque_auth { enum_t oa_flavor; /* flavor of auth */ caddr_t oa_base; /* address of more auth stuff */ - u_int oa_length; /* not to exceed MAX_AUTH_BYTES */ + unsigned oa_length; /* not to exceed MAX_AUTH_BYTES */ }; @@ -169,7 +169,7 @@ struct sockaddr_in; extern AUTH *authunix_create (char *, int, int, int, int *); extern AUTH *authunix_create_default (void); extern AUTH *authnone_create (void); -extern AUTH *authdes_create (char *, u_int, +extern AUTH *authdes_create (char *, unsigned, struct sockaddr_in *, des_block *); extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *); Index: src/include/rpc/auth_unix.h diff -u src/include/rpc/auth_unix.h:1.8 src/include/rpc/auth_unix.h:1.9 --- src/include/rpc/auth_unix.h:1.8 Thu Feb 3 04:39:32 2005 +++ src/include/rpc/auth_unix.h Sat Jan 23 01:05:30 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: auth_unix.h,v 1.8 2005/02/03 04:39:32 perry Exp $ */ +/* $NetBSD: auth_unix.h,v 1.9 2016/01/23 01:05:30 dholland Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -59,11 +59,11 @@ * Unix style credentials. */ struct authunix_parms { - u_long aup_time; + unsigned long aup_time; char *aup_machname; int aup_uid; int aup_gid; - u_int aup_len; + unsigned aup_len; int *aup_gids; }; Index: src/include/rpc/clnt.h diff -u src/include/rpc/clnt.h:1.22 src/include/rpc/clnt.h:1.23 --- src/include/rpc/clnt.h:1.22 Fri Jun 6 14:31:24 2014 +++ src/include/rpc/clnt.h Sat Jan 23 01:05:30 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: clnt.h,v 1.22 2014/06/06 14:31:24 christos Exp $ */ +/* $NetBSD: clnt.h,v 1.23 2016/01/23 01:05:30 dholland Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -156,7 +156,7 @@ typedef struct __rpc_client { /* destroy this structure */ void (*cl_destroy)(struct __rpc_client *); /* the ioctl() of rpc */ - bool_t (*cl_control)(struct __rpc_client *, u_int, + bool_t (*cl_control)(struct __rpc_client *, unsigned, char *); } *cl_ops; void *cl_private; /* private stuff */ @@ -169,9 +169,9 @@ typedef struct __rpc_client { * Timers used for the pseudo-transport protocol when using datagrams */ struct rpc_timers { - u_short rt_srtt; /* smoothed round-trip time */ - u_short rt_deviate; /* estimated deviation */ - u_long rt_rtxcur; /* current (backed-off) rto */ + unsigned short rt_srtt; /* smoothed round-trip time */ + unsigned short rt_deviate; /* estimated deviation */ + unsigned long rt_rtxcur; /* current (backed-off) rto */ }; /* @@ -245,7 +245,7 @@ struct rpc_timers { * bool_t * CLNT_CONTROL(cl, request, info) * CLIENT *cl; - * u_int request; + * unsigned request; * char *info; */ #define CLNT_CONTROL(cl,rq,in) ((*(cl)->cl_ops->cl_control)(cl,rq,in)) @@ -365,15 +365,16 @@ extern CLIENT *clnt_tp_create(const char extern CLIENT *clnt_tli_create(const int, const struct netconfig *, const struct netbuf *, const rpcprog_t, -const rpcvers_t, const u_int, const u_int); +const rpcvers_t, const unsigned, +const unsigned); /* * const register int fd; -- fd * const struct netconfig *nconf; -- netconfig structure * const struct netbuf *svcaddr; -- servers address - * const u_long prog; -- program number - * const u_long vers; -- version number - * const u_int sendsz; -- send size - * const u_int recvsz; -- recv size + * const unsigned long prog; -- program number + * const unsigned long vers; -- version number +
CVS commit: src/include
Module Name:src Committed By: dholland Date: Fri Jan 22 23:59:44 UTC 2016 Modified Files: src/include: utmp.h Log Message: Needs sys/cdefs.h for __BEGIN_DECLS. Also add time.h to get time_t, rather than doing the machine/ansi.h #ifdef dance, as it doesn't matter much what symbols utmp.h exposes. This could be tightened later when we manage to do enough include cleanup to make such dances less expensive to maintain. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/include/utmp.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/utmp.h diff -u src/include/utmp.h:1.12 src/include/utmp.h:1.13 --- src/include/utmp.h:1.12 Sun Jan 11 03:04:12 2009 +++ src/include/utmp.h Fri Jan 22 23:59:44 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: utmp.h,v 1.12 2009/01/11 03:04:12 christos Exp $ */ +/* $NetBSD: utmp.h,v 1.13 2016/01/22 23:59:44 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -39,6 +39,9 @@ #ifndef _UTMP_H_ #define _UTMP_H_ +#include +#include /* for time_t */ + #define _PATH_UTMP "/var/run/utmp" #define _PATH_WTMP "/var/log/wtmp" #define _PATH_LASTLOG "/var/log/lastlog"
CVS commit: src/include/rpcsvc
Module Name:src Committed By: dholland Date: Fri Jan 22 23:22:56 UTC 2016 Modified Files: src/include/rpcsvc: yp_prot.h Log Message: Include so XDR is defined. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/include/rpcsvc/yp_prot.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/rpcsvc/yp_prot.h diff -u src/include/rpcsvc/yp_prot.h:1.18 src/include/rpcsvc/yp_prot.h:1.19 --- src/include/rpcsvc/yp_prot.h:1.18 Wed Jan 23 17:27:35 2013 +++ src/include/rpcsvc/yp_prot.h Fri Jan 22 23:22:56 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: yp_prot.h,v 1.18 2013/01/23 17:27:35 mbalmer Exp $ */ +/* $NetBSD: yp_prot.h,v 1.19 2016/01/22 23:22:56 dholland Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -29,6 +29,8 @@ #ifndef _RPCSVC_YP_PROT_H_ #define _RPCSVC_YP_PROT_H_ +#include /* for XDR */ + /* * YPSERV PROTOCOL: *
CVS commit: src/include/rpcsvc
Module Name:src Committed By: dholland Date: Fri Jan 22 23:23:13 UTC 2016 Modified Files: src/include/rpcsvc: ypclnt.h Log Message: Uses BEGIN_DECLS and needs sys/cdefs.h. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/include/rpcsvc/ypclnt.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/rpcsvc/ypclnt.h diff -u src/include/rpcsvc/ypclnt.h:1.14 src/include/rpcsvc/ypclnt.h:1.15 --- src/include/rpcsvc/ypclnt.h:1.14 Fri Mar 2 17:27:48 2012 +++ src/include/rpcsvc/ypclnt.h Fri Jan 22 23:23:13 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ypclnt.h,v 1.14 2012/03/02 17:27:48 christos Exp $ */ +/* $NetBSD: ypclnt.h,v 1.15 2016/01/22 23:23:13 dholland Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -29,6 +29,8 @@ #ifndef _RPCSVC_YPCLNT_H_ #define _RPCSVC_YPCLNT_H_ +#include + #define YPERR_BADARGS 1 /* args to function are bad */ #define YPERR_RPC 2 /* RPC failure */ #define YPERR_DOMAIN 3 /* can't bind to a server for domain */
CVS commit: src/include
Module Name:src Committed By: dholland Date: Fri Jan 22 23:15:58 UTC 2016 Modified Files: src/include: rmt.h Log Message: Needs sys/types.h for mode_t, off_t, ssize_t, and others. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/include/rmt.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/rmt.h diff -u src/include/rmt.h:1.7 src/include/rmt.h:1.8 --- src/include/rmt.h:1.7 Wed Feb 16 19:29:35 2011 +++ src/include/rmt.h Fri Jan 22 23:15:58 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: rmt.h,v 1.7 2011/02/16 19:29:35 christos Exp $ */ +/* $NetBSD: rmt.h,v 1.8 2016/01/22 23:15:58 dholland Exp $ */ /* * rmt.h @@ -18,6 +18,7 @@ #define _RMT_H_ #include +#include #if _FORTIFY_SOURCE > 0 #define __ssp_weak_name(x) rmt ## x
CVS commit: src/include
Module Name:src Committed By: dholland Date: Fri Jan 22 23:15:42 UTC 2016 Modified Files: src/include: randomid.h Log Message: Needs stdint.h. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/include/randomid.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/randomid.h diff -u src/include/randomid.h:1.2 src/include/randomid.h:1.3 --- src/include/randomid.h:1.2 Mon Dec 26 19:01:47 2005 +++ src/include/randomid.h Fri Jan 22 23:15:42 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: randomid.h,v 1.2 2005/12/26 19:01:47 perry Exp $ */ +/* $NetBSD: randomid.h,v 1.3 2016/01/22 23:15:42 dholland Exp $ */ /* $KAME: ip6_id.c,v 1.8 2003/09/06 13:41:06 itojun Exp $ */ /* $OpenBSD: ip_id.c,v 1.6 2002/03/15 18:19:52 millert Exp $ */ @@ -69,6 +69,8 @@ #ifndef _RANDOMID_H_ #define _RANDOMID_H_ +#include + struct randomid_ctx; typedef struct randomid_ctx *randomid_t;
CVS commit: src/include/protocols
Module Name:src Committed By: dholland Date: Fri Jan 22 23:13:20 UTC 2016 Modified Files: src/include/protocols: timed.h Log Message: Erm, fix previous. (also, as this protocol is externally defined it probably should use its own constant and not either of these system-defined hostname lengths...) To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/include/protocols/timed.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/protocols/timed.h diff -u src/include/protocols/timed.h:1.12 src/include/protocols/timed.h:1.13 --- src/include/protocols/timed.h:1.12 Fri Jan 22 23:11:50 2016 +++ src/include/protocols/timed.h Fri Jan 22 23:13:20 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: timed.h,v 1.12 2016/01/22 23:11:50 dholland Exp $ */ +/* $NetBSD: timed.h,v 1.13 2016/01/22 23:13:20 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -55,7 +55,7 @@ struct tsp { } tspu_time; char tspu_hopcnt; } tsp_u; - char tsp_name[_POSIX_HOST_NAME_MAX]; + char tsp_name[_POSIX_HOST_NAME_MAX+1]; }; #define tsp_time tsp_u.tspu_time
CVS commit: src/include/protocols
Module Name:src Committed By: dholland Date: Fri Jan 22 23:11:50 UTC 2016 Modified Files: src/include/protocols: dumprestore.h routed.h rwhod.h talkd.h timed.h Log Message: These all need stdint.h. Also, dumprestore.h needs ufs/ufs/dinode.h; in talkd.h use unsigned char instead of u_char; and in timed.h include limits.h and use _POSIX_HOST_NAME_MAX instead of MAXHOSTNAMELEN as the latter would require sys/param.h. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/include/protocols/dumprestore.h cvs rdiff -u -r1.14 -r1.15 src/include/protocols/routed.h cvs rdiff -u -r1.7 -r1.8 src/include/protocols/rwhod.h cvs rdiff -u -r1.10 -r1.11 src/include/protocols/talkd.h cvs rdiff -u -r1.11 -r1.12 src/include/protocols/timed.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/protocols/dumprestore.h diff -u src/include/protocols/dumprestore.h:1.17 src/include/protocols/dumprestore.h:1.18 --- src/include/protocols/dumprestore.h:1.17 Mon Nov 16 17:09:56 2015 +++ src/include/protocols/dumprestore.h Fri Jan 22 23:11:50 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: dumprestore.h,v 1.17 2015/11/16 17:09:56 christos Exp $ */ +/* $NetBSD: dumprestore.h,v 1.18 2016/01/22 23:11:50 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,6 +39,9 @@ #ifndef _PROTOCOLS_DUMPRESTORE_H_ #define _PROTOCOLS_DUMPRESTORE_H_ +#include +#include + /* * TP_BSIZE is the size of file blocks on the dump tapes. * Note that TP_BSIZE must be a multiple of DEV_BSIZE. Index: src/include/protocols/routed.h diff -u src/include/protocols/routed.h:1.14 src/include/protocols/routed.h:1.15 --- src/include/protocols/routed.h:1.14 Mon Dec 26 19:01:47 2005 +++ src/include/protocols/routed.h Fri Jan 22 23:11:50 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: routed.h,v 1.14 2005/12/26 19:01:47 perry Exp $ */ +/* $NetBSD: routed.h,v 1.15 2016/01/22 23:11:50 dholland Exp $ */ /*- * Copyright (c) 1983, 1989, 1993 @@ -33,6 +33,9 @@ #ifndef _PROTOCOLS_ROUTED_H_ #define _PROTOCOLS_ROUTED_H_ + +#include + #ifdef __cplusplus extern "C" { #endif Index: src/include/protocols/rwhod.h diff -u src/include/protocols/rwhod.h:1.7 src/include/protocols/rwhod.h:1.8 --- src/include/protocols/rwhod.h:1.7 Thu Aug 7 09:44:13 2003 +++ src/include/protocols/rwhod.h Fri Jan 22 23:11:50 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: rwhod.h,v 1.7 2003/08/07 09:44:13 agc Exp $ */ +/* $NetBSD: rwhod.h,v 1.8 2016/01/22 23:11:50 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,6 +34,8 @@ #ifndef _PROTOCOLS_RWHOD_H_ #define _PROTOCOLS_RWHOD_H_ +#include + /* * rwho protocol packet format. */ Index: src/include/protocols/talkd.h diff -u src/include/protocols/talkd.h:1.10 src/include/protocols/talkd.h:1.11 --- src/include/protocols/talkd.h:1.10 Mon Dec 26 19:01:47 2005 +++ src/include/protocols/talkd.h Fri Jan 22 23:11:50 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: talkd.h,v 1.10 2005/12/26 19:01:47 perry Exp $ */ +/* $NetBSD: talkd.h,v 1.11 2016/01/22 23:11:50 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,6 +34,8 @@ #ifndef _PROTOCOLS_TALKD_H_ #define _PROTOCOLS_TALKD_H_ +#include + /* * This describes the protocol used by the talk server and clients. * @@ -64,10 +66,10 @@ struct talkd_sockaddr { * Client->server request message format. */ typedef struct { - u_char vers; /* protocol version */ - u_char type; /* request type, see below */ - u_char answer; /* not used */ - u_char pad; + unsigned char vers; /* protocol version */ + unsigned char type; /* request type, see below */ + unsigned char answer; /* not used */ + unsigned char pad; uint32_t id_num; /* message id */ struct talkd_sockaddr addr; /* old (4.3) style */ struct talkd_sockaddr ctl_addr;/* old (4.3) style */ @@ -83,10 +85,10 @@ typedef struct { * Server->client response message format. */ typedef struct { - u_char vers; /* protocol version */ - u_char type; /* type of request message, see below */ - u_char answer; /* respose to request message, see below */ - u_char pad; + unsigned char vers; /* protocol version */ + unsigned char type; /* type of request message, see below */ + unsigned char answer; /* respose to request message, see below */ + unsigned char pad; uint32_t id_num; /* message id */ struct talkd_sockaddr addr; /* address for establishing conversation */ } CTL_RESPONSE; Index: src/include/protocols/timed.h diff -u src/include/protocols/timed.h:1.11 src/include/protocols/timed.h:1.12 --- src/include/protocols/timed.h:1.11 Sat Feb 16 07:30:15 2008 +++ src/include/protocols/timed.h Fri Jan 22 23:11:50 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: timed.h,v 1.11 2008/02/16 07:30:15 matt Exp $ */ +/* $NetBSD: timed.h,v 1.12 2016/01/22 23:11:50 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,6 +34,9 @@ #ifndef _PROTOCOLS_TIMED_H_ #define _PROTOCOLS_TIMED_H_ +#include +#include + /* * Ti
CVS commit: src/include
Module Name:src Committed By: dholland Date: Fri Jan 22 22:27:01 UTC 2016 Modified Files: src/include: bm.h Log Message: Needs stddef.h for size_t. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/include/bm.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/bm.h diff -u src/include/bm.h:1.6 src/include/bm.h:1.7 --- src/include/bm.h:1.6 Fri Jan 22 21:55:57 2016 +++ src/include/bm.h Fri Jan 22 22:27:01 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: bm.h,v 1.6 2016/01/22 21:55:57 dholland Exp $ */ +/* $NetBSD: bm.h,v 1.7 2016/01/22 22:27:01 dholland Exp $ */ /*- * Copyright (c) 1994 @@ -37,6 +37,8 @@ #ifndef _BM_H_ #define _BM_H_ +#include + typedef struct { unsigned char *pat; /* pattern */ size_t patlen; /* pattern length */
CVS commit: src/include
Module Name:src Committed By: dholland Date: Fri Jan 22 22:26:45 UTC 2016 Modified Files: src/include: mntopts.h Log Message: Has __BEGIN_DECLS, needs sys/types.h. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/include/mntopts.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/mntopts.h diff -u src/include/mntopts.h:1.15 src/include/mntopts.h:1.16 --- src/include/mntopts.h:1.15 Fri Oct 19 17:09:06 2012 +++ src/include/mntopts.h Fri Jan 22 22:26:45 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: mntopts.h,v 1.15 2012/10/19 17:09:06 drochner Exp $ */ +/* $NetBSD: mntopts.h,v 1.16 2016/01/22 22:26:45 dholland Exp $ */ /*- * Copyright (c) 1994 @@ -33,6 +33,8 @@ #ifndef _MNTOPTS_H_ #define _MNTOPTS_H_ +#include + struct mntopt { const char *m_option; /* option name */ int m_inverse; /* if a negative option, eg "dev" */
CVS commit: src/include
Module Name:src Committed By: dholland Date: Fri Jan 22 21:55:57 UTC 2016 Modified Files: src/include: bm.h ifaddrs.h kvm.h link_aout.h login_cap.h nsswitch.h Log Message: u_char, u_int, u_long -> unsigned char, unsigned, unsigned long This makes these headers work without _NETBSD_SOURCE. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/include/bm.h src/include/ifaddrs.h cvs rdiff -u -r1.16 -r1.17 src/include/kvm.h cvs rdiff -u -r1.21 -r1.22 src/include/link_aout.h src/include/nsswitch.h cvs rdiff -u -r1.11 -r1.12 src/include/login_cap.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/bm.h diff -u src/include/bm.h:1.5 src/include/bm.h:1.6 --- src/include/bm.h:1.5 Thu Feb 3 04:39:32 2005 +++ src/include/bm.h Fri Jan 22 21:55:57 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: bm.h,v 1.5 2005/02/03 04:39:32 perry Exp $ */ +/* $NetBSD: bm.h,v 1.6 2016/01/22 21:55:57 dholland Exp $ */ /*- * Copyright (c) 1994 @@ -38,7 +38,7 @@ #define _BM_H_ typedef struct { - u_char *pat; /* pattern */ + unsigned char *pat; /* pattern */ size_t patlen; /* pattern length */ size_t *delta; /* skip delta */ int rarec; /* rare character */ @@ -49,8 +49,8 @@ typedef struct { #include __BEGIN_DECLS -bm_pat *bm_comp(u_char const *, size_t, u_char const *); -u_char *bm_exec(bm_pat *, u_char *, size_t); +bm_pat *bm_comp(unsigned char const *, size_t, unsigned char const *); +unsigned char *bm_exec(bm_pat *, unsigned char *, size_t); void bm_free(bm_pat *); __END_DECLS Index: src/include/ifaddrs.h diff -u src/include/ifaddrs.h:1.5 src/include/ifaddrs.h:1.6 --- src/include/ifaddrs.h:1.5 Thu Feb 3 04:39:32 2005 +++ src/include/ifaddrs.h Fri Jan 22 21:55:57 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ifaddrs.h,v 1.5 2005/02/03 04:39:32 perry Exp $ */ +/* $NetBSD: ifaddrs.h,v 1.6 2016/01/22 21:55:57 dholland Exp $ */ /* * Copyright (c) 1995, 1999 @@ -31,7 +31,7 @@ struct ifaddrs { struct ifaddrs *ifa_next; char *ifa_name; - u_int ifa_flags; + unsigned ifa_flags; struct sockaddr *ifa_addr; struct sockaddr *ifa_netmask; struct sockaddr *ifa_dstaddr; Index: src/include/kvm.h diff -u src/include/kvm.h:1.16 src/include/kvm.h:1.17 --- src/include/kvm.h:1.16 Mon Sep 12 21:14:29 2011 +++ src/include/kvm.h Fri Jan 22 21:55:57 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm.h,v 1.16 2011/09/12 21:14:29 christos Exp $ */ +/* $NetBSD: kvm.h,v 1.17 2016/01/22 21:55:57 dholland Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -71,7 +71,7 @@ char *kvm_geterr(kvm_t *); int kvm_getloadavg(kvm_t *, double [], int); char *kvm_getfiles(kvm_t *, int, int, int *); struct kinfo_lwp * - kvm_getlwps(kvm_t *, int, u_long, size_t, int *); + kvm_getlwps(kvm_t *, int, unsigned long, size_t, int *); struct kinfo_proc2 * kvm_getproc2(kvm_t *, int, int, size_t, int *); struct kinfo_proc * @@ -80,8 +80,8 @@ int kvm_nlist(kvm_t *, struct nlist *) kvm_t *kvm_open (const char *, const char *, const char *, int, const char *); kvm_t *kvm_openfiles(const char *, const char *, const char *, int, char *); -ssize_t kvm_read(kvm_t *, u_long, void *, size_t); -ssize_t kvm_write(kvm_t *, u_long, const void *, size_t); +ssize_t kvm_read(kvm_t *, unsigned long, void *, size_t); +ssize_t kvm_write(kvm_t *, unsigned long, const void *, size_t); const char *kvm_getkernelname(kvm_t *); __END_DECLS Index: src/include/link_aout.h diff -u src/include/link_aout.h:1.21 src/include/link_aout.h:1.22 --- src/include/link_aout.h:1.21 Mon Apr 28 20:22:54 2008 +++ src/include/link_aout.h Fri Jan 22 21:55:57 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: link_aout.h,v 1.21 2008/04/28 20:22:54 martin Exp $ */ +/* $NetBSD: link_aout.h,v 1.22 2016/01/22 21:55:57 dholland Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -52,7 +52,7 @@ struct sod { /* Shared Object Descriptor */ long sod_name; /* name (relative to load address) */ - u_int sod_library : 1, /* Searched for by library rules */ + unsigned sod_library : 1, /* Searched for by library rules */ sod_reserved : 31; short sod_major; /* major version number */ short sod_minor; /* minor version number */ @@ -71,7 +71,7 @@ struct so_map { /* Shared Object Map */ struct so_map *som_next; /* Next map in chain */ struct sod *som_sod; /* Sod responsible for this map */ caddr_t som_sodbase; /* Base address of this sod */ - u_int som_write : 1; /* Text is currently writable */ + unsigned som_write : 1; /* Text is currently writable */ struct _dynamic *som_dynamic; /* _dynamic structure */ caddr_t som_spd; /* Private data */ }; @@ -85,7 +85,7 @@ struct so_map { /* Shared Object Map */ */ struct nzlist { struct nlist nlist; - u_long nz_size; + unsigned long nz_size; #define nz_un nlist.n_un #define nz_strx nlist.n_un.n_strx #define nz_name nlist.n_un.n_name Index: src/include/nsswitch.h diff -u src/inc
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Jan 14 21:45:19 UTC 2016 Modified Files: src/include: regex.h Log Message: rename to regnsub To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/include/regex.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/regex.h diff -u src/include/regex.h:1.14 src/include/regex.h:1.15 --- src/include/regex.h:1.14 Thu Jan 14 15:42:03 2016 +++ src/include/regex.h Thu Jan 14 16:45:18 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: regex.h,v 1.14 2016/01/14 20:42:03 christos Exp $ */ +/* $NetBSD: regex.h,v 1.15 2016/01/14 21:45:18 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -138,7 +138,7 @@ int regexec(const regex_t * __restrict, const char * __restrict, size_t, regmatch_t [], int); void regfree(regex_t *); #ifdef _NETBSD_SOURCE -ssize_t regsub(char *, size_t, const char *, const regmatch_t *, const char *); +ssize_t regnsub(char *, size_t, const char *, const regmatch_t *, const char *); ssize_t regasub(char **buf, const char *, const regmatch_t *, const char *); #endif __END_DECLS
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Jan 14 20:42:14 UTC 2016 Modified Files: src/include: vis.h Log Message: add stravis To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/include/vis.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/vis.h diff -u src/include/vis.h:1.23 src/include/vis.h:1.24 --- src/include/vis.h:1.23 Sat May 23 07:48:31 2015 +++ src/include/vis.h Thu Jan 14 15:42:14 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: vis.h,v 1.23 2015/05/23 11:48:31 christos Exp $ */ +/* $NetBSD: vis.h,v 1.24 2016/01/14 20:42:14 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -91,6 +91,7 @@ char *svis(char *, int, int, int, const char *snvis(char *, size_t, int, int, int, const char *); int strvis(char *, const char *, int); +int stravis(char **, const char *, int); int strnvis(char *, size_t, const char *, int); int strsvis(char *, const char *, int, const char *);
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Jan 14 20:42:03 UTC 2016 Modified Files: src/include: regex.h Log Message: add reg{,a}sub To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/include/regex.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/regex.h diff -u src/include/regex.h:1.13 src/include/regex.h:1.14 --- src/include/regex.h:1.13 Mon Sep 12 21:44:32 2005 +++ src/include/regex.h Thu Jan 14 15:42:03 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: regex.h,v 1.13 2005/09/13 01:44:32 christos Exp $ */ +/* $NetBSD: regex.h,v 1.14 2016/01/14 20:42:03 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -137,6 +137,10 @@ size_t regerror(int, const regex_t * __r int regexec(const regex_t * __restrict, const char * __restrict, size_t, regmatch_t [], int); void regfree(regex_t *); +#ifdef _NETBSD_SOURCE +ssize_t regsub(char *, size_t, const char *, const regmatch_t *, const char *); +ssize_t regasub(char **buf, const char *, const regmatch_t *, const char *); +#endif __END_DECLS #endif /* !_REGEX_H_ */
CVS commit: src/include
Module Name:src Committed By: christos Date: Tue Dec 29 01:58:27 UTC 2015 Modified Files: src/include: fenv.h Log Message: fix inverted condition... To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.20 src/include/fenv.h:1.21 --- src/include/fenv.h:1.20 Mon Dec 28 06:03:36 2015 +++ src/include/fenv.h Mon Dec 28 20:58:26 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.20 2015/12/28 11:03:36 martin Exp $ */ +/* $NetBSD: fenv.h,v 1.21 2015/12/29 01:58:26 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -33,7 +33,7 @@ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ && !defined(__x86_64__) \ -&& !(defined(__m68k__) && (defined(__mc68010__) || defined(__mcoldfire__))) +&& !(defined(__m68k__) && !(defined(__mc68010__) || defined(__mcoldfire__))) # ifndef __TEST_FENV # error "fenv.h is currently not supported for this architecture" # endif
CVS commit: src/include
Module Name:src Committed By: martin Date: Mon Dec 28 11:03:36 UTC 2015 Modified Files: src/include: fenv.h Log Message: Add missing eol-escape To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.19 src/include/fenv.h:1.20 --- src/include/fenv.h:1.19 Sun Dec 27 19:50:31 2015 +++ src/include/fenv.h Mon Dec 28 11:03:36 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.19 2015/12/27 19:50:31 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.20 2015/12/28 11:03:36 martin Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -32,7 +32,7 @@ #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ -&& !defined(__x86_64__) +&& !defined(__x86_64__) \ && !(defined(__m68k__) && (defined(__mc68010__) || defined(__mcoldfire__))) # ifndef __TEST_FENV # error "fenv.h is currently not supported for this architecture"
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Dec 27 19:50:31 UTC 2015 Modified Files: src/include: fenv.h Log Message: We need at least 68010 or coldfire for fenv. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.18 src/include/fenv.h:1.19 --- src/include/fenv.h:1.18 Thu Dec 24 09:13:59 2015 +++ src/include/fenv.h Sun Dec 27 14:50:31 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.18 2015/12/24 14:13:59 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.19 2015/12/27 19:50:31 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -32,7 +32,8 @@ #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ -&& !defined(__x86_64__) && !defined(__m68k__) +&& !defined(__x86_64__) +&& !(defined(__m68k__) && (defined(__mc68010__) || defined(__mcoldfire__))) # ifndef __TEST_FENV # error "fenv.h is currently not supported for this architecture" # endif
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Dec 24 14:13:59 UTC 2015 Modified Files: src/include: fenv.h Log Message: add m68k, default types. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.17 src/include/fenv.h:1.18 --- src/include/fenv.h:1.17 Wed Dec 23 23:16:00 2015 +++ src/include/fenv.h Thu Dec 24 09:13:59 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.17 2015/12/24 04:16:00 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.18 2015/12/24 14:13:59 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -32,10 +32,12 @@ #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ -&& !defined(__x86_64__) +&& !defined(__x86_64__) && !defined(__m68k__) # ifndef __TEST_FENV # error "fenv.h is currently not supported for this architecture" # endif +typedef int fexcept_t; +typedef int fenv_t; #else # define __HAVE_FENV # include @@ -58,8 +60,8 @@ int feupdateenv(const fenv_t *); #if defined(_NETBSD_SOURCE) || defined(_GNU_SOURCE) -int feenableexcept(int mask); -int fedisableexcept(int mask); +int feenableexcept(int); +int fedisableexcept(int); int fegetexcept(void); #endif /* _NETBSD_SOURCE || _GNU_SOURCE */
CVS commit: src/include
Module Name:src Committed By: christos Date: Thu Dec 24 04:16:01 UTC 2015 Modified Files: src/include: fenv.h Log Message: rearrange... To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.16 src/include/fenv.h:1.17 --- src/include/fenv.h:1.16 Tue Dec 22 09:24:55 2015 +++ src/include/fenv.h Wed Dec 23 23:16:00 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.16 2015/12/22 14:24:55 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.17 2015/12/24 04:16:00 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -24,24 +24,23 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _FENV_H_ +#define _FENV_H_ + +#include #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ && !defined(__x86_64__) -#ifndef __TEST_FENV -#error "fenv.h is currently not supported for this architecture" -#endif +# ifndef __TEST_FENV +# error "fenv.h is currently not supported for this architecture" +# endif #else # define __HAVE_FENV +# include #endif -#ifndef _FENV_H_ -#define _FENV_H_ - -#include -#include - __BEGIN_DECLS /* Function prototypes */
CVS commit: src/include
Module Name:src Committed By: christos Date: Tue Dec 22 14:24:56 UTC 2015 Modified Files: src/include: fenv.h Log Message: Add __HAVE_FENV To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.15 src/include/fenv.h:1.16 --- src/include/fenv.h:1.15 Mon Dec 21 11:49:53 2015 +++ src/include/fenv.h Tue Dec 22 09:24:55 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.15 2015/12/21 16:49:53 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.16 2015/12/22 14:24:55 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -29,8 +29,12 @@ && !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ && !defined(__x86_64__) +#ifndef __TEST_FENV #error "fenv.h is currently not supported for this architecture" #endif +#else +# define __HAVE_FENV +#endif #ifndef _FENV_H_ #define _FENV_H_
CVS commit: src/include
Module Name:src Committed By: christos Date: Mon Dec 21 16:49:53 UTC 2015 Modified Files: src/include: fenv.h Log Message: Add fenv.h for mips To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.14 src/include/fenv.h:1.15 --- src/include/fenv.h:1.14 Sun Dec 20 11:24:45 2015 +++ src/include/fenv.h Mon Dec 21 11:49:53 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.14 2015/12/20 16:24:45 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.15 2015/12/21 16:49:53 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -26,7 +26,7 @@ */ #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ -&& !defined(__hppa__) && !defined(__powerpc__) \ +&& !defined(__hppa__) && !defined(__powerpc__) && !defined(__mips__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ && !defined(__x86_64__) #error "fenv.h is currently not supported for this architecture"
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Dec 20 16:24:45 UTC 2015 Modified Files: src/include: fenv.h Log Message: Powerpc now has fenv.h To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/include/fenv.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/fenv.h diff -u src/include/fenv.h:1.13 src/include/fenv.h:1.14 --- src/include/fenv.h:1.13 Sat Dec 27 11:54:02 2014 +++ src/include/fenv.h Sun Dec 20 11:24:45 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.13 2014/12/27 16:54:02 martin Exp $ */ +/* $NetBSD: fenv.h,v 1.14 2015/12/20 16:24:45 christos Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -26,7 +26,7 @@ */ #if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \ -&& !defined(__hppa__) \ +&& !defined(__hppa__) && !defined(__powerpc__) \ && !defined(__or1k__) && !defined(__riscv__) && !defined(__sparc__) \ && !defined(__x86_64__) #error "fenv.h is currently not supported for this architecture"
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Nov 20 20:37:08 UTC 2015 Modified Files: src/include: bitstring.h Log Message: add some const To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/include/bitstring.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/bitstring.h diff -u src/include/bitstring.h:1.11 src/include/bitstring.h:1.12 --- src/include/bitstring.h:1.11 Fri Nov 20 15:27:20 2015 +++ src/include/bitstring.h Fri Nov 20 15:37:08 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: bitstring.h,v 1.11 2015/11/20 20:27:20 christos Exp $ */ +/* $NetBSD: bitstring.h,v 1.12 2015/11/20 20:37:08 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -109,7 +109,7 @@ typedef unsigned char bitstr_t; /* find first bit clear in name */ #define bit_ffc(name, nbits, value) do { \ - bitstr_t *_name = name; \ + const bitstr_t *_name = name; \ size_t _bit, _nbits = nbits; \ int _value = -1; \ for (_bit = 0; _bit < _nbits; ++_bit) \ @@ -122,7 +122,7 @@ typedef unsigned char bitstr_t; /* find first bit set in name */ #define bit_ffs(name, nbits, value) do { \ - bitstr_t *_name = name; \ + const bitstr_t *_name = name; \ size_t _bit, _nbits = nbits; \ int _value = -1; \ for (_bit = 0; _bit < _nbits; ++_bit) \
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Nov 20 20:27:20 UTC 2015 Modified Files: src/include: bitstring.h Log Message: keep value as an int. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/include/bitstring.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/bitstring.h diff -u src/include/bitstring.h:1.10 src/include/bitstring.h:1.11 --- src/include/bitstring.h:1.10 Fri Nov 20 15:24:49 2015 +++ src/include/bitstring.h Fri Nov 20 15:27:20 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: bitstring.h,v 1.10 2015/11/20 20:24:49 christos Exp $ */ +/* $NetBSD: bitstring.h,v 1.11 2015/11/20 20:27:20 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -110,7 +110,8 @@ typedef unsigned char bitstr_t; /* find first bit clear in name */ #define bit_ffc(name, nbits, value) do { \ bitstr_t *_name = name; \ - size_t _bit, _nbits = nbits, _value = -1; \ + size_t _bit, _nbits = nbits; \ + int _value = -1; \ for (_bit = 0; _bit < _nbits; ++_bit) \ if (!bit_test(_name, _bit)) { \ _value = _bit; \ @@ -122,7 +123,8 @@ typedef unsigned char bitstr_t; /* find first bit set in name */ #define bit_ffs(name, nbits, value) do { \ bitstr_t *_name = name; \ - size_t _bit, _nbits = nbits, _value = -1; \ + size_t _bit, _nbits = nbits; \ + int _value = -1; \ for (_bit = 0; _bit < _nbits; ++_bit) \ if (bit_test(_name, _bit)) { \ _value = _bit; \
CVS commit: src/include
Module Name:src Committed By: christos Date: Fri Nov 20 20:24:50 UTC 2015 Modified Files: src/include: bitstring.h Log Message: update to size_t To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/include/bitstring.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/bitstring.h diff -u src/include/bitstring.h:1.9 src/include/bitstring.h:1.10 --- src/include/bitstring.h:1.9 Thu May 6 14:54:22 2010 +++ src/include/bitstring.h Fri Nov 20 15:24:49 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: bitstring.h,v 1.9 2010/05/06 18:54:22 christos Exp $ */ +/* $NetBSD: bitstring.h,v 1.10 2015/11/20 20:24:49 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -90,7 +90,7 @@ typedef unsigned char bitstr_t; /* clear bits start ... stop in bitstring */ #define bit_nclear(name, start, stop) do { \ bitstr_t *_name = name; \ - int _start = start, _stop = stop; \ + size_t _start = start, _stop = stop; \ while (_start <= _stop) { \ bit_clear(_name, _start); \ _start++; \ @@ -100,7 +100,7 @@ typedef unsigned char bitstr_t; /* set bits start ... stop in bitstring */ #define bit_nset(name, start, stop) do { \ bitstr_t *_name = name; \ - int _start = start, _stop = stop; \ + size_t _start = start, _stop = stop; \ while (_start <= _stop) { \ bit_set(_name, _start); \ _start++; \ @@ -110,7 +110,7 @@ typedef unsigned char bitstr_t; /* find first bit clear in name */ #define bit_ffc(name, nbits, value) do { \ bitstr_t *_name = name; \ - int _bit, _nbits = nbits, _value = -1; \ + size_t _bit, _nbits = nbits, _value = -1; \ for (_bit = 0; _bit < _nbits; ++_bit) \ if (!bit_test(_name, _bit)) { \ _value = _bit; \ @@ -122,7 +122,7 @@ typedef unsigned char bitstr_t; /* find first bit set in name */ #define bit_ffs(name, nbits, value) do { \ bitstr_t *_name = name; \ - int _bit, _nbits = nbits, _value = -1; \ + size_t _bit, _nbits = nbits, _value = -1; \ for (_bit = 0; _bit < _nbits; ++_bit) \ if (bit_test(_name, _bit)) { \ _value = _bit; \
CVS commit: src/include
Module Name:src Committed By: reinoud Date: Thu Nov 19 20:57:49 UTC 2015 Modified Files: src/include: ucontext.h Log Message: Revert To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/include/ucontext.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/ucontext.h diff -u src/include/ucontext.h:1.8 src/include/ucontext.h:1.9 --- src/include/ucontext.h:1.8 Thu Nov 19 20:34:47 2015 +++ src/include/ucontext.h Thu Nov 19 20:57:49 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: ucontext.h,v 1.8 2015/11/19 20:34:47 reinoud Exp $ */ +/* $NetBSD: ucontext.h,v 1.9 2015/11/19 20:57:49 reinoud Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ __BEGIN_DECLS int getcontext(ucontext_t *) __returns_twice; int setcontext(const ucontext_t *); -void makecontext(ucontext_t *, void (*)(void), int, ...); +void makecontext(ucontext_t *, void (*)(), int, ...); int swapcontext(ucontext_t * __restrict, const ucontext_t * __restrict); __END_DECLS