Assists music production by grouping standalone programs into sessions. Community version of "Non Session Manager".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
2.1KB

  1. /*******************************************************************************/
  2. /* Copyright (C) 2008-2020 Jonathan Moore Liles (as "Non-Session-Manager") */
  3. /* */
  4. /* This file is part of New-Session-Manager */
  5. /* */
  6. /* New-Session-Manager is free software: you can redistribute it and/or modify */
  7. /* it under the terms of the GNU General Public License as published by */
  8. /* the Free Software Foundation, either version 3 of the License, or */
  9. /* (at your option) any later version. */
  10. /* */
  11. /* New-Session-Manager is distributed in the hope that it will be useful, */
  12. /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  13. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  14. /* GNU General Public License for more details. */
  15. /* */
  16. /* You should have received a copy of the GNU General Public License */
  17. /* along with New-Session-Manager. If not, see <https://www.gnu.org/licenses/>.*/
  18. /*******************************************************************************/
  19. #include <stdio.h>
  20. unsigned long modification_time ( const char *file );
  21. bool newer ( const char *file1, const char *file2 );
  22. unsigned long size ( const char *file );
  23. int exists ( const char *name );
  24. bool acquire_lock ( int *lockfd, const char *filename );
  25. void release_lock ( int *lockfd, const char *filename );
  26. int backwards_fgetc ( FILE *fp );
  27. char * backwards_afgets ( FILE *fp );
  28. void touch ( int fd );
  29. void write_line ( const char *dir, const char *name, const char *value );
  30. char * read_line ( const char *dir, const char *name );
  31. size_t free_space ( const char *file );
  32. size_t total_space ( const char *file );
  33. int percent_used ( const char *file );