1996-09-04 07:17:43 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Objective Caml */
|
|
|
|
/* */
|
|
|
|
/* Xavier Leroy and Pascal Cuoq, projet Cristal, INRIA Rocquencourt */
|
|
|
|
/* */
|
|
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
1999-11-17 10:59:06 -08:00
|
|
|
/* en Automatique. All rights reserved. This file is distributed */
|
|
|
|
/* under the terms of the GNU Library General Public License. */
|
1996-09-04 07:17:43 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1997-09-04 06:45:56 -07:00
|
|
|
#include <wtypes.h>
|
1997-09-03 07:38:02 -07:00
|
|
|
#include <winbase.h>
|
1996-09-04 07:17:43 -07:00
|
|
|
#include <stdlib.h>
|
1996-09-05 06:32:25 -07:00
|
|
|
/* Include io.h in current dir, which is a copy of the system's io.h,
|
|
|
|
not io.h from ../../byterun */
|
|
|
|
#include "io.h"
|
1996-09-04 07:17:43 -07:00
|
|
|
#include <direct.h>
|
|
|
|
#include <process.h>
|
|
|
|
|
2001-07-24 02:05:25 -07:00
|
|
|
#define Handle_val(v) (*((HANDLE *) Data_custom_val(v)))
|
1997-09-03 07:38:02 -07:00
|
|
|
|
|
|
|
extern value win_alloc_handle(HANDLE);
|
|
|
|
|
1996-09-04 07:17:43 -07:00
|
|
|
#define Nothing ((value) 0)
|
|
|
|
|
2001-08-28 07:47:48 -07:00
|
|
|
extern void win32_maperr(unsigned long errcode);
|
1997-09-02 09:01:39 -07:00
|
|
|
extern void unix_error (int errcode, char * cmdname, value arg);
|
|
|
|
extern void uerror (char * cmdname, value arg);
|
|
|
|
extern value unix_freeze_buffer (value);
|
|
|
|
|
|
|
|
#define UNIX_BUFFER_SIZE 16384
|