annotate src/=mach2.h @ 2657:cddb75caa9c5

* systime.h: Doc fix. (EMACS_SET_USECS): Remember that a `usec' is a microsecond, not a millisecond. What's three orders of magnitude between friends? * dispnew.c (Fsit_for, Fsleep_for): Remember to multiply the `milliseconds' argument by 1000 to get microseconds. Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>: * s/mach2.h: copied from the Emacs 18.59 distribution. Don't define NO_REMAP, define START_FILES as `pre-crt0.o' instead. Define LIB_MATH as `-lm', to override the default `-lm -lc' (there is no libc on the NeXT). * ymakefile (STARTFILES): Allow config.h to set this value even if ORDINARY_LINK is defined. * unexnext.c: Fix subdirectories for the machine dependent include files for NeXTStep 3.0; #include <mach/mach.h> and <mach-o/loader.h> instead of <mach.h> and <sys/loader.h>. (getsectbyname): Remove prototype for this; the system #include files take care of that. (malloc_cookie): New variable. (unexec_doit): Set malloc_cookie to the result returned by malloc_freezedry. * emacs.c (main): Declare malloc_cookie to be extern, so that we can get the value set when we dumped and pass it to malloc_jumpstart. * systime.h: The NeXT has a timezone function.
author Jim Blandy <jimb@redhat.com>
date Tue, 04 May 1993 02:36:45 +0000
parents 40bed0333cd3
children 7be0f0a02725
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2621
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 /* Definitions for Emacs running on Mach version 2 (non-kernelized system).
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 Copyright (C) 1990 Free Software Foundation, Inc.
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 This file is part of GNU Emacs.
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 the Free Software Foundation; either version 1, or (at your option)
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 any later version.
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 GNU General Public License for more details.
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
19
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20 #include "bsd4-3.h"
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22 /* SYSTEM_TYPE should indicate the kind of system you are using.
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23 It sets the Lisp variable system-type. We'll need to undo the bsd one. */
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 #undef SYSTEM_TYPE
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26 #define SYSTEM_TYPE "next-mach"
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28 #define LD_SWITCH_SYSTEM -X -noseglinkedit
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 /* Don't use -lc on the NeXT. */
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31 #define LIB_STANDARD -lsys_s
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 #define LIB_MATH -lm
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34 #define environ _environ
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36 #define START_FILES pre-crt0.o
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37 #define UNEXEC unexnext.o
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39 /* start_of_text isn't actually used, so make it compile without error. */
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
40 #define TEXT_START 0
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
41 /* This seems to be right for end_of_text, but it may not be used anyway. */
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42 #define TEXT_END get_etext ()
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43 /* This seems to be right for end_of_data, but it may not be used anyway. */
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44 #define DATA_END get_edata ()
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 /* Defining KERNEL_FILE causes lossage because sys/file.h
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47 stupidly gets confused by it. */
40bed0333cd3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48 #undef KERNEL_FILE