comparison src/sysdep.h @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents fdefd0186b75
children 2b676dc88c66
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
1 /* System-dependent prototypes 1 /* System-dependent prototypes
2 Copyright (C) 1985, 1993, 1994 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1993, 1994 Free Software Foundation, Inc.
3 Copyright (C) 2001 Ben Wing.
3 4
4 This file is part of XEmacs. 5 This file is part of XEmacs.
5 6
6 XEmacs is free software; you can redistribute it and/or modify it 7 XEmacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the 8 under the terms of the GNU General Public License as published by the
79 naturally interruptible. */ 80 naturally interruptible. */
80 81
81 extern JMP_BUF break_system_call_jump; 82 extern JMP_BUF break_system_call_jump;
82 extern volatile int can_break_system_calls; 83 extern volatile int can_break_system_calls;
83 84
84 ssize_t sys_write_1 (int fildes, const void *buf, size_t nbyte,
85 int allow_quit);
86 ssize_t sys_read_1 (int fildes, void *buf, size_t nbyte,
87 int allow_quit);
88
89 /* Call these functions if you want to change some terminal parameter -- 85 /* Call these functions if you want to change some terminal parameter --
90 reset the console, change the parameter, and init it again. */ 86 reset the console, change the parameter, and init it again. */
91 void init_one_console (struct console *c); 87 void init_one_console (struct console *c);
92 void reset_one_console (struct console *c); 88 void reset_one_console (struct console *c);
93 void init_one_device (struct device *d); 89 void init_one_device (struct device *d);
134 130
135 /* Return the address of the start of the text segment prior to unexec. */ 131 /* Return the address of the start of the text segment prior to unexec. */
136 char *start_of_text (void); 132 char *start_of_text (void);
137 /* Return the address of the start of the data segment prior to unexec. */ 133 /* Return the address of the start of the data segment prior to unexec. */
138 void *start_of_data (void); 134 void *start_of_data (void);
139 /* Return the address of the end of the text segment prior to unexec. */
140 char *end_of_text (void);
141 /* Return the address of the end of the data segment prior to unexec. */
142 char *end_of_data (void);
143 135
144 /* Get_system_name returns as its value a string for system-name to return. */ 136 /* Get_system_name returns as its value a string for system-name to return. */
145 void init_system_name (void); 137 void init_system_name (void);
146 138
147 #ifndef HAVE_GETCWD 139 #ifdef WIN32_NATIVE
148 char *getcwd (char *pathname, size_t size); 140 void *sbrk (unsigned long increment);
149 #endif
150
151 #ifndef HAVE_RENAME
152 int rename (const char *from, const char *to);
153 #endif
154
155 #ifndef HAVE_DUP2
156 int dup2 (int oldd, int newd);
157 #endif
158
159 #ifndef HAVE_STRERROR
160 /* X11R6 defines strerror as a macro */
161 # ifdef strerror
162 # undef strerror
163 # endif
164 const char *strerror (int);
165 #endif
166
167 int interruptible_open (const char *path, int oflag, int mode);
168
169 #ifndef HAVE_H_ERRNO
170 extern int h_errno;
171 #endif
172
173 #ifdef HAVE_REALPATH
174 #define xrealpath realpath
175 #else
176 char *xrealpath(const char *path, char resolved_path []);
177 #endif 141 #endif
178 142
179 #endif /* INCLUDED_sysdep_h_ */ 143 #endif /* INCLUDED_sysdep_h_ */