File: lib_common.h

package info (click to toggle)
orville-write 2.55-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 528 kB
  • ctags: 317
  • sloc: ansic: 3,494; sh: 2,860; makefile: 155
file content (30 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Header file for routines common between write, amin, mesg, etc */

#ifndef LIB_COMMON_H
#define LIB_COMMON_H

#include "getutent.h"

int init_wstream(int mode);
struct utmp *find_utmp(char *tty);
void find_wrttmp(char *tty, time_t time,struct wrttmp *wbuf, long *pos);
void dflt_wrttmp(struct wrttmp *wbuf, char *tty, time_t time);
char *leafname(char *fullpath);
int mydevtty(void);

extern char *f_wrttmp, *f_wrthist, *f_novicehelp, *f_log,
	*f_helperlist, *f_nohelp, *f_helpername;
extern int f_disconnect, f_exceptions, f_helpers, f_loglevel, f_answertel,
	f_pipes, f_fromhost;
extern char *progname;
extern char mydevname[];
extern int wstream;
struct wrthdr wt_head;

#ifdef TTYPERMS
int saveperms(void);
void setperms(char perm);
void resetperms(void);
#endif /*TTYPERMS*/

#endif /* LIB_COMMON_H */