summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Clean-ip TLS symbol versions. [_]__tls_get_addr function is part ofkan2007-04-092-6/+2
| | | | | | | the platform ABI and as such does not belong in FBSDprivate. __libc_tls_* functions do not have to be visible to outside world at all.
* Document KERN_HOSTUUID.pjd2007-04-091-1/+4
| | | | Reminded by: ru
* Document PT_GETNUMLWPS.emaste2007-04-091-0/+3
|
* New files in sendmail 8.14.1gshapiro2007-04-092-3/+3
|
* Fix build on Solaris.kientzle2007-04-071-1/+1
|
* Enable 'ar' support; hook it up to the build andkientzle2007-04-073-2/+7
| | | | enable it with _read_support_format_all().
* Clarification: Point people to archive_read_data(), whichkientzle2007-04-071-1/+4
| | | | should be used instead of archive_read_data_into_buffer().
* When copying data from one archive to another, only set the errorcperciva2007-04-071-5/+4
| | | | | | message in the reader to the error message from the writer if the error which occurred was in the writer. This avoids error messages of "Empty error message" when extracting truncated archives.
* Describe PT_GETLWPLIST's arguments.emaste2007-04-071-0/+9
|
* __p_rcode_syms is declared as external in resolv.conf, so it cannot bekan2007-04-062-1/+2
| | | | | | | | | | redeclared as static in res_debug.c. Make __p_rcode_syms global and add it to Symbol map. The rest of __p_??_syms are already global. Choice of FBSD_1.0 version for these debug symbols seems strange and should be revisited before symbol versioning is enabled for libc.so.7.
* Bump date.pjd2007-04-053-3/+3
|
* Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found inpjd2007-04-052-1/+65
| | | | | | OpenSolaris. For more information please refer to: http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data
* Add security.jail.mount_allowed sysctl, which allows to mount andpjd2007-04-051-0/+7
| | | | | | | | | | | | | | | | | | unmount jail-friendly file systems from within a jail. Precisely it grants PRIV_VFS_MOUNT, PRIV_VFS_UNMOUNT and PRIV_VFS_MOUNT_NONUSER privileges for a jailed super-user. It is turned off by default. A jail-friendly file system is a file system which driver registers itself with VFCF_JAIL flag via VFS_SET(9) API. The lsvfs(1) command can be used to see which file systems are jail-friendly ones. There currently no jail-friendly file systems, ZFS will be the first one. In the future we may consider marking file systems like nullfs as jail-friendly. Reviewed by: rwatson
* Move archive_read_data_into_buffer into archive_read.c, simplify itscperciva2007-04-054-55/+23
| | | | | | | | implementation, and mark it as deprecated. It will be removed entirely in libarchive 3.0 (in FreeBSD 8.0?) but there's no reason for anyone to use it instead of archive_read_data. Approved by: kientzle
* If a thread who's name is being set is not the current thread, use macrosdavidxu2007-04-051-2/+2
| | | | | | | THR_THREAD_LOCK and THR_THREAD_UNLOCK instead, this should fix wrong lock level problem. Bug reported by: ed dot maste at gmail dot com
* More corrections from Joerg Sonnenberger.kientzle2007-04-051-3/+3
|
* Style fixes from Joerg Sonnenberger: use correct types,kientzle2007-04-051-5/+7
| | | | spell lint(1) comments correctly.
* From Joerg Sonnenberger: Fix a number of style gaffes,kientzle2007-04-054-26/+35
| | | | including type puns and avoidable casts.
* Wordsmithing.kientzle2007-04-051-12/+9
|
* Avoid using intermediate variables by just comparing betweendelphij2007-04-051-27/+15
| | | | | | | | | | | | two values, the latter does not tend to have sign extension and/or overflow bugs, and makes the code more obvious. While I'm there, make use of a macro which is derived from bin/ps/ps.c: ps_compat() to improve the readability of the code. Suggested by: bde MFC after: 1 week
* cipher(3) is gone.ceri2007-04-041-1/+0
| | | | MFC after: 3 days
* Cast away const qualifier to squash GCC warning.kan2007-04-041-1/+1
|
* First argument of MD5Final is an array of unsigned characters.kan2007-04-041-1/+2
| | | | Declare 'digest' local variable accordingly.
* Use correct u_int and socklen_t types for parameters if function iskan2007-04-041-2/+3
| | | | expecting them, not int.
* Add include directives for string.h and stdlib.h to get proper functionkan2007-04-0411-0/+12
| | | | prototypess of memset, memcpy and malloc respectively.
* Include string.h to get proper memcpy prototype.kan2007-04-041-0/+1
|
* Import amd64 assembly implementations of div(3) family from NetBSD.jkim2007-04-044-0/+51
| | | | Obtained from: NetBSD
* Parse SCHILY.dev and SCHILY.ino fields. These are ignored when extractingcperciva2007-04-031-0/+4
| | | | | | | files, but used during archive creation. This change unbreaks # tar -cf rcp.tar /bin/rcp # tar -cf rcp-copy.tar @rcp.tar # cmp rcp.tar rcp-copy.tar
* Add entry for dl_iterate_phdr.kan2007-04-031-0/+1
|
* Add stub for dl_iterate_phdr.kan2007-04-031-0/+10
|
* 'ar' format support for libarchive, contributed by Kai Wang.kientzle2007-04-036-0/+1376
|
* Now that there is always a compression-layer skip function available,cperciva2007-04-021-9/+3
| | | | | | | | | skip over the end-of-entry padding instead of reading and discarding it. Considering that tar files normally have a block size of 10kB, this isn't likely to avoid reading any data, but at least it makes the code simpler and clearer.
* Fix type-punned pointer, minor style fixes.kientzle2007-04-021-6/+7
| | | | Thanks to: Joerg Sonnenberger
* Remove unused variable; use consistent types.kientzle2007-04-021-3/+2
| | | | Thanks to: Joerg Sonnenberger
* Be consistent: file flags are unsigned bitmaps.kientzle2007-04-021-1/+1
| | | | Thanks to: Joerg Sonnenberger
* Don't compare a signed char to 0xFF.kientzle2007-04-021-3/+3
| | | | Thanks to: Joerg Sonnenberger
* Avoid a potential overflow when 'skip' is larger than a pointer.kientzle2007-04-021-1/+1
| | | | Thanks to: Joerg Sonnenberger
* Style fix: Use the correct type for 'bytes_to_write'.kientzle2007-04-021-2/+2
| | | | Thanks to: Joerg Sonnenberger
* Style: bare "unsigned" is deprecated, use "unsigned int" instead.kientzle2007-04-022-8/+8
| | | | Thanks to: Joerg Sonnenberger
* Remove some unused fields from archive_read internal structure.kientzle2007-04-021-5/+1
| | | | (Left over from when read and write used to share this structure.)
* Provide a dummy compression-layer skip function which just reads data andcperciva2007-03-313-34/+44
| | | | | | | | | | discards it, for use when the compression layer code doesn't know how to skip data (e.g., everything other than the "none" compressor). This makes format level code simpler because that code can now assume that the compression layer always knows how to skip and will always skip exactly the requested number of bytes. Discussed with: kientzle (3 months ago)
* Back out my previous commit to this area, there are differences betweentrhodes2007-03-302-363/+0
| | | | | | our implementation and OpenBSD's. Requested by: des
* Use size_t instead of unsigned for pagesize-related values, in order tojasone2007-03-291-4/+8
| | | | | | | | | avoid downcasting issues. In particular, this change fixes posix_memalign(3) for alignments greater than 2^31 on LP64 systems. Make sure that NDEBUG is always set to be compatible with MALLOC_DEBUG. [1] Reported by: [1] Lee Hyo geol <hyogeollee@gmail.com>
* Remove the run promotion/demotion machinery. Replace it with red-blackjasone2007-03-281-430/+219
| | | | | | | | | | | | | | | | | | | | | | | trees that track all non-full runs for each bin. Use the red-black trees to be able to guarantee that each new allocation is placed in the lowest address available in any non-full run. This change completes the transition to allocating from low addresses in order to reduce the retention of sparsely used chunks. If the run in current use by a bin becomes empty, deallocate the run rather than retaining it for later use. The previous behavior had the tendency to spread empty runs across multiple chunks, thus preventing the release of chunks that were completely unused. Generalize base_chunk_alloc() (and rename it to base_pages_alloc()) to handle allocation sizes larger than the chunk size, so that it is possible to support chunk sizes that are smaller than an arena object. Reduce the minimum chunk size from 64kB to 8kB. Optimize tracking of addresses for deleted chunks. Fix a statistics bug for huge allocations.
* Change macro in order to refer to FreeBSD 7.0 instead of 7.0BSD.jasone2007-03-281-2/+2
| | | | Reported by: Michal Mertl <mime@traveller.cz>
* Update the IMPLEMENTATION NOTES section to reflect recent mallocjasone2007-03-281-13/+30
| | | | enhancements.
* Remove some stray roff formatting that caused incorrect rendering.jasone2007-03-281-1/+0
|
* Add a HISTORY section.jasone2007-03-281-0/+5
|
* In account management, verify whether the account has been lockedyar2007-03-272-3/+22
| | | | | | | | | | | | | | with `pw lock', so that it's impossible to log into a locked account using an alternative authentication mechanism, such as an ssh key. This change affects only accounts locked with pw(8), i.e., having a `*LOCKED*' prefix in their password hash field, so people still can use a different pattern to disable password authentication only. Mention all account management criteria in the manpage. Approved by: maintainer (timeout) PR: bin/71147 MFC after: 1 month
* Describe the contents of the "ar_name" and "ar_rawname" fields ofjkoshy2007-03-271-6/+6
| | | | Elf_Arhdr structures better.
OpenPOWER on IntegriCloud