Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/runtime/config/gen-win32-signals.c
ViewVC logotype

View of /sml/trunk/runtime/config/gen-win32-signals.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2162 - (download) (as text) (annotate)
Thu Nov 2 21:20:47 2006 UTC (13 years, 3 months ago) by blume
File size: 1209 byte(s)
eliminated src dir
/* gen-win32-signals.c
 *
 * COPYRIGHT (c) 1996 by Bell Laboratories, Lucent Technologies
 *
 * Generate the "system-signals.h" file for Win32 systems.
 * signals aren't currently implemented (since Win32 doesn't have signals)
 */

#include <signal.h>
#include <stdio.h>
#include "gen.h"
#include "win32-sigtab.h"

#ifndef DST_FILE
#define DST_FILE "system-signals.h"
#endif

main ()
{
    FILE	    *f;
    int             numSigs = 1;
    int             i;

    f = OpenFile (DST_FILE, "_SYSTEM_SIGNALS_");

    fprintf (f, "#define NUM_SYSTEM_SIGS %2d\n", 0);
    fprintf (f, "#define MIN_SYSTEM_SIG  %2d /* %s */\n",
	     0, "none");
    fprintf (f, "#define MAX_SYSTEM_SIG  %2d /* %s */\n",
	     0, "none");
    fprintf (f, "#define NUM_SIGS        %2d\n", NUM_SIGS);
    fprintf (f, "#define MAX_SIG         %2d\n", NUM_SIGS);
    fprintf (f, "#define SIGMAP_SZ       %2d\n", NUM_SIGS+1);
    fprintf (f, "\n");

    /* the signals */
    for (i = 0; i < NUM_SIGS; i++) {
      fprintf(f, "#define %s %2d\n",  win32SigTab[i].lname, win32SigTab[i].n);
    }

    fprintf (f, "#define IS_SYSTEM_SIG(S) (0)\n");

    CloseFile (f, "_SYSTEM_SIGNALS_");

    exit (0);

}

/* end of gen-win32-signals.c */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0