summaryrefslogtreecommitdiffstats
path: root/ctdb/utils/ping_pong
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-tests: Mark some functions as staticMartin Schwenke2014-09-101-1/+1
| | | | | | | | To avoid warnings when using --enable-developer, which uses -Wmissing-prototypes. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ping_pong: Validate num_locks argument > 0Amitay Isaacs2013-07-041-0/+4
| | | | | | | | This fixes the floating point error if num_locks = 0. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 16afe36de52561a62372c14b567683dc898369d5)
* utils:ping_pong: add a -c switch to check the lock before reading/writingMichael Adam2012-11-201-2/+40
| | | | | | | | | | This is to verify that the fcntl F_GETLK call reports F_UNLCK if called from a process already holding a lock. This is for example used by samba's strict locking code in combination with "posix locking = true". Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit 4f42d17b74ce891691eee1cead498959cc8e4837)
* From Elia Pinto <gitter.spiros@gmail.com>Ronnie Sahlberg2010-02-221-3/+0
| | | | | | We dont need to include getopt.h under AIX (This used to be ctdb commit fcebbc3484ce56c57def745ea51c053dfb02a657)
* From William Jojo <w.jojo[AT]hvcc.edu>Ronnie Sahlberg2009-06-041-0/+2
| | | | | | | AIX dont have getopt.h by default. Dont try including this file when building on AIX (This used to be ctdb commit 06b33a826e71e1dd2f9e02ad614be55535d42045)
* add missing checks on so far ignored return valuesSumit Bose2009-05-211-2/+15
| | | | | | Most of these were found during a review by Jim Meyering <meyering@redhat.com> (This used to be ctdb commit 3aee5ee1deb4a19be3bd3a4ce3abbe09de763344)
* ping pong: fix logic for mmap reads vs. preadsMichael Adam2009-05-131-1/+1
| | | | | | Michael (This used to be ctdb commit 0c88fa41bc3c629052bc137ed30c473ed10522fd)
* ping_pong: add GPL comment header with Tridge's copyrightMichael Adam2009-05-061-2/+21
| | | | | | Michael (This used to be ctdb commit a87ef6a9206820d5110a7117240f743af010ff19)
* ping_pong: get pread/pwrite prototypes from unistd.hMichael Adam2009-05-061-0/+2
| | | | | | | | by defining _XOPEN_SOURCE to be 500 before including headers Michael (This used to be ctdb commit 96c79bddf7895e57ccf90f0d250bd08b7c4daf40)
* ping_pong: reduce a couple of prototype warningsMichael Adam2009-05-061-2/+2
| | | | | | Michael (This used to be ctdb commit fce851621fe2099c9692acfbfaade24c3d69727a)
* add tridge's ping_pong.c to the utils folderMichael Adam2009-05-061-0/+176
Michael (This used to be ctdb commit fe59ecb697fb4686ad8ea2fe4ec1cc7b4629e74f)