X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Ftstlockscope.c;h=903e866f1ba170fc98b44612af941d6e19cb3a9c;hp=ab3c30e13a4ef54c2bae041cfe38c56ac9917d43;hb=250de4ed23a44f5eb3552db317eef0d0fbe3265c;hpb=efced36ec8c431c1f630c69beed3e29965900538 diff --git a/util/tstlockscope.c b/util/tstlockscope.c index ab3c30e..903e866 100644 --- a/util/tstlockscope.c +++ b/util/tstlockscope.c @@ -1,8 +1,5 @@ -/* $Id: tstlockscope.c,v 1.2 2007-05-16 12:31:17 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 2004-2013 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -24,15 +21,18 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \brief tests scope of fcntl locks.. Either "process" or "thread" */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include #include -#include #include #include -#if YAZ_POSIX_THREADS #include +#if YAZ_POSIX_THREADS +#include #endif int fd; @@ -45,7 +45,7 @@ static int file_lock(int fd, int type, int cmd) area.l_type = type; area.l_whence = SEEK_SET; area.l_len = area.l_start = 0L; - + return fcntl(fd, cmd, &area); } @@ -98,6 +98,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab