summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug in pmclog_read() that causes it to return with a falsejkoshy2005-07-091-2/+15
| | | | | | error when a log record crosses an internal buffer boundary. Approved by: re (scottl)
* Missed one piece of the cluster's quirk. Need to override WARNS becausekensmith2005-07-081-0/+1
| | | | | | | | if _FREEFALL_CONFIG is set gcc bails since pam_sm_setcred() in pam_krb5.c no longer uses any of its parameters. Pointy hat: kensmith Approved by: re (scottl)
* - Add two new system calls: preadv() and pwritev() which are like readv()jhb2005-07-073-16/+48
| | | | | | | | | | | | | | | | | and writev() except that they take an additional offset argument and do not change the current file position. In SAT speak: preadv:readv::pread:read and pwritev:writev::pwrite:write. - Try to reduce code duplication some by merging most of the old kern_foov() and dofilefoo() functions into new dofilefoo() functions that are called by kern_foov() and kern_pfoov(). The non-v functions now all generate a simple uio on the stack from the passed in arguments and then call kern_foov(). For example, read() now just builds a uio and calls kern_readv() and pwrite() just builds a uio and calls kern_pwritev(). PR: kern/80362 Submitted by: Marc Olzheim marcolz at stack dot nl (1) Approved by: re (scottl) MFC after: 1 week
* Fix ptsname(3) by converting it to use devname(3) to obtain the name ofmarcus2005-07-071-3/+4
| | | | | | | | | | | | a tty device instead of the legacy minor number approach. This is known to fix gnome-vfs' sftp module as well as kio_sftp and kdesu on -CURRENT. Thanks to scottl for the snprintf() approach idea. Reviewed by: phk Tested by: pav mich Approved by: re (scottl)
* This is sort of an MFS. Peter made these changes to the RELENG_*kensmith2005-07-072-0/+7
| | | | | | | | | | | | | | | | | | | branches but missed HEAD. This patch extends his a little bit, setting it up via the Makefiles so that adding _FREEFALL_CONFIG to /etc/make.conf is the only thing needed to cluster-ize things (current setup also requires overriding CFLAGS). From Peter's commit to the RELENG_* branches: > Add the freebsd.org custer's source modifications under #ifdefs to aid > keeping things in sync. For ksu: > * install suid-root by default > * don't fall back to asking for a unix password (ie: be pure kerberos) > * allow custom user instances for things like www and not just root The Makefile tweaks will be MFC-ed, the rest is already done. MFC after: 3 days Approved by: re (dwhite)
* Correct a buffer overflow which occurred in the handling of somecperciva2005-07-061-1/+1
| | | | | | | particularly corrupt deflated data streams. Security: FreeBSD-SA-05:16.zlib Approved by: re (security blanket)
* Use the correct login class when setting a new password.des2005-07-051-1/+1
| | | | | | | PR: 65557, 72949 Submitted by: Stephen P. Cravey <clists@gotbrains.org> Approved by: re (scottl) MFC after: 2 weeks
* - Update the CPU version check to recognize P4/EMT64 CPUs. [1]jkoshy2005-07-031-7/+12
| | | | | | | | | - Allow libpmc(3) to support P4/EMT64 PMCs on the amd64 architecture and AMD K8 PMCs on the i386. [2] Submitted by: ps [1] Pointy hat: myself [2] Approved by: re (scottl)
* Minor grammar fixdelphij2005-07-031-1/+1
| | | | | Submitted by: Wojciech A. Koszek [dunstan at freebsd czest pl] Approved by: re (hrs)
* Fix the alpha build by using the correct argument types for _kvm_kvatop().scottl2005-07-021-1/+1
| | | | | Submitted by: marcel Approved by: re (implicit)
* MFP4:jkoshy2005-06-302-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - pmcstat(8) gprof output mode fixes: lib/libpmc/pmclog.{c,h}, sys/sys/pmclog.h: + Add a 'is_usermode' field to the PMCLOG_PCSAMPLE event + Add an 'entryaddr' field to the PMCLOG_PROCEXEC event, so that pmcstat(8) can determine where the runtime loader /libexec/ld-elf.so.1 is getting loaded. sys/kern/kern_exec.c: + Use a local struct to group the entry address of the image being exec()'ed and the process credential changed flag to the exec handling hook inside hwpmc(4). usr.sbin/pmcstat/*: + Support "-k kernelpath", "-D sampledir". + Implement the ELF bits of 'gmon.out' profile generation in a new file "pmcstat_log.c". Move all log related functions to this file. + Move local definitions and prototypes to "pmcstat.h" - Other bug fixes: + lib/libpmc/pmclog.c: correctly handle EOF in pmclog_read(). + sys/dev/hwpmc_mod.c: unconditionally log a PROCEXIT event to all attached PMCs when a process exits. + sys/sys/pmc.h: correct a function prototype. + Improve usage checks in pmcstat(8). Approved by: re (blanket hwpmc)
* Use 'manual page' instead of 'man page' for consistency.hmp2005-06-302-2/+2
| | | | Approved by: re (hrs)
* Tidy up the markup.ru2005-06-301-214/+285
| | | | Approved by: re (blanket manpages)
* Match _kvm_kvatop to it's prototype in kvm_i386.c. This unbreaksps2005-06-301-1/+1
| | | | | | the build. Approved by: re
* Clean out the leftovers from the i386_set_gsbase() TLS conversion.peter2005-06-295-120/+17
| | | | | | | | Like on libthr, there is an i386_set_gsbase() stub implementation here to avoid libc.so.5 issues. This should likely be a weak symbol and I expect this will be fixed soon. Approved by: re
* Support crash dumps > 4GB in size on 32 bit platforms. _kvm_kvatop()peter2005-06-299-99/+426
| | | | | | | | | | | | | | | | | | | | | returned an lseek offset in a "u_long *" value, which can't express >4GB offsets on 32 bit machines (eg: PAE). Change to "off_t *" for all. Support ELF crashdumps on i386 and amd64. Support PAE crashdumps on i386. This is done by auto-detecting the presence of the IdlePDPT which means that PAE is active. I used Marcel's _kvm_pa2off strategy and ELF header reader for ELF support on amd64. Paul Saab ported the amd64 changes to i386 and we implemented the PAE support from there. Note that gdb6 in the src tree uses whatever libkvm supports. If you want to debug an old crash dump, you might want to keep an old libkvm.so handy and use LD_PRELOAD or the like. This does not detect the old raw dump format. Approved by: re
* - Tidy up the markup.ru2005-06-241-190/+402
| | | | | | | | | | - Clarify the sections on "Cascading P4 PMCs" and "Precise Event Based Sampling" (1) - Bump document date. Reviewed by: jkoshy Submitted by: jkoshy (1) Approved by: re (blanket)
* Tidy up the markup.ru2005-06-241-12/+17
| | | | | Reviewed by: jkoshy Approved by: re (blanket)
* Set ki_tdev to NODEV rather than NULL.peter2005-06-241-1/+1
| | | | Approved by: re
* Fix off-by-one nanosecond bug in macro TIMESPEC_ADD.davidxu2005-06-221-1/+1
| | | | | | Reviewed by: deischen Approved by: re (dwhite) MFC after : 4 days
* Fix off-by-one nanosecond in macro TIMESPEC_ADD.davidxu2005-06-222-2/+2
| | | | | | Reviewed by: deischen Approved by: re (dwhite) MFC after : 4 days
* Clear devinfo_generation in devinfo_free() since we are freeing all of thejhb2005-06-221-0/+1
| | | | | | | | | | | | | cached state. Otherwise, a subsequent call to devinfo_init() would succeed without reading the device tree from the kernel thinking that the cached state was up to date since the generation count was the same. However, since the cached state was actually free'd, attempts to examine the tree after the second devinfo_init() would fail. Reported by: Juho Vuori juho dot vuori at kepa dot fi Submitted by: Stefan Farfeleder stefan at fafoe dot narf dot at Approved by: re (dwhite) MFC after: 1 week
* Add the functions _Qp_cmp() and _Qp_cmpe() as described in the Sparcstefanf2005-06-211-8/+11
| | | | | | | | Compliance Definition. On sparc64, GCC emits _Qp_cmp() calls for its __builtin_isfoo() functions which are used for C99's isfoo() macros. Approved by: re(dwhite) PR: 73782
* Update for OpenPAM Figwort.des2005-06-172-1/+6
| | | | Approved by: re (kensmith)
* Markup nit.ru2005-06-161-1/+1
| | | | Approved by: re (blanket)
* Fixed compile warning.ru2005-06-161-2/+0
| | | | Approved by: re (blanket)
* Removed redundnt empty line.ru2005-06-161-1/+0
| | | | Approved by: re (blanket)
* Markup fixes.ru2005-06-163-10/+17
| | | | Approved by: re
* Assorted markup fixes.ru2005-06-1517-51/+85
| | | | Approved by: re
* Remove incorrect BUGS entry: libthr does support process-scope threadrwatson2005-06-151-5/+0
| | | | | | | | scheduling. MFC after: 1 week Submitted by: davidxu Approved by: re (scottl)
* When IPC_NOWAIT is set and there is no message, msgrcv() failsru2005-06-141-3/+3
| | | | | | | | with errno set to ENOMSG. PR: docs/82217 Submitted by: delphij Approved by: re (blanket)
* Don't use a cast as an lvalue.des2005-06-131-3/+3
| | | | | | | | Add a redundant test to make it painfully obvious to the reader that this code does not support IPv6. Approved by: re (dwhite) MFC after: 1 week
* Add a stub libthr(3) man page to document what it is and why, as well asrwatson2005-06-112-0/+74
| | | | | | | | | to point at libmap.conf(5). This will help answer questions about what and why it is, although not in great detail. Approved by: re (scottl) MFC after: 1 week MFC note: When MFC'd, don't MFC mention of work not yet MFC'd.
* Remove rexecd(8), a server that implements a particularly insecurenectar2005-06-101-2/+0
| | | | | | | method of executing commands remotely. There are no rexec clients in the FreeBSD tree, and the client function rexec(3) is present only in libcompat. It has been documented as "obsolete" since 4.3BSD, and its use has been discouraged in the man page for over 10 years.
* Fix the wording in this man page so that itrodrigc2005-06-101-2/+4
| | | | | | | | | | reflects the actual behavior of the API for listing extended attributes. PR: docs/79261 Submitted by: rodrigc Reviewed by: rwatson, kan Approved by: das (mentor)
* Use appropriate error codes for each facility instead of just PAM_AUTH_ERR.des2005-06-101-4/+4
| | | | Noticed by: pjd
* Fix tinderbox breakage.jkoshy2005-06-101-4/+13
|
* MFP4:jkoshy2005-06-097-753/+1833
| | | | | | | | | | | | | | | | - Implement sampling modes and logging support in hwpmc(4). - Separate MI and MD parts of hwpmc(4) and allow sharing of PMC implementations across different architectures. Add support for P4 (EMT64) style PMCs to the amd64 code. - New pmcstat(8) options: -E (exit time counts) -W (counts every context switch), -R (print log file). - pmc(3) API changes, improve our ability to keep ABI compatibility in the future. Add more 'alias' names for commonly used events. - bug fixes & documentation.
* Revert the commits that made libssh an INTERNALLIB; they caused too muchdes2005-06-071-2/+1
| | | | | | trouble, especially on amd64. Requested by: ru
* Add a new source file in sendmail 8.13.4gshapiro2005-06-071-1/+1
|
* Fix libssh dependency.des2005-06-061-1/+2
|
* Minor clean up for flags restoration: Use fchflags/lchflags whenkientzle2005-06-044-13/+52
| | | | | available, stub out flags restore on platforms that don't support it, update autoconf to probe for fchflags and lchflags support.
* Sort archive_entry_ctime/archive_entry_ctime_nsec correctly.kientzle2005-06-041-13/+13
|
* Support libarchive with C++ by adding appropriate conditionalkientzle2005-06-042-4/+25
| | | | extern "C" declarations.
* Fix one error in the example usage of the archive_write API and fillkientzle2005-06-041-27/+52
| | | | | in a few missing details. The example code here is now a complete, functioning example program.
* Update .Dd value.alc2005-06-041-1/+1
|
* Eliminate the original method of requesting notification of aio_read(2) andalc2005-06-041-9/+0
| | | | | | | | | | | | | | | | | aio_write(2) completion through kevent(2). This method does not work on 64-bit architectures. It was deprecated in FreeBSD 4.4. See revisions 1.87 and 1.70.2.7. Change aio_physwakeup() to call psignal(9) directly rather than indirectly through a timeout(9). Discussed with: bde Correct a bug introduced in revision 1.65 that could result in premature delivery of a signal if an lio_listio(2) consisted of a mixture of direct/raw and queued I/O operations. Observed by: tegge Eliminate a field from struct kaioinfo that is now unused. Reviewed by: tegge
* Release n_hibma's maintainership due to his ENOTIME.schweikh2005-06-041-2/+0
| | | | Discussed with, okayed, authorized, requested by, on behalf of: n_hibma (MAINTAINER)
* Fix the source path.ru2005-06-041-1/+1
|
* Missed rwatson's redundancyimp2005-06-031-2/+0
|
OpenPOWER on IntegriCloud