s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

s6-cleanfifodir.c (341B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/strerr.h>
      4 #include <s6/ftrigw.h>
      5 
      6 #define USAGE "s6-cleanfifodir fifodir"
      7 
      8 int main (int argc, char const *const *argv)
      9 {
     10   PROG = "s6-cleanfifodir" ;
     11   if (argc < 2) strerr_dieusage(100, USAGE) ;
     12   if (!ftrigw_clean(argv[1]))
     13     strerr_diefu2sys(111, "clean up fifodir at ", argv[1]) ;
     14   return 0 ;
     15 }