Mercurial > hg > xemacs-beta
annotate src/sysdir.h @ 613:023b83f4e54b
[xemacs-hg @ 2001-06-10 10:42:16 by ben]
------ signal-code changes ------
data.c, device-tty.c, emacs.c, floatfns.c, linuxplay.c, nas.c,
process-unix.c, signal.c, sunplay.c, sysdep.c, syssignal.h:
use EMACS_SIGNAL everywhere instead of playing preprocessing
games with signal().
s\windowsnt.h, s\mingw32.h, syssignal.h:
Remove mswindows signal code from s+m headers and move to
syssignal.h as one of the five ways of signal handling,
instead of playing preprocessing games.
fileio.c, sysdep.c:
Rename sys_do_signal to qxe_reliable_signal.
signal.c, process-unix.c, profile.c:
Create set_timeout_signal(); use instead of just EMACS_SIGNAL
to establish a signal handler on a timeout signal; this does
special things under Cygwin.
nt.c:
Eliminate term_ntproc(), which is blank; used as a SIGABRT
handler, which was wrong anyway.
nt.c, win32.c:
Move signal code from nt.c to win32.c, since Cygwin needs it
too when dealing with timeout signals.
s\cygwin32.h:
Define CYGWIN_BROKEN_SIGNALS.
------ other changes ------
s\mingw32.h:
Fix problems with NOT_C_CODE being in the wrong place and
excluding defines needed when building Makefile.in.in.
filelock.c, mule-canna.c, mule-ccl.c, mule-ccl.h, ralloc.c,
unexalpha.c, unexapollo.c, unexcw.c, unexelfsgi.c, unexnt.c,
unexsni.c, s\aix3-1.h, s\bsd4-1.h, s\bsd4-2.h, s\bsd4-3.h, s\cxux.h,
s\cygwin32.h, s\dgux.h, s\dgux5-4r2.h, s\dgux5-4r3.h, s\dgux5-4r4.h,
s\ewsux5r4.h, s\gnu.h, s\hpux.h, s\iris3-5.h, s\iris3-6.h,
s\irix3-3.h, s\linux.h, s\mingw32.h, s\newsos5.h, s\nextstep.h,
s\ptx.h, s\riscix1-1.h, s\riscix1-2.h, s\rtu.h, s\sco4.h, s\sco5.h,
s\template.h, s\ultrix.h, s\umax.h, s\umips.h, s\unipl5-0.h,
s\unipl5-2.h, s\usg5-0.h, s\usg5-2-2.h, s\usg5-2.h, s\usg5-3.h,
s\usg5-4.h, s\windowsnt.h, s\xenix.h:
Rename 'GNU Emacs' to XEmacs in the copyright and comments.
nas.c:
Stylistic cleanup. Avoid preprocessing games with names such
as play_sound_file.
------ signal-code changes ------
data.c, device-tty.c, emacs.c, floatfns.c, linuxplay.c, nas.c,
process-unix.c, signal.c, sunplay.c, sysdep.c, syssignal.h:
use EMACS_SIGNAL everywhere instead of playing preprocessing
games with signal().
s\windowsnt.h, s\mingw32.h, syssignal.h:
Remove mswindows signal code from s+m headers and move to
syssignal.h as one of the five ways of signal handling,
instead of playing preprocessing games.
fileio.c, sysdep.c:
Rename sys_do_signal to qxe_reliable_signal.
signal.c, process-unix.c, profile.c:
Create set_timeout_signal(); use instead of just EMACS_SIGNAL
to establish a signal handler on a timeout signal; this does
special things under Cygwin.
nt.c:
Eliminate term_ntproc(), which is blank; used as a SIGABRT
handler, which was wrong anyway.
nt.c, win32.c:
Move signal code from nt.c to win32.c, since Cygwin needs it
too when dealing with timeout signals.
s\cygwin32.h:
Define CYGWIN_BROKEN_SIGNALS.
------ other changes ------
s\mingw32.h:
Fix problems with NOT_C_CODE being in the wrong place and
excluding defines needed when building Makefile.in.in.
filelock.c, mule-canna.c, mule-ccl.c, mule-ccl.h, ralloc.c,
unexalpha.c, unexapollo.c, unexcw.c, unexelfsgi.c, unexnt.c,
unexsni.c, s\aix3-1.h, s\bsd4-1.h, s\bsd4-2.h, s\bsd4-3.h, s\cxux.h,
s\cygwin32.h, s\dgux.h, s\dgux5-4r2.h, s\dgux5-4r3.h, s\dgux5-4r4.h,
s\ewsux5r4.h, s\gnu.h, s\hpux.h, s\iris3-5.h, s\iris3-6.h,
s\irix3-3.h, s\linux.h, s\mingw32.h, s\newsos5.h, s\nextstep.h,
s\ptx.h, s\riscix1-1.h, s\riscix1-2.h, s\rtu.h, s\sco4.h, s\sco5.h,
s\template.h, s\ultrix.h, s\umax.h, s\umips.h, s\unipl5-0.h,
s\unipl5-2.h, s\usg5-0.h, s\usg5-2-2.h, s\usg5-2.h, s\usg5-3.h,
s\usg5-4.h, s\windowsnt.h, s\xenix.h:
Rename 'GNU Emacs' to XEmacs in the copyright and comments.
nas.c:
Stylistic cleanup. Avoid preprocessing games with names such
as play_sound_file.
xemacs-faq.texi:
Update sections on Windows and MacOS availability.
alist.el, apropos.el, autoload.el, bytecomp.el, cl-compat.el, cl-extra.el, cl-macs.el, cl-seq.el, cl.el, cmdloop.el, cus-edit.el, derived.el, gpm.el, itimer.el, lisp-mode.el, shadow.el, version.el, wid-browse.el:
Rename 'GNU Emacs' to XEmacs in the copyright. Fix other
references to GNU Emacs that should be XEmacs or just Emacs.
files.el:
Fix warning.
simple.el:
transpose-line-up/down will now move the region up or down by
a line if active.
cvtmail.c, fakemail.c, gnuserv.c, gnuserv.h, gnuslib.c, make-msgfile.c, make-path.c, pop.c, pop.h, profile.c, tcp.c:
Rename 'GNU Emacs' to XEmacs in the copyright.
Fix comments in similar ways.
digest-doc.c, sorted-doc.c:
Fix program and author name to reflect XEmacs.
| author | ben |
|---|---|
| date | Sun, 10 Jun 2001 10:42:39 +0000 |
| parents | abe6d1db359e |
| children | b39c14581166 |
| rev | line source |
|---|---|
| 428 | 1 /* |
| 2 Copyright (C) 1995 Free Software Foundation, Inc. | |
| 3 | |
| 4 This file is part of XEmacs. | |
| 5 | |
| 6 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 Free Software Foundation; either version 2, or (at your option) any | |
| 9 later version. | |
| 10 | |
| 11 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
| 12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
| 14 for more details. | |
| 15 | |
| 16 You should have received a copy of the GNU General Public License | |
| 17 along with XEmacs; see the file COPYING. If not, write to | |
| 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
| 19 Boston, MA 02111-1307, USA. */ | |
| 20 | |
| 21 /* Synched up with: Not really in FSF. */ | |
| 22 | |
| 440 | 23 #ifndef INCLUDED_sysdir_h_ |
| 24 #define INCLUDED_sysdir_h_ | |
| 25 | |
| 428 | 26 #ifdef HAVE_UNISTD_H |
| 27 #include <unistd.h> | |
| 28 #endif | |
| 29 | |
| 30 #ifdef SYSV_SYSTEM_DIR | |
| 31 # include <dirent.h> | |
| 442 | 32 #elif defined (WIN32_NATIVE) |
| 33 # include <direct.h> | |
| 34 # include "ndir.h" | |
| 432 | 35 #elif defined (NONSYSTEM_DIR_LIBRARY) |
| 428 | 36 # include "ndir.h" |
| 37 #else | |
| 38 # include <sys/dir.h> | |
| 39 #endif /* not NONSYSTEM_DIR_LIBRARY */ | |
| 40 | |
| 41 #ifdef SYSV_SYSTEM_DIR | |
| 42 # define DIRENTRY struct dirent | |
| 43 #else /* not SYSV_SYSTEM_DIR */ | |
| 44 # define DIRENTRY struct direct | |
| 45 #endif | |
| 46 | |
| 47 /* The d_nameln member of a struct dirent includes the '\0' character | |
| 48 on some systems, but not on others. What's worse, you can't tell | |
| 49 at compile-time which one it will be, since it really depends on | |
| 50 the sort of system providing the filesystem you're reading from, | |
| 51 not the system you are running on. Paul Eggert | |
| 52 <eggert@bi.twinsun.com> says this occurs when Emacs is running on a | |
| 53 SunOS 4.1.2 host, reading a directory that is remote-mounted from a | |
| 54 Solaris 2.1 host and is in a native Solaris 2.1 filesystem. | |
| 55 | |
| 56 (and Solaris 2 doesn't have a d_nameln member at all! Posix.1 | |
| 57 doesn't specify it -- mrb) | |
| 58 | |
| 59 Since applying strlen to the name always works, we'll just do that. */ | |
| 60 #define NAMLEN(p) strlen (p->d_name) | |
| 61 | |
| 62 #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) | |
| 63 | |
| 64 /* encapsulation: directory calls */ | |
| 65 | |
| 66 #ifdef ENCAPSULATE_CHDIR | |
| 442 | 67 int sys_chdir (const char *path); |
| 428 | 68 #endif |
| 69 #if defined (ENCAPSULATE_CHDIR) && !defined (DONT_ENCAPSULATE) | |
| 70 # undef chdir | |
| 71 # define chdir sys_chdir | |
| 72 #endif | |
| 73 #if !defined (ENCAPSULATE_CHDIR) && defined (DONT_ENCAPSULATE) | |
| 74 # define sys_chdir chdir | |
| 75 #endif | |
| 76 | |
| 77 #ifdef ENCAPSULATE_MKDIR | |
| 442 | 78 int sys_mkdir (const char *path, mode_t mode); |
| 428 | 79 #endif |
| 80 #if defined (ENCAPSULATE_MKDIR) && !defined (DONT_ENCAPSULATE) | |
| 81 # undef mkdir | |
| 82 # define mkdir sys_mkdir | |
| 83 #endif | |
| 84 #if !defined (ENCAPSULATE_MKDIR) && defined (DONT_ENCAPSULATE) | |
| 85 # define sys_mkdir mkdir | |
| 86 #endif | |
| 87 | |
| 88 #ifdef ENCAPSULATE_OPENDIR | |
| 442 | 89 DIR *sys_opendir (const char *filename); |
| 428 | 90 #endif |
| 91 #if defined (ENCAPSULATE_OPENDIR) && !defined (DONT_ENCAPSULATE) | |
| 92 # undef opendir | |
| 93 # define opendir sys_opendir | |
| 94 #endif | |
| 95 #if !defined (ENCAPSULATE_OPENDIR) && defined (DONT_ENCAPSULATE) | |
| 96 # define sys_opendir opendir | |
| 97 #endif | |
| 98 | |
| 99 #ifdef ENCAPSULATE_READDIR | |
| 100 DIRENTRY *sys_readdir (DIR *dirp); | |
| 101 #endif | |
| 102 #if defined (ENCAPSULATE_READDIR) && !defined (DONT_ENCAPSULATE) | |
| 103 # undef readdir | |
| 104 # define readdir sys_readdir | |
| 105 #endif | |
| 106 #if !defined (ENCAPSULATE_READDIR) && defined (DONT_ENCAPSULATE) | |
| 107 # define sys_readdir readdir | |
| 108 #endif | |
| 109 | |
| 110 #ifdef ENCAPSULATE_CLOSEDIR | |
| 111 int sys_closedir (DIR *dirp); | |
| 112 #endif | |
| 113 #if defined (ENCAPSULATE_CLOSEDIR) && !defined (DONT_ENCAPSULATE) | |
| 114 # undef closedir | |
| 115 # define closedir sys_closedir | |
| 116 #endif | |
| 117 #if !defined (ENCAPSULATE_CLOSEDIR) && defined (DONT_ENCAPSULATE) | |
| 118 # define sys_closedir closedir | |
| 119 #endif | |
| 120 | |
| 121 #ifdef ENCAPSULATE_RMDIR | |
| 442 | 122 int sys_rmdir (const char *path); |
| 428 | 123 #endif |
| 124 #if defined (ENCAPSULATE_RMDIR) && !defined (DONT_ENCAPSULATE) | |
| 125 # undef rmdir | |
| 126 # define rmdir sys_rmdir | |
| 127 #endif | |
| 128 #if !defined (ENCAPSULATE_RMDIR) && defined (DONT_ENCAPSULATE) | |
| 129 # define sys_rmdir rmdir | |
| 130 #endif | |
| 131 | |
| 440 | 132 #endif /* INCLUDED_sysdir_h_ */ |
