SIGNAL_H=$nmh_cv_path_signal_h
AC_SUBST(SIGNAL_H)dnl
-dnl ----------------
-dnl OS SPECIFIC DEFINES
-dnl ----------------
-AH_TEMPLATE(BSD42, [Defined for SunOS 4, FreeBSD, NetBSD, OpenBSD, BSD/OS, Mac OS X/Rhapsody -- does PicoBSD have uname?])
-AH_TEMPLATE(SCO_5_STDIO, [Defined for SCO5.])
-
-case "$target_os" in
-
- sunos4*)
- AC_DEFINE(BSD42)
- ;;
- freebsd*)
- AC_DEFINE(BSD42)
- ;;
- netbsd*)
- AC_DEFINE(BSD42)
- ;;
- openbsd*)
- AC_DEFINE(BSD42)
- ;;
- bsd/os*)
- AC_DEFINE(BSD42)
- ;;
- sco5*)
- AC_DEFINE(SCO_5_STDIO)
- ;;
-esac
-
dnl ----------------
dnl OUTPUT MAKEFILES
# define DEFINED__FILBUF_TO_SOMETHING_SPECIFIC
#endif
-#ifdef SCO_5_STDIO
-# define _ptr __ptr
-# define _cnt __cnt
-# define _base __base
-# define _filbuf(fp) ((fp)->__cnt = 0, __filbuf(fp))
-# define DEFINED__FILBUF_TO_SOMETHING_SPECIFIC
-#endif
-
#ifndef DEFINED__FILBUF_TO_SOMETHING_SPECIFIC
extern int _filbuf(FILE*);
#endif
** information in the GECOS field, like phone number.
*/
for (cp = tmp; *np != '\0' && *np != ',';) {
-#ifndef BSD42
*cp++ = *np++;
-#else /* BSD42 */
- /*
- ** On BSD(-derived) systems, the system utilities that
- ** deal with the GECOS field (finger, mail, sendmail,
- ** etc.) translate any '&' character in it to the login name,
- ** with the first letter capitalized. So, for instance,
- ** fingering a user "bob" with the GECOS field "& Jones"
- ** would reveal him to be "In real life: Bob Jones".
- ** Surprisingly, though, the OS doesn't do the translation
- ** for you, so we have to do it manually here.
- */
- if (*np == '&') { /* blech! */
- strcpy(cp, pw->pw_name);
- *cp = toupper(*cp);
- while (*cp)
- cp++;
- np++;
- } else {
- *cp++ = *np++;
- }
-#endif /* BSD42 */
}
*cp = '\0';
strncpy(username, pw->pw_name, sizeof(username));
FILE *fp;
static int partno, pid;
static time_t clock = 0;
-
-#ifdef BSD42
- usemap = strchr(id, '/') ? 1 : 0;
-#else
usemap = 1;
-#endif
if (debugsw)
fprintf(stderr, "find_cache_aux %s usemap=%d\n",
# define _cnt _w /* Wretch */
#endif
-#ifdef SCO_5_STDIO
-# define _ptr __ptr
-# define _cnt __cnt
-# define _base __base
-# define _filbuf(fp) ((fp)->__cnt = 0, __filbuf(fp))
-#endif
-
#define MAXSCANL 256 /* longest possible scan line */
/*