scsh-0.5/scsh/jcontrol2.c

76 lines
1.9 KiB
C
Raw Normal View History

1995-10-13 23:34:21 -04:00
/* This is an Scheme48/C interface file,
** automatically generated by cig.
*/
#include <errno.h>
1995-10-13 23:34:21 -04:00
#include <stdio.h>
#include <stdlib.h> /* For malloc. */
#include "libcig.h"
#include <sys/signal.h>
#include <sys/types.h>
#include <unistd.h>
#define errno_or_false(x) (((x) == -1) ? ENTER_FIXNUM(errno) : SCHFALSE)
scheme_value df_set_procmask(long nargs, scheme_value *args)
{
extern int set_procmask(int , int , int *);
scheme_value ret1;
int r1;
int r2;
cig_check_nargs(3, nargs, "set_procmask");
r1 = set_procmask(EXTRACT_FIXNUM(args[2]), EXTRACT_FIXNUM(args[1]), &r2);
ret1 = ENTER_FIXNUM(r1);
VECTOR_REF(*args,0) = ENTER_FIXNUM(r2);
return ret1;
}
scheme_value df_get_procmask(long nargs, scheme_value *args)
{
extern int get_procmask(int *);
scheme_value ret1;
int r1;
int r2;
cig_check_nargs(1, nargs, "get_procmask");
r1 = get_procmask(&r2);
ret1 = ENTER_FIXNUM(r1);
VECTOR_REF(*args,0) = ENTER_FIXNUM(r2);
return ret1;
}
scheme_value df_set_int_handler(long nargs, scheme_value *args)
{
extern scheme_value set_int_handler(int , scheme_value , int , scheme_value *, int *);
scheme_value ret1;
scheme_value r1;
scheme_value r2;
int r3;
cig_check_nargs(4, nargs, "set_int_handler");
r1 = set_int_handler(EXTRACT_FIXNUM(args[3]), args[2], EXTRACT_FIXNUM(args[1]), &r2, &r3);
ret1 = r1;
VECTOR_REF(*args,0) = r2;
VECTOR_REF(*args,1) = ENTER_FIXNUM(r3);
return ret1;
}
scheme_value df_get_int_handler(long nargs, scheme_value *args)
{
extern scheme_value get_int_handler(int , scheme_value *, int *);
scheme_value ret1;
scheme_value r1;
scheme_value r2;
int r3;
cig_check_nargs(2, nargs, "get_int_handler");
r1 = get_int_handler(EXTRACT_FIXNUM(args[1]), &r2, &r3);
ret1 = r1;
VECTOR_REF(*args,0) = r2;
VECTOR_REF(*args,1) = ENTER_FIXNUM(r3);
return ret1;
}