• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/opkg-lede/libopkg/file_util.h

  1 /* file_util.h - convenience routines for common file operations
  2 
  3    Carl D. Worth
  4 
  5    Copyright (C) 2001 University of Southern California
  6 
  7    This program is free software; you can redistribute it and/or
  8    modify it under the terms of the GNU General Public License as
  9    published by the Free Software Foundation; either version 2, or (at
 10    your option) any later version.
 11 
 12    This program is distributed in the hope that it will be useful, but
 13    WITHOUT ANY WARRANTY; without even the implied warranty of
 14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 15    General Public License for more details.
 16 */
 17 
 18 #ifndef FILE_UTIL_H
 19 #define FILE_UTIL_H
 20 
 21 int file_exists(const char *file_name);
 22 int file_is_dir(const char *file_name);
 23 char *file_read_line_alloc(FILE * file);
 24 int file_move(const char *src, const char *dest);
 25 int file_copy(const char *src, const char *dest);
 26 int file_mkdir_hier(const char *path, long mode);
 27 char *file_md5sum_alloc(const char *file_name);
 28 char *file_sha256sum_alloc(const char *file_name);
 29 int rm_r(const char *path);
 30 
 31 char *checksum_bin2hex(const char *src, size_t len);
 32 char *checksum_hex2bin(const char *src, size_t *len);
 33 
 34 char *urlencode_path(const char *filename);
 35 char *urldecode_path(const char *filename);
 36 
 37 #endif
 38 

This page was automatically generated by LXR 0.3.1.  •  OpenWrt