~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to erts/emulator/sys/win32/erl_win_sys.h

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * %CopyrightBegin%
3
3
 * 
4
 
 * Copyright Ericsson AB 1997-2009. All Rights Reserved.
 
4
 * Copyright Ericsson AB 1997-2011. All Rights Reserved.
5
5
 * 
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
117
117
#define SYS_CLK_TCK 1000
118
118
#define SYS_CLOCK_RESOLUTION 1
119
119
 
 
120
#if SIZEOF_TIME_T != 8
 
121
#  error "Unexpected sizeof(time_t)"
 
122
#endif
 
123
 
 
124
/*
 
125
 * gcc uses a 4 byte time_t and vc++ uses an 8 byte time_t.
 
126
 * Types seen in beam_emu.c *need* to have the same size
 
127
 * as in the rest of the system...
 
128
 */
 
129
typedef __int64 erts_time_t;
 
130
 
 
131
struct tm *sys_localtime_r(time_t *epochs, struct tm *ptm);
 
132
struct tm *sys_gmtime_r(time_t *epochs, struct tm *ptm);
 
133
time_t sys_mktime( struct tm *ptm);
 
134
 
 
135
#define localtime_r sys_localtime_r
 
136
#define HAVE_LOCALTIME_R 1
 
137
#define gmtime_r sys_gmtime_r
 
138
#define HAVE_GMTIME_R
 
139
#define mktime sys_mktime
 
140
 
120
141
typedef struct {
121
 
    long tv_sec;
122
 
    long tv_usec;
 
142
    erts_time_t tv_sec;
 
143
    erts_time_t tv_usec;
123
144
} SysTimeval;
124
145
 
125
146
typedef struct {
169
190
extern volatile int erl_fp_exception;
170
191
 
171
192
#include <float.h>
172
 
#if defined (__GNUC__)
 
193
/* I suspect this test isn't right, it might depend on the version of GCC
 
194
   rather than if it's a MINGW gcc, but I havent been able to pinpoint the
 
195
   exact point where _finite was added to the headers in cygwin... */
 
196
#if defined (__GNUC__) && !defined(__MINGW32__)
173
197
int _finite(double x);
174
198
#endif
175
 
#endif
176
199
 
177
200
/*#define NO_FPE_SIGNALS*/
178
201
#define erts_get_current_fp_exception() NULL
191
214
#define erts_sys_block_fpe() 0
192
215
#define erts_sys_unblock_fpe(x) do{}while(0)
193
216
 
194
 
#define SIZEOF_SHORT   2
195
 
#define SIZEOF_INT     4
196
 
#define SIZEOF_LONG    4
197
 
#define SIZEOF_VOID_P  4
198
 
#define SIZEOF_SIZE_T  4
199
 
#define SIZEOF_OFF_T   4
200
 
 
201
217
/*
202
218
 * Seems to be missing.
203
219
 */
210
226
int init_async(int);
211
227
int exit_async(void);
212
228
#endif
 
229
#endif