Files
lotherkandClaude Opus 5.5 94f116c272 mcde: builds on Linux (GCC 15); dtfile gets toolbar, sidebar, history, free space; make mcde-linux, mcde-shot
- configure.ac: the C dialect (-std=gnu11 and five GCC 14 downgrades) is
  configure's own, also handed to dtksh's ksh93 build (MCDE_DIALECT_CFLAGS).
- The pkgsrc placeholders folded in from wm/cde (@PREFIX@, @VARBASE@,
  @PKG_SYSCONFDIR@) are configure options now: --with-logfiles-dir,
  --with-config-dir, --with-local-bindir; and --with-pamdir (dtlogin,
  dtsession) and --with-calendar-dir (dtcm, rpc.cmsd) replace paths that
  were fixed.  Defaults unchanged; the recipe passes its paths.
- dtfile: programs/dtfile/Navigation.c -- Back/Forward with a history per
  window, views Icons/Small/List, places in a sidebar, free space in the
  status line (statvfs).  Screenshot: build/mcde-shots/dtfile-7.png.
- make mcde-linux (tools/mcde-linux.sh): the development build on this host,
  every system path under build/mcde-root.  tools/mcde-shot.sh: run a
  program on a private Xvfb with ttsession and dtwm, empty environment and
  its own HOME, take a screenshot.  tools/ext-sync.sh: ext recipes into
  pkgsrc/<cat>/<name>.

Measured: build/logs/mcde-linux-install3-2026-11-09.log (mcde-linux exit=0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:32:32 +00:00

113 lines
3.4 KiB
C

/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: log.h /main/5 1996/10/03 10:26:46 drk $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company
* (c) Copyright 1993, 1994 International Business Machines Corp.
* (c) Copyright 1993, 1994 Novell, Inc.
* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
*/
#ifndef _LOG_H
#define _LOG_H
#include "cm.h"
#include "rtable4.h"
#define _DtCMS_VERSION1 1
#define _DtCMS_VERSION4 4
#define _DtCMS_DEFAULT_LOG "callog"
#define _DtCMS_DEFAULT_BAK ".calbak"
#define _DtCMS_DEFAULT_TMP ".caltmp"
#define _DtCMS_DEFAULT_DEL ".caldel"
/* MCDE: configure --with-calendar-dir gives it (programs/dtcm/server/Makefile.am) */
#ifndef _DtCMS_DEFAULT_DIR
#define _DtCMS_DEFAULT_DIR "/var/spool/calendar"
#endif
#define _DtCMS_DEFAULT_MODE (S_IRUSR|S_IRGRP|S_IWGRP)
typedef enum {
_DtCmsLogAdd, _DtCmsLogRemove
} _DtCmsLogOps;
extern CSA_return_code _DtCmsAppendAppt4ByFN(char*, Appt_4*, _DtCmsLogOps);
extern CSA_return_code _DtCmsAppendAppt4ByFD(int, Appt_4*, _DtCmsLogOps);
extern CSA_return_code _DtCmsAppendCalAttrsByFN(char *file,
int size,
cms_attribute * attrs);
extern CSA_return_code _DtCmsAppendCalAttrsByFD(int f,
int size,
cms_attribute * attrs);
extern CSA_return_code _DtCmsAppendEntryByFN(char *,
cms_entry *,
_DtCmsLogOps);
extern CSA_return_code _DtCmsAppendEntryByFD(int,
cms_entry *,
_DtCmsLogOps);
extern CSA_return_code _DtCmsAppendHTableByFN(char *file,
uint size,
char **names,
int *types);
extern CSA_return_code _DtCmsAppendHTableByFD(int fd,
uint size,
char **names,
int *types);
extern CSA_return_code _DtCmsAppendAccessByFN(char*,
int,
Access_Entry_4 *);
extern CSA_return_code _DtCmsAppendAccessByFD(int, int, Access_Entry_4 *);
extern CSA_return_code _DtCmsCreateLogV1(char*, char *);
extern CSA_return_code _DtCmsCreateLogV2(char *owner, char *file);
extern CSA_return_code _DtCmsWriteVersionString(char *file, int version);
extern int _DtCmsSetFileMode(char *file,
uid_t uid,
gid_t gid,
mode_t mode,
boolean_t changeeuid,
boolean_t printerr);
extern CSA_return_code _DtCmsRemoveLog(char *calendar, char *user);
extern char *_DtCmsGetBakFN(char*);
extern char *_DtCmsGetLogFN(char*);
extern char *_DtCmsGetTmpFN(char*);
extern char *_DtCmsGetDelFN(char*);
extern boolean_t _DtCmsPrintAppt4(caddr_t data);
extern void _DtCmsPrintExceptions(int len, int *exceptions);
extern CSA_return_code _DtCmsGetFileSize(char *calendar, int *size);
extern void _DtCmsTruncateFile(char *calendar, int size);
#endif