X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=util.h;h=c6c6f9e392cd888ffaf53c3868a2fdd7bfc8c183;hp=0fd4983b7b2a03466d064dae3274b88d8beba322;hb=f546e4df51cde51dd984e4ad26e70dd7533f9791;hpb=013636b17f3e44f5ac4837750a3888999d35d2f8 diff --git a/util.h b/util.h index 0fd4983..c6c6f9e 100644 --- a/util.h +++ b/util.h @@ -1,10 +1,25 @@ -/* LBS: An LFS-inspired filesystem backup system - * Copyright (C) 2007 Michael Vrable +/* Cumulus: Efficient Filesystem Backup to the Cloud + * Copyright (C) 2007 The Cumulus Developers + * See the AUTHORS file for a list of contributors. * - * Utility functions for converting various datatypes to text format (and - * later, for parsing them back, perhaps). + * This program 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 Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +/* Utility functions for converting various datatypes to text format (and + * later, for parsing them back, perhaps). */ + #ifndef _LBS_FORMAT_H #define _LBS_FORMAT_H @@ -17,5 +32,8 @@ std::string uri_decode(const std::string &in); std::string encode_int(long long n, int base=10); long long parse_int(const std::string &s); +void cloexec(int fd); + +void fatal(std::string msg) __attribute__((noreturn)); #endif // _LBS_TARSTORE_H