summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2015-10-09tame -> pledge.Theo de Raadt
2015-09-28delete xdr_ypresp_all_seq prototypeTheo de Raadt
2015-09-27Stop installing any header files in /usr/include/dev/pci/drm.Mark Kettenis
Userland should get these from /usr/X11R6/include/libdrm. ok deraadt@ (and suggested by jsg@)
2015-09-25Trim symbols that aren't part of our new resolverPhilip Guenther
OK semarie@
2015-09-14Revert: finger slipPhilip Guenther
2015-09-14Prefer the standardized <poll.h> over <sys/poll.h>Philip Guenther
2015-09-13Wrap <rpc/*.h> so that calls go direct and the symbols are all weak.Philip Guenther
Hide __xprt_register() and _authenticate(); truncate <rpc/svc_auth.h> ok deraadt@
2015-09-13authdes_create() was never implementedPhilip Guenther
2015-09-10Hide netgroup internals inside libc. The parts that netgroup_mkdbTheo de Raadt
wants to use, well.... copy them there. ok guenther
2015-09-09Move to next tame() API. The flags are now passed as a very simple string,Theo de Raadt
which results in tame() code placements being much more recognizeable. tame() can be moved to unistd.h and does not need cpp symbols to turn the bits on and off. The resulting API is a bit unexpected, but simplifies the mapping to enabling bits in the kernel substantially. vague ok's from various including guenther doug semarie
2015-09-09Stop exporting from libc the <mpool.h> and the mpool_* APIPhilip Guenther
ports scan by sthen@
2015-09-05Use new framework for wrapping dbopen()Philip Guenther
Move internal declarations from <db.h> to libc's hidden/db.h ok kettenis@
2015-09-04These days pcc defines __GNUC__ and we don't support gcc2. Also neededDaniel Dickman
for upcoming CompCert port. Final version of the diff is from kettenis@ with input from jsg@ and tedu@. ok kettenis@, jsg@, "I agree" millert@
2015-08-31Add framework for resolving (pun intended) libc namespace issues, usingPhilip Guenther
wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
2015-08-27Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internalPhilip Guenther
symbols that are not longer exported. (This improves the generated code.) ok deraadt@
2015-08-26Hide many (194!) symbols that nothing should be using.Philip Guenther
Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
2015-07-23Build and install libradius as default.YASUOKA Masahiko
ok deraadt
2015-07-20Add VIS_DQ to escape double quotes. OK deraadt@ semarie@ reyk@Todd C. Miller
2015-07-19Define new C99 macros:Martynas Venckus
- MATH_ERRNO, MATH_ERREXCEPTION and math_errhandling - Optional FP_FAST_FMA{,F,L} macros if fma() executes as fast or faster than (x * y) + z; which in practice is achievable if gcc implements __FP_FAST_FMA{,F,L} Reported by John Marino @ DragonFlyBSD.
2015-07-14The first argument to devname(3) should be dev_t, not int.Todd C. Miller
The man page was already correct.
2015-05-20Remove function argument name from posix_spawnattr_getsigmask()Todd C. Miller
prototype to match other prototypes in the file. OK guenther@ deraadt@
2015-04-07Remove obsolete timezone() function.Todd C. Miller
Add timezone and daylight symbols for XSI compatibility.
2015-04-04gcc 2.x is deadPhilip Guenther
ok millert@
2015-03-17Remove obsolete copy of tzfile.h. It is an internal tzcode headerTodd C. Miller
that should never have been installed.
2015-03-17Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@Todd C. Miller
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
2015-02-20Use standard spelling for types, and rename local variable from "free".Ted Unangst
No actual change, but makes it easier to reuse the code elsewhere. Suggested by Andre Smagin
2015-02-18Make sure to replace an existing /usr/include/ssl symlink, otherwise repeatedStuart Henderson
builds will have a bogus /usr/include/openssl/openssl as found by naddy. ok jca@
2015-02-16stop deleting the openssl include directory, causing unnecessary rebuilds.Ted Unangst
ok jca sthen
2015-02-09Protect fgetwln(), wcslcat() and wcslcpy() with __BSD_VISIBLETodd C. Miller
OK tedu@ kettenis@
2015-02-08add restrict to strtol like functions. ok guentherTed Unangst
2015-01-21Delete option COMPAT_43: support for pre-sa_len binaries has been obsoletePhilip Guenther
for a couple decades. Keep the OSIOCGIFCONF ioctl to support COMPAT_LINUX but move the rest of the Linux-specific ioctl() handling into linux_socket.c This lets struct osockaddr finally move from sys/socket.h to protocols/talkd.h ok krw@ deraadt@ mpi@
2015-01-20increase TMP_MAX to the equivalent of INT_MAX. it's actually more,Ted Unangst
but safer not to wraparound by accident. ok deraadt millert miod
2015-01-19Make some $OpenBSD$ lines prettier/standardier by eliminatingKenneth R Westerback
superflous '*' after '/*' and adding blank after terminating '$'. Also eases parsing of the lines by simple awk scripts. Aesthetic approval from tedu@.
2015-01-18Stop including <sys/param.h> from <netdb.h>. Portable software must eitherTheo de Raadt
include <sys/param.h> (to operate in legacy mode) or if it wishes to operate in the POSIX world use <limits.h> ok guenther millert doug naddy
2015-01-17remove des.h. it somehow escaped from ssleay into /usr/include, but noneTed Unangst
of the functions prototyped here exist in libc, making it useless.
2015-01-16Since <netdb.h> soon won't include <sys/param.h>, MAXHOSTNAMELEN mayTheo de Raadt
not be in scope, so hardcode as 256. Other options have more downside.
2015-01-16Switch to including <sys/types.h> instead of <sys/param.h>Theo de Raadt
This hides the unavoidably cruddy sys/param.h namespace in some programs. Little impact, because many programs are cruddy and still get it via other includes. ports testing thanks to sthen and naddy ok guenther millert
2015-01-15we don't have an alloca() symbol anywhere in libc, don't prototype it.Ted Unangst
instead, #define to __builtin_alloca. if that doesn't work, you're hosed. from an old discussion about the perils of alloca. (don't use alloca!)
2015-01-12Add fgetwln(3) from FreeBSD and bump libc minor revision.Todd C. Miller
2014-12-20$OpenBSD for our rev herePhilip Guenther
2014-12-13claim posix 2008 compat. apparently people look at this and get scaredTed Unangst
when it's really old. but no actual ports fallout in espie's build. ok deraadt
2014-12-11update swab() to match the current posix definition. "rationale: none."Ted Unangst
rewrite the function to be simpler as well. the compiler can unroll the loop for us if necessary. ok schwarze
2014-12-08Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()Theo de Raadt
to returning strong random by default, source from arc4random(3). Parameters to the seeding functions are ignored, and the subsystems remain in strong random mode. If you wish the standardized deterministic mode, call srand_deterministic(), srandom_determistic(), srand48_deterministic(), seed48_deterministic() or lcong48_deterministic() instead. The re-entrant functions rand_r(), erand48(), nrand48(), jrand48() are unaffected by this change and remain in deterministic mode (for now). Verified as a good roadmap forward by auditing 8800 pieces of software. Roughly 60 pieces of software will need adaptation to request the deterministic mode. Violates POSIX and C89, which violate best practice in this century. ok guenther tedu millert
2014-12-08header changes for recent libc changes:Ted Unangst
add siphash delete setkey, encrypt, cfree
2014-11-21change prototype for crypt_newhash. the login_cap_t is a holdover from itsTed Unangst
pwd_gensalt origins, but a string argument works equally work and is more friendly to consumers beyond local user accounts. ok deraadt
2014-11-19prototype for crypt_newhash(). adding it here because this is whereTed Unangst
login_cap_t lives and i don't want to forward declare it in unistd.h
2014-11-17Add prototype for stravis().Todd C. Miller
2014-10-31Rename libressl to libtls to avoid confusion and to make it easier toJoel Sing
distinguish between LibreSSL (the project) and libressl (the library). Discussed with many.
2014-10-29Add prototypes for xdr_{accepted,rejected}_reply() and svcudp_enablecache()Philip Guenther
(Both NetBSD and FreeBSD provide these prototypes) ok millert@