Mercurial > hg > early-roguelike
comparison srogue/rogue.h @ 118:8d1dfc5a912c
srogue: add a complete mdport.c.
srogue/mdport.c is copied from rogue5/mdport.c, with slight changes.
| author | John "Elwin" Edwards |
|---|---|
| date | Sun, 27 Apr 2014 08:29:14 -0700 |
| parents | 15f8229f38c1 |
| children | d6b7c3fb37ea |
comparison
equal
deleted
inserted
replaced
| 117:2c62bd925c17 | 118:8d1dfc5a912c |
|---|---|
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 #ifdef HAVE_CONFIG_H | 30 #ifdef HAVE_CONFIG_H |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #endif | 32 #endif |
| 33 | |
| 34 /* mdport functions */ | |
| 35 #ifdef HAVE_SYS_TYPES_H | |
| 36 #include <sys/types.h> | |
| 37 #endif | |
| 38 | |
| 39 int md_chmod(const char *filename, int mode); | |
| 40 char *md_crypt(const char *key, const char *salt); | |
| 41 int md_dsuspchar(void); | |
| 42 int md_erasechar(void); | |
| 43 char *md_gethomedir(void); | |
| 44 char *md_getusername(void); | |
| 45 uid_t md_getuid(void); | |
| 46 char *md_getpass(char *prompt); | |
| 47 pid_t md_getpid(void); | |
| 48 char *md_getrealname(uid_t uid); | |
| 49 void md_init(void); | |
| 50 int md_killchar(void); | |
| 51 void md_normaluser(void); | |
| 52 void md_raw_standout(void); | |
| 53 void md_raw_standend(void); | |
| 54 int md_readchar(WINDOW *win); | |
| 55 int md_setdsuspchar(int c); | |
| 56 int md_shellescape(void); | |
| 57 void md_sleep(int s); | |
| 58 int md_suspchar(void); | |
| 59 int md_hasclreol(void); | |
| 60 int md_unlink(char *file); | |
| 61 int md_unlink_open_file(const char *file, FILE *inf); | |
| 62 void md_tstpsignal(void); | |
| 63 void md_tstphold(void); | |
| 64 void md_tstpresume(void); | |
| 65 void md_ignoreallsignals(void); | |
| 66 void md_onsignal_autosave(void); | |
| 67 void md_onsignal_exit(void); | |
| 68 void md_onsignal_default(void); | |
| 69 int md_issymlink(char *sp); | |
| 70 char *xcrypt(const char *key, const char *setting); | |
| 33 | 71 |
| 34 #define reg register /* register abbr. */ | 72 #define reg register /* register abbr. */ |
| 35 | 73 |
| 36 /* | 74 /* |
| 37 * Maximum number of different things | 75 * Maximum number of different things |
