projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some comments to the format compiler and engine.
[mmh]
/
uip
/
rcvtty.c
diff --git
a/uip/rcvtty.c
b/uip/rcvtty.c
index
219af22
..
5a3093b
100644
(file)
--- a/
uip/rcvtty.c
+++ b/
uip/rcvtty.c
@@
-78,7
+78,7
@@
char *getusername(void);
/*
* static prototypes
*/
/*
* static prototypes
*/
-static RETSIGTYPE alrmser (int);
+static void alrmser (int);
static int message_fd (char **);
static int header_fd (void);
static void alert (char *, int);
static int message_fd (char **);
static int header_fd (void);
static void alert (char *, int);
@@
-204,13
+204,9
@@
main (int argc, char **argv)
}
}
-static RETSIGTYPE
+static void
alrmser (int i)
{
alrmser (int i)
{
-#ifndef RELIABLE_SIGNALS
- SIGNAL (SIGALRM, alrmser);
-#endif
-
longjmp (myctx, 1);
}
longjmp (myctx, 1);
}
@@
-223,13
+219,7
@@
message_fd (char **vec)
char tmpfil[BUFSIZ];
struct stat st;
char tmpfil[BUFSIZ];
struct stat st;
-#ifdef HAVE_MKSTEMP
fd = mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil)));
fd = mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil)));
-#else
- unlink (mktemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil))));
- if ((fd = open (tmpfil, O_RDWR | O_CREAT | O_TRUNC, 0600)) == NOTOK)
- return header_fd ();
-#endif
unlink (tmpfil);
if ((child_id = vfork()) == NOTOK) {
unlink (tmpfil);
if ((child_id = vfork()) == NOTOK) {