sync code with last improvements from OpenBSD
This commit is contained in:
commit
88965415ff
26235 changed files with 29195616 additions and 0 deletions
6
app/xenodm/include/Makefile.am
Normal file
6
app/xenodm/include/Makefile.am
Normal file
|
@ -0,0 +1,6 @@
|
|||
noinst_HEADERS = \
|
||||
dm.h \
|
||||
dm_auth.h \
|
||||
dm_error.h \
|
||||
dm_socket.h \
|
||||
greet.h
|
533
app/xenodm/include/Makefile.in
Normal file
533
app/xenodm/include/Makefile.in
Normal file
|
@ -0,0 +1,533 @@
|
|||
# Makefile.in generated by automake 1.12.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2012 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__make_dryrun = \
|
||||
{ \
|
||||
am__dry=no; \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
|
||||
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
|
||||
*) \
|
||||
for am__flg in $$MAKEFLAGS; do \
|
||||
case $$am__flg in \
|
||||
*=*|--*) ;; \
|
||||
*n*) am__dry=yes; break;; \
|
||||
esac; \
|
||||
done;; \
|
||||
esac; \
|
||||
test $$am__dry = yes; \
|
||||
}
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = include
|
||||
DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_define_dir.m4 \
|
||||
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
|
||||
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
HEADERS = $(noinst_HEADERS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APPDEFS_CFLAGS = @APPDEFS_CFLAGS@
|
||||
APPDEFS_LIBS = @APPDEFS_LIBS@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTH_CFLAGS = @AUTH_CFLAGS@
|
||||
AUTH_LIBS = @AUTH_LIBS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFAULTVT = @DEFAULTVT@
|
||||
DEFS = @DEFS@
|
||||
DEF_AUTH_DIR = @DEF_AUTH_DIR@
|
||||
DEF_FAILSAFE_CLIENT = @DEF_FAILSAFE_CLIENT@
|
||||
DEF_SERVER = @DEF_SERVER@
|
||||
DEF_SERVER_LINE = @DEF_SERVER_LINE@
|
||||
DEF_SESSION = @DEF_SESSION@
|
||||
DEF_SYSTEM_PATH = @DEF_SYSTEM_PATH@
|
||||
DEF_SYSTEM_SHELL = @DEF_SYSTEM_SHELL@
|
||||
DEF_USER_PATH = @DEF_USER_PATH@
|
||||
DEF_XENODM_CONFIG = @DEF_XENODM_CONFIG@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LINT = @LINT@
|
||||
LINT_FLAGS = @LINT_FLAGS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MKTEMP_COMMAND = @MKTEMP_COMMAND@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SHELL_CMD = @SHELL_CMD@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
UTMP_FILE = @UTMP_FILE@
|
||||
VERSION = @VERSION@
|
||||
WTMP_FILE = @WTMP_FILE@
|
||||
XDMGREET_CFLAGS = @XDMGREET_CFLAGS@
|
||||
XDMGREET_LIBS = @XDMGREET_LIBS@
|
||||
XENODMCONFIGDIR = @XENODMCONFIGDIR@
|
||||
XENODMLIBDIR = @XENODMLIBDIR@
|
||||
XENODMLOGDIR = @XENODMLOGDIR@
|
||||
XENODMSCRIPTDIR = @XENODMSCRIPTDIR@
|
||||
XENODMXAUTHDIR = @XENODMXAUTHDIR@
|
||||
XENODM_BWPIXMAP = @XENODM_BWPIXMAP@
|
||||
XENODM_CFLAGS = @XENODM_CFLAGS@
|
||||
XENODM_LIBS = @XENODM_LIBS@
|
||||
XENODM_PIXMAP = @XENODM_PIXMAP@
|
||||
XENODM_PIXMAPDIR = @XENODM_PIXMAPDIR@
|
||||
XENODM_TOOLKIT_CFLAGS = @XENODM_TOOLKIT_CFLAGS@
|
||||
XENODM_TOOLKIT_LIBS = @XENODM_TOOLKIT_LIBS@
|
||||
XFT_CFLAGS = @XFT_CFLAGS@
|
||||
XFT_LIBS = @XFT_LIBS@
|
||||
XINERAMA_CFLAGS = @XINERAMA_CFLAGS@
|
||||
XINERAMA_LIBS = @XINERAMA_LIBS@
|
||||
XLIB_CFLAGS = @XLIB_CFLAGS@
|
||||
XLIB_LIBS = @XLIB_LIBS@
|
||||
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||
XPM_CFLAGS = @XPM_CFLAGS@
|
||||
XPM_LIBS = @XPM_LIBS@
|
||||
XRDB_PROGRAM = @XRDB_PROGRAM@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
appdefaultdir = @appdefaultdir@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
noinst_HEADERS = \
|
||||
dm.h \
|
||||
dm_auth.h \
|
||||
dm_error.h \
|
||||
dm_socket.h \
|
||||
greet.h
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign include/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
|
||||
cscopelist: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(HEADERS)
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||
clean-libtool cscopelist ctags distclean distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
|
||||
uninstall-am
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
269
app/xenodm/include/dm.h
Normal file
269
app/xenodm/include/dm.h
Normal file
|
@ -0,0 +1,269 @@
|
|||
/*
|
||||
|
||||
Copyright 1988, 1998 The Open Group
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this software and its
|
||||
documentation for any purpose is hereby granted without fee, provided that
|
||||
the above copyright notice appear in all copies and that both that
|
||||
copyright notice and this permission notice appear in supporting
|
||||
documentation.
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of The Open Group shall
|
||||
not be used in advertising or otherwise to promote the sale, use or
|
||||
other dealings in this Software without prior written authorization
|
||||
from The Open Group.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
* xdm - display manager daemon
|
||||
* Author: Keith Packard, MIT X Consortium
|
||||
*
|
||||
* dm.h
|
||||
*
|
||||
* public interfaces for greet/verify functionality
|
||||
*/
|
||||
|
||||
#ifndef _DM_H_
|
||||
# define _DM_H_ 1
|
||||
|
||||
# ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
# endif
|
||||
|
||||
# include <X11/Xos.h>
|
||||
# include <X11/Xfuncs.h>
|
||||
# include <X11/Xfuncproto.h>
|
||||
# include <X11/Xmd.h>
|
||||
# include <X11/Xauth.h>
|
||||
# include <X11/Intrinsic.h>
|
||||
|
||||
# include <limits.h>
|
||||
# include <time.h>
|
||||
# define Time_t time_t
|
||||
# include <stdlib.h>
|
||||
# include <stdbool.h>
|
||||
|
||||
# include <X11/Xdmcp.h>
|
||||
|
||||
# include <sys/wait.h>
|
||||
# define waitCode(w) (WIFEXITED(w) ? WEXITSTATUS(w) : 0)
|
||||
# define waitSig(w) (WIFSIGNALED(w) ? WTERMSIG(w) : 0)
|
||||
# define waitCore(w) 0 /* not in POSIX. so what? */
|
||||
typedef int waitType;
|
||||
|
||||
# include <sys/param.h>
|
||||
# include <login_cap.h>
|
||||
# include <pwd.h>
|
||||
# include <bsd_auth.h>
|
||||
|
||||
# define waitCompose(sig,core,code) ((sig) * 256 + (core) * 128 + (code))
|
||||
# define waitVal(w) waitCompose(waitSig(w), waitCore(w), waitCode(w))
|
||||
|
||||
typedef enum displayStatus { running, notRunning, zombie, phoenix } DisplayStatus;
|
||||
|
||||
typedef enum fileState { NewEntry, OldEntry, MissingEntry } FileState;
|
||||
|
||||
struct display {
|
||||
struct display *next;
|
||||
/* Xservers file / XDMCP information */
|
||||
char *name; /* DISPLAY name */
|
||||
char *class; /* display class (may be NULL) */
|
||||
char **argv; /* program name and arguments */
|
||||
|
||||
/* display state */
|
||||
DisplayStatus status; /* current status */
|
||||
pid_t pid; /* process id of child */
|
||||
pid_t serverPid; /* process id of server (-1 if none) */
|
||||
FileState state; /* state during HUP processing */
|
||||
int startTries; /* current start try */
|
||||
Time_t lastReserv; /* time of last reserver crash */
|
||||
int reservTries; /* current reserver try */
|
||||
/* server management resources */
|
||||
int serverAttempts; /* number of attempts at running X */
|
||||
int openDelay; /* open delay time */
|
||||
int openRepeat; /* open attempts to make */
|
||||
int openTimeout; /* abort open attempt timeout */
|
||||
int startAttempts; /* number of attempts at starting */
|
||||
int reservAttempts; /* allowed start-IO error sequences */
|
||||
bool terminateServer;/* restart for each session */
|
||||
bool grabServer; /* keep server grabbed for Login */
|
||||
int grabTimeout; /* time to wait for grab */
|
||||
int resetSignal; /* signal to reset server */
|
||||
int termSignal; /* signal to terminate server */
|
||||
bool resetForAuth; /* server reads auth file at reset */
|
||||
char *keymaps; /* binary compat with DEC */
|
||||
|
||||
/* session resources */
|
||||
char *resources; /* resource file */
|
||||
char *xrdb; /* xrdb program */
|
||||
char *setup; /* Xsetup program */
|
||||
char *startup; /* Xstartup program */
|
||||
char *reset; /* Xreset program */
|
||||
char *session; /* Xsession program */
|
||||
char *userPath; /* path set for session */
|
||||
char *systemPath; /* path set for startup/reset */
|
||||
char *systemShell; /* interpreter for startup/reset */
|
||||
char *failsafeClient;/* a client to start when the session fails */
|
||||
|
||||
/* authorization resources */
|
||||
bool authorize; /* enable authorization */
|
||||
char **authNames; /* authorization protocol names */
|
||||
unsigned short *authNameLens; /* authorization protocol name lens */
|
||||
char *clientAuthFile;/* client specified auth file */
|
||||
bool authComplain; /* complain when no auth for XDMCP */
|
||||
bool listenTcp; /* assume server is listening on TCP */
|
||||
|
||||
/* information potentially derived from resources */
|
||||
int authNameNum; /* number of protocol names */
|
||||
Xauth **authorizations;/* authorization data */
|
||||
int authNum; /* number of authorizations */
|
||||
char *authFile; /* file to store authorization in */
|
||||
|
||||
/* add new fields only after here. And preferably at the end. */
|
||||
|
||||
Display *dpy; /* Display */
|
||||
char *windowPath; /* path to server "window" */
|
||||
char *consolePath; /* path to the console device */
|
||||
|
||||
/* autologin */
|
||||
char *autoLogin; /* user to auto-login */
|
||||
};
|
||||
|
||||
|
||||
# define PROTO_TIMEOUT (30 * 60) /* 30 minutes should be long enough */
|
||||
# define XDM_BROKEN_INTERVAL (120) /* server crashing more than once within */
|
||||
/* two minutes is assumed to be broken! */
|
||||
|
||||
struct greet_info {
|
||||
char *name; /* user name */
|
||||
char *password; /* user password */
|
||||
char *string; /* random string */
|
||||
/* add new fields below this line, and preferably at the end */
|
||||
Boolean allow_null_passwd; /* allow null password on login */
|
||||
Boolean allow_root_login; /* allow direct root login */
|
||||
};
|
||||
|
||||
typedef void (*ListenFunc)(ARRAY8Ptr addr, void **closure);
|
||||
|
||||
struct verify_info {
|
||||
int uid; /* user id */
|
||||
int gid; /* group id */
|
||||
char **argv; /* arguments to session */
|
||||
char **userEnviron; /* environment for session */
|
||||
char **systemEnviron;/* environment for startup/reset */
|
||||
/* add new fields below this line, and preferably at the end */
|
||||
};
|
||||
|
||||
/* display manager exit status definitions */
|
||||
|
||||
# define OBEYSESS_DISPLAY 0 /* obey multipleSessions resource */
|
||||
# define REMANAGE_DISPLAY 1 /* force remanage */
|
||||
# define UNMANAGE_DISPLAY 2 /* force deletion */
|
||||
# define RESERVER_DISPLAY 3 /* force server termination */
|
||||
# define OPENFAILED_DISPLAY 4 /* XOpenDisplay failed, retry */
|
||||
|
||||
extern char *config;
|
||||
extern char *servers;
|
||||
extern int request_port;
|
||||
extern int debugLevel;
|
||||
extern char *errorLogFile;
|
||||
extern bool daemonMode;
|
||||
extern char *authDir;
|
||||
extern bool autoRescan;
|
||||
extern bool removeDomainname;
|
||||
extern char **exportList;
|
||||
|
||||
extern struct display *FindDisplayByName (char *name),
|
||||
*FindDisplayByPid (pid_t pid),
|
||||
*FindDisplayByServerPid (pid_t serverPid),
|
||||
*NewDisplay (char *name, char *class);
|
||||
|
||||
/* in Login.c */
|
||||
extern void DrawFail (Widget ctx);
|
||||
|
||||
/* in dm.c */
|
||||
extern void CloseOnFork (void);
|
||||
extern void RegisterCloseOnFork (int fd);
|
||||
extern void StartDisplay (struct display *d);
|
||||
|
||||
/* in dpylist.c */
|
||||
extern int AnyDisplaysLeft (void);
|
||||
extern void ForEachDisplay (void (*f)(struct display *));
|
||||
extern void RemoveDisplay (struct display *old);
|
||||
|
||||
/* in file.c */
|
||||
extern void ParseDisplay (char *source);
|
||||
|
||||
/* in netaddr.c */
|
||||
extern char *NetaddrAddress(XdmcpNetaddr netaddrp, int *lenp);
|
||||
extern int ConvertAddr (XdmcpNetaddr saddr, int *len, char **addr);
|
||||
extern int NetaddrFamily (XdmcpNetaddr netaddrp);
|
||||
|
||||
/* in reset.c */
|
||||
extern void pseudoReset (Display *dpy);
|
||||
|
||||
/* in resource.c */
|
||||
extern void InitResources (int argc, char **argv);
|
||||
extern void LoadDMResources (void);
|
||||
extern void LoadServerResources (struct display *d);
|
||||
extern void LoadSessionResources (struct display *d);
|
||||
extern void ReinitResources (void);
|
||||
|
||||
/* in session.c */
|
||||
extern char **defaultEnv (char **e);
|
||||
extern char **systemEnv (struct display *d, char *user, char *home);
|
||||
extern int source (char **environ, char *file);
|
||||
extern void ClearCloseOnFork (int fd);
|
||||
extern void DeleteXloginResources (struct display *d, Display *dpy);
|
||||
extern void LoadXloginResources (struct display *d);
|
||||
extern __dead void ManageSession (struct display *d);
|
||||
extern void SecureDisplay (struct display *d, Display *dpy);
|
||||
extern __dead void SessionExit (struct display *d, int status, bool removeAuth);
|
||||
extern void SetupDisplay (struct display *d);
|
||||
extern void UnsecureDisplay (struct display *d, Display *dpy);
|
||||
extern void execute(char **argv, char **environ);
|
||||
|
||||
/* server.c */
|
||||
extern const char *_SysErrorMsg (int n);
|
||||
extern bool StartServer (struct display *d);
|
||||
extern int WaitForServer (struct display *d);
|
||||
extern void ResetServer (struct display *d);
|
||||
|
||||
/* in util.c */
|
||||
extern char **parseArgs (char **argv, const char *string);
|
||||
extern char **setEnv (char **e, const char *name, const char *value);
|
||||
extern char **putEnv(const char *string, char **env);
|
||||
extern char *getEnv (char **e, const char *name);
|
||||
extern void CleanUpChild (void);
|
||||
extern void freeArgs (char **argv);
|
||||
extern void freeEnv (char **env);
|
||||
extern void printEnv (char **e);
|
||||
|
||||
/* in verify.c */
|
||||
extern int Verify (struct display *d, struct greet_info *greet, struct verify_info *verify);
|
||||
extern int autoLoginEnv(struct display *d, struct verify_info *verify, struct greet_info *greet);
|
||||
|
||||
/* in dm.c */
|
||||
extern void StopDisplay (struct display *d);
|
||||
extern void WaitForChild (void);
|
||||
|
||||
/*
|
||||
* CloseOnFork flags
|
||||
*/
|
||||
|
||||
# define CLOSE_ALWAYS 0
|
||||
# define LEAVE_FOR_DISPLAY 1
|
||||
|
||||
#endif /* _DM_H_ */
|
55
app/xenodm/include/dm_auth.h
Normal file
55
app/xenodm/include/dm_auth.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
/************************************************************
|
||||
|
||||
Copyright 1998 by Thomas E. Dickey <dickey@clark.net>
|
||||
|
||||
All Rights Reserved
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name(s) of the above copyright
|
||||
holders shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization.
|
||||
|
||||
********************************************************/
|
||||
|
||||
#ifndef _DM_AUTH_H_
|
||||
# define _DM_AUTH_H_ 1
|
||||
|
||||
# include "dm.h" /* for struct display */
|
||||
|
||||
extern void MitInitAuth (unsigned short name_len, char *name);
|
||||
extern Xauth *MitGetAuth (unsigned short namelen, char *name);
|
||||
|
||||
/* auth.c */
|
||||
extern bool ValidAuthorization (unsigned short name_length, char *name);
|
||||
|
||||
|
||||
extern bool SaveServerAuthorizations (struct display *d, Xauth **auths, int count);
|
||||
extern void CleanUpFileName (char *src, char *dst, int len);
|
||||
extern void RemoveUserAuthorization (struct display *d, struct verify_info *verify);
|
||||
extern void SetAuthorization (struct display *d);
|
||||
extern void SetLocalAuthorization (struct display *d);
|
||||
extern void SetUserAuthorization (struct display *d, struct verify_info *verify);
|
||||
|
||||
/* genauth.c */
|
||||
extern int GenerateAuthData (char *auth, int len);
|
||||
|
||||
#endif /* _DM_AUTH_H_ */
|
46
app/xenodm/include/dm_error.h
Normal file
46
app/xenodm/include/dm_error.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
/************************************************************
|
||||
|
||||
Copyright 1998 by Thomas E. Dickey <dickey@clark.net>
|
||||
|
||||
All Rights Reserved
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name(s) of the above copyright
|
||||
holders shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization.
|
||||
|
||||
********************************************************/
|
||||
|
||||
|
||||
#ifndef _DM_ERROR_H_
|
||||
# define _DM_ERROR_H_ 1
|
||||
|
||||
extern void Debug (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
|
||||
extern void InitErrorLog (void);
|
||||
extern void LogAppend (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
|
||||
extern void LogError (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
|
||||
extern void LogInfo (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
|
||||
extern void LogOutOfMem (const char * function);
|
||||
extern __dead void LogPanic (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
|
||||
|
||||
|
||||
#endif /* _DM_ERROR_H_ */
|
45
app/xenodm/include/dm_socket.h
Normal file
45
app/xenodm/include/dm_socket.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
/************************************************************
|
||||
|
||||
Copyright 1998 by Thomas E. Dickey <dickey@clark.net>
|
||||
|
||||
All Rights Reserved
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name(s) of the above copyright
|
||||
holders shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization.
|
||||
|
||||
********************************************************/
|
||||
|
||||
#ifndef _DM_SOCKET_H_
|
||||
# define _DM_SOCKET_H_ 1
|
||||
|
||||
# include <X11/Xmd.h>
|
||||
# include <X11/Xdmcp.h>
|
||||
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
|
||||
/* ugly, but we need this after socket.h */
|
||||
extern ARRAY8Ptr Accept (struct sockaddr *from, int fromlen, CARD16 displayNumber);
|
||||
|
||||
#endif /* _DM_SOCKET_H_ */
|
69
app/xenodm/include/greet.h
Normal file
69
app/xenodm/include/greet.h
Normal file
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
|
||||
Copyright 1994, 1998 The Open Group
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this software and its
|
||||
documentation for any purpose is hereby granted without fee, provided that
|
||||
the above copyright notice appear in all copies and that both that
|
||||
copyright notice and this permission notice appear in supporting
|
||||
documentation.
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of The Open Group shall
|
||||
not be used in advertising or otherwise to promote the sale, use or
|
||||
other dealings in this Software without prior written authorization
|
||||
from The Open Group.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
* greet.h - interface to xdm's dynamically-loadable modular greeter
|
||||
*/
|
||||
#include <pwd.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
/*
|
||||
* Return values for GreetUser();
|
||||
* Values must be explicitly defined because the greet library
|
||||
* may come from a different vendor.
|
||||
* Negative values indicate an error.
|
||||
*/
|
||||
typedef enum {
|
||||
Greet_Session_Over = 0, /* session managed and over */
|
||||
Greet_Success = 1, /* greet succeeded, session not managed */
|
||||
Greet_Failure = -1 /* greet failed */
|
||||
} greet_user_rtn;
|
||||
|
||||
/*
|
||||
* GreetUser can either handle the user's session or allow xdm to do it.
|
||||
* The return or exit status of GreetUser indicates to xdm whether it
|
||||
* should start a session.
|
||||
*
|
||||
* GreetUser is passed the xdm struct display pointer, a pointer to a
|
||||
* Display, and pointers to greet and verify structs. If it expects xdm
|
||||
* to run the session, it fills in the Display pointer and the fields
|
||||
* of the greet and verify structs.
|
||||
*
|
||||
* The verify struct includes the uid, gid, arguments to run the session,
|
||||
* environment for the session, and environment for startup/reset.
|
||||
*
|
||||
* The greet struct includes the user's name and password but these are
|
||||
* really only needed if xdm is compiled with a user-based authorization
|
||||
* option such as SECURE_RPC or K5AUTH.
|
||||
*/
|
||||
|
||||
extern greet_user_rtn GreetUser(struct display *,
|
||||
struct verify_info *, struct greet_info *);
|
||||
|
||||
extern greet_user_rtn AutoLogin(struct display *,
|
||||
struct verify_info *, struct greet_info *);
|
Loading…
Add table
Add a link
Reference in a new issue