summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Don't forget to increment the raw_position (bytes written) counter, evencperciva2007-03-171-0/+1
| | | | | | | when operating in non-buffered mode. Pointy hat to: cperciva MFC after: 3 days
* o Add ENVIRONMENT section and mention there that TMPDIR is ignoredmaxim2007-03-161-1/+14
| | | | | | | | when issetugid(3) is true. PR: docs/108346 Obtained from: OpenBSD MFC after: 1 week
* The ufs_disk_fillout(3) can take special device name (with or without /dev/pjd2007-03-161-7/+36
| | | | | | | | | | | | | | | | | | | | | | | prefix) as an argument and mount point path. At the end it has to find device name file system is stored on, which means when mount point path is given, it tries to look into /etc/fstab and find special device corresponding to the given mount point. This is not perfect, because it doesn't handle the case when file system is mounted by hand and mount point is given as an argument. I found this problem while trying to use snapinfo(8), which passes mount points to the ufs_disk_fillout(3) function, but I had file system mounted manually, so snapinfo(8) was exiting with the error below: ufs_disk_fillout: No such file or directory I modified libufs(3) to handle those arguments (the order is important): 1. special device with /dev/ prefix 2. special device without /dev/ prefix 3. mount point listed in /etc/fstab, directory exists 4. mount point listed in /etc/fstab, directory doesn't exist 5. mount point of a file system mounted by hand
* - Sysctl's move to seperate filerrs2007-03-151-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | - moved away from ifn/ifa access to sctp_ifa/sctp_ifn built and managed by the add-ip code. - cleaned up add-ip code to use the iterator - made iterator be a thread, which enables auto-asconf now. - rewrote and cleaned up source address selection (also made it use new structures). - Fixed a couple of memory leaks. - DACK now settable as to how many packets to delay as well as time. - connectx() to latest socket API, new associd arg. - Fixed issue with revoking and loosing potential to send when we inflate the flight size. We now inflate the cwnd too and deflate it later when the revoked chunk is sent or acked. - Got rid of some temp debug code - src addr selection moved to a common file (sctp_output.c) - Support for simple VRF's (we have support for multi-vfr via compile switch that is scrubbed from BSD but we won't need multi-vrf until we first get VRF :-D) - Rest of mib work for address information now done - Limit number of addresses in INIT/INIT-ACK to a #def (30). Reviewed by: gnn
* Fix a comment in memstat.h: errors are associated with memory type lists,rwatson2007-03-151-1/+1
| | | | | | | not individual types. Submitted by: Bryan Venteicher <bryanv at daemoninthecloset dot org> MFC after: 3 days
* When ARCHIVE_EXTRACT_UNLINK is requested:kientzle2007-03-132-5/+11
| | | | | | | | * Only try to remove the existing item if we're not restoring a directory. * If unlink fails, try rmdir next. This should fix the broken --unlink option in bsdtar. Thanks again to: Kris Kennaway, for beating up bsdtar on pointyhat.
* Merge the following changes from NetBSD:stefanf2007-03-114-16/+37
| | | | | | | | | | | | | history.c 1.32: # Fix memory leak found by valgrind (Julien Torres) map.c 1.24: # fix debugging printf format. read.c 1.40: # Fix bug with multiple pending el_pushes. Reported by Julien Torres. tty.c 1.24: # Coverity CID 1216: Prevent negative index use. MFC after: 3 weeks
* Merge the following changes from NetBSD:stefanf2007-03-119-95/+144
| | | | | | | | | | | | | | | | | chared.h 1.17, common.c 1.19, emacs.c 1.21, key.c 1.18, key.h 1.9, map.c 1.23, term.c 1.42, term.h 1.17, vi.c 1.25: # Print the actual eofc, instead of ^D\b\b. # Change internal character decoding to prevent buffer oveflows. key.c 1.19, key.h 1.10: # move declaration to header file. term.c 1.43: # Coverity CID 806: Prevent NULL deref term.c 1.44: # Coverity CID 1668: Plug memory leak. term.c 1.45: # Fix compilation. MFC after: 3 weeks
* Libarchive 2.0.23:kientzle2007-03-117-157/+145
| | | | | | | | | | | | * The ACL formatter was mis-formatting entries which had a user/group ID but no name. Make the parser tolerant of these, so that old archives can be correctly restored; fix the formatter to generate correct entries. * Fix overwrite detection by introducing a new "FAILED" return code that indicates the current entry cannot be continued but the archive as a whole is still sound. * Header cleanup: Remove some unused headers, add some that are required with new Linux systems.
* Merge changes to the NetBSD copyright (advertising clause removal).stefanf2007-03-113-18/+6
|
* Wordsmithery.bms2007-03-091-1/+1
| | | | Pointed out by: ru
* Enable ncurses wide character supportrafan2007-03-0911-24/+195
| | | | | Approved by: delphij (mentor) Tested by: kris on pointyhat (early version), current@
* - style.Makefile(9) fixrafan2007-03-096-936/+934
| | | | | | | | | | | | | | | - first line is $FreeBSD$ - Reorder special variables: DPADD, LPADD, CFLAGS - Use = instead of += for variables that are initially empty - Use space instead of tab after : - Use one tab after = - Use .SUFFIXES for section 3 manual page which simplifies Makefile a lot - Use SHAREDIR instead of /usr/share - Remove SRCDIR in INCS since we set .PATH properly - Use plural in variable name when it stands for more that one source file Reviewed by: ru Approved by: delphij (mentor)
* Document SO_ACCEPTCONN.bms2007-03-081-1/+9
| | | | | Submitted by: Vlad GALU (with changes) MFC after: 3 days
* New tests for system-independent ACL support.kientzle2007-03-083-0/+744
| | | | | | | | These tests verify that archive_entry objects can store and return ACL data and that pax format archives can read and write ACL information. These do not (yet) test that ACL data is read or written to disk correctly. (And hence would not have caught the recent snafu about ACL read-from-disk being turned off.)
* Distinguish between the end of ACL data and an error in pullingkientzle2007-03-081-1/+1
| | | | | | | ACL data from the archive entry. This doesn't impact archive_read_extract or archive_write_disk since they only check for != ARCHIVE_OK when calling this function. (Though they should be more careful.)
* Add GELF_* accessor macros.jkoshy2007-03-081-0/+16
| | | | Prodded by: Sam Arun Raj <samarunraj at gmail dot com>
* Fix license. Clause 4 is still required (UCB materiel).bms2007-03-071-6/+5
| | | | | Submitted by: rwatson Pointy hat to: bms
* use 2-clause BSD license as per hoskins strike-off july 22 1999.bms2007-03-071-4/+6
| | | | use wording of FreeBSD License.
* Only reject file descriptors higher than FD_SETSIZE if we are not usingjhb2007-03-051-7/+5
| | | | | | | | | | | | | poll(2) or kqueue(2). Previously we rejected fd's higher than FD_SETSIZE for kevent(2), and larger than sysconf(_SC_OPEN_MAX) for poll(2). However, the check for poll(2) wasn't really needed. open(2) and socket(2) won't return an fd you can't pass to either poll(2) or kevent(2). This fixes a but where gethostbyname() would fail if you had more than 1023 files open in a process. MFC after: 1 week Reviewed by: ume Found by: ps
* Oops, fix a typo in the last commit :-/brian2007-03-052-2/+2
|
* In the NOTYET code path when a process forks, the remainingbrian2007-03-052-14/+8
| | | | | | | | | | | child thread goes back to system scope rather than process scope. This allows an ensuing exec() to actually work. This change was made a year ago here, but I "forgot" to commit it :( Approved by: deischen MFC after: 3 weeks
* Apply my patch properly.ru2007-03-051-1/+1
|
* Fix markup.bms2007-03-051-22/+36
| | | | | Submitted by: ru MFC after: 2 days
* .Xr nit.bms2007-03-051-2/+2
| | | | Submitted by: brueffer
* Update shutdown() manual page to reflect actual behaviour of code.bms2007-03-051-10/+82
| | | | | | | | Add IMPLEMENTATION NOTES section explaining in detail the effect this system call has in common use cases involving PF_INET and PF_INET6 sockets. PR: kern/84761 MFC after: 2 days
* Test cases for back references.delphij2007-03-051-0/+24
| | | | Obtained from: OpenBSD
* Only stop evaluation of a back reference if the match length isdelphij2007-03-051-15/+17
| | | | | | zero and the recursion level is too deep. Obtained from: OpenBSD
* Avoid infinite recursion on:delphij2007-03-051-0/+2
| | | | | | echo "foo foo bar bar bar baz" | sed 's/\([^ ]*\)\( *\1\)*/\1/g' Obtained from: OpenBSD via NetBSD (rev. 1.18)
* Disable RPC exponential back-off for FreeBSD.org systems (IE. hiddensimon2007-03-042-0/+10
| | | | | | | | | | | | | behind _FREEFALL_CONFIG). This is done mainly to make NIS even more resistant to packet loss. This is not enabled by default for "normal" FreeBSD since it might cause the server providing the RPC service to be hit heavily with RPC traffic in case of problems. freefall.FreeBSD.org and hub.FreeBSD.org have been running with a patch similar to this for a couple of weeks. MFC after: 1 week Discussed with: peter
* - Bump _yplib_timeout limit from 10 to 20 seconds to better handlesimon2007-03-041-1/+9
| | | | | | | | | | | | | | | | | | | | | | | packet loss when talking to a NIS server. - Set 1 second retry timeout to further realistically handle UDP packet loss for yp_next packet bursts. If the packet hasn't come back within 1 second its rather unlikely to come back at all. There is still back-off mechanism in RPC so if there is another reason than packet loss for the lack of response within 1 second, the NIS server will not be totally bombarded with requests. This reduces the risk of NIS failing with: yp_next: clnt_call: RPC: Timed out considerably. This is mainly a problem if you have larger NIS maps (like at FreeBSD.org) since enumerations of the lists will cause a UDP packet bursts where a few packets being lost once in a while do happen. MFC after: 1 week Discussed with: peter Problem mainly diagnosed by: peter
* libarchive 2.0kientzle2007-03-0372-2434/+7206
| | | | | | | | | | | | | | | | | | | * libarchive_test program exercises many of the core features * Refactored old "read_extract" into new "archive_write_disk", which uses archive_write methods to put entries onto disk. In particular, you can now use archive_write_disk to create objects on disk without having an archive available. * Pushed some security checks from bsdtar down into libarchive, where they can be better optimized. * Rearchitected the logic for creating objects on disk to reduce the number of system calls. Several common cases now use a minimum number of system calls. * Virtualized some internal interfaces to provide a clearer separation of read and write handling and make it simpler to override key methods. * New "empty" format reader. * Corrected return types (this ABI breakage required the "2.0" version bump) * Many bug fixes.
* Fix a typo.jkoshy2007-03-031-2/+2
| | | | Submitted by: Kai Wang <kaiw27 at gmail dot com>
* Force the umask to something predictable while creating objectskientzle2007-03-021-1/+2
| | | | on disk. In particular, this fixes tar -xp restore of mode bits.
* Because the buffer gets released immediately, I need tokientzle2007-03-013-1/+8
| | | | | | | | copy the symlink target name, not just copy the reference. This problem sometimes caused crashes when extracting symlinks from ISO9660 images. Thanks to: Diego "Flameeyes" Pettenò
* Document the AF_LINK extension which was imported from NetBSD.bms2007-02-281-4/+19
|
* Nuke ascii2addr() and addr2ascii(). They have no consumers anywherebms2007-02-288-441/+123
| | | | | | | | | | | | | | in FreeBSD, and originated from INRIA IPv6. Stub out netstat reference to addr2ascii() I mistakenly introduced. Update misleading man page sections. Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394 bits which don't map directly to our code. Obtained from: NetBSD (getnameinfo.c) Discussed on: current (March 2006)
* Remove a (harmless) stray backslash.ru2007-02-271-1/+1
|
* Make hosts.allow point to hosts_options instead.n_hibma2007-02-271-1/+1
| | | | Requested by: ru
* Fix include declaration it was sys/sctp.h should be netinet/sctp.h,rrs2007-02-2613-13/+13
| | | | reported by pluknet@gmail.com.
* Mark data structures used on the wire with IPX SAP as __packed so thatrwatson2007-02-261-3/+3
| | | | | | | they are not inappropriately padded as a result of compiler changes. PR: kern/74105 Submitted by: Bob Johnson <bob89 at eng dot ufl dot edu>
* Move _posix1e_acl_name_to_id out of acl_support.c and intokientzle2007-02-263-55/+52
| | | | | | | | | acl_from_text.c. Since acl_from_text.c is the only place it is used, we can now make this internal utility function "static." As a bonus, acl_set_fd() no longer pulls in getpwuid() for no reason. MFC after: 7 days
* Don't assert() the TLS allocation requested is big enough; justkientzle2007-02-251-2/+2
| | | | | | fix the argument. In particular, this is a step towards breaking crt1's dependence on stdio.
* Modify chunk_alloc() to prefer mmap()ed memory over sbrk()ed memory.jasone2007-02-221-36/+40
| | | | | | | | | | | This has no impact unless USE_BRK is defined (32-bit platforms), in which case user allocations are allocated via mmap() if at all possible, in order to avoid the possibility of unreclaimable chunks in the data segment. Fix an obscure bug in base_alloc() that could have allowed undefined behavior if an application were to use sbrk() in conjunction with a USE_BRK-enabled malloc.
* Fixes build breakage.. invalid type casts.. and invalidrrs2007-02-221-6/+6
| | | | type for size in one place.
* First cut of the sctp man pages. Still need work.rrs2007-02-2215-1/+1791
|
* Fixes __FreeBSD__ being present (they should not)rrs2007-02-221-6/+4
| | | | and also trailing garbage on undef of magic numbers.
* Adds a performance improvement for when sctp_sendx isrrs2007-02-221-23/+43
| | | | | | | | | called with only one address, we then can call the generic system call. Also fixes some socket api type issues and cleans up the "magic" numbers that were being used in the code. Reviewed by: gnn
* Fix a bug with the release of section's raw data. Both release loopsdumbbell2007-02-211-1/+1
| | | | | | were using translated data linked list, leading to a memory leak. Jkoshy's testsuite was used to check for non-regression.
* Create a link from hosts.allow(5) hosts_access(3), to give the user an_hibma2007-02-201-2/+4
| | | | | | starting point for more information on a file in /etc. MFC after: 1 week
OpenPOWER on IntegriCloud