1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466
|
$Id: patches 57 2005-11-05 23:19:39Z branden $
desktop.c, doors.c, iconmgr.c, list.c, menus.c, util.c:
Eliminate redefinitions of strdup().
Imakefile:
Replace VTWMLIBDIR symbol with VTWMCONFDIR since all we use it for is
installation of the configuration file. Create a new TWMCONFDIR symbol,
which we use to locate twm's configration file. If Imake defines
EtcX11Directory, use a subdirectory of ETCX11DIR for vtwm's
configuration; otherwise, use a subdirectory of LIBDIR.
doc/vtwm.man:
+ Add copyright notice to the manpage itself, copied from the copyright
information on TWM's source files in X11R4, from which VTWM was forked.
+ Remove commented-out local macro definition from manpage (which also
dates back to X11R4).
+ Fix up the .TH directive:
- Downcase the command name (rendering a command's name in full caps is
a presentation decision).
- Change the date to reflect my modifications.
- Indicate the source as "VTWM 5.4.6b", not "X11R4-6", since this
manual page is independently maintained by the VTWM hackers.
+ Fix up the NAME section:
- Remove spurious paragraph break at the beginning of the section.
- Use \- instead of - to separate the manpage's name and summary and so
that mkwhatis is less easily confused. (See man(7).)
+ Rename the SYNTAX section to SYNOPSIS. (See man(7).)
+ Use an macros for type face selection in the SYNOPSIS section.
+ Use \- instead of - in the SYNOPSIS section to notate literal dashes
that the user will type (e.g., when specifying command-line options).
+ Rename the SIGNALS section to ASYNCHRONOUS EVENTS (after SUSv3
manpages).
+ Rename the ENVIRONMENT VARIABLES section to ENVIRONMENT. (See
man(7).)
+ Use "an" typeface macros instead of roff \f escapes for font changes
where practical in the ASYNCHRONOUS EVENTS, BUGS, FILES,
ENVIRONMENT, COPYRIGHT, and SEE ALSO sections.
+ Quote multi-word arguments to the .SH macro in the ASYNCHRONOUS
EVENTS and AUTHORS AND CONTRIBUTORS sections.
+ Use \(oq and \(cq named characters instead of literal double-quotes
in the BUGS section.
+ Italicize signal names in the ASYNCHRONOUS EVENTS section.
+ Put a newline at the ends of sentences per the GNU Roff info
documentation.
+ Move the SEE ALSO section to the end of the page.
+ Update COPYRIGHT section based on the information I gathered from
trawling the source tree.
+ Add a Vim modeline.
Index: Imakefile
===================================================================
--- Imakefile (revision 46)
+++ Imakefile (working copy)
@@ -56,9 +56,22 @@
XCOMM Installation path for the binary
VTWMBINDIR = $(BINDIR)
-XCOMM Installation path for the system resource file
- VTWMLIBDIR = $(LIBDIR)/twm
+/*
+ * If EtcX11Directory is defined, we're using a relatively modern X.Org or
+ * XFree86 release.
+ */
+#ifdef EtcX11Directory
+ CONFDIR = $(ETCX11DIR)
+#else
+ CONFDIR = $(LIBDIR)
+#endif
+XCOMM Installation path for VTWM's system resource file
+ VTWMCONFDIR = $(CONFDIR)/vtwm
+
+XCOMM Location where we search for TWM's system resource file
+ TWMCONFDIR = $(CONFDIR)/twm
+
XCOMM Installation path for the man page
VTWMMANDIR = $(MANDIR)
@@ -113,8 +126,8 @@
SpecialObjectRule(events.o,gram.h,$(NEED_SELECT_H))
SpecialObjectRule(parse.o,gram.h,$(NEED_YYLINENO_V) \
-'-DSYSTEM_VTWMRC="'$(VTWMLIBDIR)'/system.vtwmrc"' \
-'-DSYSTEM_TWMRC="'$(VTWMLIBDIR)'/system.twmrc"')
+'-DSYSTEM_VTWMRC="'$(VTWMCONFDIR)'/system.vtwmrc"' \
+'-DSYSTEM_TWMRC="'$(VTWMCONFDIR)'/system.twmrc"')
SpecialObjectRule(add_window.o applets.o icons.o \
list.o regions.o sound.o twm.o,gram.h,NullParameter)
@@ -123,7 +136,7 @@
InstallProgram(vtwm,$(VTWMBINDIR))
InstallManPage(vtwm,$(VTWMMANDIR))
-InstallNonExecFile(system.vtwmrc,$(VTWMLIBDIR))
+InstallNonExecFile(system.vtwmrc,$(VTWMCONFDIR))
depend:: lex.c gram.c deftwmrc.c lastmake.c vtwm.man
Index: iconmgr.c
===================================================================
--- iconmgr.c (revision 46)
+++ iconmgr.c (working copy)
@@ -45,9 +45,6 @@
int strcmp(); /* missing from string.h in AUX 2.0 */
#endif
-#define strdup Strdup /* avoid conflict with system header files */
-extern char *strdup(char *);
-
/* djhjr - 5/2/98 */
static int ComputeIconMgrWindowHeight();
Index: util.c
===================================================================
--- util.c (revision 46)
+++ util.c (working copy)
@@ -89,9 +89,6 @@
#define ZOOMSLEEP 50000 /* arbitrary, but pleasing, msec value */
#endif
-#define strdup Strdup /* avoid conflict with system header files */
-extern char *strdup(char *);
-
/*
* All instances of Scr->TitleBevelWidth and Scr->BorderBevelWidth
* were a hard value of 2 - djhjr - 4/29/98
Index: doors.c
===================================================================
--- doors.c (revision 46)
+++ doors.c (working copy)
@@ -24,16 +24,6 @@
#include "desktop.h"
#include "add_window.h"
-#define strdup Strdup /* avoid conflict with system header files */
-char *strdup(s1)
-char * s1;
-{
- char *s2;
-
- s2 = malloc((unsigned) strlen(s1)+1);
- return (s2 == NULL ? NULL : strcpy(s2,s1));
-}
-
extern void SetMapStateProp();
extern TwmDoor *door_add_internal();
extern void twmrc_error_prefix();
Index: desktop.c
===================================================================
--- desktop.c (revision 46)
+++ desktop.c (working copy)
@@ -26,9 +26,6 @@
#include "events.h"
#include "desktop.h"
-#define strdup Strdup /* avoid conflict with system header files */
-extern char *strdup(char *);
-
extern void SetRealScreenInternal();
extern void SetRealScreen();
extern void SnapRealScreen();
Index: list.c
===================================================================
--- list.c (revision 46)
+++ list.c (working copy)
@@ -60,9 +60,6 @@
#define REGCOMP_FLAGS (REG_EXTENDED | REG_NOSUB)
-#define strdup Strdup /* avoid conflict with system header files */
-extern char *strdup(char *);
-
struct name_list_struct
{
name_list *next; /* pointer to the next name */
Index: menus.c
===================================================================
--- menus.c (revision 46)
+++ menus.c (working copy)
@@ -69,9 +69,6 @@
#endif
#include "version.h"
-#define strdup Strdup /* avoid conflict with system header files */
-extern char *strdup(char *);
-
extern void IconUp(), IconDown(), CreateIconWindow();
/* djhjr - 4/26/99 */
Index: doc/vtwm.man
===================================================================
--- doc/vtwm.man (revision 46)
+++ doc/vtwm.man (working copy)
@@ -1,19 +1,27 @@
-.\" twm
-.\" .de EX \"Begin example
-.\" .ne 5
-.\" .if n .sp 1
-.\" .if t .sp .5
-.\" .nf
-.\" .in +.5i
-.\" ..
-.\" .de EE
-.\" .fi
-.\" .in -.5i
-.\" .if n .sp 1
-.\" .if t .sp .5
-.\" ..
-.\" .ta .3i .6i .9i 1.2i 1.5i 1.8i
-.TH VTWM 1 "Release 5.4.7" "X11R4-6"
+.\" Copyright 1988 by Evans & Sutherland Computer Corporation,
+.\" Salt Lake City, Utah
+.\" Portions Copyright 1989 by the Massachusetts Institute of Technology
+.\" Cambridge, Massachusetts
+.\"
+.\" All Rights Reserved
+.\"
+.\" Permission to use, copy, modify, and distribute this software and
+.\" its documentation for any purpose and without fee is hereby
+.\" granted, provided that the above copyright notice appear in all
+.\" copies and that both that copyright notice and this permis-
+.\" sion notice appear in supporting documentation, and that the
+.\" names of Evans & Sutherland and M.I.T. not be used in advertising
+.\" in publicity pertaining to distribution of the software without
+.\" specific, written prior permission.
+.\"
+.\" EVANS & SUTHERLAND AND M.I.T. DISCLAIM ALL WARRANTIES WITH REGARD
+.\" TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT-
+.\" ABILITY AND FITNESS, IN NO EVENT SHALL EVANS & SUTHERLAND OR
+.\" M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAM-
+.\" AGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
+.\" OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+.\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
+.\" OR PERFORMANCE OF THIS SOFTWARE.
.\"*********************************************************************
.\" Important note: At the time 5.4.4 was released, this manual page
.\" conformed to Sun's guidelines for manual page markup, passed
@@ -22,16 +30,37 @@
.\" in subsequent edits to preserve these important invariants!
.\"*********************************************************************
.\"=====================================================================
+.TH vtwm 1 "2005-06-28" "VTWM 5.4.7"
.SH NAME
.PP
vtwm - Virtual Tab Window Manager for the X Window System
.PP
.\"=====================================================================
-.SH SYNTAX
-.PP
-\&\fBvtwm\fP [\fB-d\fP \fIdisplay\fP] [\fB-f\fP [\fIinitfile\fP]]
-[\fB-m\fP [\fIoptions\fP]] [\fB-p\fP] [\fB-s\fP] [\fB-v\fP]
-.PP
+.SH SYNOPSIS
+.B vtwm
+[
+.B \-d
+.I display
+]
+[
+.B \-f
+.I initfile
+]
+[
+.B \-m
+[
+.I m4-options
+]
+]
+[
+.B \-p
+]
+[
+.B \-s
+]
+[
+.B \-v
+]
.\"=====================================================================
.SH DESCRIPTION
.PP
@@ -2552,11 +2581,22 @@
accomplishes the same thing. This is but a simple example of RE usage,
and as such doesn't demonstrate or leverage their capabilities.
.\"=====================================================================
-.SH SIGNALS
-It is possible to issue a \fBf.restart\fP via a UNIX signal, to ease
-debugging of \fBvtwm\fP resource files. To do this, send a SIGUSR1 to the
-\&\fBvtwm\fP process ID (written to \fI$HOME/vtwm.pid\fP).
-See \fBkill\fP(1) or \fBslay\fP(1).
+.SH "ASYNCHRONOUS EVENTS"
+It is possible to issue an
+.B f.restart
+via a Unix signal, to ease debugging of
+.B vtwm
+resource files.
+To do this, send a
+.I SIGUSR1
+to the
+.B vtwm
+process ID (written to
+.IR $HOME/vtwm.pid ).
+See
+.BR kill (1)
+or
+.BR slay (1).
.\"=====================================================================
.SH BUGS
There are precious few safeguards against binding functions to objects
@@ -2565,65 +2605,59 @@
Double clicking very fast to get the constrained move function will sometimes
cause the window to move, even though the pointer is not moved.
.PP
-It is possible to "lose" windows in the virtual desktop by placing them
-in a large desktop area, then shrinking the desktop so as to remove them
-from view. They are still there, of course, but are unreachable until the
-desktop is grown sufficiently large again.
+It is possible to \(oqlose\(cq windows in the virtual desktop by placing
+them in a large desktop area, then shrinking the desktop so as to remove
+them from view.
+They are still there, of course, but are unreachable until the
.PP
-See the \fIBUGS\fP file in the distribution for others.
+See the
+.I BUGS
+file in the distribution for others.
.\"=====================================================================
.SH FILES
-.PP
-Searched for in the order shown:
-.RS 4
-.nf
-\&\fI$HOME/.vtwmrc.<screen number>\fP
-\&\fI$HOME/.vtwmrc\fP
-\&\fI$VTWMDIR/twm/system.vtwmrc\fP
-\&\fI$HOME/.twmrc.<screen number>\fP
-\&\fI$HOME/.twmrc\fP
-\&\fI$VTWMDIR/twm/system.twmrc\fP
+.PD 0
+.TP
+.IR $HOME/.vtwmrc. screen-number
+.TP
+.I $HOME/.vtwmrc
+.TP
+.I $VTWMETCMDIR/vtwm/system.vtwmrc
+.TP
+.IR $HOME/.twmrc. screen-number
+.TP
+.I $HOME/.twmrc
+.TP
+.I $VTWMETCMDIR/twm/system.vtwmrc
+are files
+.B vtwm
+will search for and use as its configuration file.
+They are searched for in the order shown, and the first readable file
+found is used.
+.PD 1
+.TP
+.I $HOME/vtwm.pid
+contains the ID of the user's
+.B vtwm
+process; see the description of the
+.B \-p
+option above.
.fi
-.RE
-.PP
-.nf
-\&\fI$HOME/vtwm.pid\fP
-.fi
.\"=====================================================================
-.SH "ENVIRONMENT VARIABLES"
-.IP "\fBDISPLAY\fP" 8
-This variable is used to determine which X server to use. It is also set
-during \fBf.exec\fP so that programs come up on the proper screen.
-.IP "\fBHOME\fP" 8
+.SH ENVIRONMENT
+.TP
+.B DISPLAY
+This variable is used to determine which X server to use.
+It is also set during
+.B f.exec
+so that programs come up on the proper screen.
+.TP
+.B HOME
This variable is used as the prefix for files that begin with a tilde and
-for locating the \fBvtwm\fP startup file.
+for locating the
+.B vtwm
+startup file.
.\"=====================================================================
-.SH "SEE ALSO"
-\&\fBbitmap\fP(5),
-\&\fBctwm\fP(1),
-\&\fBm4\fP(1),
-\&\fBmwm\fP(1),
-\&\fBpixmap\fP(5),
-\&\fBre_format\fP(7) or \fBegrep\fP(1),
-\&\fBrplayd\fP(8) and \fBrplay.helpers\fP(5),
-\&\fBtvtwm\fP(1),
-\&\fBtwm\fP(1),
-\&\fBvuewm\fP(1),
-\&\fBX\fP(1),
-\&\fBxdm\fP(1),
-\&\fBxinit\fP(1),
-\&\fBxmodmap\fP(1),
-\&\fBxrdb\fP(1),
-\&\fBXserver\fP(1)
-.\"=====================================================================
-.SH COPYRIGHT
-Portions copyright 1988 Evans & Sutherland Computer Corporation; portions
-copyright 1989 Hewlett-Packard Company and the Massachusetts Institute of
-Technology; portions copyright 2001 D. J. Hawkey Jr..
-.PP
-See \fBX\fP(1) for a full statement of rights and permissions.
-.\"=====================================================================
-.SH AUTHORS AND CONTRIBUTORS
+.SH "AUTHORS AND CONTRIBUTORS"
Tom LaStrange, Solbourne Computer; Jim Fulton, MIT X Consortium;
Steve Pitschke, Stardent Computer; Keith Packard, MIT X Consortium;
Dave Payne, Apple Computer; Nick Williams <njw@athena.mit.edu>;
@@ -2665,4 +2699,44 @@
Tim Wiess <tim@zetaflops.net>,
acknowledging
Claude Lecommandeur, (ctwm), <lecom@sic.epfl.ch>
+.\"=====================================================================
+.SH COPYRIGHT
+Copyright 1988 Evans & Sutherland Computer Corporation
+.br
+Copyright 1989 Massachusetts Institute of Technology
+.br
+Copyright 1990 Dave Edmondson
+.br
+Copyright 1990 Imperial College of Science, Technology & Medicine
+.br
+Copyright 1990, 1991 Groupe Bull
+.br
+Copyright 2001 David J. Hawkey Jr.
+.PP
+See the copyright notices in the
+.B vtwm
+source distribution for copyright license statements.
+On Debian systems, these may also be found in the file
+.IR /usr/share/doc/vtwm/copyright .
+.\"=====================================================================
+.SH "SEE ALSO"
+.BR bitmap (1),
+.BR ctwm (1),
+.BR m4 (1),
+.BR mwm (1),
+.BR pixmap (1),
+.BR regex (7)
+or
+.BR egrep (1),
+.BR rplayd (8),
+.BR tvtwm (1),
+.BR twm (1),
+.BR vuewm (1),
+.BR X (1),
+.BR xdm (1),
+.BR xinit (1),
+.BR xmodmap (1),
+.BR xrdb (1),
+.BR Xserver (1)
.\"==============================[The End]==============================
+.\" vim:set ai et sts=4 sw=4 tw=72:
|