Sun, 15 May 2016 15:32:05 -0300
Add "account-status-changing" signal from instantbird
It's like "account-status-changed", but emitted before the status change
instead of after.
Instantbird ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=954403
| 2086 | 1 | /* This file is part of the Project Athena Zephyr Notification System. |
| 2 | * It contains system-dependent header code. | |
| 3 | * | |
| 4 | * Created by: Greg Hudson | |
| 5 | * | |
| 6 | * Copyright (c) 1988,1991 by the Massachusetts Institute of Technology. | |
| 7 | * For copying and distribution information, see the file | |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
15435
diff
changeset
|
8 | * "mit-copyright.h". |
| 2086 | 9 | */ |
| 10 | ||
| 11 | #ifndef __SYSDEP_H__ | |
| 12 | #define __SYSDEP_H__ | |
| 13 | ||
| 14 | #include <config.h> | |
| 15 | #include <stdio.h> | |
| 16 | #include <errno.h> | |
| 17 | #include <ctype.h> | |
| 18 | #include <time.h> | |
| 19 | #include <signal.h> | |
| 10867 | 20 | #ifndef WIN32 |
| 2086 | 21 | #include <syslog.h> |
| 10867 | 22 | #endif |
| 23 | ||
| 2086 | 24 | #include <sys/types.h> |
| 25 | #include <sys/stat.h> | |
| 26 | #include <sys/param.h> | |
| 27 | #include <sys/time.h> | |
| 28 | ||
|
11027
4d9a6e854cec
[gaim-migrate @ 12905]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10867
diff
changeset
|
29 | #if defined(STDC_HEADERS) || defined(HAVE_STDLIB_H) |
| 2086 | 30 | # include <stdlib.h> |
| 31 | #else | |
| 32 | # ifdef HAVE_MALLOC_H | |
| 33 | # include <malloc.h> | |
| 34 | # else | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11107
diff
changeset
|
35 | char *malloc(), *realloc(void); |
| 2086 | 36 | # endif |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11107
diff
changeset
|
37 | char *getenv(), *strerror(), *ctime(), *strcpy(void); |
|
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11107
diff
changeset
|
38 | time_t time(void); |
| 2086 | 39 | #endif |
| 40 | ||
| 41 | #ifndef HAVE_STRERROR | |
| 42 | extern char *sys_errlist[]; | |
| 43 | # define strerror(x) (sys_errlist[(x)]) | |
| 44 | #endif | |
| 45 | ||
| 46 | /* Strings. */ | |
|
11027
4d9a6e854cec
[gaim-migrate @ 12905]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10867
diff
changeset
|
47 | #if defined(STDC_HEADERS) || defined(HAVE_STRING_H) |
| 2086 | 48 | # include <string.h> |
| 49 | #else | |
| 50 | # ifndef HAVE_STRCHR | |
| 51 | # define strchr index | |
| 52 | # define strrchr rindex | |
| 53 | # endif | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11107
diff
changeset
|
54 | char *strchr(), *strrchr(void); |
| 2086 | 55 | # ifndef HAVE_MEMCPY |
| 56 | # define memcpy(d, s, n) bcopy ((s), (d), (n)) | |
| 57 | # define memcmp bcmp | |
| 58 | # endif | |
| 59 | # ifndef HAVE_MEMMOVE | |
| 60 | # define memmove(d, s, n) bcopy ((s), (d), (n)) | |
| 61 | # endif | |
| 62 | #endif | |
| 63 | ||
| 64 | /* Exit status handling and wait(). */ | |
| 65 | #ifdef HAVE_SYS_WAIT_H | |
| 66 | # include <sys/wait.h> | |
| 67 | #endif | |
| 68 | #ifndef WEXITSTATUS | |
| 69 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
| 70 | #endif | |
| 71 | #ifndef WIFEXITED | |
| 72 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
| 73 | #endif | |
| 74 | ||
| 75 | #ifdef HAVE_SYS_CDEFS_H | |
| 76 | #include <sys/cdefs.h> | |
| 77 | #endif | |
| 78 | ||
| 79 | /* Because we have public header files (and our prototypes need to agree with | |
| 80 | * those header files, use __STDC__ to guess whether the compiler can handle | |
| 81 | * stdarg, const, and prototypes. */ | |
| 82 | #ifdef __STDC__ | |
| 83 | # include <stdarg.h> | |
| 84 | # define VA_START(ap, last) va_start(ap, last) | |
| 85 | # ifndef __P | |
| 86 | # define __P(x) x | |
| 87 | # endif | |
| 88 | #else | |
| 89 | # include <varargs.h> | |
| 90 | # define VA_START(ap, last) va_start(ap) | |
| 91 | # define const | |
| 92 | # ifndef __P | |
| 93 | # define __P(x) () | |
| 94 | # endif | |
| 95 | #endif | |
| 96 | ||
| 97 | /* openlog(). */ | |
| 98 | #ifdef LOG_AUTH | |
| 99 | /* A decent syslog */ | |
| 100 | #define OPENLOG(str, opts, facility) openlog(str, opts, facility) | |
| 101 | #else | |
| 102 | /* Probably a 4.2-type syslog */ | |
| 103 | #define OPENLOG(str, opts, facility) openlog(str, opts) | |
| 104 | #endif | |
| 105 | ||
| 106 | #ifdef HAVE_FCNTL_H | |
| 107 | # include <fcntl.h> | |
| 108 | #endif | |
| 109 | ||
| 110 | #ifdef HAVE_PATHS_H | |
| 111 | # include <paths.h> | |
| 112 | # define TEMP_DIRECTORY _PATH_VARTMP | |
| 113 | #else | |
| 114 | # define TEMP_DIRECTORY FOUND_TMP | |
| 115 | #endif | |
| 116 | ||
| 117 | #ifdef HAVE_UNISTD_H | |
| 118 | # include <unistd.h> | |
| 119 | #else | |
| 120 | # ifdef HAVE_SYS_FILE_H | |
| 121 | # include <sys/file.h> | |
| 122 | # endif | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11107
diff
changeset
|
123 | uid_t getuid(void); |
|
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11107
diff
changeset
|
124 | char *ttyname(void); |
| 2086 | 125 | #ifdef HAVE_GETHOSTID |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11107
diff
changeset
|
126 | ZEPHYR_INT32 gethostid(void); |
| 2086 | 127 | #endif |
| 128 | #endif | |
| 129 | ||
| 130 | #ifndef STDIN_FILENO | |
| 131 | #define STDIN_FILENO 0 | |
| 132 | #define STDOUT_FILENO 1 | |
| 133 | #define STDERR_FILENO 2 | |
| 134 | #endif | |
| 135 | ||
| 136 | #ifdef HAVE_TERMIOS_H | |
| 137 | # include <termios.h> | |
| 138 | #else | |
| 139 | # ifdef HAVE_SYS_FILIO_H | |
| 140 | # include <sys/filio.h> | |
| 141 | # else | |
| 142 | # ifdef HAVE_SGTTY_H | |
| 143 | # include <sgtty.h> | |
| 144 | # endif | |
| 145 | # ifdef HAVE_SYS_IOCTL_H | |
| 146 | # include <sys/ioctl.h> | |
| 147 | # endif | |
| 148 | # endif | |
| 149 | #endif | |
| 150 | ||
| 151 | /* Kerberos compatibility. */ | |
| 152 | #ifdef ZEPHYR_USES_KERBEROS | |
| 153 | # include <krb.h> | |
| 10867 | 154 | #ifdef WIN32 |
| 155 | ||
| 156 | #else | |
| 2086 | 157 | # include <krb_err.h> |
| 10867 | 158 | #endif /* WIN32 */ |
| 2086 | 159 | # include <des.h> |
| 10867 | 160 | #ifndef WIN32 |
| 2086 | 161 | # ifndef HAVE_KRB_GET_ERR_TEXT |
| 162 | # define krb_get_err_text(n) krb_err_txt[n] | |
| 163 | # endif | |
| 10867 | 164 | #endif /* WIN32 */ |
| 2086 | 165 | # ifndef HAVE_KRB_LOG |
| 166 | # define krb_log log | |
| 167 | # endif | |
| 10867 | 168 | #endif /* ZEPHYR_USES_KERBEROS */ |
| 2086 | 169 | |
| 170 | #ifdef HAVE_SYS_UIO_H | |
| 171 | # include <sys/uio.h> | |
| 172 | #endif | |
| 173 | ||
| 174 | #ifdef HAVE_SYS_UTSNAME_H | |
| 175 | # include <sys/utsname.h> | |
| 176 | #endif | |
| 177 | ||
| 178 | #ifdef HAVE_SYS_SELECT_H | |
| 179 | # include <sys/select.h> | |
| 180 | #endif | |
| 181 | ||
| 182 | #ifdef HAVE_SYS_MSGBUF_H | |
| 183 | #include <sys/msgbuf.h> | |
| 184 | #endif | |
| 185 | ||
| 186 | #ifndef MSG_BSIZE | |
| 187 | #define MSG_BSIZE BUFSIZ | |
| 188 | #endif | |
| 189 | ||
| 190 | #endif /* __SYSDEP_H__ */ | |
| 191 |