File: common.h

package info (click to toggle)
ttysnoop 0.12d-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 396 kB
  • ctags: 460
  • sloc: ansic: 5,419; makefile: 172
file content (13 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
	common.h
*/

#define max(x,y)	((x) > (y) ? (x) : (y))
#define strncopy(x,y)	strncpy (x, y, sizeof(x))

void errorf (char *fmt, ...) __attribute__ ((noreturn));
int fdprintf (int fd, char *fmt, ...);
char *leafname (char *path);
void stty_initstore (void);
int  stty_raw (int fd);
void stty_orig (void);