Logo Search packages:      
Sourcecode: smstools version File versions

locking.h

/*
SMS Server Tools
Copyright (C) Stefan Frings

This program is free software unless you got it under another license directly
from the author. You can redistribute it and/or modify it under the terms of 
the GNU General Public License as published by the Free Software Foundation.
Either version 2 of the License, or (at your option) any later version.

http://www.meinemullemaus.de/
mailto: smstools@meinemullemaus.de
*/

#ifndef LOCKING_H
#define LOCKING_H

/* Locks a file and returns 1 if successful */

int lockfile(const char* const filename);


/* Checks, if a file is locked */

int islocked(const char* const filename);


/* Unlocks a file */

int unlock(const char* const filename);

#endif

Generated by  Doxygen 1.6.0   Back to index