summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Move fabs(3), frexp(3), and modf(3) to libm--nothing has been usingmartynas2011-07-085-362/+5
| | | | them in libc for a very long time. OK guenther@.
* Include PIPEX in kernel by default. And add new sysctl variableyasuoka2011-07-081-2/+16
| | | | | | | | `net.pipex.enable' to enable PIPEX. By default, pipex is disabled and it will not process packets from wire. Update man pages and update HOWTO_PIPEX_NPPPD.txt for testers. discussed with dlg@, ok deraadt@ mcbride@ claudio@
* no more math(3);jmc2011-07-075-18/+13
|
* add tcp.always_keepalive;jmc2011-07-071-2/+3
|
* Fix bit twiddling routines on ARM; where floating-point word ordermartynas2011-07-071-3/+3
| | | | is big endian.
* Add sysctl net.inet.tcp.always_keepalive, when this is set the systemsthen2011-07-061-2/+6
| | | | | | | | | | | behaves as if SO_KEEPALIVE was set on all TCP sockets, forcing keepalives to be sent every net.inet.tcp.keepidle half-seconds. In conjunction with a keepidle value greatly reduced from the default, this can be useful for keeping sessions open if you are stuck on a network with short NAT or firewall timeouts. Feedback from various people, ok henning@ claudio@
* Speed up cgetnext() by passing the record we want to parse in tomillert2011-07-061-92/+110
| | | | | getent() as toprec. Make cap_mkdb faster when building termcap.db. OK nicm@
* "it's" -> "its" in a couple of comments.krw2011-07-031-3/+3
|
* Trick lint into recording the right prototypes in the llib-lc.lnmartynas2011-07-021-2/+2
| | | | database on the vax, similarly like has been done in gen.
* document HW_ALLOWPOWERDOWN; reminded by and ok jmc@naddy2011-06-271-2/+11
|
* Make printf-like and scanf-like functions marked as such in llib-lc.lnmartynas2011-05-307-7/+18
| | | | | | | and llib-lwrap.ln databases; so that the lint features doing format strings checks are enabled by default. Looks good to millert@.
* Trick lint into recording the right prototypes in the llib-lc.lnmartynas2011-05-308-49/+79
| | | | | | | database on platforms without extended-precision floating-point support. Seems like a reasonable approach to millert@.
* When the max number of items for a directory has reached GLOB_LIMIT_READDIRpyr2011-05-121-2/+3
| | | | | | | | an error is returned but closedir() is not called. spotted and fix provided by Frank Denis obsd-tech@pureftpd.org ok otto@, millert@
* no need to escape `|'; as discussed with schwartzejmc2011-05-021-7/+3
|
* Document amd64/i386 denormalization exception; after discusion w/ tedu@.martynas2011-04-251-2/+3
| | | | OK tedu@.
* Teach sysconf(_SC_GETGR_R_SIZE_MAX) the correct size of a buffer for thesthen2011-04-252-4/+5
| | | | | | reentrant getgrent functions (getgrgid_r, getgrnam_r). seems reasonable to millert@, ok deraadt@
* remove STANDARDS section, as this function does not conform to any;jmc2011-04-241-6/+2
| | | | | | | prompted by deraadt original issue (mandoc has no support for \*(Px) reported by Matthew Dempsky; kristaps and ingo are looking at whether to add support for the Px or not;
* Do not document FP_X_IOV--it's an alpha-only thing. Similarly likemartynas2011-04-231-3/+2
| | | | we don't document the i386/amd64 denormalization exception.
* Do not over-specify the return value.schwarze2011-04-191-5/+6
| | | | | | Instead, just document what POSIX requires. Reminded of the problem by joachimschipper dot nl, Feedback from matthew@, krw@, deraadt@, and ok deraadt@.
* a_syms is an int, not a pointer; ok miodderaadt2011-04-081-2/+2
|
* try to document these functions betterderaadt2011-03-141-24/+23
| | | | | discussed with millert and guenther ok guenther
* Fix handling of VIS_ALL: in vis(), actually encode all charactersguenther2011-03-132-6/+11
| | | | | | | as requested and give a correct estimate when they don't all fit, and in unvis() decode them instead of erroring ok nicm@, deraadt@
* Replace the old, broken KERN_PROC ABI and its matching functionsguenther2011-03-121-14/+4
| | | | | | | | | in libkvm with the stable-ABI versions that are currently named KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols will continue to be supported for a few releases. Committing now that they ports people have had a couple releases to update pkgs that usd the old functions
* Put a limit on recursion during matching, and reject input of size greaterstsp2011-02-101-3/+29
| | | | | or equal PATH_MAX. Based on similar fix made in NetBSD. ok miod@ millert@
* Correctly escape a literal colon in an enclosure;schwarze2011-01-241-3/+3
| | | | the \: roff escape is an optional line break.
* avoid some integer overflows mostly with GLOB_APPEND and GLOB_DOOFFSdjm2011-01-121-4/+12
| | | | | | and sanity check arguments (these will be unnecessary when we switch struct glob members from being type into to size_t in the future); "looks ok" tedu@ feedback guenther@
* Make this compile with llvm-clang; problem pointed out by Amit Kulkarniguenther2010-12-311-1/+2
|
* Make KERN_CPTIME return an avarage number of ticks across all CPUsmikeb2010-11-191-4/+3
| | | | tedu agreed with an idea, tested by Luis Useche and me; ok deraadt
* Change basep parameter of getdirentries() to be off_t *, not long *millert2010-10-281-2/+2
| | | | | | | | so it works correctly with large offsets (and matches other systems). This requires adding a new getdirentries syscall, with the old one renamed to ogetdirentries. All in-tree consumers of getdirentries() have been updated. Bump libc and libpthread major numbers. OK and with deraadt@
* support _SC_HOST_NAME_MAX; from bradderaadt2010-10-282-3/+9
| | | | a libc crank is happening in < 24 hours
* tcp.sendspace & tcp.recvspace buttons are gone.claudio2010-10-111-12/+2
|
* Extend GLOB_LIMIT to cover readdir and stat and bump the malloc limitnicm2010-10-082-31/+72
| | | | | | | | | | | from ARG_MAX to 64K. Fixes glob-using programs (notably ftp) able to be triggered to hit resource limits. Idea from a similar NetBSD change, original problem reported by jasper@. ok millert tedu jasper
* Retire Skipjackmikeb2010-10-061-3/+3
| | | | | | | | | | | There's not much use for the declassified cipher from the 80's with a questionable license these days. According to the FIPS drafts, Skipjack reaches its EOL in December 2010. The libc portion will be removed after the ports hackathon. djm and thib agree, no objections from deraadt Thanks to jsg for digging up FIPS drafts.
* oops, don't free array before freeing members; spotted by dkrause@djm2010-09-261-2/+2
|
* document GLOB_KEEPSTAT in the RETURN VALUES and STANDARDS sections.djm2010-09-251-3/+14
|
* Bump fts_level from short to int and add a spare short so thingsmillert2010-09-242-5/+5
| | | | line up nicely. OK deraadt@
* add a GLOB_KEEPSTAT option that retains a copy of the struct statdjm2010-09-242-16/+77
| | | | | | | | | | | information that is looked up while matching glob(3)s Keeping this information around can make a big difference when fetching it is expensive, e.g. in sftp which uses GLOB_ALTDIRFUNC feedback millert@ jmc@ "get it in before the libc crank" deraadt@
* according to ingo, it isn;t a problem to have empty [BDS]q macros, sojmc2010-09-201-3/+3
| | | | revert that part of yesterday's diffs;
* more wacky macro fixing;jmc2010-09-191-3/+3
|
* backout VIS_HEX. guenther@ points out that the C89 \xff encodingdjm2010-08-243-73/+10
| | | | | | | | | idiotically accepts more then two hex digits following the \x, even on platforms where a char has 8 bits. It is therefore dangerous to have an almost-bit-not-quite compatible format in vis(3). The VIS_ALL (encode all characters) option introduced in the same commit remains.
* Two new flags: VIS_ALL - encode all characters, not just invisible onesdjm2010-08-213-12/+77
| | | | | | | | and VIS_HEX - use C89 \xff style hexadecimal encoding. Teach unvis(3) how to deal with the hex encoding. feedback and ok millert@ chl@
* Introduce an MI kern.consdev sysctl that will replace the MDkettenis2010-08-191-2/+5
| | | | | | machdep.console_device that's only implemented on a few architectures. ok deraadt@, miod@
* Remove a stray space. No binary change.marco2010-07-271-2/+2
|
* fix some spacing issues; noted by kristapsjmc2010-07-271-7/+6
|
* More delimiters that need quoting inside macros, hunted down by jmc@,schwarze2010-07-151-5/+5
| | | | who asked me to commit because he is just running out of the door.
* briefly document kern.rthreadstedu2010-06-291-2/+6
|
* remove unused variablechl2010-05-191-2/+1
| | | | ok nicm@
* add posix_madvise, posix_memalign, strndup, and strnlen. mostly fromtedu2010-05-181-3/+6
| | | | | brad and millert, with hints from guenther, jmc, and otto I think. ok previous.
* Defer installing signal handlers until echo is disabled so that wemillert2010-05-141-39/+41
| | | | | | get suspended normally when not the foreground process. Fix potential infinite loop when restoring terminal settings if process is in the background when restore occurs. OK miod@
* Recycle unused disklabel fields in order to create a disklabel uniquejsing2010-04-231-2/+0
| | | | | | | identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@