#
1bcc0142 |
| 17-Jan-2018 |
kamil <kamil@NetBSD.org> |
Revert to commits as they broke few rump tests
"Include namespace.h in a few of libc source files [...] This change finishes elimination of usage of the global name of the following symbols:
Revert to commits as they broke few rump tests
"Include namespace.h in a few of libc source files [...] This change finishes elimination of usage of the global name of the following symbols: - close -> _close - execve -> _execve - fcntl -> _fcntl - setcontext -> _setcontext - wait6 -> _wait6 - write -> _write - writev -> _writev"
"Register more syscalls in namespace.h (of libc)
Add weak symbols for: - fcntl - close - execve - setcontext - wait6 - write - writev"
These changes broke:
fs/nfs/t_rquotad:get_nfs_be_1_both fs/nfs/t_rquotad:get_nfs_be_1_group fs/nfs/t_rquotad:get_nfs_be_1_user fs/nfs/t_rquotad:get_nfs_le_1_both fs/nfs/t_rquotad:get_nfs_le_1_group fs/nfs/t_rquotad:get_nfs_le_1_user lib/librumphijack/t_config:fdoff lib/librumphijack/t_tcpip:http lib/librumphijack/t_tcpip:nfs lib/librumphijack/t_vfs:cpcopy lib/librumphijack/t_vfs:mv_x lib/librumphijack/t_vfs:paxcopy net/net/t_forwarding:ipforwarding_fastforward_v4 net/net/t_forwarding:ipforwarding_fastforward_v6 net/net/t_forwarding:ipforwarding_fragment_v4 net/net/t_forwarding:ipforwarding_misc net/net/t_mtudisc6:mtudisc6_basic
This revert fixes the failures, except lib/librumphijack/t_vfs.
The original changes were added in order to facilitate a usage of sanitizers against programs linked with NetBSD's libc. It is no longer needed, so abandon these changes.
Sponsored by <The NetBSD Foundation>
show more ...
|
#
575eeceb |
| 05-Jan-2018 |
kamil <kamil@NetBSD.org> |
Include namespace.h in a few of libc source files
The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not
Include namespace.h in a few of libc source files
The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols.
This change finishes elimination of usage of the global name of the following symbols: - close -> _close - execve -> _execve - fcntl -> _fcntl - setcontext -> _setcontext - wait6 -> _wait6 - write -> _write - writev -> _writev
Sponsored by <The NetBSD Foundation>
show more ...
|
#
9b7a6414 |
| 09-Nov-2017 |
christos <christos@NetBSD.org> |
Add O_REGULAR to enforce opening of only regular files (like we have O_DIRECTORY for directories). This is better than open(, O_NONBLOCK), fstat()+S_ISREG() because opening devices can have side effe
Add O_REGULAR to enforce opening of only regular files (like we have O_DIRECTORY for directories). This is better than open(, O_NONBLOCK), fstat()+S_ISREG() because opening devices can have side effects.
show more ...
|
#
de001ba2 |
| 27-Mar-2012 |
christos <christos@NetBSD.org> |
- widen the internal read and write calls to match the syscalls - add funopen2() which provides access to flush() and the wider calls. - make use of the new flush call in fmemopen()
|
#
526d9427 |
| 15-Mar-2012 |
christos <christos@NetBSD.org> |
- ansify, knf. - no functional changes
|
#
1897181a |
| 22-Jan-2012 |
christos <christos@NetBSD.org> |
From tnozaki@: make fpos_t a complex object that keeps track of the parse state of the stream. Change argument of the seek function to funopen() from fpos_t to off_t. Make f{g,s}etpos() use the new f
From tnozaki@: make fpos_t a complex object that keeps track of the parse state of the stream. Change argument of the seek function to funopen() from fpos_t to off_t. Make f{g,s}etpos() use the new fpos_t struct, while providing backwards compatible entry points. Approved by releng@
show more ...
|
#
00711901 |
| 11-Jan-2010 |
joerg <joerg@NetBSD.org> |
Use a proper char */size_t pair in __sfileext to keep track of the line buffer for fgetln and fgetwln. Simplifies code by dropping the INT_MAX related logic. Drop conditionals around FREELB, free(NUL
Use a proper char */size_t pair in __sfileext to keep track of the line buffer for fgetln and fgetwln. Simplifies code by dropping the INT_MAX related logic. Drop conditionals around FREELB, free(NULL) is valid.
show more ...
|
#
749de7f2 |
| 13-Mar-2008 |
christos <christos@NetBSD.org> |
Since _file is a short, check that the fd fits in it, otherwise bail with EMFILE. We treat _file as an unsigned short to double our range, with a special case for -1 (closed). Make a note of what we
Since _file is a short, check that the fd fits in it, otherwise bail with EMFILE. We treat _file as an unsigned short to double our range, with a special case for -1 (closed). Make a note of what we should do about stdio if we ever bump libc. We could change _file in the future compatibly to an int by putting it in the extension space but for now we don't bother.
show more ...
|
#
eb7c1594 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
#
3fdac2b8 |
| 18-Jan-2003 |
thorpej <thorpej@NetBSD.org> |
Merge the nathanw_sa branch.
|
#
17f3654a |
| 07-Dec-2001 |
yamt <yamt@NetBSD.org> |
- make FILE structure extensible without breaking binary-compatibility. - add fputwc, fgetwc, fwide and related functions. - add hooks needed to maintain the orientation of file stream.
|
#
8955e88e |
| 29-Nov-2000 |
christos <christos@NetBSD.org> |
Add checks for O_NDELAY [which indicates that we only want plain files], and return an error if the file was not plain.
|
#
d8962612 |
| 20-Sep-1999 |
lukem <lukem@NetBSD.org> |
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. _DIAGASSERT() is still retained.
|
#
b48252f3 |
| 16-Sep-1999 |
lukem <lukem@NetBSD.org> |
* use _DIAGASSERT() to check pointer arguments against NULL and file descriptors against -1 (as appropriate). * add actual checks which to detect stuff that would trigger_DIAGASSERT(), and attemp
* use _DIAGASSERT() to check pointer arguments against NULL and file descriptors against -1 (as appropriate). * add actual checks which to detect stuff that would trigger_DIAGASSERT(), and attempt to return a sane error condition. * knf some code * remove some `register' decls.
the first two items result in the addition of code similar to the following in various functions:
_DIAGASSERT(path != NULL) #ifdef _DIAGNOSTIC if (path == NULL) { errno = EFAULT; return (-1); } #endif
show more ...
|
#
cb697ba0 |
| 06-Jan-1999 |
kleink <kleink@NetBSD.org> |
When reopening in append mode, seek to the end of file in order to have the internally kept offset pointer reflect this; ftell(3) would report an incorrect current offset otherwise. From Geoff C. Wi
When reopening in append mode, seek to the end of file in order to have the internally kept offset pointer reflect this; ftell(3) would report an incorrect current offset otherwise. From Geoff C. Wing in lib/6381.
show more ...
|
#
c8bafd62 |
| 03-Feb-1998 |
perry <perry@NetBSD.org> |
remove obsolete register declarations
|
#
23312f88 |
| 13-Jul-1997 |
christos <christos@NetBSD.org> |
Fix RCSID's Fix gcc warnings. Add prototypes for functions that were declared in more than one place to local.h or extern.h and use that instead.
|
#
0fd4b530 |
| 04-May-1996 |
mycroft <mycroft@NetBSD.org> |
Change suggested by Chris Torek to fix problem freopen()ing with a closed file descriptor.
|
#
255db7b2 |
| 02-Feb-1995 |
jtc <jtc@NetBSD.org> |
Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
#
9c20f740 |
| 26-Aug-1993 |
jtc <jtc@NetBSD.org> |
Declare rcsid strings so they are stored in text segment.
|
#
e9d867ef |
| 01-Aug-1993 |
mycroft <mycroft@NetBSD.org> |
Add RCS identifiers.
|
#
61f28255 |
| 21-Mar-1993 |
cgd <cgd@NetBSD.org> |
initial import of 386bsd-0.1 sources
|