13#define WHO "ezmlm-list"
23static char strnum[FMT_ULONG];
27static void die_usage(
void) {
logmsg(
WHO,100,USAGE,
"ezmlm-list [-mMnNvV] dir"); }
31 return (buffer_put(buffer_1,s,l) | buffer_putflush(buffer_1,
"\n",1));
34int dummywrite(
char *s,
unsigned int l) {
return (
int) l; }
36int main(
int argc,
char **argv)
43 while ((
opt = getoptb(argc,argv,
"mMnNvV")) != opteof)
45 case 'm': flagmysql = 1;
break;
46 case 'M': flagmysql = 0;
break;
55 if (!
dir) die_usage();
65 if (buffer_put(buffer_1,strnum,fmt_ulong(strnum,n)) == -1)
die_write();
66 if (buffer_put(buffer_1,
"\n",1) == -1)
die_write();
69 if (buffer_flush(buffer_1) == -1)
die_write();
const char auto_version[]
Error messages. If you translate these, I would urge you to keep the English version as well....
void closesql(void)
close connection to SQL server, if open
unsigned long putsubs(const char *dir, unsigned long hash_lo, unsigned long hash_hi, int subwrite(), int flagsql)
int subwrite(char *s, unsigned int l)
int dummywrite(char *s, unsigned int l)
const char * logmsg(const char *dir, unsigned long num, unsigned long listno, unsigned long subs, int done)