{"push_id":1040953176,"size":5,"distinct_size":5,"ref":"refs/heads/2016-03-27/mmap_file_to_str","head":"25086a5fe4f4b8a000e4ca2d184efd3ed7810c65","before":"1449284b96ca950702c8691cc7e8740ab87a1ffa","commits":[{"sha":"7a55c1576e2752e27882c52e34edcb8388120ad1","author":{"email":"10c18fcb898ee6b17d6575d444b125d10b3f4d6a@canonical.com","name":"Tycho Andersen"},"message":"start: only use host's /dev/null when absolutely necessary\n\nSee comments for details, but basically, only use the host's /dev/null when\nabsolutely necessary (i.e. there is no reasonable /dev/null in the\ncontainer).\n\nSigned-off-by: Tycho Andersen <tycho.andersen@canonical.com>","distinct":true,"url":"https://api.github.com/repos/brauner/lxc/commits/7a55c1576e2752e27882c52e34edcb8388120ad1"},{"sha":"bc41134fc6a5bc26e8a25c419f643ed33d2359a5","author":{"email":"089afc6d81f66f1168a9849e15660feae286e024@stgraber.org","name":"Stéphane Graber"},"message":"Merge pull request #927 from tych0/only-use-host-devnull-no-autodev\n\nstart: only use host's /dev/null when absolutely necessary","distinct":true,"url":"https://api.github.com/repos/brauner/lxc/commits/bc41134fc6a5bc26e8a25c419f643ed33d2359a5"},{"sha":"1adbd02064e10645cdd05a813e23cce2ccb1a4de","author":{"email":"48455ab3070520a2d174545c7239d6d0fabd9a83@mailbox.org","name":"Christian Brauner"},"message":"add funs to mmap() files to \\0-terminated strings\n\nIn order to do this we make use of the MAP_FIXED flag of mmap(). MAP_FIXED\nshould be safe to use when it replaces an already existing mapping. To this\nend, we establish an anonymous mapping that is one byte larger than the\nunderlying file. The pages handed to us are zero filled.  Now we establish a\nfixed-address mapping starting at the address we received from our anonymous\nmapping and replace all bytes excluding the additional \\0-byte with the file.\nThis allows us to use normal string-handling function. The idea implemented\nhere is similar to how shared libraries are mapped.\n\nSigned-off-by: Christian Brauner <christian.brauner@mailbox.org>","distinct":true,"url":"https://api.github.com/repos/brauner/lxc/commits/1adbd02064e10645cdd05a813e23cce2ccb1a4de"},{"sha":"aeea34d70951c0b9109fd69e92954e882bcf4d88","author":{"email":"48455ab3070520a2d174545c7239d6d0fabd9a83@mailbox.org","name":"Christian Brauner"},"message":"use lxc_mmap() and lxc_munmap()\n\nSigned-off-by: Christian Brauner <christian.brauner@mailbox.org>","distinct":true,"url":"https://api.github.com/repos/brauner/lxc/commits/aeea34d70951c0b9109fd69e92954e882bcf4d88"},{"sha":"25086a5fe4f4b8a000e4ca2d184efd3ed7810c65","author":{"email":"48455ab3070520a2d174545c7239d6d0fabd9a83@mailbox.org","name":"Christian Brauner"},"message":"better naming for mmap helpers\n\nRename lxc_mmap()/lxc_munmap() to lxc_strmmap()/lxc_strmunmap().\n\nSigned-off-by: Christian Brauner <christian.brauner@mailbox.org>","distinct":true,"url":"https://api.github.com/repos/brauner/lxc/commits/25086a5fe4f4b8a000e4ca2d184efd3ed7810c65"}]}