summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use NULL instead of 0 for pointers.araujo2016-04-191-1/+1
| | | | | | kvm_open(3) will return NULL when it cannot access kernel virtual memory. MFC after: 2 weeks.
* Use NULL for pointers instead of 0.araujo2016-04-191-1/+1
| | | | MFC after: 2 weeks.
* hptmv(4) Fix potential buffer overflow in hpt_set_info.sbruno2016-04-181-4/+11
| | | | | | | | | | | While here, adjust some whitespace and yeild some useful debug info. This is untested on this hardware, testing requests to -scsi went unanswered. PR: 206585 Submitted by: cturt@hardenedbsd.org MFC after: 2 weeks
* A new implementation of the loader block cacheallanjude2016-04-1838-382/+728
| | | | | | | | | | | | | | | | | The block cache implementation in loader has proven to be almost useless, and in worst case even slowing down the disk reads due to insufficient cache size and extra memory copy. Also the current cache implementation does not cache reads from CDs, or work with zfs built on top of multiple disks. Instead of an LRU, this code uses a simple hash (O(1) read from cache), and instead of a single global cache, a separate cache per block device. The cache also implements limited read-ahead to increase performance. To simplify read ahead management, the read ahead will not wrap over bcache end, so in worst case, single block physical read will be performed to fill the last block in bcache. Booting from a virtual CD over IPMI: 0ms latency, before: 27 second, after: 7 seconds 60ms latency, before: over 12 minutes, after: under 5 minutes. Submitted by: Toomas Soome <tsoome@me.com> Reviewed by: delphij (previous version), emaste (previous version) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D4713
* Allow -f dirdeps.mk some/dir with no TARGET_MACHINE specsjg2016-04-181-0/+3
| | | | | | Use $MACHINE if target does not specify. Reviewed by: bdrewery
* META_MODE: Don't hide the .depend rm -f command.bdrewery2016-04-181-1/+1
| | | | | | | | Otherwise the build command changes every build. META_MODE will only remove it if something changes to warrant rebuilding the file. Sponsored by: EMC / Isilon Storage Division
* Update meta2deps to fix crash when using -X with M2D_EXCLUDES.bdrewery2016-04-181-2/+2
|
* libc: do not include <sys/types.h> where <sys/param.h> was already includedavos2016-04-1839-42/+3
| | | | | | According to style(9): > normally, include <sys/types.h> OR <sys/param.h>, but not both. (<sys/param.h> already includes <sys/types.h> when LOCORE is not defined).
* Update dirdeps.mk et alsjg2016-04-183-21/+47
| | | | | | | | | | | | | | dirdeps.mk: move logic to handle -f dirdeps.mk to inside check for first read of dirdeps.mk Also fix handling of WITHOUT_DIRDEPS_BELOW gendirdeps.mk: pass M2D_EXCLUDES to meta2deps meta.autodep.mk: if we build with nofilemon, leave a cookie to prevent updating dependencies until cleaned. Reviewed by: bdrewery
* Correct possible underflow conditions when checking for available spacesbruno2016-04-184-4/+4
| | | | | | | | | in the tx h/w ring buffer. Reviewed by: gnn jeb.j.cramer@intel.com MFC after: 1 week Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D5918
* Address issues found by the XCode code analyzer.tuexen2016-04-185-35/+35
|
* Add MK_AUTO_OBJ=no to ${MAKE} invocation if PKG_VERSION needs to begjb2016-04-181-2/+2
| | | | | | | | | created to avoid creating ${.OBJDIR}. The duplicate REVISION/BRANCH/VERSION evaluation will be addressed separately. Sponsored by: The FreeBSD Foundation
* Follow-up r298220: Don't pass down META_MODE which will still enable it.bdrewery2016-04-181-0/+1
| | | | | Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com> Sponsored by: EMC / Isilon Storage Division
* META_MODE: Disable during installworld and similar.bdrewery2016-04-181-0/+8
| | | | | | | | | META_MODE may create cookies during staging of files to WORLDTMP that would also prevent installation of the files to the final DESTDIR, since the cookie already exists. This is not yet the case but will be soon. Prevent other similar issues by disabling META_MODE for any top-level install targets. Sponsored by: EMC / Isilon Storage Division
* Cause an error during 'make install' if trying to compile with CC.bdrewery2016-04-181-0/+7
| | | | | | | | | | | | | | | | | This is limited to src-tree builds, meaning not extended to ports or other out-of-tree builds. This will help ensure that read-only OBJDIRS will be respected at install-time by causing a more consistent failure for those who don't use a read-only OBJDIR. It also will cause Jenkins to yell. This is a better solution than trying to see CC=false as has been attempted and discussed before. Of course this is only relevant for files generated by CC. Disable this for META_MODE since it will detect the CFLAGS/command change and force a rebuild. Sponsored by: EMC / Isilon Storage Division
* Follow-up r297842: Rework header generation to fix always rebuilding.bdrewery2016-04-185-131/+148
| | | | | | | | | | This reworks the handling of common headers to just include the needed logic rather than invoke MAKE. This avoids the problem listed in r297842 and avoids other dependency tracking issues. Pointyhat to: bdrewery Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com> Sponsored by: EMC / Isilon Storage Division
* META_MODE: Clean .meta files with 'make cleandepend'.bdrewery2016-04-181-0/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* Reuse our roundup2() macro instead of reinventing the wheel.pfg2016-04-182-6/+2
| | | | Obtained from: DragonflyBSD
* Re-use our roundup2() macro instead of reinventing the wheel.pfg2016-04-181-6/+4
| | | | Obtained from: DragonflyBSD
* libipsec: use NULL instead of zero for pointers.pfg2016-04-181-1/+1
|
* rbootd: use NULL instead of zero for pointers.pfg2016-04-181-2/+2
|
* Add the ability to read a SAS device's Target Port NAA designatorasomers2016-04-182-0/+14
| | | | | | | | | | | sys/cam/scsi/scsi_all.h sys/cam/scsi/scsi_all.c Add the scsi_devid_is_port_naa helper function Reviewed by: ken MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D5975
* ftpd: replace malloc + memset 0 with calloc.pfg2016-04-181-3/+2
| | | | | It is faster and usually safer. Use NULL instead of zero for the pointer.
* libstand: use NULL instead of zero for pointers.pfg2016-04-183-10/+10
|
* Use NULL instead of 0 for pointers.araujo2016-04-181-2/+2
| | | | | | | strchr(3) will return NULL if the character does not appear in the string. MFC after: 2 weeks.
* libbluetooth: use NULL instead of zero for pointers.pfg2016-04-181-2/+2
|
* rexec(3): use NULL instead of zero for pointers.pfg2016-04-181-5/+5
|
* User NULL instead of 0 for pointers.araujo2016-04-181-2/+2
| | | | | | gethostbyname(3) will return NULL in case of an error. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-183-3/+3
| | | | | | | strchr(3) will return NULL if the character does not appear in the string. MFC after: 2 weeks.
* Replace ${CURDIR}/../.. with ${CURDIR:H:H} in elftoolchainemaste2016-04-1810-10/+10
| | | | | | | This produces a nicer path in debug info and build logs. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Fix signed/unsigned warnings.tuexen2016-04-182-4/+5
|
* Pull the MSI/MSI-X handling functions out to help with INTRNG integration.andrew2016-04-181-7/+62
| | | | | Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
* Fixed indentation, minor style.pluknet2016-04-181-12/+12
|
* Fix a warning about an unused variable.tuexen2016-04-181-1/+1
|
* Put panic() calls under INVARIANTS.tuexen2016-04-183-0/+26
|
* Fix tinderbox LINT build.delphij2016-04-181-1/+0
|
* Minor cosmetic cleanupngie2016-04-181-2/+2
| | | | | | | | | - Remove spurious trailing whitespace in licensing header - Remove unnecessary semi-colon after comment [*] MFC after: 3 days Submitted by: pfg [*] Sponsored by: EMC / Isilon Storage Division
* Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | malloc will return NULL if it cannot allocate memory. MFC after: 2 weeks.
* strchr(3) will return NULL if it cannot find the character in thearaujo2016-04-182-2/+2
| | | | | | | string. getfsent(3) will return NULL on EOF or error. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | | strchr(3) will return NULL if the character does not appear in the string. MFC after: 2 weeks.
* MFV r298178:delphij2016-04-1878-954/+4428
|\ | | | | | | | | | | | | Update file to 5.26. MFC after: 2 weeks Relnotes: yes
| * Vendor import of file 4.26.delphij2016-04-1876-950/+4421
| |
| * Vendor import of file 4.25.delphij2015-09-2341-213/+364
| |
| * Apply vendor changeset e64bdc5 to address FreeBSD bin/181436.delphij2015-09-041-5/+11
| |
| * Vendor import of file 5.24.delphij2015-09-0411-56/+76
| |
| * Apply upstream changesets 21f9d5f and 5c40ae1:delphij2015-06-113-26/+30
| | | | | | | | | | | | | | | | | | | | Fix bug with long options and explicitly number them to avoid this in the future. fix bug with 5.23 long options Obtained from: https://github.com/file/file Reported by: jkim
* | User NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | | | | | | | getservent(3) returns NULL on EOF or error. MFC after: 2 weeks.
* | Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | | | | | | | fopen(3) will return NULL in case it cannot open the STREAM. MFC after: 2 weeks.
* | Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | | | MFC after: 2 weeks.
* | Cleanup debug output.tuexen2016-04-181-39/+39
| |
OpenPOWER on IntegriCloud