comparison srogue/rogue.h @ 120:d6b7c3fb37ea

srogue: add and use more md_* portable functions. Privileges and memory usage checks are now more portable.
author John "Elwin" Edwards
date Fri, 02 May 2014 15:06:23 -0700
parents 8d1dfc5a912c
children e6c8652473fe
comparison
equal deleted inserted replaced
119:458df24e973d 120:d6b7c3fb37ea
41 int md_dsuspchar(void); 41 int md_dsuspchar(void);
42 int md_erasechar(void); 42 int md_erasechar(void);
43 char *md_gethomedir(void); 43 char *md_gethomedir(void);
44 char *md_getusername(void); 44 char *md_getusername(void);
45 uid_t md_getuid(void); 45 uid_t md_getuid(void);
46 gid_t md_getgid(void);
46 char *md_getpass(char *prompt); 47 char *md_getpass(char *prompt);
47 pid_t md_getpid(void); 48 pid_t md_getpid(void);
48 char *md_getrealname(uid_t uid); 49 char *md_getrealname(uid_t uid);
49 void md_init(void); 50 void md_init(void);
50 int md_killchar(void); 51 int md_killchar(void);
65 void md_ignoreallsignals(void); 66 void md_ignoreallsignals(void);
66 void md_onsignal_autosave(void); 67 void md_onsignal_autosave(void);
67 void md_onsignal_exit(void); 68 void md_onsignal_exit(void);
68 void md_onsignal_default(void); 69 void md_onsignal_default(void);
69 int md_issymlink(char *sp); 70 int md_issymlink(char *sp);
71 long md_memused(void);
72 void md_droppriv(void);
73 void md_resetpriv(void);
70 char *xcrypt(const char *key, const char *setting); 74 char *xcrypt(const char *key, const char *setting);
71 75
72 #define reg register /* register abbr. */ 76 #define reg register /* register abbr. */
73 77
74 /* 78 /*