summaryrefslogtreecommitdiff
path: root/dosish.h
diff options
context:
space:
mode:
authorMolnar Laszlo <molnarl@cdata.tvnet.hu>1997-11-21 11:58:26 +0100
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-12-17 14:10:50 +0000
commit39e571d41067215a80f26089b260f1418caeb36b (patch)
treee0bca433f79179f69a7b158d5bcd0759cc98e18c /dosish.h
parent1f70e1ea8280242937e42514e140f4e467e09404 (diff)
downloadperl-39e571d41067215a80f26089b260f1418caeb36b.tar.gz
Major changes to the DOS/djgpp port (including threading):
Subject: Re: dos-djgpp port not in perl 5.004_54 p4raw-id: //depot/perl@373
Diffstat (limited to 'dosish.h')
-rw-r--r--dosish.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/dosish.h b/dosish.h
index f44eb720ad..ec7b85a4f6 100644
--- a/dosish.h
+++ b/dosish.h
@@ -7,9 +7,30 @@
#ifdef DJGPP
# define BIT_BUCKET "nul"
# define OP_BINARY O_BINARY
-void Perl_DJGPP_init();
-# define PERL_SYS_INIT(argcp, argvp) STMT_START { \
- Perl_DJGPP_init(); } STMT_END
+# define PERL_SYS_INIT(c,v) Perl_DJGPP_init(c,v)
+# include <signal.h>
+# define HAS_UTIME
+# define HAS_KILL
+ char *djgpp_pathexp (const char*);
+# if (DJGPP==2 && DJGPP_MINOR < 2)
+# define NO_LOCALECONV_MON_THOUSANDS_SEP
+# endif
+# ifdef USE_THREADS
+# define NEED_PTHREAD_INIT
+# define OLD_PTHREADS_API
+# define YIELD pthread_yield(NULL)
+# define DETACH(t) \
+ STMT_START { \
+ if (pthread_detach(&(t)->self)) { \
+ MUTEX_UNLOCK(&(t)->mutex); \
+ croak("panic: DETACH"); \
+ } \
+ } STMT_END
+# define pthread_mutexattr_default NULL
+# define pthread_condattr_default NULL
+# define pthread_attr_default NULL
+# define pthread_addr_t any_t
+# endif
#else /* DJGPP */
# ifdef WIN32
# define PERL_SYS_INIT(c,v) Perl_win32_init(c,v)