|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
| #
4025b5b5 |
| 01-Nov-2023 |
Warner Losh <[email protected]> |
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Kee
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
(cherry picked from commit 559a218c9b257775fb249b67945fe4a05b7a6b9f)
show more ...
|
| #
1d386b48 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
| #
8a16b7a1 |
| 20-Nov-2017 |
Pedro F. Giffuni <[email protected]> |
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier f
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
fda0a14f |
| 29-Jun-2017 |
Konstantin Belousov <[email protected]> |
Make stdio deferred cancel-safe.
If used with fopen(3)/fdopen(3)-ed FILEs, stdio accurately uses non-cancellable internal versions of the functions, i.e. it seems to be fine with regard to cancellat
Make stdio deferred cancel-safe.
If used with fopen(3)/fdopen(3)-ed FILEs, stdio accurately uses non-cancellable internal versions of the functions, i.e. it seems to be fine with regard to cancellation. But if the funopen(3) and f{r,w}open(3) functions were used to open the FILE, and corresponding user functions create cancellation points (they typically have no other choice), then stdio code at least leaks FILE' lock.
The change installs cleanup handler which unlocks FILE. Some minimal restructuring of the code was required to make it use common return place to satisfy hand-rolled pthread_cleanup_pop() requirements.
Noted by: eugen Reviewed by: eugen, vangyzen Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D11246
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0 |
|
| #
8b63538d |
| 28-Oct-2015 |
Andrey A. Chernov <[email protected]> |
Add _flags2 per jhb@ suggestion since no room left in _flags. Rewrite O_APPEND flag checking using new __S2OAP flag.
MFC after: 3 weeks
|
| #
b956b176 |
| 24-Oct-2015 |
Andrey A. Chernov <[email protected]> |
Since no room left in the _flags, reuse __SALC for O_APPEND. It helps to remove _fcntl() call from _ftello() and optimize seek position calculation in _swrite().
MFC after: 3 weeks
|
|
Revision tags: release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0 |
|
| #
5a6307cf |
| 23-Apr-2013 |
Ed Maste <[email protected]> |
Convert libc/stdio from K&R to ANSI C
And add '__restrict' where it appeared in the header prototypes
|
| #
1d8053c5 |
| 23-Apr-2013 |
Ed Maste <[email protected]> |
Renumber clauses to reduce diffs to other versions
NetBSD, OpenBSD, and Android's Bionic all number the clauses 1 through 3, so follow suit to make comparison easier.
Acked-by: imp@
|
|
Revision tags: release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
| #
143b9461 |
| 05-May-2008 |
John Baldwin <[email protected]> |
Retire the __fgetcookie(), __fgetpendout(), and __fsetfileno() accessors as we aren't hiding FILE's internals anymore.
|
| #
0aca787a |
| 03-May-2008 |
Marcel Moolenaar <[email protected]> |
Unbreak build: gnu sort has been configured to grope inside struct __sFILE. It's opaque now, so add a function that returns the pending output bytes.
Pointy hat: jhb
|
| #
430f2c87 |
| 03-May-2008 |
Marcel Moolenaar <[email protected]> |
Unbreak build: libftpio gropes inside struct __sFILE. Implement accessor functions for its benefit now thaat FILE is opaque. I'm sure there's a better way. I leave that for people to work on in a src
Unbreak build: libftpio gropes inside struct __sFILE. Implement accessor functions for its benefit now thaat FILE is opaque. I'm sure there's a better way. I leave that for people to work on in a src tree that isn't broken.
Pointy hat: jhb
show more ...
|
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0 |
|
| #
c879ae35 |
| 09-Jan-2007 |
Warner Losh <[email protected]> |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0 |
|
| #
0b4b7b65 |
| 07-Jan-2003 |
Tim J. Robbins <[email protected]> |
#include <stdlib.h> for free()'s prototype.
|
|
Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
| #
333fc21e |
| 22-Mar-2002 |
David E. O'Brien <[email protected]> |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
| #
8fb3f3f6 |
| 21-Mar-2002 |
David E. O'Brien <[email protected]> |
Remove 'register' keyword.
|
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
| #
e41febc8 |
| 24-Oct-2001 |
Andrey A. Chernov <[email protected]> |
Help to recover from bad seek (i.e. negative or too big) happens beyond our pre-check control. Do the same way as refill.c does when it set __SERR, i.e. clear read and ungetc buffers. Clear EOF flag
Help to recover from bad seek (i.e. negative or too big) happens beyond our pre-check control. Do the same way as refill.c does when it set __SERR, i.e. clear read and ungetc buffers. Clear EOF flag too.
show more ...
|
| #
3f498bf7 |
| 23-Oct-2001 |
Andrey A. Chernov <[email protected]> |
Back out read buffer invalidating via __SMOD.
It was correct, but not needed because internal buffer cleared on each seek outside of it.
|
| #
751fc779 |
| 23-Oct-2001 |
Andrey A. Chernov <[email protected]> |
Disallow fseek() optimization in internal read buffer, if pointer is moved by seek. It means that beginning of read buffer becomes not the same as current file position.
|
| #
1b89a296 |
| 07-Sep-2001 |
Andrey A. Chernov <[email protected]> |
1) If __SAPP stream is not seekable, remove __SAPP flag on first call instead of repeating unsuccessful lseek call on each write (original stdio bug).
2) Save errno accross _sseek call in _swrite to
1) If __SAPP stream is not seekable, remove __SAPP flag on first call instead of repeating unsuccessful lseek call on each write (original stdio bug).
2) Save errno accross _sseek call in _swrite to not touch it in case write success (original stdio bug).
3) Add _sseek error checking back, but only for __SOPT mode now.
show more ...
|
| #
ac206f37 |
| 07-Sep-2001 |
Andrey A. Chernov <[email protected]> |
For now just back out seek error checking in __SAPP case, it cause problems with non-seekable streams. Now here is what here was originally, but it is ugly, producing unneded seek syscall on each no
For now just back out seek error checking in __SAPP case, it cause problems with non-seekable streams. Now here is what here was originally, but it is ugly, producing unneded seek syscall on each non-seekable stream write. I'll think about proper solution later.
show more ...
|
| #
5e00917d |
| 03-Sep-2001 |
Andrey A. Chernov <[email protected]> |
Re-arrange my funopen(3) fix to minimize differences with original stdio code, no functional changes.
Add fp->_offset optimization in _SAPP+_SOPT case
|
| #
924888f9 |
| 02-Sep-2001 |
Andrey A. Chernov <[email protected]> |
Move all stdio internal flags processing and setting out of __sread(), __swrite() and __sseek() to higher level. According to funopen(3) they all are just wrappers to something like standard read(2),
Move all stdio internal flags processing and setting out of __sread(), __swrite() and __sseek() to higher level. According to funopen(3) they all are just wrappers to something like standard read(2), write(2) and lseek(2), i.e. must not touch stdio internals because they are replaceable with any other functions knows nothing about stdio internals. See example of funopen(3) usage in sendmail sources f.e.
NOTE: this is original stdio bug, not result of my range checkin added.
show more ...
|
| #
6946977c |
| 01-Sep-2001 |
Andrey A. Chernov <[email protected]> |
If lseek to wrong value sucessfully happens despite all pre-checks, set __SERR to indicate that stream becomes inconsistent.
|
| #
ca934ebc |
| 31-Aug-2001 |
Andrey A. Chernov <[email protected]> |
Detect fp->_offset overflow on read Use errno to catch negative seek with -1 offset
|
| #
4a9f1ee4 |
| 17-Aug-2001 |
Andrey A. Chernov <[email protected]> |
Remove extra check, already done in upper level caller, i.e. in _fseeko()
|