summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* In case of the deletion of a user those whole database has to be regenerated,bapt2012-12-261-1/+5
| | | | | otherwise the user planned to be deleted remain in the pwd.db while removed from the plain text password file.
* Fix creating a user and adding it to a groupbapt2012-12-261-7/+8
| | | | Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim
* Fixup r244240: mp_ncpus will be 1 also in the !SMP and smp_disabled=1attilio2012-12-261-8/+1
| | | | | | | | | | | case. There is no point in optimizing further the code and use a TRUE litteral for a path that does heavyweight stuff anyway (like lock acq), at the price of obfuscated code. Use the appropriate check where necessary and remove a macro. Sponsored by: EMC / Isilon storage division MFC after: 3 days
* Add vendor IDs for Broadcom USB dongles (BCM20702).glebius2012-12-262-1/+7
| | | | | PR: kern/174707 Submitted by: rakuco
* Always initialize pattern_buf pointers to NULL, otherwise AMD64 machinedavidxu2012-12-261-4/+2
| | | | | | panics with: free: address xxx(yyy) has not been allocated. it can be triggered by hald.
* Fix libproc test case to work with clang premature optimizationpluknet2012-12-261-1/+1
| | | | | | | | | | observed with -O2 (used by default). Avoid function inlining for t1_bkpt_t on which we set a breakpoint. Otherwise the address of the function is never called thus the breakpoint never triggers. Reported by: zont Reviewed by: rpaulo
* Attempt to clarify that for ZFS, all file systems underrmacklem2012-12-251-1/+3
| | | | | | | | the NFSv4 root must be exported. This is because ZFS checks exports itself. This is a content change. MFC after: 2 weeks
* Attempt to clarify that for ZFS, all file systems underrmacklem2012-12-251-2/+5
| | | | | | | | the NFSv4 root must be exported. This is because ZFS checks exports itself. This is a content change. MFC after: 2 weeks
* Use correct size in snprintf.antoine2012-12-251-2/+1
| | | | | | | | Remove unused buffer. PR: 174631 Submitted by: Henning Petersen MFC after: 1 month
* Garbage collect carp_cksum().glebius2012-12-251-10/+4
|
* sh: Prefer strsignal() to accessing sys_siglist directly.jilles2012-12-251-8/+13
| | | | | | | | Accessing sys_siglist directly requires rtld to copy it from libc to the sh executable's BSS. Also, strsignal() will put in the signal number for unknown signals (FreeBSD-specific) so we need not do that ourselves. Unfortunately, there is no function for sys_signame.
* Change net.inet.carp.demotion sysctl to add the supplied valueglebius2012-12-252-12/+28
| | | | | | | to the current demotion factor instead of assigning it. This allows external scripts to control demotion factor together with kernel in a raceless manner.
* Fix sysctl_handle_int() usage. Either arg1 or arg2 should be supplied,glebius2012-12-252-2/+2
| | | | and arg2 doesn't pass size of arg1.
* - Update manual pages accordingly to r244384 and r244385.zont2012-12-252-9/+25
| | | | | Approved by: kib (mentor) MFC after: 1 week
* The SIOCSIFFLAGS ioctl handler runs if_up()/if_down() that notifyglebius2012-12-252-3/+17
| | | | | | | | | | | | | | | | | | all interested parties in case if interface flag IFF_UP has changed. However, not only SIOCSIFFLAGS can raise the flag, but SIOCAIFADDR and SIOCAIFADDR_IN6 can, too. The actual |= is done not in the protocol code, but in code of interface drivers. To fix this historical layering violation, we will check whether ifp->if_ioctl(SIOCSIFADDR) raised the IFF_UP flag, and if it did, run the if_up() handler. This fixes configuring an address under CARP control on an interface that was initially !IFF_UP. P.S. I intentionally omitted handling the IFF_SMART flag. This flag was never ever used in any driver since it was introduced, and since it means another layering violation, it should be garbage collected instead of pretended to be supported.
* Add more debugging to help with diagnosis of program-flow when needed.dteske2012-12-2567-21/+181
|
* Remove unnecessary duplicate initialization of the dialog(1) API (automaticallydteske2012-12-2542-42/+0
| | | | bootstrapped on-include unless DIALOG_SELF_INITIALIZE is set to NO before-hand)
* Fix the __glibcxx_min and __glibcxx_max macros for a signed wchar_t.andrew2012-12-251-2/+3
| | | | | | * The __glibcxx_max macro came from GCC svn r138078, the last GPLv2 revision of this file. * I wrote the updated __glibcxx_min macro.
* various connections to last commitluigi2012-12-252-10/+21
|
* Minor style(9) changes:glebius2012-12-241-1/+3
| | | | | - Remove declaration in initializer. - Add empty line between logical blocks.
* Fix more regression issue after r244503.hselasky2012-12-243-4/+12
| | | | | | | usbd_transfer_setup() does not set a default length for USB transfers. Only the number of frames is automatically setup. MFC after: 1 week
* small cleanup of the code, and add support for running multipleluigi2012-12-231-21/+144
| | | | threads on each socket.
* Do not force a writer to the devfs file to drain the buffer writes.kib2012-12-233-2/+15
| | | | | Requested and tested by: Ian Lepore <freebsd@damnhippie.dyndns.org> MFC after: 2 weeks
* enable building picobsd with CC instead of CLANGluigi2012-12-231-0/+3
|
* Pull in r170096 from upstream clang trunk:andrew2012-12-234-1/+33
| | | | Initial support for FreeBSD on ARM.
* Remove extraneous space and new-line.matthew2012-12-231-2/+2
| | | | | | Submitted by: pjd, gcooper Approved by: bapt MFC after: 2 weeks
* Fix the Makefile so it can build gssd.c after r244604.rmacklem2012-12-231-2/+2
| | | | MFC after: 2 weeks
* zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used insteadavg2012-12-232-3/+3
| | | | | | To do: remove KM_ZERO declaration Pointyhat to: avg (for mindlessly using the pseudo-flag) MFC after: instantly (to fix stable/8 build)
* Add parentheses to IP_FW_ARG_TABLEARG() definition.melifaro2012-12-231-1/+1
| | | | | Suggested by: glebius MFC with: r244633
* Use unified IP_FW_ARG_TABLEARG() macro for most tablearg checks.melifaro2012-12-234-25/+17
| | | | | | | Log real value instead of IP_FW_TABLEARG (65535) in ipfw_log(). Noticed by: Vitaliy Tokarenko <rphone@ukr.net> MFC after: 2 weeks
* Correct a series of errors in the hand-rolled locking for drace_debug.c:rstone2012-12-231-44/+54
| | | | | | | | | | | | | | | | | | | | | - Use spinlock_enter()/spinlock_exit() to prevent a thread holding a debug lock from being preempted to prevent other threads waiting on that lock from starvation. - Handle the possibility of CPU migration in between the fetch of curcpu and the call to spinlock_enter() by saving curcpu in a local variable. - Use memory barriers to prevent reordering of loads and stores of the data protected by the lock outside of the critical section - Eliminate false sharing of the locks by moving them into the structures that they protect and aligning them to a cacheline boundary. - Record the owning thread in the lock to make debugging future problems easier. Reviewed by: rpaulo (initial version) MFC after: 2 weeks
* UPDATING: add a note about the clang+zfs+i386 stack overflow issueavg2012-12-231-0/+5
|
* Upgrade our copy of llvm/clang to 3.2 release.dim2012-12-2327-291/+247
| | | | | | | | | | Release notes for llvm: http://llvm.org/releases/3.2/docs/ReleaseNotes.html Release notes for clang: http://llvm.org/releases/3.2/tools/clang/docs/ReleaseNotes.html MFC after: 2 weeks
* lock.9: fix incorrect descriptions of LK_SHARED and LK_DOWNGRADE behavioravg2012-12-231-2/+5
| | | | | | Reviewed by: attilio MFC after: 5 days X-MFC after: r243900
* Third time's the charm. pkg -N output needs to go to stderr.matthew2012-12-231-4/+2
| | | | | Approved by: bapt MFC after: 2 weeks
* Fix regression issue after r244503.hselasky2012-12-231-5/+8
| | | | MFC after: 1 week
* Document the new gssd daemon options added by r244604.rmacklem2012-12-221-1/+27
| | | | | | This is a content change. MFC after: 2 weeks
* It was reported via email that some sshds create kerberosrmacklem2012-12-221-11/+295
| | | | | | | | | | | | | | credential cache files with names other than /tmp/krb5cc_<uid>. The gssd daemon does not know how to find these credential caches. This patch implements a new option "-s" that does a search for credential cache files, using roughly the same algorithm as the gssd daemon for Linux uses. The gssd behaviour is only changed if the new "-s" option is specified. It also implements two other new options related to the "-s" option. Reported by: Piete.Brooks at cl.cam.ac.uk, Herbert Poeckl Tested by: Herbert Poeckl (admin at ist.tugraz.at), Illias A. Marinos MFC after: 2 weeks
* MFV r244559:mm2012-12-2216-473/+854
| | | | | | Update contrib/xz to version 5.0.4 MFC after: 2 weeks
* Fix a bug in ld --gc-sections: it strips out .note sections, while itdim2012-12-221-0/+1
| | | | | | | | | should never do so. This can cause global constructors and destructors to not be executed at run-time, resulting in crashes and other strange behaviour. Reported by: rene MFC after: 1 week
* Pull in r170353 from upstream llvm trunk:dim2012-12-221-1/+1
| | | | | | | | | | | | | | | | Fix another SROA crasher, PR14601. This was a silly oversight, we weren't pruning allocas which were used by variable-length memory intrinsics from the set that could be widened and promoted as integers. Fix that. This should fix the following assertion failure: Assertion failed: (CanSROA), function visitUsers, file /usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/lib/Transforms/Scalar/SROA.cpp, line 2395. Reported by: gerald
* Switch from 'pkg -n' to 'pkg -N' as the test for pkgn activationmatthew2012-12-221-2/+2
| | | | | | | | | status. '-n' is already used extensively elsewhere in pkgng (to mean 'dry-run') and this reduces the potential confusion Submitted by: eadler Approved by: bapt MFC after: 2 weeks
* Mangle label names containing spaces, non-printable characters '%' orjh2012-12-222-0/+29
| | | | | | | | | '"'. Mangling is only done for label names read from file system metadata. Encoding resembles URL encoding. For example, the space character becomes %20. Help by: kib Discussed with: imp, kib, pjd
* Reject spaces and double quotation marks in device names. devctl(4)jh2012-12-222-1/+12
| | | | | | | and devd(8) can't handle names with such characters properly. PR: bin/144736, kern/161912 Discussed with: imp, kib, pjd
* Fixup r240424: On entering KDB backends, the hijacked thread to runattilio2012-12-225-13/+17
| | | | | | | | | | | | | interrupt context can still be idlethread. At that point, without the panic condition, it can still happen that idlethread then will try to acquire some locks to carry on some operations. Skip the idlethread check on block/sleep lock operations when KDB is active. Reported by: jh Tested by: jh MFC after: 1 week
* cxgbe(4): Add support for the T440-LP-CR card. This is the 4x10G lownp2012-12-221-0/+1
| | | | | | profile card with a QSFP+ transceiver. MFC after: 3 days
* Add the missing '$' from the LIBNETBSD variableandrew2012-12-221-1/+1
|
* Make struct fstate aligned to the same as an int as its pointer is cast toandrew2012-12-221-1/+1
| | | | | an int pointer in args.c. This fixes an issue with ARM where the struct will be byte aligned but an int pointer must be 4 byte aligned.
* if_start() is being used here as a way of kick-starting the new queueadrian2012-12-221-0/+5
| | | | | | processing. For if_transmit() style hardware drivers (which none publicly exist yet, for wireless) they will need to still implement if_start() but only to re-start the TX queue.
* Remove a use of if_start() - instead, use if_transmit() to dispatch theadrian2012-12-221-2/+1
| | | | frame.
OpenPOWER on IntegriCloud