NetBSD re-synchronization of the source treeThis brings our tree to NetBSD 7.0, as found on -current on the10-10-2015.This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/z
NetBSD re-synchronization of the source treeThis brings our tree to NetBSD 7.0, as found on -current on the10-10-2015.This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libmincChange-Id: I149836ac18e9326be9353958bab9b266efb056f0
show more ...
libc: fix needless malloc failuresThe NetBSD libc malloc implementation performs its own out-of-memorycheck, presumably for performance reasons. The check makes a strongassumption about the addr
libc: fix needless malloc failuresThe NetBSD libc malloc implementation performs its own out-of-memorycheck, presumably for performance reasons. The check makes a strongassumption about the address space layout, which is that memory-mapped pages are always located above the heap. However, thisassumption does not necessarily hold on MINIX3, thus resulting inmalloc reporting an out-of-memory condition without the systemactually being out of memory at all. Evidence suggests that inparticular dynamically linked (i.e., pkgsrc) binaries were affectedby this issue - most notably git.Change-Id: If542fbace0a1cce12aa9e075d51992cbbbf26e94
Add PTYFS, Unix98 pseudo terminal supportThis patch adds support for Unix98 pseudo terminals, that is,posix_openpt(3), grantpt(3), unlockpt(3), /dev/ptmx, and /dev/pts/.The latter is implemented
Add PTYFS, Unix98 pseudo terminal supportThis patch adds support for Unix98 pseudo terminals, that is,posix_openpt(3), grantpt(3), unlockpt(3), /dev/ptmx, and /dev/pts/.The latter is implemented with a new pseudo file system, PTYFS.In effect, this patch adds secure support for unprivileged pseudoterminal allocation, allowing programs such as tmux(1) to be used bynon-root users as well. Test77 has been extended with new tests, andno longer needs to run as root.The new functionality is optional. To revert to the old behavior,remove the "ptyfs" entry from /etc/fstab.Technical nodes:o The reason for not implementing the NetBSD /dev/ptm approach is that implementing the corresponding ioctl (TIOCPTMGET) would require adding a number of extremely hairy exceptions to VFS, including the PTY driver having to create new file descriptors for its own device nodes.o PTYFS is required for Unix98 PTYs in order to avoid that the PTY driver has to be aware of old-style PTY naming schemes and even has to call chmod(2) on a disk-backed file system. PTY cannot be its own PTYFS since a character driver may currently not also be a file system. However, PTYFS may be subsumed into a DEVFS in the future.o The Unix98 PTY behavior differs somewhat from NetBSD's, in that slave nodes are created on ptyfs only upon the first call to grantpt(3). This approach obviates the need to revoke access as part of the grantpt(3) call.o Shutting down PTY may leave slave nodes on PTYFS, but once PTY is restarted, these leftover slave nodes will be removed before they create a security risk. Unmounting PTYFS will make existing PTY slaves permanently unavailable, and absence of PTYFS will block allocation of new Unix98 PTYs until PTYFS is (re)mounted.Change-Id: I822b43ba32707c8815fd0f7d5bb7a438f51421c1
Drop minix-malloc & friendsKnown limitations: - comment for now testisofs, as iso9660fs is known to be broken.Benefits: - near 3x speed improvement on C++ code compilation, bringing down mak
Drop minix-malloc & friendsKnown limitations: - comment for now testisofs, as iso9660fs is known to be broken.Benefits: - near 3x speed improvement on C++ code compilation, bringing down make build to from 44min down to 21min. - Allows for X applications to work properly, which should be available in near-term future through pkgsrc for 3.3.0.Change-Id: I8f4179a7ea925ed381642add32cfd8c5822217e4
New sources layoutChange-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) - Fix for possible unset uid/gid in toproto - Fix for default mtree style - Update libelf - Importing libexecinfo - Resynchronize GCC, mpc, gm
Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) - Fix for possible unset uid/gid in toproto - Fix for default mtree style - Update libelf - Importing libexecinfo - Resynchronize GCC, mpc, gmp, mpfr - build.sh: Replace params with show-params. This has been done as the make target has been renamed in the same way, while a new target named params has been added. This new target generates a file containing all the parameters, instead of printing it on the console. - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org) get getservbyport() out of the inner loopChange-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
drop the minix_ prefixes for mmap and munmapalso cleanup of various minix-specific changes, cleanup ofmmap-related testing.Change-Id: I289a4fc50cf8a13df4a6082038d860853a4bd024
<sys/stat.h>current version of <sys/stat.h> from netbsd repo is older than the minixone; will be corrected on next netbsd re-import.Change-Id: Ifc696581ef476cfecd9695a9f6e74b844131e584
Remove sys/stdlib.hThis file was copied over to allow for the compilation of someof the arch/i386 code, due to a bug in lib/libc/compat/Makefile.inc.This patch fixes the situation, and removes t
Remove sys/stdlib.hThis file was copied over to allow for the compilation of someof the arch/i386 code, due to a bug in lib/libc/compat/Makefile.inc.This patch fixes the situation, and removes the now useless header, aswell as remove a patch in lib/libc/stdlib/putenv.cChange-Id: Ic5e4c4bb967f58f6e874c091788e1dd5ecaebe5e
Fix signal handling for services on abort/exitChange-Id: I970a25ae0dd52f0d928fda376296e7b39e3e17eb
Fixing cross build i386 on minix
Libraries updates and cleanup * Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the mean
Libraries updates and cleanup * Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the meaning of the comment. * Cleaned up _REENTRANT-related defintions. * Disabled -D_REENTRANT for libfetch * Removing some unneeded __NBSD_LIBC defines and testsChange-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
libc, libutil: remove compat hacks
vm: replace phys avl by array . make vm be able to use malloc() by overriding brk() and minix_mmap() functions . phys regions can then be malloc()ed and free()d instead of being in an avl tr
vm: replace phys avl by array . make vm be able to use malloc() by overriding brk() and minix_mmap() functions . phys regions can then be malloc()ed and free()d instead of being in an avl tree, which is slightly faster . 'offset' field in phys_region can go too (offset is implied by position in array) but leads to bigger code changes
Upgrading build system to new NetBSD revisionThe tested targets are the followgin ones: * tools * distribution * sets * releaseThe remaining NetBSD targets have not been disabled nor tested*
Upgrading build system to new NetBSD revisionThe tested targets are the followgin ones: * tools * distribution * sets * releaseThe remaining NetBSD targets have not been disabled nor tested*at all*. Try them at your own risk, they may reboot the earth.For all compliant Makefiles, objects and generated files are put inMAKEOBJDIR, which means you can now keep objects between two branchswitching. Same for DESTDIR, please refer to build.sh options.Regarding new or modifications of Makefiles a few things: * Read share/mk/bsd.README * If you add a subdirectory, add a Makefile in it, and have it called by the parent through the SUBDIR variable. * Do not add arbitrary inclusion which crosses to another branch of the hierarchy; If you can't do without it, put a comment on why. If possible, do not use inclusion at all. * Use as much as possible the infrastructure, it is here to make life easier, do not fight it.Sets and package are now used to track files.We have one set called "minix", composed of one package called "minix-sys"
Libc update to simplify merge.Bumping libc files for unsupported architectures, to simplify merging.A bunch of small fixes: * in libutil update * the macro in endian.h * some undefined types du
Libc update to simplify merge.Bumping libc files for unsupported architectures, to simplify merging.A bunch of small fixes: * in libutil update * the macro in endian.h * some undefined types due to clear separation from host. * Fix a warning for cdbr.cSome modification which were required for the new build system: * inclusion path for const.h in sconst, still hacky * Removed default malloc.c which conflicts on some occasions.
some coverity fixes.
libc/libminc malloc reorganization . rename minix malloc sources to minix-* so Makefile references aren't ambiguous . throw out malloc source file copies in libminc . make libminc use phkm
libc/libminc malloc reorganization . rename minix malloc sources to minix-* so Makefile references aren't ambiguous . throw out malloc source file copies in libminc . make libminc use phkmalloc instead of minix malloc (slightly faster)
Full switch to clang/ELF. Drop ack. Simplify.There is important information about booting non-ack images indocs/UPDATING. ack/aout-format images can't be built any more, andbooting clang/ELF-form
Full switch to clang/ELF. Drop ack. Simplify.There is important information about booting non-ack images indocs/UPDATING. ack/aout-format images can't be built any more, andbooting clang/ELF-format ones is a little different. Updating to thenew boot monitor is recommended.Changes in this commit: . drop boot monitor -> allowing dropping ack support . facility to copy ELF boot files to /boot so that old boot monitor can still boot fairly easily, see UPDATING . no more ack-format libraries -> single-case libraries . some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases . drop several ack toolchain commands, but not all support commands (e.g. aal is gone but acksize is not yet). . a few libc files moved to netbsd libc dir . new /bin/date as minix date used code in libc/ . test compile fix . harmonize includes . /usr/lib is no longer special: without ack, /usr/lib plays no kind of special bootstrapping role any more and bootstrapping is done exclusively through packages, so releases depend even less on the state of the machine making them now. . rename nbsd_lib* to lib* . reduce mtree