Date: Wed, 22 Oct 2008 17:22:54 GMT From: Ed Schouten <ed@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 151732 for review Message-ID: <200810221722.m9MHMsM1052912@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=151732 Change 151732 by ed@ed_dull on 2008/10/22 17:21:58 IFC. Affected files ... .. //depot/projects/mpsafetty/contrib/tcsh/sh.c#2 integrate .. //depot/projects/mpsafetty/contrib/tcsh/tc.const.c#2 integrate .. //depot/projects/mpsafetty/crypto/openssh/loginrec.c#3 integrate .. //depot/projects/mpsafetty/crypto/openssh/sshd.c#3 integrate .. //depot/projects/mpsafetty/gnu/usr.bin/gdb/arch/amd64/Makefile#2 integrate .. //depot/projects/mpsafetty/gnu/usr.bin/gdb/arch/i386/Makefile#2 integrate .. //depot/projects/mpsafetty/lib/libarchive/archive_read_support_format_zip.c#2 integrate .. //depot/projects/mpsafetty/lib/libarchive/archive_util.c#2 integrate .. //depot/projects/mpsafetty/lib/libarchive/archive_write_disk.c#10 integrate .. //depot/projects/mpsafetty/lib/libarchive/test/Makefile#5 integrate .. //depot/projects/mpsafetty/lib/libarchive/test/test_acl_basic.c#3 integrate .. //depot/projects/mpsafetty/lib/libarchive/test/test_acl_freebsd.c#1 branch .. //depot/projects/mpsafetty/lib/libarchive/test/test_read_format_zip.c#4 integrate .. //depot/projects/mpsafetty/lib/libarchive/test/test_read_format_zip.zip.uu#2 integrate .. //depot/projects/mpsafetty/lib/libc/stdlib/Makefile.inc#4 integrate .. //depot/projects/mpsafetty/lib/libc/string/strlcpy.c#2 integrate .. //depot/projects/mpsafetty/lib/libc/string/strxfrm.c#2 integrate .. //depot/projects/mpsafetty/lib/libkvm/kvm.c#2 integrate .. //depot/projects/mpsafetty/lib/libkvm/kvm_minidump_amd64.c#2 integrate .. //depot/projects/mpsafetty/lib/libkvm/kvm_minidump_i386.c#2 integrate .. //depot/projects/mpsafetty/lib/libutil/flopen.3#2 integrate .. //depot/projects/mpsafetty/lib/libutil/flopen.c#2 integrate .. //depot/projects/mpsafetty/lib/libutil/login_cap.h#3 integrate .. //depot/projects/mpsafetty/lib/libutil/login_class.3#3 integrate .. //depot/projects/mpsafetty/lib/libutil/login_class.c#5 integrate .. //depot/projects/mpsafetty/lib/libutil/login_times.3#2 integrate .. //depot/projects/mpsafetty/lib/libutil/login_times.c#2 integrate .. //depot/projects/mpsafetty/lib/libutil/logwtmp.c#2 integrate .. //depot/projects/mpsafetty/lib/libutil/pidfile.3#2 integrate .. //depot/projects/mpsafetty/lib/libutil/pidfile.c#2 integrate .. //depot/projects/mpsafetty/lib/libutil/realhostname.c#2 integrate .. //depot/projects/mpsafetty/release/Makefile#4 integrate .. //depot/projects/mpsafetty/sbin/dhclient/dhclient.c#2 integrate .. //depot/projects/mpsafetty/sbin/dhclient/dhcp.h#2 integrate .. //depot/projects/mpsafetty/sbin/dhclient/tables.c#2 integrate .. //depot/projects/mpsafetty/sbin/geom/class/part/geom_part.c#2 integrate .. //depot/projects/mpsafetty/sbin/ifconfig/ifconfig.8#9 integrate .. //depot/projects/mpsafetty/share/man/man4/ddb.4#10 integrate .. //depot/projects/mpsafetty/share/man/man4/mmc.4#3 integrate .. //depot/projects/mpsafetty/share/man/man4/mmcsd.4#2 integrate .. //depot/projects/mpsafetty/share/man/man4/sdhci.4#1 branch .. //depot/projects/mpsafetty/share/man/man4/u3g.4#3 integrate .. //depot/projects/mpsafetty/share/man/man9/vinvalbuf.9#2 integrate .. //depot/projects/mpsafetty/share/syscons/keymaps/INDEX.keymaps#2 integrate .. //depot/projects/mpsafetty/share/syscons/keymaps/eee_nordic.kbd#1 branch .. //depot/projects/mpsafetty/sys/amd64/amd64/identcpu.c#3 integrate .. //depot/projects/mpsafetty/sys/amd64/amd64/initcpu.c#2 integrate .. //depot/projects/mpsafetty/sys/amd64/amd64/prof_machdep.c#2 integrate .. //depot/projects/mpsafetty/sys/amd64/amd64/tsc.c#2 integrate .. //depot/projects/mpsafetty/sys/amd64/include/clock.h#2 integrate .. //depot/projects/mpsafetty/sys/amd64/include/md_var.h#2 integrate .. //depot/projects/mpsafetty/sys/amd64/include/specialreg.h#3 integrate .. //depot/projects/mpsafetty/sys/amd64/linux32/linux.h#3 integrate .. //depot/projects/mpsafetty/sys/amd64/linux32/linux32_sysvec.c#3 integrate .. //depot/projects/mpsafetty/sys/arm/arm/swtch.S#4 integrate .. //depot/projects/mpsafetty/sys/compat/linux/linux_signal.c#2 integrate .. //depot/projects/mpsafetty/sys/compat/linux/linux_signal.h#2 integrate .. //depot/projects/mpsafetty/sys/conf/NOTES#12 integrate .. //depot/projects/mpsafetty/sys/conf/files#18 integrate .. //depot/projects/mpsafetty/sys/contrib/altq/altq/altq_subr.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/age/if_age.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/age/if_agevar.h#2 integrate .. //depot/projects/mpsafetty/sys/dev/ata/ata-dma.c#3 integrate .. //depot/projects/mpsafetty/sys/dev/ata/chipsets/ata-cyrix.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ata/chipsets/ata-marvell.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ata/chipsets/ata-national.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ata/chipsets/ata-serverworks.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ath/if_ath.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/cxgb/cxgb_sge.c#10 integrate .. //depot/projects/mpsafetty/sys/dev/mii/e1000phy.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/mmc/mmc.c#5 integrate .. //depot/projects/mpsafetty/sys/dev/mmc/mmcreg.h#5 integrate .. //depot/projects/mpsafetty/sys/dev/mmc/mmcsd.c#6 integrate .. //depot/projects/mpsafetty/sys/dev/mmc/mmcvar.h#5 integrate .. //depot/projects/mpsafetty/sys/dev/pci/pci.c#6 integrate .. //depot/projects/mpsafetty/sys/dev/pci/pcireg.h#3 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/if_plip.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/immio.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/lpbb.c#3 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/lpt.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/pcfclock.c#3 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/ppb_base.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/ppb_msq.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/ppbconf.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/ppbconf.h#3 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/ppi.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/pps.c#3 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/vpo.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/vpoio.c#2 integrate .. //depot/projects/mpsafetty/sys/dev/ppbus/vpoio.h#2 integrate .. //depot/projects/mpsafetty/sys/dev/ppc/ppc.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/ppc/ppcreg.h#4 integrate .. //depot/projects/mpsafetty/sys/dev/sdhci/sdhci.c#1 branch .. //depot/projects/mpsafetty/sys/dev/sdhci/sdhci.h#1 branch .. //depot/projects/mpsafetty/sys/dev/sound/pci/hda/hdac.c#7 integrate .. //depot/projects/mpsafetty/sys/dev/usb/u3g.c#3 integrate .. //depot/projects/mpsafetty/sys/dev/usb/usb_quirks.c#4 integrate .. //depot/projects/mpsafetty/sys/dev/usb/usbdevs#14 integrate .. //depot/projects/mpsafetty/sys/geom/geom_disk.c#3 integrate .. //depot/projects/mpsafetty/sys/geom/part/g_part_pc98.c#3 integrate .. //depot/projects/mpsafetty/sys/geom/part/g_part_vtoc8.c#2 integrate .. //depot/projects/mpsafetty/sys/i386/cpufreq/powernow.c#4 integrate .. //depot/projects/mpsafetty/sys/i386/i386/apic_vector.s#2 integrate .. //depot/projects/mpsafetty/sys/i386/i386/identcpu.c#3 integrate .. //depot/projects/mpsafetty/sys/i386/i386/initcpu.c#2 integrate .. //depot/projects/mpsafetty/sys/i386/i386/trap.c#4 integrate .. //depot/projects/mpsafetty/sys/i386/i386/tsc.c#2 integrate .. //depot/projects/mpsafetty/sys/i386/include/apicvar.h#2 integrate .. //depot/projects/mpsafetty/sys/i386/include/clock.h#2 integrate .. //depot/projects/mpsafetty/sys/i386/include/cpufunc.h#5 integrate .. //depot/projects/mpsafetty/sys/i386/include/md_var.h#2 integrate .. //depot/projects/mpsafetty/sys/i386/include/smp.h#4 integrate .. //depot/projects/mpsafetty/sys/i386/include/specialreg.h#4 integrate .. //depot/projects/mpsafetty/sys/i386/include/trap.h#3 integrate .. //depot/projects/mpsafetty/sys/i386/include/xen/evtchn.h#3 integrate .. //depot/projects/mpsafetty/sys/i386/include/xen/xen-os.h#3 integrate .. //depot/projects/mpsafetty/sys/i386/include/xen/xen_intr.h#2 integrate .. //depot/projects/mpsafetty/sys/i386/include/xen/xenfunc.h#3 integrate .. //depot/projects/mpsafetty/sys/i386/isa/prof_machdep.c#2 integrate .. //depot/projects/mpsafetty/sys/i386/linux/linux.h#3 integrate .. //depot/projects/mpsafetty/sys/i386/linux/linux_sysvec.c#3 integrate .. //depot/projects/mpsafetty/sys/i386/xen/clock.c#3 integrate .. //depot/projects/mpsafetty/sys/i386/xen/exception.s#3 integrate .. //depot/projects/mpsafetty/sys/i386/xen/locore.s#4 integrate .. //depot/projects/mpsafetty/sys/i386/xen/mp_machdep.c#5 integrate .. //depot/projects/mpsafetty/sys/i386/xen/xen_machdep.c#10 integrate .. //depot/projects/mpsafetty/sys/ia64/ia64/mp_machdep.c#3 integrate .. //depot/projects/mpsafetty/sys/kern/kern_fork.c#3 integrate .. //depot/projects/mpsafetty/sys/kern/kern_prot.c#2 integrate .. //depot/projects/mpsafetty/sys/kern/kern_synch.c#7 integrate .. //depot/projects/mpsafetty/sys/kern/kern_time.c#2 integrate .. //depot/projects/mpsafetty/sys/kern/subr_stack.c#3 integrate .. //depot/projects/mpsafetty/sys/kern/subr_trap.c#2 integrate .. //depot/projects/mpsafetty/sys/kern/subr_witness.c#10 integrate .. //depot/projects/mpsafetty/sys/kern/tty.c#54 integrate .. //depot/projects/mpsafetty/sys/kern/uipc_socket.c#6 integrate .. //depot/projects/mpsafetty/sys/kern/vfs_subr.c#9 integrate .. //depot/projects/mpsafetty/sys/kern/vfs_vnops.c#6 integrate .. //depot/projects/mpsafetty/sys/modules/Makefile#14 integrate .. //depot/projects/mpsafetty/sys/modules/sdhci/Makefile#1 branch .. //depot/projects/mpsafetty/sys/netinet/if_ether.c#8 integrate .. //depot/projects/mpsafetty/sys/netinet/in_pcb.c#10 integrate .. //depot/projects/mpsafetty/sys/netinet/in_pcb.h#9 integrate .. //depot/projects/mpsafetty/sys/netinet/ip_divert.c#5 integrate .. //depot/projects/mpsafetty/sys/netinet/raw_ip.c#9 integrate .. //depot/projects/mpsafetty/sys/netinet/sctp_crc32.c#2 integrate .. //depot/projects/mpsafetty/sys/netinet/sctp_output.c#6 integrate .. //depot/projects/mpsafetty/sys/netinet/sctp_sysctl.c#2 integrate .. //depot/projects/mpsafetty/sys/netinet/sctp_uio.h#3 integrate .. //depot/projects/mpsafetty/sys/netinet/sctp_usrreq.c#4 integrate .. //depot/projects/mpsafetty/sys/netinet/sctputil.c#6 integrate .. //depot/projects/mpsafetty/sys/netinet/tcp_subr.c#8 integrate .. //depot/projects/mpsafetty/sys/netinet/udp_usrreq.c#13 integrate .. //depot/projects/mpsafetty/sys/netinet6/in6_src.c#7 integrate .. //depot/projects/mpsafetty/sys/security/mac/mac_framework.h#3 integrate .. //depot/projects/mpsafetty/sys/security/mac/mac_inet.c#3 integrate .. //depot/projects/mpsafetty/sys/security/mac/mac_policy.h#3 integrate .. //depot/projects/mpsafetty/sys/security/mac_biba/mac_biba.c#4 integrate .. //depot/projects/mpsafetty/sys/security/mac_lomac/mac_lomac.c#5 integrate .. //depot/projects/mpsafetty/sys/security/mac_mls/mac_mls.c#4 integrate .. //depot/projects/mpsafetty/sys/security/mac_partition/mac_partition.c#4 integrate .. //depot/projects/mpsafetty/sys/security/mac_seeotheruids/mac_seeotheruids.c#3 integrate .. //depot/projects/mpsafetty/sys/security/mac_stub/mac_stub.c#3 integrate .. //depot/projects/mpsafetty/sys/security/mac_test/mac_test.c#3 integrate .. //depot/projects/mpsafetty/sys/sys/cdefs.h#2 integrate .. //depot/projects/mpsafetty/sys/sys/param.h#14 integrate .. //depot/projects/mpsafetty/sys/sys/systm.h#4 integrate .. //depot/projects/mpsafetty/sys/ufs/ffs/ffs_vnops.c#3 integrate .. //depot/projects/mpsafetty/sys/vm/vm_mmap.c#5 integrate .. //depot/projects/mpsafetty/tools/regression/lib/libutil/test-flopen.c#2 integrate .. //depot/projects/mpsafetty/tools/tools/nanobsd/nanobsd.sh#12 integrate .. //depot/projects/mpsafetty/usr.bin/ministat/Makefile#2 integrate .. //depot/projects/mpsafetty/usr.bin/ministat/ministat.c#2 integrate .. //depot/projects/mpsafetty/usr.bin/netstat/inet.c#5 integrate .. //depot/projects/mpsafetty/usr.bin/netstat/route.c#3 integrate .. //depot/projects/mpsafetty/usr.sbin/pciconf/pciconf.c#3 integrate .. //depot/projects/mpsafetty/usr.sbin/pkg_install/add/main.c#2 integrate .. //depot/projects/mpsafetty/usr.sbin/setfib/setfib.c#4 integrate .. //depot/projects/mpsafetty/usr.sbin/sysinstall/keymap.c#2 integrate Differences ... ==== //depot/projects/mpsafetty/contrib/tcsh/sh.c#2 (text+ko) ==== @@ -462,7 +462,7 @@ else cp2 = cp; if (!(((Strncmp(cp2, STRtty, 3) == 0) && Isalpha(cp2[3])) || - Strstr(cp, STRslptssl) != NULL)) { + Strstr(cp, STRptssl) != NULL)) { if (getenv("DISPLAY") == NULL) { /* NOT on X window shells */ setcopy(STRautologout, STRdefautologout, VAR_READWRITE); ==== //depot/projects/mpsafetty/contrib/tcsh/tc.const.c#2 (text+ko) ==== @@ -46,7 +46,7 @@ Char STRhangup[] = { 'h', 'a', 'n', 'g', 'u', 'p', '\0' }; Char STRaout[] = { 'a', '.', 'o', 'u', 't', '\0' }; Char STRtty[] = { 't', 't', 'y', '\0' }; -Char STRslptssl[] = { '/', 'p', 't', 's', '/', '\0' }; +Char STRptssl[] = { 'p', 't', 's', '/', '\0' }; Char STRany[] = { 'a', 'n', 'y', '\0' }; Char STRstatus[] = { 's', 't', 'a', 't', 'u', 's', '\0' }; Char STR0[] = { '0', '\0' }; ==== //depot/projects/mpsafetty/crypto/openssh/loginrec.c#3 (text+ko) ==== @@ -146,7 +146,6 @@ */ #include "includes.h" -__RCSID("$FreeBSD: src/crypto/openssh/loginrec.c,v 1.15 2008/08/01 02:48:36 des Exp $"); #include <sys/types.h> #include <sys/stat.h> @@ -689,8 +688,8 @@ strncpy(ut->ut_name, li->username, MIN_SIZEOF(ut->ut_name, li->username)); # ifdef HAVE_HOST_IN_UTMP - realhostname_sa(ut->ut_host, sizeof ut->ut_host, - &li->hostaddr.sa, li->hostaddr.sa.sa_len); + strncpy(ut->ut_host, li->hostname, + MIN_SIZEOF(ut->ut_host, li->hostname)); # endif # ifdef HAVE_ADDR_IN_UTMP /* this is just a 32-bit IP address */ ==== //depot/projects/mpsafetty/crypto/openssh/sshd.c#3 (text+ko) ==== @@ -43,7 +43,7 @@ */ #include "includes.h" -__RCSID("$FreeBSD: src/crypto/openssh/sshd.c,v 1.46 2008/08/01 02:48:36 des Exp $"); +__RCSID("$FreeBSD: src/crypto/openssh/sshd.c,v 1.47 2008/10/21 11:58:26 des Exp $"); #include <sys/types.h> #include <sys/ioctl.h> @@ -72,6 +72,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <utmp.h> #include <openssl/dh.h> #include <openssl/bn.h> @@ -238,7 +239,7 @@ u_int session_id2_len = 0; /* record remote hostname or ip */ -u_int utmp_len = MAXHOSTNAMELEN; +u_int utmp_len = UT_HOSTSIZE; /* options.max_startup sized array of fd ints */ int *startup_pipes = NULL; ==== //depot/projects/mpsafetty/gnu/usr.bin/gdb/arch/amd64/Makefile#2 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/gnu/usr.bin/gdb/arch/amd64/Makefile,v 1.4 2007/05/19 03:22:18 kan Exp $ +# $FreeBSD: src/gnu/usr.bin/gdb/arch/amd64/Makefile,v 1.5 2008/10/16 18:09:27 obrien Exp $ GENSRCS+= xm.h .if !defined(GDB_CROSS_DEBUGGER) @@ -7,7 +7,7 @@ .endif LIBSRCS+= solib.c solib-svr4.c LIBSRCS+= amd64-tdep.c amd64fbsd-tdep.c i386-tdep.c i386bsd-tdep.c \ - i386fbsd-tdep-fixed.c i387-tdep.c + i386fbsd-tdep-fixed.c i387-tdep.c nm.h: echo '#include "i386/nm-fbsd64.h"' > ${.TARGET} @@ -18,7 +18,7 @@ xm.h: echo '#include "i386/xm-i386.h"' > ${.TARGET} +# Fix source static/extern mismatch nits that GCC 4.2 warns about. +CLEANFILES+= i386fbsd-tdep-fixed.c i386fbsd-tdep-fixed.c: i386fbsd-tdep.c sed -e '48s/^static //' ${.ALLSRC} > ${.TARGET} - -CLEANFILES+= i386fbsd-tdep-fixed.c ==== //depot/projects/mpsafetty/gnu/usr.bin/gdb/arch/i386/Makefile#2 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/gnu/usr.bin/gdb/arch/i386/Makefile,v 1.5 2007/05/19 03:22:19 kan Exp $ +# $FreeBSD: src/gnu/usr.bin/gdb/arch/i386/Makefile,v 1.6 2008/10/16 18:09:27 obrien Exp $ GENSRCS+= xm.h .if !defined(GDB_CROSS_DEBUGGER) @@ -17,6 +17,7 @@ xm.h: echo '#include "i386/xm-i386.h"' > ${.TARGET} +# Fix source static/extern mismatch nits that GCC 4.2 warns about. +CLEANFILES += i386fbsd-tdep-fixed.c i386fbsd-tdep-fixed.c: i386fbsd-tdep.c sed -e '48s/^static\ //' ${.ALLSRC} > ${.TARGET} -CLEANFILES += i386fbsd-tdep-fixed.c ==== //depot/projects/mpsafetty/lib/libarchive/archive_read_support_format_zip.c#2 (text+ko) ==== @@ -24,7 +24,7 @@ */ #include "archive_platform.h" -__FBSDID("$FreeBSD: src/lib/libarchive/archive_read_support_format_zip.c,v 1.26 2008/06/30 16:19:26 des Exp $"); +__FBSDID("$FreeBSD: src/lib/libarchive/archive_read_support_format_zip.c,v 1.27 2008/10/21 05:08:35 kientzle Exp $"); #ifdef HAVE_ERRNO_H #include <errno.h> @@ -444,7 +444,9 @@ archive_entry_set_mtime(entry, zip->mtime, 0); archive_entry_set_ctime(entry, zip->ctime, 0); archive_entry_set_atime(entry, zip->atime, 0); - archive_entry_set_size(entry, zip->uncompressed_size); + /* Set the size only if it's meaningful. */ + if (0 == (zip->flags & ZIP_LENGTH_AT_END)) + archive_entry_set_size(entry, zip->uncompressed_size); zip->entry_bytes_remaining = zip->compressed_size; zip->entry_offset = 0; @@ -573,12 +575,16 @@ } break; } + if (r != ARCHIVE_OK) + return (r); /* Update checksum */ - if (r == ARCHIVE_OK && *size) { + if (*size) zip->entry_crc32 = crc32(zip->entry_crc32, *buff, *size); - } - return (r); + /* Return EOF immediately if this is a non-regular file. */ + if (AE_IFREG != (zip->mode & AE_IFMT)) + return (ARCHIVE_EOF); + return (ARCHIVE_OK); } /* ==== //depot/projects/mpsafetty/lib/libarchive/archive_util.c#2 (text+ko) ==== @@ -24,7 +24,7 @@ */ #include "archive_platform.h" -__FBSDID("$FreeBSD: src/lib/libarchive/archive_util.c,v 1.18 2008/05/26 17:00:22 kientzle Exp $"); +__FBSDID("$FreeBSD: src/lib/libarchive/archive_util.c,v 1.19 2008/10/21 12:10:30 des Exp $"); #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> @@ -168,6 +168,7 @@ va_start(ap, fmt); archive_string_vsprintf(&(a->error_string), fmt, ap); + va_end(ap); if (error_number > 0) { archive_strcat(&(a->error_string), ": "); #ifdef HAVE_STRERROR_R @@ -184,7 +185,6 @@ archive_strcat(&(a->error_string), errp); } a->error = a->error_string.s; - va_end(ap); } void ==== //depot/projects/mpsafetty/lib/libarchive/archive_write_disk.c#10 (text+ko) ==== @@ -25,7 +25,7 @@ */ #include "archive_platform.h" -__FBSDID("$FreeBSD: src/lib/libarchive/archive_write_disk.c,v 1.40 2008/09/30 04:02:36 kientzle Exp $"); +__FBSDID("$FreeBSD: src/lib/libarchive/archive_write_disk.c,v 1.41 2008/10/19 00:18:44 kientzle Exp $"); #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> @@ -710,10 +710,6 @@ int r2 = set_mode(a, a->mode); if (r2 < ret) ret = r2; } - if (a->todo & TODO_TIMES) { - int r2 = set_times(a); - if (r2 < ret) ret = r2; - } if (a->todo & TODO_ACLS) { int r2 = set_acls(a); if (r2 < ret) ret = r2; @@ -726,6 +722,10 @@ int r2 = set_fflags(a); if (r2 < ret) ret = r2; } + if (a->todo & TODO_TIMES) { + int r2 = set_times(a); + if (r2 < ret) ret = r2; + } /* If there's an fd, we can close it now. */ if (a->fd >= 0) { ==== //depot/projects/mpsafetty/lib/libarchive/test/Makefile#5 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/lib/libarchive/test/Makefile,v 1.27 2008/09/30 04:02:36 kientzle Exp $ +# $FreeBSD: src/lib/libarchive/test/Makefile,v 1.28 2008/10/19 00:18:44 kientzle Exp $ # Where to find the libarchive sources LA_SRCDIR=${.CURDIR}/.. @@ -9,6 +9,7 @@ TESTS= \ test_acl_basic.c \ + test_acl_freebsd.c \ test_acl_pax.c \ test_archive_api_feature.c \ test_bad_fd.c \ ==== //depot/projects/mpsafetty/lib/libarchive/test/test_acl_basic.c#3 (text+ko) ==== @@ -23,12 +23,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "test.h" -__FBSDID("$FreeBSD: src/lib/libarchive/test/test_acl_basic.c,v 1.5 2008/09/01 05:38:33 kientzle Exp $"); +__FBSDID("$FreeBSD: src/lib/libarchive/test/test_acl_basic.c,v 1.6 2008/10/19 00:13:57 kientzle Exp $"); /* * Exercise the system-independent portion of the ACL support. - * Check that archive_entry objects can save and restore ACL data - * and that pax archive can save and restore ACL data. + * Check that archive_entry objects can save and restore ACL data. * * This should work on all systems, regardless of whether local * filesystems support ACLs or not. @@ -42,7 +41,7 @@ const char *name; /* Name of user/group, depending on tag. */ }; -struct acl_t acls0[] = { +static struct acl_t acls0[] = { { ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_EXECUTE, ARCHIVE_ENTRY_ACL_USER_OBJ, 0, "" }, { ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_READ, @@ -51,7 +50,7 @@ ARCHIVE_ENTRY_ACL_OTHER, 0, "" }, }; -struct acl_t acls1[] = { +static struct acl_t acls1[] = { { ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_EXECUTE, ARCHIVE_ENTRY_ACL_USER_OBJ, -1, "" }, { ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_READ, @@ -62,7 +61,7 @@ ARCHIVE_ENTRY_ACL_OTHER, -1, "" }, }; -struct acl_t acls2[] = { +static struct acl_t acls2[] = { { ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_EXECUTE | ARCHIVE_ENTRY_ACL_READ, ARCHIVE_ENTRY_ACL_USER_OBJ, -1, "" }, { ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_READ, ==== //depot/projects/mpsafetty/lib/libarchive/test/test_read_format_zip.c#4 (text+ko) ==== @@ -23,7 +23,13 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "test.h" -__FBSDID("$FreeBSD: src/lib/libarchive/test/test_read_format_zip.c,v 1.7 2008/09/01 05:38:33 kientzle Exp $"); +__FBSDID("$FreeBSD: src/lib/libarchive/test/test_read_format_zip.c,v 1.8 2008/10/21 05:08:35 kientzle Exp $"); + +/* + * The reference file for this has been manually tweaked so that: + * * file2 has length-at-end but file1 does not + * * file2 has an invalid CRC + */ DEFINE_TEST(test_read_format_zip) { @@ -57,7 +63,8 @@ assertA(0 == archive_read_next_header(a, &ae)); assertEqualString("file2", archive_entry_pathname(ae)); assertEqualInt(1179605932, archive_entry_mtime(ae)); - assertEqualInt(18, archive_entry_size(ae)); + failure("file2 has length-at-end, so we shouldn't see a valid size"); + assertEqualInt(0, archive_entry_size_is_set(ae)); failure("file2 has a bad CRC, so reading to end should fail"); assertEqualInt(ARCHIVE_WARN, archive_read_data(a, buff, 19)); assert(0 == memcmp(buff, "hello\nhello\nhello\n", 18)); ==== //depot/projects/mpsafetty/lib/libarchive/test/test_read_format_zip.zip.uu#2 (text+ko) ==== @@ -1,13 +1,14 @@ -$FreeBSD: src/lib/libarchive/test/test_read_format_zip.zip.uu,v 1.2 2008/06/26 11:50:11 des Exp $ +$FreeBSD: src/lib/libarchive/test/test_read_format_zip.zip.uu,v 1.3 2008/10/21 05:08:35 kientzle Exp $ begin 644 test_read_format_zip.zip -M4$L#!`H``````%EFLS8````````````````$`!4`9&ER+U54"0`#&55/1AE5 -M3T95>`0`Z`/H`U!+`P04````"`!O9K,V.C=F/0H````2````!0`5`&9I;&4Q -M550)``-!54]&K%M/1E5X!`#H`^@#RTC-R<GGRD`B`5!+`P04````"`!::K,V -M>%8T$@H````2````!0`5`&9I;&4R550)``.L6T]&K%M/1E5X!`#H`^@#RTC- -MR<GGRD`B`5!+`0(7`PH``````%EFLS8````````````````$``T````````` -M$`#M00````!D:7(O550%``,954]&57@``%!+`0(7`Q0````(`&]FLS8Z-V8] -M"@```!(````%``T```````$```"D@3<```!F:6QE,554!0`#055/1E5X``!0 -M2P$"%P,4````"`!::K,V>%8T$@H````2````!0`-```````!````I(%Y```` -H9FEL93)55`4``ZQ;3T95>```4$L%!@`````#``,`OP```+L````````` +M4$L#!`H`"````%EFLS8````````````````$`!4`9&ER+U54"0`#&55/1M19 +M_4A5>`0`Z`/H`U!+!P@```````````````!02P,$%`````@`;V:S-CHW9CT* +M````$@````4`%0!F:6QE,554"0`#055/1L!9_4A5>`0`Z`/H`\M(S<G)Y\I` +M(@%02P,$%``(``@`6FJS-@``````````$@````4`%0!F:6QE,E54"0`#K%M/ +M1L!9_4A5>`0`Z`/H`\M(S<G)Y\I`(@%02P<(.C=F$@H````2````4$L!`A<# +M"@`(````66:S-@````````````````0`#0`````````0`.U!`````&1I<B]5 +M5`4``QE53T95>```4$L!`A<#%``(``@`;V:S-CHW9CT*````$@````4`#0`` +M`````0```.V!1P```&9I;&4Q550%``-!54]&57@``%!+`0(7`Q0`"``(`%IJ +MLS8Z-V8]"@```!(````%``T```````$```#M@8D```!F:6QE,E54!0`#K%M/ +;1E5X``!02P4&``````,``P"_````VP`````` ` end ==== //depot/projects/mpsafetty/lib/libc/stdlib/Makefile.inc#4 (text+ko) ==== @@ -1,5 +1,5 @@ # from @(#)Makefile.inc 8.3 (Berkeley) 2/4/95 -# $FreeBSD: src/lib/libc/stdlib/Makefile.inc,v 1.55 2008/08/20 08:31:58 ed Exp $ +# $FreeBSD: src/lib/libc/stdlib/Makefile.inc,v 1.56 2008/10/17 08:30:20 netchild Exp $ # machine-independent stdlib sources .PATH: ${.CURDIR}/${MACHINE_ARCH}/stdlib ${.CURDIR}/stdlib @@ -48,3 +48,8 @@ MLINKS+=malloc.3 calloc.3 malloc.3 free.3 malloc.3 malloc.conf.5 \ malloc.3 realloc.3 malloc.3 reallocf.3 malloc.3 malloc_usable_size.3 MLINKS+=tsearch.3 tdelete.3 tsearch.3 tfind.3 tsearch.3 twalk.3 + +.if defined(MALLOC_PRODUCTION) +CFLAGS+= -DMALLOC_PRODUCTION +.endif + ==== //depot/projects/mpsafetty/lib/libc/string/strlcpy.c#2 (text+ko) ==== @@ -1,37 +1,23 @@ -/* $OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $ */ +/* $OpenBSD: strlcpy.c,v 1.11 2006/05/05 15:27:38 millert Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> - * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $"; -#endif /* LIBC_SCCS and not lint */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/lib/libc/string/strlcpy.c,v 1.9 2006/06/15 15:56:55 maxim Exp $"); +__FBSDID("$FreeBSD: src/lib/libc/string/strlcpy.c,v 1.10 2008/10/19 10:11:35 delphij Exp $"); #include <sys/types.h> #include <string.h> @@ -42,21 +28,18 @@ * Returns strlen(src); if retval >= siz, truncation occurred. */ size_t -strlcpy(dst, src, siz) - char *dst; - const char *src; - size_t siz; +strlcpy(char *dst, const char *src, size_t siz) { char *d = dst; const char *s = src; size_t n = siz; /* Copy as many bytes as will fit */ - if (n != 0 && --n != 0) { - do { - if ((*d++ = *s++) == 0) + if (n != 0) { + while (--n != 0) { + if ((*d++ = *s++) == '\0') break; - } while (--n != 0); + } } /* Not enough room in dst, add NUL and traverse rest of src */ ==== //depot/projects/mpsafetty/lib/libc/string/strxfrm.c#2 (text+ko) ==== @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/lib/libc/string/strxfrm.c,v 1.15 2002/09/06 11:24:06 tjr Exp $"); +__FBSDID("$FreeBSD: src/lib/libc/string/strxfrm.c,v 1.17 2008/10/19 09:10:44 delphij Exp $"); #include <stdlib.h> #include <string.h> @@ -45,18 +45,8 @@ return 0; } - if (__collate_load_error) { - slen = strlen(src); - if (len > 0) { - if (slen < len) - strcpy(dest, src); - else { - strncpy(dest, src, len - 1); - dest[len - 1] = '\0'; - } - } - return slen; - } + if (__collate_load_error) + return strlcpy(dest, src, len); slen = 0; prim = sec = 0; ==== //depot/projects/mpsafetty/lib/libkvm/kvm.c#2 (text+ko) ==== @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/lib/libkvm/kvm.c,v 1.32 2008/01/12 00:54:47 delphij Exp $"); +__FBSDID("$FreeBSD: src/lib/libkvm/kvm.c,v 1.33 2008/10/17 20:11:28 delphij Exp $"); #if defined(LIBC_SCCS) && !defined(lint) #if 0 @@ -244,11 +244,10 @@ { kvm_t *kd; - if ((kd = malloc(sizeof(*kd))) == NULL) { + if ((kd = calloc(1, sizeof(*kd))) == NULL) { (void)strlcpy(errout, strerror(errno), _POSIX2_LINE_MAX); return (0); } - memset(kd, 0, sizeof(*kd)); kd->program = 0; return (_kvm_open(kd, uf, mf, flag, errout)); } @@ -263,13 +262,12 @@ { kvm_t *kd; - if ((kd = malloc(sizeof(*kd))) == NULL) { + if ((kd = calloc(1, sizeof(*kd))) == NULL) { if (errstr != NULL) (void)fprintf(stderr, "%s: %s\n", errstr, strerror(errno)); return (0); } - memset(kd, 0, sizeof(*kd)); kd->program = errstr; return (_kvm_open(kd, uf, mf, flag, NULL)); } ==== //depot/projects/mpsafetty/lib/libkvm/kvm_minidump_amd64.c#2 (text) ==== @@ -24,7 +24,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/lib/libkvm/kvm_minidump_amd64.c,v 1.2 2006/06/05 08:51:14 delphij Exp $"); +__FBSDID("$FreeBSD: src/lib/libkvm/kvm_minidump_amd64.c,v 1.3 2008/10/17 20:09:00 delphij Exp $"); /* * AMD64 machine dependent routines for kvm and minidumps. @@ -146,7 +146,6 @@ return (-1); } kd->vmst = vmst; - bzero(vmst, sizeof(*vmst)); vmst->minidump = 1; if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != sizeof(vmst->hdr)) { ==== //depot/projects/mpsafetty/lib/libkvm/kvm_minidump_i386.c#2 (text) ==== @@ -24,7 +24,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/lib/libkvm/kvm_minidump_i386.c,v 1.2 2006/06/05 08:51:14 delphij Exp $"); +__FBSDID("$FreeBSD: src/lib/libkvm/kvm_minidump_i386.c,v 1.3 2008/10/17 20:09:00 delphij Exp $"); /* * AMD64 machine dependent routines for kvm and minidumps. @@ -148,7 +148,6 @@ return (-1); } kd->vmst = vmst; - bzero(vmst, sizeof(*vmst)); vmst->minidump = 1; if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != sizeof(vmst->hdr)) { ==== //depot/projects/mpsafetty/lib/libutil/flopen.3#2 (text+ko) ==== @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $FreeBSD: src/lib/libutil/flopen.3,v 1.6 2007/09/28 15:31:44 obrien Exp $ +.\" $FreeBSD: src/lib/libutil/flopen.3,v 1.7 2008/10/20 18:02:16 des Exp $ .\" .Dd May 10, 2007 .Dt FLOPEN 3 @@ -46,12 +46,13 @@ function opens or creates a file and acquires an exclusive lock on it. It is essentially equivalent with calling .Fn open -with the same parameters followed by -.Fn flock -with an -.Va operation -argument of -.Dv LOCK_EX , +with the same parameters followed by an +.Fn fcntl +.Dv F_SETLK +or +.Dv F_SETLKW +operation with lock type +.Dv F_WRLCK , except that .Fn flopen will attempt to detect and handle races that may occur between opening @@ -86,12 +87,12 @@ Otherwise, it returns -1, and sets .Va errno as described in -.Xr flock 2 +.Xr fcntl 2 and .Xr open 2 . .Sh SEE ALSO .Xr errno 2 , -.Xr flock 2 , +.Xr fcntl 2 , .Xr open 2 .Sh HISTORY The ==== //depot/projects/mpsafetty/lib/libutil/flopen.c#2 (text+ko) ==== @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2007 Dag-Erling Coïdan Smørgrav + * Copyright (c) 2007 Dag-Erling Coïdan Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -26,14 +26,14 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/lib/libutil/flopen.c,v 1.9 2007/08/03 09:20:28 des Exp $"); +__FBSDID("$FreeBSD: src/lib/libutil/flopen.c,v 1.11 2008/10/20 18:11:30 des Exp $"); -#include <sys/file.h> #include <sys/stat.h> #include <errno.h> #include <fcntl.h> #include <stdarg.h> +#include <string.h> #include <unistd.h> #include <libutil.h> @@ -42,6 +42,7 @@ flopen(const char *path, int flags, ...) { int fd, operation, serrno, trunc; + struct flock lock; struct stat sb, fsb; mode_t mode; @@ -54,13 +55,14 @@ va_list ap; va_start(ap, flags); - mode = va_arg(ap, int); /* mode_t promoted to int */ + mode = (mode_t)va_arg(ap, int); /* mode_t promoted to int */ va_end(ap); } - operation = LOCK_EX; - if (flags & O_NONBLOCK) - operation |= LOCK_NB; + memset(&lock, 0, sizeof lock); + lock.l_type = ((flags & O_ACCMODE) == O_RDONLY) ? F_RDLCK : F_WRLCK; + lock.l_whence = SEEK_SET; + operation = (flags & O_NONBLOCK) ? F_SETLK : F_SETLKW; trunc = (flags & O_TRUNC); flags &= ~O_TRUNC; @@ -69,35 +71,35 @@ if ((fd = open(path, flags, mode)) == -1) /* non-existent or no access */ return (-1); - if (flock(fd, operation) == -1) { + if (fcntl(fd, operation, &lock) == -1) { /* unsupported or interrupted */ serrno = errno; - close(fd); + (void)close(fd); errno = serrno; return (-1); } if (stat(path, &sb) == -1) { /* disappeared from under our feet */ - close(fd); + (void)close(fd); continue; } if (fstat(fd, &fsb) == -1) { /* can't happen [tm] */ serrno = errno; - close(fd); + (void)close(fd); errno = serrno; return (-1); } if (sb.st_dev != fsb.st_dev || sb.st_ino != fsb.st_ino) { /* changed under our feet */ - close(fd); + (void)close(fd); continue; } if (trunc && ftruncate(fd, 0) != 0) { /* can't happen [tm] */ serrno = errno; - close(fd); + (void)close(fd); errno = serrno; return (-1); } ==== //depot/projects/mpsafetty/lib/libutil/login_cap.h#3 (text+ko) ==== @@ -22,7 +22,7 @@ * Low-level routines relating to the user capabilities database * * Was login_cap.h,v 1.9 1997/05/07 20:00:01 eivind Exp - * $FreeBSD: src/lib/libutil/login_cap.h,v 1.10 2008/07/25 19:58:14 brooks Exp $ + * $FreeBSD: src/lib/libutil/login_cap.h,v 1.13 2008/10/20 17:17:58 des Exp $ */ #ifndef _LOGIN_CAP_H_ @@ -81,7 +81,7 @@ #define LTM_NONE 0x00 #define LTM_SUN 0x01 #define LTM_MON 0x02 -#define LTM_TUE 0x04 +#define LTM_TUE 0x04 #define LTM_WED 0x08 #define LTM_THU 0x10 #define LTM_FRI 0x20 @@ -104,7 +104,8 @@ login_cap_t *login_getpwclass(const struct passwd *); login_cap_t *login_getuserclass(const struct passwd *); -const char *login_getcapstr(login_cap_t*, const char *, const char *, const char *); +const char *login_getcapstr(login_cap_t *, const char *, const char *, + const char *); const char **login_getcaplist(login_cap_t *, const char *, const char *); const char *login_getstyle(login_cap_t *, const char *, const char *); rlim_t login_getcaptime(login_cap_t *, const char *, rlim_t, rlim_t); @@ -114,45 +115,51 @@ int login_getcapbool(login_cap_t *, const char *, int); const char *login_setcryptfmt(login_cap_t *, const char *, const char *); -int setclasscontext(const char*, unsigned int); -int setusercontext(login_cap_t*, const struct passwd*, uid_t, unsigned int); +int setclasscontext(const char *, unsigned int); +void setclasscpumask(login_cap_t *); +int setusercontext(login_cap_t *, const struct passwd *, uid_t, unsigned int); void setclassresources(login_cap_t *); void setclassenvironment(login_cap_t *, const struct passwd *, int); /* Most of these functions are deprecated */ -int auth_approve(login_cap_t*, const char*, const char*); +int auth_approve(login_cap_t *, const char *, const char *); int auth_check(const char *, const char *, const char *, const char *, int *); void auth_env(void); -char *auth_mkvalue(const char *n); -int auth_response(const char *, const char *, const char *, const char *, int *, const char *, const char *); +char *auth_mkvalue(const char *); +int auth_response(const char *, const char *, const char *, const char *, int *, + const char *, const char *); void auth_rmfiles(void); int auth_scan(int); -int auth_script(const char*, ...); +int auth_script(const char *, ...); int auth_script_data(const char *, int, const char *, ...); char *auth_valud(const char *); int auth_setopt(const char *, const char *); void auth_clropts(void); -void auth_checknologin(login_cap_t*); -int auth_cat(const char*); +void auth_checknologin(login_cap_t *); +int auth_cat(const char *); -int auth_ttyok(login_cap_t*, const char *); -int auth_hostok(login_cap_t*, const char *, char const *); -int auth_timeok(login_cap_t*, time_t); +int auth_ttyok(login_cap_t *, const char *); +int auth_hostok(login_cap_t *, const char *, char const *); +int auth_timeok(login_cap_t *, time_t); struct tm; login_time_t parse_lt(const char *); +int in_lt(const login_time_t *, time_t *); int in_ltm(const login_time_t *, struct tm *, time_t *); int in_ltms(const login_time_t *, struct tm *, time_t *); +int in_lts(const login_time_t *, time_t *); /* helper functions */ int login_strinlist(const char **, char const *, int); int login_str2inlist(const char **, const char *, const char *, int); -login_time_t * login_timelist(login_cap_t *, char const *, int *, login_time_t **); +login_time_t * login_timelist(login_cap_t *, char const *, int *, + login_time_t **); int login_ttyok(login_cap_t *, const char *, const char *, const char *); -int login_hostok(login_cap_t *, const char *, const char *, const char *, const char *); +int login_hostok(login_cap_t *, const char *, const char *, const char *, + const char *); __END_DECLS ==== //depot/projects/mpsafetty/lib/libutil/login_class.3#3 (text+ko) ==== @@ -17,13 +17,14 @@ .\" 5. Modifications may be freely made to this file providing the above .\" conditions are met. .\" -.\" $FreeBSD: src/lib/libutil/login_class.3,v 1.20 2008/07/25 19:58:14 brooks Exp $ +.\" $FreeBSD: src/lib/libutil/login_class.3,v 1.21 2008/10/20 17:03:05 des Exp $ .\" -.Dd December 28, 1996 +.Dd October 20, 2008 .Os .Dt LOGIN_CLASS 3 .Sh NAME .Nm setclasscontext , +.Nm setclasscpumask , .Nm setclassenvironment , >>> TRUNCATED FOR MAIL (1000 lines) <<<
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810221722.m9MHMsM1052912>