The NetBSD Project

CVS log for src/sys/sys/cdefs.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.159.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 13 16:15:07 2024 UTC (5 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.159: preferred, colored; next MAIN 1.160: preferred, colored
Changes since revision 1.159: +23 -15 lines
Pull up following revision(s) (requested by riastradh in ticket #973):

	sys/sys/cdefs.h: revision 1.162

sys/cdefs.h: Make various macros work more robustly.

Use predefined __-namespace macros inside __BIT, __type_min,
__type_max, and __type_fit:
- Use __CHAR_BIT__ instead of NBBY so this works without sys/types.h
  and without _NETBSD_SOURCE.
- Use __INTMAX_TYPE__, __UINTMAX_TYPE__ instead of intmax_t, uintmax_t
  so this works without stdint.h.

No functional change intended.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Sun May 12 10:34:56 2024 UTC (10 months, 1 week ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +2 -2 lines
sys/sys: remove CONSTCOND comment from do-while-0 loop

Lint doesn't need this comment anymore, as there is nothing surprising
or unusual about this idiom.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Sat May 11 13:26:54 2024 UTC (10 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +23 -15 lines
sys/cdefs.h: Make various macros work more robustly.

Use predefined __-namespace macros inside __BIT, __type_min,
__type_max, and __type_fit:

- Use __CHAR_BIT__ instead of NBBY so this works without sys/types.h
  and without _NETBSD_SOURCE.

- Use __INTMAX_TYPE__, __UINTMAX_TYPE__ instead of intmax_t, uintmax_t
  so this works without stdint.h.

No functional change intended.

Revision 1.161: download - view: text, markup, annotated - select for diffs
Wed May 1 07:43:41 2024 UTC (10 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +2 -2 lines
sys/cdefs.h: pass __aligned to lint

Lint could parse _Alignas and __attribute__((__aligned__(4))) previously
but simply ignored them. Since today, they affect the layout of struct
and union.

Revision 1.160: download - view: text, markup, annotated - select for diffs
Sun Apr 30 08:45:48 2023 UTC (22 months, 3 weeks ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +33 -2 lines
sys/cdefs.h: New __MACROUSE for macros to type-check arguments.

This way, if there's a macro F(x) with a conditional definition --
e.g., conditional on DIAGNOSTIC or KDTRACE_HOOKS -- it can do
__MACROUSE(x) in the definition that's supposed to compile away,
without triggering `variable set but not used' errors, while still
catching type errors in the expression x.  But there's no cost or
side effects incurred in the generated code because the value is not
computed.

This should be the same as __USE, but I haven't figured out how to
make it work for both bit fields (which are likely to appear in macro
arguments) and aggregates (structs/unions, which are likely to appear
as variable declarations), so for now we use two separate macros.

Revision 1.159: download - view: text, markup, annotated - select for diffs
Sat Jan 22 08:58:48 2022 UTC (3 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +4 -1 lines
Add __MASK(3)

__MASK(n): first n bits all set, where __MASK(4) == 0b1111.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Tue Dec 14 20:12:48 2021 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -5 lines
don't gut restrict for lint.

Revision 1.157: download - view: text, markup, annotated - select for diffs
Fri Apr 23 05:56:43 2021 UTC (3 years, 11 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +9 -1 lines
Provide __CONCATn macros that take from 3 to 8 arguments and concatenate
them.

I didn't provide the non-STDC versions

Revision 1.154.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:29:03 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.154.2.1: preferred, colored; branchpoint 1.154: preferred, colored; next MAIN 1.155: preferred, colored
Changes since revision 1.154.2.1: +1 -5 lines
Sync with HEAD.

Revision 1.156: download - view: text, markup, annotated - select for diffs
Sat Jan 16 23:51:51 2021 UTC (4 years, 2 months ago) by chs
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +1 -5 lines
remove unused "_DIAGNOSTIC" option and opt_diagnostic.h.
note that this is unrelated to the widely used "DIAGNOSTIC" option.

Revision 1.154.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:17 2020 UTC (4 years, 3 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +7 -1 lines
Sync w/ HEAD.

Revision 1.155: download - view: text, markup, annotated - select for diffs
Fri Dec 4 20:38:44 2020 UTC (4 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +7 -1 lines
add __null_sentinel (from FreeBSD)

Revision 1.151.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 25 11:24:07 2020 UTC (4 years, 10 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.151.2.1: preferred, colored; branchpoint 1.151: preferred, colored; next MAIN 1.152: preferred, colored
Changes since revision 1.151.2.1: +7 -7 lines
Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.154: download - view: text, markup, annotated - select for diffs
Wed Apr 22 09:23:21 2020 UTC (4 years, 11 months ago) by rin
Branches: MAIN
CVS tags: bouyer-xenpvh-base2
Branch point for: thorpej-futex
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +7 -7 lines
For NO_KERNEL_RCSIDS, strip __RCSID() also for src/common/*.

Revision 1.135.4.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:45 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.135.4.2: preferred, colored; branchpoint 1.135: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135.4.2: +2 -2 lines
Sync with HEAD

Revision 1.151.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:13 2020 UTC (4 years, 11 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +3 -3 lines
Sync with HEAD

Revision 1.153: download - view: text, markup, annotated - select for diffs
Fri Apr 17 14:59:23 2020 UTC (4 years, 11 months ago) by joerg
Branches: MAIN
CVS tags: phil-wifi-20200421, bouyer-xenpvh-base1
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +4 -4 lines
Don't use typedef at all for __CTASSERT1.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Fri Apr 17 14:33:42 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +4 -4 lines
Fix __CTASSERT1() in sys/cdefs.h for recent Clang/LLVM

Clang now implements a restriction on giving non-C-compatible anonymous
structs a typedef name for linkage purposes, as described in C++ committee
paper `P1766R1 <http://wg21.link/p1766r1>'.

https://reviews.llvm.org/D74103

Revision 1.135.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:20 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.135.4.1: preferred, colored; branchpoint 1.135: preferred, colored
Changes since revision 1.135.4.1: +62 -6 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.151: download - view: text, markup, annotated - select for diffs
Sat Mar 21 22:45:47 2020 UTC (5 years ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +12 -11 lines
Expand the support of __no[sanitizer] attributes

Add support for RUMPKERNEL that can reuse these attributes in the same code.
These macros are not intended to be used by userland and are still disabled
there. They are a NetBSD specific extension.

Add proper support for clang and GCC.

Set __no[sanitizer] only under a sanitizer, as otherwise there are build
warnings about unused compiler attributes.

Reviewed by <maxv>

Revision 1.150: download - view: text, markup, annotated - select for diffs
Sun Dec 8 11:48:15 2019 UTC (5 years, 3 months ago) by maxv
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +3 -2 lines
Fix __nomsan: missing opt_kmsan.h, and the attribute should be
kernel-memory.

Revision 1.149: download - view: text, markup, annotated - select for diffs
Thu Nov 14 16:23:53 2019 UTC (5 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +7 -1 lines
Add support for Kernel Memory Sanitizer (kMSan). It detects uninitialized
memory used by the kernel at run time, and just like kASan and kCSan, it
is an excellent feature. It has already detected 38 uninitialized variables
in the kernel during my testing, which I have since discreetly fixed.

We use two shadows:
 - "shad", to track uninitialized memory with a bit granularity (1:1).
   Each bit set to 1 in the shad corresponds to one uninitialized bit of
   real kernel memory.
 - "orig", to track the origin of the memory with a 4-byte granularity
   (1:1). Each uint32_t cell in the orig indicates the origin of the
   associated uint32_t of real kernel memory.

The memory consumption of these shadows is consequent, so at least 4GB of
RAM is recommended to run kMSan.

The compiler inserts calls to specific __msan_* functions on each memory
access, to manage both the shad and the orig and detect uninitialized
memory accesses that change the execution flow (like an "if" on an
uninitialized variable).

We mark as uninit several types of memory buffers (stack, pools, kmem,
malloc, uvm_km), and check each buffer passed to copyout, copyoutstr,
bwrite, if_transmit_lock and DMA operations, to detect uninitialized memory
that leaves the system. This allows us to detect kernel info leaks in a way
that is more efficient and also more user-friendly than KLEAK.

Contrary to kASan, kMSan requires comprehensive coverage, ie we cannot
tolerate having one non-instrumented function, because this could cause
false positives. kMSan cannot instrument ASM functions, so I converted
most of them to __asm__ inlines, which kMSan is able to instrument. Those
that remain receive special treatment.

Contrary to kASan again, kMSan uses a TLS, so we must context-switch this
TLS during interrupts. We use different contexts depending on the interrupt
level.

The orig tracks precisely the origin of a buffer. We use a special encoding
for the orig values, and pack together in each uint32_t cell of the orig:
 - a code designating the type of memory (Stack, Pool, etc), and
 - a compressed pointer, which points either (1) to a string containing
   the name of the variable associated with the cell, or (2) to an area
   in the kernel .text section which we resolve to a symbol name + offset.

This encoding allows us not to consume extra memory for associating
information with each cell, and produces a precise output, that can tell
for example the name of an uninitialized variable on the stack, the
function in which it was pushed on the stack, and the function where we
accessed this uninitialized variable.

kMSan is available with LLVM, but not with GCC.

The code is organized in a way that is similar to kASan and kCSan, so it
means that other architectures than amd64 can be supported.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Tue Nov 5 20:19:18 2019 UTC (5 years, 4 months ago) by maxv
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +8 -1 lines
Add Kernel Concurrency Sanitizer (kCSan) support. This sanitizer allows us
to detect race conditions at runtime. It is a variation of TSan that is
easy to implement and more suited to kernel internals, albeit theoretically
less precise than TSan's happens-before.

We do basically two things:

 - On every KCSAN_NACCESSES (=2000) memory accesses, we create a cell
   describing the access, and delay the calling CPU (10ms).

 - On all memory accesses, we verify if the memory we're reading/writing
   is referenced in a cell already.

The combination of the two means that, if for example cpu0 does a read that
is selected and cpu1 does a write at the same address, kCSan will fire,
because cpu1's write collides with cpu0's read cell.

The coverage of the instrumentation is the same as that of kASan. Also, the
code is organized in a way similar to kASan, so it is easy to add support
for more architectures than amd64. kCSan is compatible with KCOV.

Reviewed by Kamil.

Revision 1.147: download - view: text, markup, annotated - select for diffs
Wed Oct 16 18:29:49 2019 UTC (5 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +7 -1 lines
Add and use __FPTRCAST, requested by uwe@

Revision 1.146: download - view: text, markup, annotated - select for diffs
Sun Sep 22 23:23:12 2019 UTC (5 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +3 -2 lines
Handle LSan/LLVM and LSan/GCC in __NO_LEAKS

__has_feature(leak_sanitizer) was merged with Clang/LLVM today:
https://reviews.llvm.org/D67719

GCC specific ifdef __SANITIZE_LEAK__ is pending in upstream review...
https://gcc.gnu.org/ml/gcc-patches/2019-09/msg01270.html and can be
rejected as GCC upstream does not see value in feature parity with LLVM
sanitizers. For the time being this will be a NetBSD specific extension.

Revision 1.145: download - view: text, markup, annotated - select for diffs
Sun Sep 22 23:13:10 2019 UTC (5 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +6 -3 lines
Make __CTASSERT static assert again

Today GCC/Clang allow to specify typedef char[] with the dynamic VLA
property (as introduced in C99). This means that __CTASSERT(), when
misused with run-time semantics, was a dummy check generating either
1 or -1 size of typedef char[].

It was caught in runtime by kUBSan as -1 is size of VLA with unspecified
semantics in runtime (Undefined Behavior).

Use bit-field to enforce compile-time constant.

This approach has been inspired by the Perl variation of static_assert().

Revision 1.144: download - view: text, markup, annotated - select for diffs
Wed Sep 18 15:06:03 2019 UTC (5 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +9 -1 lines
Define __noubsan in sys/cdefs.h for KERNEL sanitization

Revision 1.143: download - view: text, markup, annotated - select for diffs
Sun Sep 15 15:18:45 2019 UTC (5 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +6 -1 lines
Define __NO_LEAKS in sys/cdefs.h

This preprocessor symbol is intended to be used with leak detecting
software, documenting leaks that are not important to be freed in the
default build version.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Sun Sep 15 14:30:26 2019 UTC (5 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +19 -1 lines
Add Clang/LLVM specific feature/extension detection macros in sys/cdefs.h

These macros are not supported (as of now) with GCC and there is need to
maintain a fallback that evaluates to 0.

Revision 1.135.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:57 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +39 -28 lines
Sync with HEAD

Revision 1.132.6.2: download - view: text, markup, annotated - select for diffs
Sun Mar 3 11:10:16 2019 UTC (6 years ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.132.6.1: preferred, colored; branchpoint 1.132: preferred, colored; next MAIN 1.133: preferred, colored
Changes since revision 1.132.6.1: +6 -8 lines
Pull up following revision(s) (requested by kamil in ticket #1202):

	sys/sys/cdefs.h: revision 1.138

Stop mangling __func__ for C++11 and newer

Drop local logic between GCC 2.4 and GCC 2.6 that used __PRETTY_FUNCTION__.

This caused __func__ to be redefined for all C++ programs and use a
different behavior than intended by the compiler (Clang and GCC).
__PRETTY_FUNCTION__ prints all the prototype not just function name,
contrary to __FUNCTION__ and __func__.

__func__ is now an integral part of C99 and C++11, shipped by a compiler.
This change aligns the behavior of C++ programs using __func__ to other
Operating Systems. The difference caused unnecessary fallout in regression
test suites in projects (LLVM, fish, ...).

Revision 1.141: download - view: text, markup, annotated - select for diffs
Thu Feb 21 21:34:05 2019 UTC (6 years, 1 month ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +2 -2 lines
add a lint(1) comment to nothing.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Sun Jan 27 02:47:26 2019 UTC (6 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +20 -20 lines
lint understands attributes.

Revision 1.135.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:07 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.135.2.1: preferred, colored; branchpoint 1.135: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135.2.1: +7 -9 lines
Sync with HEAD, resolve a few conflicts

Revision 1.139: download - view: text, markup, annotated - select for diffs
Tue Dec 18 16:23:20 2018 UTC (6 years, 3 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +2 -2 lines
Appease gcc error: comparison of unsigned expression < 0 is always false
when using __BITS(u_int, 0)

Revision 1.138: download - view: text, markup, annotated - select for diffs
Tue Dec 4 22:06:36 2018 UTC (6 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +6 -8 lines
Stop mangling __func__ for C++11 and newer

Drop local logic between GCC 2.4 and GCC 2.6 that used __PRETTY_FUNCTION__.
This caused __func__ to be redefined for all C++ programs and use a
different behavior than intended by the compiler (Clang and GCC).
__PRETTY_FUNCTION__ prints all the prototype not just function name,
contrary to __FUNCTION__ and __func__.

__func__ is now an integral part of C99 and C++11, shipped by a compiler.

This change aligns the behavior of C++ programs using __func__ to other
Operating Systems. The difference caused unnecessary fallout in regression
test suites in projects (LLVM, fish, ...).

Revision 1.135.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:47 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +15 -2 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.137: download - view: text, markup, annotated - select for diffs
Wed Aug 22 12:07:43 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +10 -1 lines
Add support for monitoring the stack with kASan. This allows us to detect
illegal memory accesses occuring there.

The compiler inlines a piece of code in each function that adds redzones
around the local variables and poisons them. The illegal accesses are then
detected using the usual kASan machinery.

The stack size is doubled, from 4 pages to 8 pages.

Several boot functions are marked with the __noasan flag, to prevent the
compiler from adding redzones in them (because we haven't yet initialized
kASan). The kasan_early_init function is called early at boot time to
quickly create the shadow for the current stack; after this is done, we
don't need __noasan anymore in the boot path.

We pass -fasan-shadow-offset=0xDFFF900000000000, because the compiler
wants to do
	shad = shadow-offset + (addr >> 3)
and we do, in kasan_addr_to_shad
	shad = KASAN_SHADOW_START + ((addr - CANONICAL_BASE) >> 3)
hence
	shad = KASAN_SHADOW_START + (addr >> 3) - (CANONICAL_BASE >> 3)
	     = [KASAN_SHADOW_START - (CANONICAL_BASE >> 3)] + (addr >> 3)
implies
	shadow-offset = KASAN_SHADOW_START - (CANONICAL_BASE >> 3)
	              = 0xFFFF800000000000 - (0xFFFF800000000000 >> 3)
	              = 0xDFFF900000000000

In UVM, we add a kasan_free (that is not preceded by a kasan_alloc). We
don't add poisoned redzones ourselves, but all the functions we execute
do, so we need to manually clear the poison before freeing the stack.

With the help of Kamil for the makefile stuff.

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sun Aug 12 10:43:04 2018 UTC (6 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +6 -2 lines
Remove dependency of __BITS on MAX/MIN by providing __MAX/__MIN

Revision 1.132.6.1: download - view: text, markup, annotated - select for diffs
Sat Jan 13 21:33:14 2018 UTC (7 years, 2 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +4 -3 lines
Pull up following revision(s) (requested by christos in ticket #473):
	sys/sys/cdefs.h: 1.133-1.135
Ignore __thread for lint for now
--
lint knows about all inline variant syntax...
--
add linted to __USE()

Revision 1.135: download - view: text, markup, annotated - select for diffs
Tue Dec 26 17:08:56 2017 UTC (7 years, 2 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +2 -2 lines
add linted to __USE()

Revision 1.134: download - view: text, markup, annotated - select for diffs
Tue Dec 26 17:03:10 2017 UTC (7 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +2 -2 lines
lint knows about all inline variant syntax...

Revision 1.100.2.5: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:20 2017 UTC (7 years, 3 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.100.2.4: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.2.4: +34 -5 lines
update from HEAD

Revision 1.122.2.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:16 2017 UTC (7 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.122.2.4: preferred, colored; branchpoint 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122.2.4: +16 -1 lines
Sync with HEAD

Revision 1.133.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 15 13:46:03 2017 UTC (7 years, 8 months ago) by christos
Branches: perseant-stdc-iso10646
Diff to: previous 1.133.2.1: preferred, colored; branchpoint 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133.2.1: +650 -0 lines
3233489

Revision 1.133.2.1
Sat Jul 15 13:46:02 2017 UTC (7 years, 8 months ago) by christos
Branches: perseant-stdc-iso10646
FILE REMOVED
Changes since revision 1.133: +0 -650 lines
file cdefs.h was added on branch perseant-stdc-iso10646 on 2017-07-15 13:46:03 +0000

Revision 1.133: download - view: text, markup, annotated - select for diffs
Sat Jul 15 13:46:02 2017 UTC (7 years, 8 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, nick-nhusb-base-20170825
Branch point for: perseant-stdc-iso10646
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +2 -1 lines
Ignore __thread for lint for now

Revision 1.129.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:08 2017 UTC (7 years, 11 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.129: preferred, colored; next MAIN 1.130: preferred, colored
Changes since revision 1.129: +15 -1 lines
Sync with HEAD

Revision 1.128.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:53 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.128.2.1: preferred, colored; branchpoint 1.128: preferred, colored; next MAIN 1.129: preferred, colored
Changes since revision 1.128.2.1: +15 -1 lines
Sync with HEAD

Revision 1.132: download - view: text, markup, annotated - select for diffs
Wed Feb 8 17:59:35 2017 UTC (8 years, 1 month ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -3 lines
use __nothing instead since __empty is taken in stl_deque.h

Revision 1.131: download - view: text, markup, annotated - select for diffs
Wed Feb 8 16:26:19 2017 UTC (8 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +2 -2 lines
remove comment in comment

Revision 1.130: download - view: text, markup, annotated - select for diffs
Wed Feb 8 16:13:04 2017 UTC (8 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +15 -1 lines
add __empty

Revision 1.122.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:41:01 2017 UTC (8 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.122.2.3: preferred, colored; branchpoint 1.122: preferred, colored
Changes since revision 1.122.2.3: +3 -3 lines
Sync with HEAD

Revision 1.128.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:53 2017 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.129: download - view: text, markup, annotated - select for diffs
Tue Dec 27 21:52:01 2016 UTC (8 years, 2 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3 lines
Our lint knows about attributes, stop eating them.

Revision 1.122.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:18 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.122.2.2: preferred, colored; branchpoint 1.122: preferred, colored
Changes since revision 1.122.2.2: +9 -2 lines
Sync with HEAD (as of 26th Dec)

Revision 1.128: download - view: text, markup, annotated - select for diffs
Thu Nov 19 17:04:01 2015 UTC (9 years, 4 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -2 lines
long line police

Revision 1.127: download - view: text, markup, annotated - select for diffs
Wed Oct 14 15:52:40 2015 UTC (9 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +7 -1 lines
introduce a __syslog__ format, and __sysloglike() macros. If __syslog__
is not available, this fails back to __printf__

Revision 1.122.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:17 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.122.2.1: preferred, colored; branchpoint 1.122: preferred, colored
Changes since revision 1.122.2.1: +6 -2 lines
Sync with HEAD

Revision 1.126: download - view: text, markup, annotated - select for diffs
Sun Aug 30 08:46:44 2015 UTC (9 years, 6 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +2 -2 lines
wishful thinking?

Revision 1.125: download - view: text, markup, annotated - select for diffs
Sun Aug 30 07:55:45 2015 UTC (9 years, 6 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +5 -1 lines
Include opt_diagnostic.h.

Revision 1.122.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:32 2015 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +5 -2 lines
Sync with HEAD

Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Jan 25 20:45:18 2015 UTC (10 years, 1 month ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +2 -2 lines
add constcond

Revision 1.123: download - view: text, markup, annotated - select for diffs
Sat Jan 24 18:07:37 2015 UTC (10 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +4 -1 lines
add cast-through-void * macros

Revision 1.122: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:44:50 2014 UTC (10 years, 6 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +2 -2 lines
Don't use or in __RENAME because it triggers -Wc++-compat

Revision 1.100.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:44 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.100.2.3: preferred, colored
Changes since revision 1.100.2.3: +51 -16 lines
Rebase to HEAD as of a few days ago.

Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:54 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119: +8 -6 lines
Rebase.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Fri Aug 8 19:43:49 2014 UTC (10 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +7 -1 lines
Add __unreachable(), which can be used to mark dead branches when the
compiler can't tell side effects.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Mon Jul 14 18:50:22 2014 UTC (10 years, 8 months ago) by plunky
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +2 -6 lines

remove PCC specific definitions for __packed, __aligned and __section
which result in a _Pragma() usage.  I don't think this ever worked,
as you can't concatenate string literals in this way.  A warning
would have been produced, but until recently did not result in an
error condition so this was overlooked. Use __attribute__ instead as
this is supported by PCC.

Revision 1.88.2.6: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:18 2014 UTC (10 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88.2.5: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.2.5: +51 -13 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:21 2014 UTC (10 years, 10 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +45 -12 lines
sync with head

Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu Mar 13 20:36:01 2014 UTC (11 years ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +5 -4 lines
For compilers without __COUNTER__, make the ctassert name contain
__INCLUDE_LEVEL__ ## _ ## __LINE__.  It's not perfect, but at least it's
better than just __LINE__ since it avoids collisions between .c's and .h's.

Incidentally, why does half of the kernel call CTASSERT() and the
other half __CTASSERT()?

Revision 1.69.10.2: download - view: text, markup, annotated - select for diffs
Fri Feb 14 18:38:15 2014 UTC (11 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.69.10.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.10.1: +24 -1 lines
Change KASSERTMSG/KDASSERTMSG to use varadic arguments like HEAD.
panic -> vpanic, add panic wrapper to vpanic.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Wed Feb 5 01:59:58 2014 UTC (11 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +2 -2 lines
Add another set of parens

Revision 1.117: download - view: text, markup, annotated - select for diffs
Wed Feb 5 00:18:09 2014 UTC (11 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +2 -2 lines
mask the shift by __n with NBBY*sizeof(uintmax-t)-1
to suppress the following diagnostic from clang:
error: shift count >= width of type [-Werror,-Wshift-count-overflow]
    PAR_ATTR            = __BITS(63,56),// F=0 memory attributes
                          ^~~~~~~~~~~~~
src/sys/sys/cdefs.h:554:4: note: expanded from macro '__BITS'
        ((__BIT(MAX((__m), (__n)) + 1) - 1) ^ (__BIT(MIN((__m), (__n))) - 1))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/sys/sys/cdefs.h:550:73: note: expanded from macro '__BIT'
    (((uintmax_t)(__n) >= NBBY * sizeof(uintmax_t)) ? 0 : ((uintmax_t)1 << (uintmax_t)(__n)))
                                                                        ^  ~~~~~~~~~~~~~~~~

Revision 1.116: download - view: text, markup, annotated - select for diffs
Fri Oct 25 14:54:25 2013 UTC (11 years, 5 months ago) by apb
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +5 -25 lines
Now that these attributes are documented in attribute(3), shorten
the comments for __used, __unused, __diagused, and __debugused.
Also s/variable/item/ because the attributes may bve applied
to functions.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Fri Oct 25 08:51:55 2013 UTC (11 years, 5 months ago) by apb
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +38 -0 lines
Add __diagused and __debugused.  These are for marking variables that
are used only in diagnotic or debug code, but unused when NDEBUG is
defined, or DIAGNOSTIC is not defined, or DEBUG is not defined.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Fri Oct 25 08:47:30 2013 UTC (11 years, 5 months ago) by apb
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +10 -1 lines
Add comments explaining what __unused and __used are for.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed Oct 16 19:31:43 2013 UTC (11 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -1 lines
introduce __USE(variable) that uses a variable to squash unused variable
warnings.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Sun Sep 15 13:01:37 2013 UTC (11 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -15 lines
Remove __CT_LOCAL_PROLOGUE/EPILOGUE hack - instead just mark the typedef
as __unused. Duh!

Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Sep 14 13:46:30 2013 UTC (11 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +13 -1 lines
Define a prologue/epilogue for CTASSERTs using local variables (to avoid
warnings about decalarations of localy defined but unused types)

Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Sep 10 12:54:14 2013 UTC (11 years, 6 months ago) by gsutre
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +7 -1 lines
Unbreak vax build (which still uses gcc 4.1).  See PR lib/48131.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Thu Sep 5 21:00:15 2013 UTC (11 years, 6 months ago) by gsutre
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +5 -9 lines
Implement __negative_p without floating-point arithmetic, using
a solution proposed by jxh on Stack Overflow.  Fixes the second
half of PR lib/48131.

While there, simplify __type_fit_u by using the same logic
as in __type_fit_s.

ok christos@

Revision 1.108: download - view: text, markup, annotated - select for diffs
Thu Sep 5 09:03:13 2013 UTC (11 years, 6 months ago) by gsutre
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -2 lines
Check for overflow in __type_fit_s when casting to intmax_t.
Fixes the first half of PR lib/48131.

ok christos@

Revision 1.100.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:29 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.100.2.2: preferred, colored
Changes since revision 1.100.2.2: +6 -1 lines
resync from head

Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed May 29 19:02:30 2013 UTC (11 years, 9 months ago) by martin
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +6 -3 lines
While visibility "protected" is nominaly supported by gcc 4.0 and 4.1
it does not actually work - the compiler does not emmit ".protected"
asm statements for used references to protected symbols, which then
causes the linker to fail and/or produce unloadable libraries.
This recently happened to port vax by the locale changes.

Backporting a fix (ASM_OUTPUT_EXTERNAL in gcc target config) is not
feasible.

So: define __dso_protected only starting with gcc 4.2.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Apr 30 14:45:15 2013 UTC (11 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: khorben-n900
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -1 lines
Add protected visibility marker for things that we want to keep public
for historical ABI issues, but that are not allowed to be overriden.

Revision 1.100.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:11 2013 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.100.2.1: preferred, colored
Changes since revision 1.100.2.1: +4 -2 lines
resync with head

Revision 1.89.6.2.2.1: download - view: text, markup, annotated - select for diffs
Thu Feb 7 06:58:40 2013 UTC (12 years, 1 month ago) by matt
Branches: matt-nb6-plus
Diff to: previous 1.89.6.2: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.6.2: +3 -1 lines
Pull rev 1.104 from HEAD:
Don't define __BIT/__BITS if __ASSEMBLER__ is defined.
(since they use C syntax they won't work anyways).

Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue Jan 29 01:23:12 2013 UTC (12 years, 1 month ago) by gdt
Branches: MAIN
CVS tags: agc-symver-base, agc-symver
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -2 lines
Fix comment documenting __link_set_decl() macro.

The `__link_set_decl()` macro's replacement text includes a `*` after
`ptype`, so `ptype` is the pointed-at type (the type of a dereferenced
array entry), not the pointer type.

(This is a comment-only change.)

(From Richard Hansen of BBN.)

Revision 1.88.2.5: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:30 2013 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.88.2.4: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.4: +3 -1 lines
sync with head

Revision 1.104: download - view: text, markup, annotated - select for diffs
Wed Jan 2 17:02:13 2013 UTC (12 years, 2 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -1 lines
Don't define __BIT/__BITS if __ASSEMBLER__ is defined.
(since they use C syntax they won't work anyways).

Revision 1.100.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:51 2012 UTC (12 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +10 -1 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.88.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:56 2012 UTC (12 years, 4 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88.2.3: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.3: +17 -4 lines
sync with head

Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun Oct 28 17:06:40 2012 UTC (12 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +2 -2 lines
For GCC 4.1 and later, use the __alignof__ keyword.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Mon Oct 22 14:00:07 2012 UTC (12 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +6 -2 lines
define __alignof() in terms of __alignof__ if it is available.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Sun Oct 21 22:35:52 2012 UTC (12 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +6 -1 lines
Add an __alignof() macro.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Fri Aug 24 05:47:51 2012 UTC (12 years, 7 months ago) by dholland
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +2 -4 lines
use #elif rather than nesting #elses

Revision 1.89.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 24 15:44:07 2012 UTC (12 years, 9 months ago) by jdc
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base
Branch point for: matt-nb6-plus
Diff to: previous 1.89.6.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.6.1: +2 -2 lines
Pull up revisions:
  src/sys/sys/cdefs.h revisions 1.96,1.97
(requested by joerg in ticket #369).

Revision 1.99: download - view: text, markup, annotated - select for diffs
Sat Jun 2 21:27:51 2012 UTC (12 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +7 -1 lines
Add a __always_inline

Revision 1.89.4.3: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:39 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.89.4.2: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.4.2: +1 -1 lines
sync to latest -current.

Revision 1.88.2.3: download - view: text, markup, annotated - select for diffs
Wed May 23 10:08:17 2012 UTC (12 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88.2.2: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.2: +2 -2 lines
sync with head.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Mon Apr 30 20:41:33 2012 UTC (12 years, 10 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -2 lines
Fix a (obvious) typo

Revision 1.88.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:51 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88.2.1: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.1: +38 -3 lines
sync with head

Revision 1.89.4.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:50 2012 UTC (12 years, 11 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.89.4.1: preferred, colored; branchpoint 1.89: preferred, colored
Changes since revision 1.89.4.1: +35 -2 lines
sync to latest -current.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun Mar 18 16:30:54 2012 UTC (13 years ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +2 -2 lines
remove extra ;

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Mar 18 16:20:49 2012 UTC (13 years ago) by christos
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +2 -2 lines
add constcond

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Mar 17 16:48:35 2012 UTC (13 years ago) by christos
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3 lines
use __inline to fix nspr's configure issue

Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Mar 15 00:09:08 2012 UTC (13 years ago) by christos
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +12 -7 lines
- this file is still used from assembly. protect inlines against __ASSEMBLER__
- rename __zero -> __zeroll, __negative -> __negative_p

Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Mar 13 21:07:28 2012 UTC (13 years ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +29 -1 lines
Type macros providing min and max values for the given type, plus one that
returns if a value can be represented in a given type.

Revision 1.89.6.1: download - view: text, markup, annotated - select for diffs
Wed Feb 22 18:40:05 2012 UTC (13 years, 1 month ago) by riz
Branches: netbsd-6
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -2 lines
Pull up following revision(s) (requested by martin in ticket #16):
	sys/sys/cdefs.h: revision 1.90
PR 46040:
If the current compiler doesn't support C99, check if it is compatible
with GCC 2.92. In that case, use the protected __restricted__ form.
In any other case, default to removing __restricted.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Wed Feb 22 17:52:58 2012 UTC (13 years, 1 month ago) by martin
Branches: MAIN
CVS tags: jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +1 -4 lines
Backout previous - we do not need it anymore

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Feb 21 10:53:08 2012 UTC (13 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -1 lines
There are some places where C99 allows a restrict modifier (and posix
demands it), but C++ does not allow it. So add a C only version of
__restrict, which expands to nothing if compiling C++.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49347 for a discussion.

Revision 1.89.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:47 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -2 lines
merge to -current.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Fri Feb 17 18:58:51 2012 UTC (13 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: jmcneill-usbmp-base2
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -2 lines
PR 46040:
If the current compiler doesn't support C99, check if it is compatible
with GCC 2.92. In that case, use the protected __restricted__ form.
In any other case, default to removing __restricted.

Revision 1.88.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:31:51 2011 UTC (13 years, 4 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +7 -1 lines
sync with head

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat Nov 5 09:27:06 2011 UTC (13 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: netbsd-6, jmcneill-usbmp
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +7 -1 lines
Add __returns_twice for the attribute of the same name. This makes the
attribute explicit based on the functions GCC gives it too.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Oct 9 20:30:19 2011 UTC (13 years, 5 months ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +7 -1 lines
add __noclone for gcc 4.5.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue Aug 16 23:30:24 2011 UTC (13 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +9 -1 lines
Add __strict_weak_alias(), the type-safe alternative to __weak_alias().

Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:29 2011 UTC (13 years, 9 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +8 -1 lines
Catchup with rmind-uvmplock merge.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Jun 23 12:16:03 2011 UTC (13 years, 9 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -1 lines
Added __packed define to be able to use eMbedded Visual C++ for building hpcboot.exe.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu Jun 16 13:51:26 2011 UTC (13 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +8 -1 lines
Add an optional MD calling convention flag for use in libsa when space
optimisation is critical. Use this on i386 to switch to register passing
calling convention for the file system entry points and most assembler
call backs that have to preserve at least 3 registers.

Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:10:10 2011 UTC (13 years, 9 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +18 -1 lines
Sync with HEAD.

Revision 1.69.10.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 08:10:38 2011 UTC (13 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +12 -1 lines
Move CTASSERT to __CTASSERT in <sys/cdefs.h> (from current)
Add KDASSERTMSG (from current)

Revision 1.78.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:56:22 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +66 -11 lines
sync with head

Revision 1.81.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:51 2011 UTC (14 years ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +18 -1 lines
Sync with HEAD

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Feb 19 02:21:21 2011 UTC (14 years, 1 month ago) by matt
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, bouyer-quota2-nbase
Branch point for: cherry-xenmp
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +5 -1 lines
Make __CTASSERT use __COUNTER__ instead of __LINE__ if the cpp supports it.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Feb 19 02:01:46 2011 UTC (14 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +8 -1 lines
Add __CTASSERT(x)

Revision 1.69.14.1: download - view: text, markup, annotated - select for diffs
Fri Feb 18 21:12:17 2011 UTC (14 years, 1 month ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +7 -1 lines
Add __noprofile attribute and use it to prevent stubs from being profiled.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Fri Feb 18 21:06:12 2011 UTC (14 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +7 -1 lines
Add a __noprofile keyword to disable the profiling of a function.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Dec 25 22:30:52 2010 UTC (14 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: uebayasi-xip-base7, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +23 -19 lines
Rename __BEGIN_PUBLIC / __BEGIN_HIDDEN to __BEGIN_PUBLIC_DECLS /
__BEGIN_HIDDEN_DECLS and corresponding __END_* macros. Push the extern
"C" logic into __BEGIN_PUBLIC_DECLS / __BEGIN_HIDDEN_DECLS to make them
easier to use in header files used by C++.

Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:48:06 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +45 -11 lines
Sync with HEAD.

Revision 1.66.18.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:55:10 2010 UTC (14 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66.18.4: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.18.4: +45 -11 lines
sync with head.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Aug 7 21:03:18 2010 UTC (14 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +28 -11 lines
Add __BEGIN_PUBLIC / __END_PUBLIC, __BEGIN_HIDDEN / __END_HIDDEN and
__dso_public and __dso_hidden markers. Change __BEGIN_DECLS /
__END_DECLS to include __BEGIN_PUBLIC / __END_PUBLIC.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Jul 31 00:04:43 2010 UTC (14 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +18 -1 lines
Define a new __c99inline macro for compilers known to implement the C99
behavior.  This unbreaks GCC 4.4's libgfortran build with the old
signal.h logic, because GCC decided to put the body for the sigsetop
functions in multiple objects.

Revision 1.66.18.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:41 2010 UTC (15 years ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66.18.3: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.18.3: +6 -6 lines
sync with head

Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Oct 2 21:05:28 2009 UTC (15 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +6 -6 lines
lint knows __packed now.

Revision 1.66.18.3: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:48:32 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66.18.2: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.18.2: +30 -1 lines
sync with head.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Aug 8 21:23:15 2009 UTC (15 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +11 -1 lines
Create and use __CAST(type, value) in headers so that modern c++ with
-Wold-style-casts does not bitch.

Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:56 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.1: +20 -1 lines
Sync with HEAD.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Jul 20 17:46:04 2009 UTC (15 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: jymxensuspend-base
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +20 -1 lines
Add __constfunc and explain how it differs from __pure.

Revision 1.66.18.2: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:52 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66.18.1: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.18.1: +2 -2 lines
sync with head

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:23:03 2009 UTC (15 years, 10 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -4 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue May 12 13:41:44 2009 UTC (15 years, 10 months ago) by reinoud
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -2 lines
Fix _packed attribute for PCC. According to Ragge it should be _Pragma("packed
1") instead of _Pragma("packed").

With this fix userland programs needing _packed will now work.

Revision 1.66.18.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:34 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +33 -9 lines
sync with head.

Revision 1.69.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:52 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.69.2.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.2.1: +3 -3 lines
Sync with HEAD.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Apr 22 18:04:02 2009 UTC (15 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -2 lines
Cast the argument of the __BIT to an unsigned type, since it does not make
sense for it to be signed and gcc complains if it is.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Mar 26 22:16:44 2009 UTC (16 years ago) by gmcgarry
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -2 lines
Pass argument to __aligned() through __STRING() so that it is correctly expanded.  Now __aligned(CACHE_LINE_SIZE) works with pcc.

Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:29 2009 UTC (16 years, 2 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +19 -1 lines
Sync with HEAD.

Revision 1.66.14.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:40 2009 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.66.14.3: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.14.3: +18 -0 lines
Sync with HEAD.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Jan 14 19:41:55 2009 UTC (16 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -2 lines
As promised in the commit message, revert previous.  __RENAME() is
not required by rumpkernel.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jan 13 22:35:13 2009 UTC (16 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -2 lines
Allow __RENAME if _RUMPKERNEL
(although I'll probably revert this soon, but add it now to allow build)

Revision 1.68.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:35 2008 UTC (16 years, 3 months ago) by haad
Branches: haad-dm
Diff to: previous 1.68.2.1: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.2.1: +19 -1 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Dec 10 22:10:47 2008 UTC (16 years, 3 months ago) by alc
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +19 -1 lines
Add the __printflike(), __scanflike() and __format_arg() macros, from FreeBSD

They will be used soon by the Atheros HAL code, many other places can use them
to avoid GCC dependency.

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:18:09 2008 UTC (16 years, 5 months ago) by haad
Branches: haad-dm
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +8 -8 lines
Sync with HEAD.

Revision 1.66.14.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:41:04 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.66.14.2: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.14.2: +7 -7 lines
Sync with HEAD.

Revision 1.66.20.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:37:04 2008 UTC (16 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.66.20.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.20.1: +9 -9 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Aug 17 00:23:02 2008 UTC (16 years, 7 months ago) by gmcgarry
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, matt-nb5-pq3, matt-nb5-mips64
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +8 -8 lines
Add __packed and __aligned support for PCC.
Define away restrict for __lint__.

Revision 1.66.14.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:20 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.66.14.1: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.14.1: +1 -1 lines
Sync with HEAD.

Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 27 15:11:55 2008 UTC (16 years, 8 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +2 -2 lines
Sync with head.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Jun 27 01:24:52 2008 UTC (16 years, 9 months ago) by gmcgarry
Branches: MAIN
CVS tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -2 lines
pcc now supports __section().

Revision 1.66.20.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:32:02 2008 UTC (16 years, 9 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +7 -1 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.66.16.1: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:49 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +7 -1 lines
sync with head

Revision 1.66.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:32 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +7 -1 lines
Sync with HEAD.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat May 31 13:28:43 2008 UTC (16 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +7 -1 lines
Add a __noinline attribute. Suggested by christos@.

Revision 1.64.24.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:58:06 2008 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.64.24.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.24.1: +15 -9 lines
sync with HEAD

Revision 1.65.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:21:30 2007 UTC (17 years, 3 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +15 -9 lines
Sync with HEAD.

Revision 1.59.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:34:52 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.59.2.2: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.2.2: +15 -9 lines
sync with head

Revision 1.64.22.2: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:39:11 2007 UTC (17 years, 3 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.64.22.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.22.1: +15 -9 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Nov 26 14:52:34 2007 UTC (17 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa, mjf-devfs2
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +15 -9 lines
Separate handling of __attribute__, __dead and __pure:
- define away __attribute__ if not running GCC or running GCC < 2.0.
- use __attribute__((__return__)) for GCC >= 2.5, keep other cases.
- use __attribute__((__pure__)) for GCC >= 29.6, keep other cases.

Revision 1.64.24.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:34:43 2007 UTC (17 years, 4 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -4 lines
sync with HEAD

Revision 1.59.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:27 2007 UTC (17 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.59.2.1: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.2.1: +8 -4 lines
sync with head.

Revision 1.64.8.1: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:45:06 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +8 -4 lines
Sync with head.

Revision 1.64.22.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:29:26 2007 UTC (17 years, 5 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -4 lines
Sync with HEAD.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Sep 15 14:24:27 2007 UTC (17 years, 6 months ago) by ragge
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -4 lines
Add basic defines to be able to use pcc as compiler (renaming etc).

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:55 2006 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +29 -2 lines
sync with head.

Revision 1.61.4.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:28 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +7 -5 lines
sync with head.

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:46 2006 UTC (18 years, 4 months ago) by ad
Branches: newlock2
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +7 -5 lines
Sync with head.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Nov 13 05:44:37 2006 UTC (18 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, matt-armv6, jmcneill-pm
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -3 lines
Cosmetic: join lines.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Nov 13 03:35:59 2006 UTC (18 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +6 -3 lines
Stop using typeof() in the bit-twiddling macros, per yamt@'s
suggestion.  This change requires that I use the __PRIuBITS format
string in atw and rtw, so do that.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Oct 27 22:10:56 2006 UTC (18 years, 5 months ago) by uwe
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -2 lines
Define __used as __unused for gcc's that don't grok __attribute__((__used__))

Those older versions of gcc don't eliminate unused functions/vars
anyway, so it's enough just to suppress the warning.

Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:59:41 2006 UTC (18 years, 6 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +26 -1 lines
sync with head

Revision 1.60.8.1: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:56 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +26 -1 lines
sync with head.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Aug 31 19:24:38 2006 UTC (18 years, 6 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +26 -1 lines
Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.

Revision 1.58.8.1: download - view: text, markup, annotated - select for diffs
Tue May 9 12:53:44 2006 UTC (18 years, 10 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +10 -1 lines
Pull up following revision(s) (requested by bouyer in ticket #1304):
	sys/sys/cdefs.h: revision 1.59
Add an __UNVOLATILE() macro.  It should be used with caution, but
it is required to use this whenever you want to pass a pointer to
volatile data e.g. to memset().  This allows us to still compile
files doing such things with -Wcast-qual and get the rest of the
code checked under that option.
Based on suggestions from tron and christos.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:25:20 2005 UTC (19 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -1 lines
merge ktrace-lwp.

Revision 1.48.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:12:12 2005 UTC (19 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.5: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.5: +10 -1 lines
Sync with HEAD. Here we go again...

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Jun 2 14:31:38 2005 UTC (19 years, 9 months ago) by he
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +10 -1 lines
Add an __UNVOLATILE() macro.  It should be used with caution, but
it is required to use this whenever you want to pass a pointer to
volatile data e.g. to memset().  This allows us to still compile
files doing such things with -Wcast-qual and get the rest of the
code checked under that option.

Based on suggestions from tron and christos.

Revision 1.51.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 1 14:20:05 2005 UTC (19 years, 9 months ago) by riz
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +18 -1 lines
Pull up revisions 1.52-1.58 (requested by christos in ticket #1967):

1.52:
define a __used attribute (empty for gcc&lt;2.7)

1.53:
The __used__ attribute first appeared in gcc 3.1, not in 2.7, according
to the gcc expertise.  Fixes build problem for the vax port, which still
uses gcc 2.95.3.

1.54:
add __DECONST()

1.55:
DECONST-&gt;UNCONST

1.56:
a little safer impl of __UNCONST, using __typeof__ if __GNUC__.

1.57:
__UNCONST: add parens around a macro argument.

1.58:
kill gcc specific version of __UNCONST. Does not work to unconst
const char *foo[];

Revision 1.48.2.5: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:33:17 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.4: preferred, colored
Changes since revision 1.48.2.4: +1 -5 lines
Sync with HEAD.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Dec 11 05:59:00 2004 UTC (20 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, kent-audio2-base, kent-audio2, kent-audio1-beforemerge
Branch point for: netbsd-3
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +1 -5 lines
kill gcc specific version of __UNCONST. Does not work to unconst
const char *foo[];

Revision 1.48.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 24 10:53:43 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.3: preferred, colored
Changes since revision 1.48.2.3: +5 -1 lines
Sync with HEAD.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Sep 23 22:13:40 2004 UTC (20 years, 6 months ago) by yamt
Branches: MAIN
CVS tags: kent-audio1-base, kent-audio1
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2 lines
__UNCONST: add parens around a macro argument.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Sep 23 17:40:16 2004 UTC (20 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -1 lines
a little safer impl of __UNCONST, using __typeof__ if __GNUC__.

Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:38:45 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.2: preferred, colored
Changes since revision 1.48.2.2: +1 -1 lines
Fix the sync with head I botched.

Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:56:30 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.1: preferred, colored
Changes since revision 1.48.2.1: +0 -0 lines
Sync with HEAD.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:56:25 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +31 -7 lines
Sync with HEAD

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Jul 1 19:05:12 2004 UTC (20 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
DECONST->UNCONST

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Jun 30 13:57:32 2004 UTC (20 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +12 -1 lines
add __DECONST()

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Jun 11 07:11:00 2004 UTC (20 years, 9 months ago) by he
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +6 -2 lines
The __used__ attribute first appeared in gcc 3.1, not in 2.7, according
to the gcc expertise.  Fixes build problem for the vax port, which still
uses gcc 2.95.3.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Jun 7 18:36:24 2004 UTC (20 years, 9 months ago) by drochner
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -1 lines
define a __used attribute (empty for gcc<2.7)

Revision 1.42.10.2: download - view: text, markup, annotated - select for diffs
Tue Apr 20 06:21:17 2004 UTC (20 years, 11 months ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.42.10.1: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.10.1: +1 -1 lines
Pull up revision 1.50 (requested by kleink in ticket #1677):
trim leading whitespace from an #error, shuts up warning from
makedepend.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Jan 7 19:38:10 2004 UTC (21 years, 2 months ago) by martin
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +12 -1 lines
Add a __insn_barrier() macro to stop the optimizer from moving code
accross the barrier or assume liveness of register values.
Suggested by Jason Thorpe and Steve Woodford.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Oct 29 01:11:16 2003 UTC (21 years, 4 months ago) by grant
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -2 lines
trim leading whitespace from an #error, shuts up warning from
makedepend.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:34:00 2003 UTC (21 years, 7 months ago) by agc
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -6 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Feb 5 00:02:39 2003 UTC (22 years, 1 month ago) by perry
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -2 lines
"Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jan 18 18:05:56 2003 UTC (22 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -5 lines
get rid of the != 0 in the non-gcc aware case.

Revision 1.42.10.1: download - view: text, markup, annotated - select for diffs
Wed Jan 1 17:20:07 2003 UTC (22 years, 2 months ago) by tron
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
Pull up revision 1.46 (requested by kristerw in ticket #1052):
It is not valid C++ to have a semicolon after
   extern "C" {}
so remove it from __END_DECLS.

Revision 1.40.2.5: download - view: text, markup, annotated - select for diffs
Sun Dec 29 21:03:39 2002 UTC (22 years, 2 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.40.2.4: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.4: +2 -2 lines
Sync with HEAD.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Dec 29 19:21:34 2002 UTC (22 years, 2 months ago) by kristerw
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
It is not valid C++ to have a semicolon after
   extern "C" {}
so remove it from __END_DECLS.

Revision 1.40.2.4: download - view: text, markup, annotated - select for diffs
Fri Nov 1 23:04:38 2002 UTC (22 years, 4 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.40.2.3: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.3: +50 -1 lines
Sync with HEAD.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Nov 1 22:58:44 2002 UTC (22 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +50 -1 lines
Add support for "link sets", which are arrays of pointers to objects
gathered together in named sections by the linker.

Revision 1.40.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:45:39 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.40.2.2: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.2: +21 -1 lines
Catch up to -current.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Oct 10 17:02:23 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -2 lines
Deal with the fact that __GNUC__ is not defined when preprocessing
assembler (Grr).

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Oct 10 01:41:59 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +19 -1 lines
Add __unused, __packed, __aligned(), and __section() macros.  Inspired
by FreeBSD.

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:04:38 2002 UTC (23 years, 2 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +15 -1 lines
Sync kqueue branch with -current.

Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:34:39 2002 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.40.2.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.1: +15 -1 lines
Catch up to -current.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Nov 23 10:19:47 2001 UTC (23 years, 4 months ago) by enami
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, kqueue-base, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +15 -1 lines
Provide compat definition of __func__ for pre-C99 compiler.

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:09:44 2001 UTC (23 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -3 lines
Catch up to -current.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun May 6 14:04:58 2001 UTC (23 years, 10 months ago) by kleink
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -3 lines
Add a __static_cast() macro to help standard headers when used in C++
compile environments using G++'s -Wold-style-cast warning;
suggested by Dave Sainty in PR lib/11766.

Revision 1.29.8.2: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:58 2001 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29.8.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.8.1: +4 -2 lines
Sync with HEAD

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Dec 27 10:05:22 2000 UTC (24 years, 3 months ago) by kleink
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -2 lines
Make __restrict actually DTRT for non-C99 GCC >= 2.92.

Revision 1.29.8.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:11:26 2000 UTC (24 years, 4 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +77 -15 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Sep 27 10:44:12 2000 UTC (24 years, 6 months ago) by kleink
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +11 -1 lines
Provide a stub for restrict.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Aug 9 03:23:10 2000 UTC (24 years, 7 months ago) by tv
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -7 lines
Remove the "kprintf" gcc attribute permanently.  Use standard "printf"
format checking.  We are now at 1.5E, as the removal of %b will cause
third-party LKMs to break.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Aug 7 16:35:33 2000 UTC (24 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2 lines
#ifdef __STDC__ -> #if __STDC__

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat May 27 12:22:24 2000 UTC (24 years, 10 months ago) by kleink
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
Spelling nit.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat May 20 14:26:01 2000 UTC (24 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
Don't define __inline as "/* delete GCC keyword */" if __lint__ is
defined - lint(1) already knows about the __inline modifier.

This stops lint from generating "static function ... unused" warnings
for static __inline functions.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon May 8 22:41:38 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +7 -1 lines
Add an additional usage note about using __predict_*() only in hot spots,
as suggested by Chris Demetriou.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon May 8 18:36:00 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +31 -1 lines
Add __predict_true() and __predict_false() macros to access the
explicit branch prediction available on GCC 2.96 and later.  See
the comment regarding usage.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri May 5 00:19:04 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +22 -4 lines
Add a new macro, __GNUC_PREREQ__(major, minor) which tests to see if
the compiler is GCC and at least the version specified by <major,minor>,
and use it in a few appropriate places in this file.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Feb 3 02:20:13 2000 UTC (25 years, 1 month ago) by cgd
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -1 lines
instead of just going on as normal if __RENAME() is used in kernel
(_KERNEL) or standalone (_STANDALONE) files, replace it with some
text that'll cause an error.  __RENAME() should never be used in
the kernel (there's no need, at least, with the current way of doing
things), and is downright annoying in standalone code.  (In a standalone
build environment, there may be no sane way to do symbol renaming,
which means that even just faking it and defining it to emptyness
would cause problems if it were actually needed.)

Revision 1.29.14.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:36:33 1999 UTC (25 years, 3 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +3 -3 lines
Pull up to last week's -current.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Dec 13 08:25:16 1999 UTC (25 years, 3 months ago) by itohy
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Fix symbol renaming on  cc -traditional.
Fix PRs bin/5167 and lib/6310.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Mar 20 01:39:22 1999 UTC (26 years ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2
Branch point for: wrstuden-devbsize, thorpej_scsipi
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +22 -23 lines
Factor out a.out vs. ELF cdefs from the various <machine/cdefs.h> files,
and place them in cdefs_{aout,elf}.h as appropriate.  Rearrange cdefs.h
to account for this.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Dec 20 17:46:46 1998 UTC (26 years, 3 months ago) by kleink
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +9 -1 lines
Delete __extension__ on non-GCC or GCC1.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jul 27 09:09:03 1998 UTC (26 years, 8 months ago) by mycroft
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +10 -1 lines
Make many of the new consts dependent on a new `__AUDIT__' flag, to avoid
breaking third party software.  *sigh*

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri May 22 00:19:42 1998 UTC (26 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
___CONCAT was Broken.  (The new version may not work exactly as people
would expect, but at least cpp doesn't choke on it.)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:24:12 1998 UTC (27 years ago) by fvdl
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Merge with Lite2 + local changes

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:13:57 1998 UTC (27 years ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +3 -2 lines
Import 4.4BSD-Lite2

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:11:00 1998 UTC (27 years ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-1, date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +54 -10 lines
Import 4.4BSD-Lite for reference

Revision 1.18.8.4: download - view: text, markup, annotated - select for diffs
Wed Nov 5 00:52:01 1997 UTC (27 years, 4 months ago) by thorpej
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Diff to: previous 1.18.8.3: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.8.3: +8 -4 lines
Pull up from trunk:

Define ___CONCAT() and ___STRING() before including <machine/cdefs.h>
so that the appropriate CPP evil takes place.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Nov 5 00:50:29 1997 UTC (27 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +8 -4 lines
Define ___CONCAT() and ___STRING() before including <machine/cdefs.h>
so that the appropriate CPP evil takes place.

Revision 1.18.8.3: download - view: text, markup, annotated - select for diffs
Tue Nov 4 23:23:51 1997 UTC (27 years, 4 months ago) by thorpej
Branches: netbsd-1-3
Diff to: previous 1.18.8.2: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.8.2: +6 -3 lines
Sync w/ trunk.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Nov 4 23:22:40 1997 UTC (27 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -3 lines
- define ___STRING() and ___CONCAT() macros which invoke
  their double-underscore counterparts (cpp evil).
- define __RENAME() to do what lint expects, so that
  renamed functions are handled properly.

From Chris Demetriou <cgd@pa.dec.com>.

Revision 1.18.8.2: download - view: text, markup, annotated - select for diffs
Fri Oct 24 21:03:23 1997 UTC (27 years, 5 months ago) by mellon
Branches: netbsd-1-3
Diff to: previous 1.18.8.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.8.1: +5 -1 lines
Pull rev 1.22 up from trunk

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Oct 24 15:32:48 1997 UTC (27 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
lint -> __lint

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Oct 23 22:02:58 1997 UTC (27 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -1 lines
Define __RENAME as a noop if lint is defined.
[probably needs pull-up]

Revision 1.18.8.1: download - view: text, markup, annotated - select for diffs
Wed Oct 22 06:16:12 1997 UTC (27 years, 5 months ago) by thorpej
Branches: netbsd-1-3
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -1 lines
Pull up from trunk: Implement __RENAME() in <machine/cdefs.h>

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Oct 22 05:20:32 1997 UTC (27 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -9 lines
Implement __RENAME() in <machine/cdefs.h>

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Oct 22 00:51:45 1997 UTC (27 years, 5 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +13 -1 lines
New hacks to make libc work painlessly without bumping the major number:
use type func(arg1s) asm("emitted_name") gcc mechanism.
Suggested by Bill Sommerfeld.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jun 18 19:09:50 1997 UTC (27 years, 9 months ago) by christos
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Branch point for: netbsd-1-3
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +12 -1 lines
Add __IDSTRING, __RCSID, and __COPYRIGHT macros.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jan 22 07:09:07 1997 UTC (28 years, 2 months ago) by mikel
Branches: MAIN
CVS tags: mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -4 lines
add multiple inclusion protection

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Apr 3 20:46:39 1996 UTC (28 years, 11 months ago) by christos
Branches: MAIN
CVS tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -1 lines
Change kprintf attribute to be conditional on the pre-processor define
__KPRINTF_ATTRIBUTE__ so that our kernel compiles cleanly with versions
of gcc that do not support the kprintf format attribute.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jan 19 01:54:52 1995 UTC (30 years, 2 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -19 lines
Machine dependant stuff has been moved to <machine/cdefs.h>.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Oct 7 14:28:26 1994 UTC (30 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
Fix typos.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Oct 5 17:26:54 1994 UTC (30 years, 5 months ago) by jtc
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +11 -10 lines
Added __weak_reference() macro.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 22 03:38:38 1994 UTC (30 years, 8 months ago) by cgd
Branches: netbsd-1-0
CVS tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +18 -1 lines
from trunk

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jul 22 01:44:47 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -2 lines
one too many #endif's.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jul 20 22:12:50 1994 UTC (30 years, 8 months ago) by jtc
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +19 -1 lines
Added __warn_references macro, which is used to instruct the linker to
print a warning message if a given symbol is referenced.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:43:40 1994 UTC (30 years, 9 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -1 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Jun 27 19:30:43 1994 UTC (30 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
new standard, minimally intrusive ID format

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 24 00:52:57 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +54 -41 lines
update from Lite, with a few fixes that have been punted back.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Dec 12 07:47:04 1993 UTC (31 years, 3 months ago) by cgd
Branches: MAIN
CVS tags: wnvm, nvm-base, nvm
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -3 lines
handle __attribute__ correctly when using gcc -traditional.
suggested, but different than what provided by Mark Weaver.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Dec 3 20:39:35 1993 UTC (31 years, 3 months ago) by jtc
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -1 lines
Disable GCC's __attribute__ extension when we're not using GCC.

Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Fri Sep 24 08:57:44 1993 UTC (31 years, 6 months ago) by mycroft
Branches: magnum
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +3 -1 lines
Changes from trunk.
conf.h, disk.h, disklabel.h: strategy functions return void.  dump functions
take dev, blkno, maddr, and length.
dkstat.h: Add CP_INTR.
mount.h: Make fsid_t a structure with two longs inside, now that quad is gone.
proc.h: Replace p_[us]time with p_[usi]ticks.
systm.h: Don't declare spl*() or psuedo-device attach functions.  Declare
endtsleep().  Change declaration of panic().
types.h: Replace u_quad and quad with u_quad_t and quad_t, which use the GCC
`long long' type.  Modify qaddr_t accordingly.
vnode.h: Change va_size and va_bytes to u_quad_ts.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Sep 23 23:44:09 1993 UTC (31 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -1 lines
if __P is already defined, undef it.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed May 26 14:52:56 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base
Branch point for: magnum
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +17 -1 lines
add "dead" and "pure" declarations, as provided by new db code

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu May 20 16:21:52 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
add rcs ids as necessary, and also clean up headers

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Apr 19 01:22:22 1993 UTC (31 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3 lines
Add consistent multiple-inclusion protection.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>