annotate src/s/sol2.h @ 2741:1d72336294c6

* fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the filesystem being ro, since Solaris 2.1 doesn't. (file-writable-p): Call ro_fsys. * s/sol2.h (SOLARIS_BROKEN_ACCESS): Define this.
author Jim Blandy <jimb@redhat.com>
date Tue, 11 May 1993 01:39:42 +0000
parents e49c2e6349e4
children 60f122cfe785
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1179
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 #include "s-usg5-4.h"
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 #define POSIX
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4
1584
fed9a9ee5156 * s/sol2.h (LD_SWITCH_SYSTEM): Add -R option.
Jim Blandy <jimb@redhat.com>
parents: 1179
diff changeset
5 /* Here is how to find X Windows. The -L option tells the linker where
fed9a9ee5156 * s/sol2.h (LD_SWITCH_SYSTEM): Add -R option.
Jim Blandy <jimb@redhat.com>
parents: 1179
diff changeset
6 to find the libraries at link time, the -R option at run time. */
1638
e49c2e6349e4 (LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1584
diff changeset
7 #define C_SWITCH_X_SYSTEM -I/usr/openwin/include
e49c2e6349e4 (LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1584
diff changeset
8 #ifndef __GNUC__
1584
fed9a9ee5156 * s/sol2.h (LD_SWITCH_SYSTEM): Add -R option.
Jim Blandy <jimb@redhat.com>
parents: 1179
diff changeset
9 #define LD_SWITCH_SYSTEM -L/usr/openwin/lib -R/usr/openwin/lib
1638
e49c2e6349e4 (LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1584
diff changeset
10 #else /* GCC */
e49c2e6349e4 (LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1584
diff changeset
11 #define LD_SWITCH_SYSTEM -L/usr/openwin/lib -Xlinker -R/usr/openwin/lib
e49c2e6349e4 (LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1584
diff changeset
12 #endif /* GCC */
1179
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 /* Compile in non-ansi fashion to work around bugs in system header files. */
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 #ifndef __GNUC__
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 #define C_SWITCH_SYSTEM -Xs
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 #else /* GCC */
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 #define C_SWITCH_SYSTEM -traditional
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 #endif /* GCC */
2741
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
20
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
21 /* Karl Berry writes:
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
22 If you have the misfortune to be running Solaris 2.1, you may have
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
23 noticed that the access system call does not check the readonlyness of
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
24 the filesystem the path refers to. This is a bug, according to
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
25 access(2), but in the meantime, some of us need the right behavior. */
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
26 #define SOLARIS_BROKEN_ACCESS