-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.h
More file actions
24 lines (19 loc) · 640 Bytes
/
Copy pathlog.h
File metadata and controls
24 lines (19 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
Copyright (C) 2012 Joseph J. Pfeiffer, Jr., Ph.D. <pfeiffer@cs.nmsu.edu>
This program can be distributed under the terms of the GNU GPLv3.
See the file COPYING.
*/
#ifndef _LOG_H_
#define _LOG_H_
#include <stdio.h>
// macro to log fields in structs.
#define log_struct(st, field, format, typecast) \
log_msg(" " #field " = " #format "\n", typecast st->field)
FILE *log_open(void);
void log_conn (struct fuse_conn_info *conn);
void log_fi (struct fuse_file_info *fi);
void log_stat(struct stat *si);
void log_statvfs(struct statvfs *sv);
void log_utime(struct utimbuf *buf);
void log_msg(const char *format, ...);
#endif