| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Submitted by: Pawel Worach <pawel.worach@gmail.com>
Notes:
svn path=/head/; revision=189365
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189361
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
wcscasecmp(), and wcsncasecmp().
- Make some previously non-standard extensions visible
if POSIX_VISIBLE >= 200809.
- Use restrict qualifiers in stpcpy().
- Declare off_t and size_t in stdio.h.
- Bump __FreeBSD_version in case the new symbols (particularly
getline()) cause issues with ports.
Reviewed by: standards@
Notes:
svn path=/head/; revision=189136
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that the annotated function returns a pointer that doesn't alias any
extant pointer. This results in a 50%+ speedup in microbenchmarks such
as the following:
char *cp = malloc(1), *buf = malloc(BUF);
for (i = 0; i < BUF; i++) buf[i] = *cp;
In real programs, your mileage will vary. Note that gcc already
performs this optimization automatically for any function called
`malloc', `calloc', `strdup', or `strndup' unless -fno-builtins is
used.
Notes:
svn path=/head/; revision=187961
|
| |
|
|
|
|
|
| |
on Microsoft and GNU systems.
Notes:
svn path=/head/; revision=149011
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133564
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132565
|
| |
|
|
|
|
|
|
|
|
| |
convenient when the source string isn't null-terminated.
Implement the other conversion functions (mbstowcs(), mbsrtowcs(), wcstombs(),
wcsrtombs()) in terms of these new functions.
Notes:
svn path=/head/; revision=132497
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132242
|
| |
|
|
|
|
|
| |
Noticed by: stefanf
Notes:
svn path=/head/; revision=130185
|
| |
|
|
|
|
|
|
| |
putwchar(), but this time avoid redundantly declaring __stdinp and
__stdoutp when source files include both <stdio.h> and <wchar.h>.
Notes:
svn path=/head/; revision=129774
|
| |
|
|
| |
Notes:
svn path=/head/; revision=129713
|
| |
|
|
|
|
|
|
|
| |
version of itself.
Noticed by: stefanf
Notes:
svn path=/head/; revision=129710
|
| |
|
|
|
|
|
| |
putwchar() to reduce function call overhead.
Notes:
svn path=/head/; revision=129705
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
an int constant to a long constant. This change improves consistency
in the following two ways:
1. The first 8 arguments are always passed in registers on ia64, which
by virtue of the generated code implicitly widens ints to longs and
allows the use of an 32-bit integral type for 64-bit arguments.
Subsequent arguments are passed onto the memory stack, which does
not exhibit the same behaviour and consequently do not allow this.
In practice this means that variadic functions taking pointers
and given NULL (without cast) work as long as the NULL is passed
in one of the first 8 arguments. A SIGSEGV is more likely the
result if such would be done for stack-based arguments. This is
due to the fact that the upper 4 bytes remain undefined.
2. All 64-bit platforms that FreeBSD supports, with the obvious
exception of ia64, allow 32-bit integral types (specifically NULL)
when 64-bit pointers are expected in variadic functions by way of
how the compiler generates code. As such, code that works correctly
(whether rightfully so or not) on any platform other than ia64, may
fail on ia64.
To more easily allow tweaking of the definition of NULL, this commit
removes the 12 definitions in the various headers and puts it in a
new header that can be included whenever NULL is to be made visible.
This commit fixes GNOME, emacs, xemacs and a whole bunch of ports
that I don't particularly care about at this time...
Notes:
svn path=/head/; revision=123257
|
| |
|
|
| |
Notes:
svn path=/head/; revision=114185
|
| |
|
|
| |
Notes:
svn path=/head/; revision=112177
|
| |
|
|
|
|
|
|
| |
did not exist in ISO C Amd. 1. Add #ifdef __LONG_LONG_SUPPORTED and lint
comments around wcstoll() and wcstoull().
Notes:
svn path=/head/; revision=106035
|
| |
|
|
|
|
|
|
| |
locale-sensitive collation only in single-byte locales, and just does
binary comparison for the others with extended character sets.
Notes:
svn path=/head/; revision=104443
|
| |
|
|
|
|
|
|
|
| |
Although there was nothing wrong with getwc() and putwc(), getwchar()
and putwchar() assumed that <stdio.h> had been included before <wchar.h>,
which is not allowed by the standard.
Notes:
svn path=/head/; revision=104080
|
| |
|
|
|
|
|
|
| |
vfwscanf(), vswscanf(), vwscanf(). As the name suggests, these are wide-
character versions of the scanf() family of functions.
Notes:
svn path=/head/; revision=103856
|
| |
|
|
|
|
|
|
| |
Restrict qualifiers were added to the existing prototypes in <inttypes.h>
and the typedef for wchar_t was removed.
Notes:
svn path=/head/; revision=103793
|
| |
|
|
|
|
|
| |
formatted wide-character output.
Notes:
svn path=/head/; revision=103739
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103737
|
| |
|
|
|
|
|
| |
that strtod() does not (alternate digit characters, etc. are not handled).
Notes:
svn path=/head/; revision=103339
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103269
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103246
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103218
|
| |
|
|
|
|
|
|
|
| |
I/O functions to avoid having to bring in pollution from <stdio.h>.
Suggested by: bde
Notes:
svn path=/head/; revision=103177
|
| |
|
|
|
|
|
|
| |
XSI mistake of making everything from <wctype.h> visible here.
If we did choose to support it, we could just #include <wctype.h>.
Notes:
svn path=/head/; revision=103118
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103097
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103067
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103058
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103012
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of gratuitous differences between
architectures.
o Change all headers to make use of this. This mainly involves
changing:
#ifdef _BSD_FOO_T_
typedef _BSD_FOO_T_ foo_t;
#undef _BSD_FOO_T_
#endif
to:
#ifndef _FOO_T_DECLARED
typedef __foo_t foo_t;
#define _FOO_T_DECLARED
#endif
Concept by: bde
Reviewed by: jake, obrien
Notes:
svn path=/head/; revision=102227
|
| |
|
|
| |
Notes:
svn path=/head/; revision=102198
|
| |
|
|
| |
Notes:
svn path=/head/; revision=102142
|
| |
|
|
| |
Notes:
svn path=/head/; revision=102140
|
| |
|
|
|
|
|
|
| |
manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(),
wcrtomb(), wcsrtombs().
Notes:
svn path=/head/; revision=102050
|
| |
|
|
|
|
|
| |
putwc(), fputwc(), putwchar(), ungetwc(), fwide().
Notes:
svn path=/head/; revision=101776
|
| |
|
|
| |
Notes:
svn path=/head/; revision=101411
|
| |
|
|
|
|
|
|
|
| |
place tabs after #define and typedef. Sort typedefs by name.
Requested by: mike
Notes:
svn path=/head/; revision=101409
|
| |
|
|
| |
Notes:
svn path=/head/; revision=101314
|
| |
|
|
| |
Notes:
svn path=/head/; revision=101267
|
| |
|
|
| |
Notes:
svn path=/head/; revision=101253
|
| |
|
|
|
|
|
| |
PR: 31864, 40084
Notes:
svn path=/head/; revision=99640
|
| |
|
|
|
|
|
|
|
| |
# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.
Notes:
svn path=/head/; revision=93032
|
| |
|
|
| |
Notes:
svn path=/head/; revision=79555
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- add #define NULL 0 instead of sys/null.h.
- enable locale-insensitive functions:
wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c
wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c
wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
- disable some locale-sensitive functions defined in wchar.h temporarily:
mbrlen mbrtowc mbsinit mbsrtowcs wcrtomb wcsrtombs wcwidth wcswidth
- disable all functions defined in wctype.h temporarily:
is* tow*
Notes:
svn path=/head/; revision=76636
|
|
|
Obtained from: NetBSD and Citrus XPG4DL
Notes:
svn path=/head/; revision=76633
|