Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
#ifndef __GREET_H__ #define __GREET_H__ #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 <X11/Xdmcp.h> #include <gtk/gtk.h> #include <gdk/gdkx.h> #define SYSCONFDIR "/etc/X11" #define SESSIONDIR "/usr/share/xsessions" #define WPDIR "/usr/share/pixmaps" #define MIN_UID 100 #define BORDERS 5 #define WELCOME "<span font_desc=\"Sans Bold Italic 24\" foreground=\"blue\">Welcome to %s</span>" #define USERLABEL "<i>Username:</i>" #define PASSLABEL "<i>Password:</i>" #define SESSLABEL "<i>Session:</i>" #define REBOOT_CMD "/sbin/reboot" #define POWEROFF_CMD "/sbin/poweroff" #define SUSPEND_CMD "echo mem > /sys/power/state" #define HIBERNATE_CMD "echo disk > /sys/power/state" #define DEFAULT_PATH "/bin:/usr/bin:/usr/local/bin:/opt/bin:/sbin:/usr/sbin" typedef struct { gint min_uid; gboolean auto_login; gchar *auto_user; gboolean allow_root; gchar *welcome; gchar *background; gchar *theme; gchar *user_lbl; gchar *pwd_lbl; gchar *sess_lbl; gchar *session; gchar *path; gint borders; gchar *reboot_cmd; gchar *poweroff_cmd; gchar *suspend_cmd; gchar *hibernate_cmd; } ConfigData; /*** xdm definitions ***/ typedef struct displayType { unsigned int location:1; unsigned int lifetime:1; unsigned int origin:1; } DisplayType; #define Local 1 /* server runs on local host */ #define Foreign 0 /* server runs on remote host */ #define Permanent 1 /* session restarted when it exits */ #define Transient 0 /* session not restarted when it exits */ #define FromFile 1 /* started via entry in servers file */ #define FromXDMCP 0 /* started with XDMCP */ 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) */ DisplayType displayType; /* method to handle with */ 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 */ /* XDMCP state */ CARD32 sessionID; /* ID of active session */ XdmcpNetaddr peer; /* display peer address */ int peerlen; /* length of peer address */ XdmcpNetaddr from; /* XDMCP port of display */ int fromlen; CARD16 displayNumber; int useChooser; /* Run the chooser for this display */ ARRAY8 clientAddr; /* for chooser picking */ CARD16 connectionType; /* ... */ int xdmcpFd; /* 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 */ int pingInterval; /* interval between XSync */ int pingTimeout; /* timeout for XSync */ int terminateServer;/* restart for each session */ int 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 */ int resetForAuth; /* server reads auth file at reset */ char *keymaps; /* binary compat with DEC */ char *greeterLib; /* greeter shared library name */ /* 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 */ char *chooser; /* chooser program */ /* authorization resources */ int authorize; /* enable authorization */ char **authNames; /* authorization protocol names */ unsigned short *authNameLens; /* authorization protocol name lens */ char *clientAuthFile;/* client specified auth file */ char *userAuthDir; /* backup directory for tickets */ int authComplain; /* complain when no auth for XDMCP */ /* 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 */ int version; /* to keep dynamic greeter clued in */ /* add new fields only after here. And preferably at the end. */ /* Hack for making "Willing to manage" configurable */ char *willing; /* "Willing to manage" program */ Display *dpy; /* Display */ char *windowPath; /* path to server "window" */ }; struct dlfuncs { int (*_PingServer)(struct display *d, Display *alternateDpy); void (*_SessionPingFailed)(struct display *d); void (*_Debug)(const char * fmt, ...); void (*_RegisterCloseOnFork)(int fd); void (*_SecureDisplay)(struct display *d, Display *dpy); void (*_UnsecureDisplay)(struct display *d, Display *dpy); void (*_ClearCloseOnFork)(int fd); void (*_SetupDisplay)(struct display *d); void (*_LogError)(const char * fmt, ...); void (*_SessionExit)(struct display *d, int status, int removeAuth); void (*_DeleteXloginResources)(struct display *d, Display *dpy); int (*_source)(char **environ, char *file); char **(*_defaultEnv)(void); char **(*_setEnv)(char **e, char *name, char *value); char **(*_putEnv)(const char *string, char **env); char **(*_parseArgs)(char **argv, char *string); void (*_printEnv)(char **e); char **(*_systemEnv)(struct display *d, char *user, char *home); void (*_LogOutOfMem)(const char * fmt, ...); void (*_setgrent)(void); /* no longer used */ struct group *(*_getgrent)(void); /* no longer used */ void (*_endgrent)(void); /* no longer used */ struct spwd *(*_getspnam)(const char *); void (*_endspent)(void); struct passwd *(*_getpwnam)(const char *); void (*_endpwent)(void); char *(*_crypt)(const char *, const char *); #ifdef USE_PAM pam_handle_t **(*_thepamhp)(void); #endif }; 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; struct greet_info { char *name; /* user name */ char *password; /* user password */ char *string; /* random string */ char *passwd; /* binary compat with DEC */ int version; /* for dynamic greeter to see */ /* 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 */ }; 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 */ int version; /* for dynamic greeter to see */ /* add new fields below this line, and preferably at the end */ }; /* * Force the shared library to call through the function pointer * initialized during the initial call into the library. */ #define PingServer (*__xdm_PingServer) #define SessionPingFailed (*__xdm_SessionPingFailed) #define Debug (*__xdm_Debug) #define RegisterCloseOnFork (*__xdm_RegisterCloseOnFork) #define SecureDisplay (*__xdm_SecureDisplay) #define UnsecureDisplay (*__xdm_UnsecureDisplay) #define ClearCloseOnFork (*__xdm_ClearCloseOnFork) #define SetupDisplay (*__xdm_SetupDisplay) #define LogError (*__xdm_LogError) #define SessionExit (*__xdm_SessionExit) #define DeleteXloginResources (*__xdm_DeleteXloginResources) #define source (*__xdm_source) #define defaultEnv (*__xdm_defaultEnv) #define setEnv (*__xdm_setEnv) #define putEnv (*__xdm_putEnv) #define parseArgs (*__xdm_parseArgs) #define printEnv (*__xdm_printEnv) #define systemEnv (*__xdm_systemEnv) #define LogOutOfMem (*__xdm_LogOutOfMem) #define setgrent (*__xdm_setgrent) #define getgrent (*__xdm_getgrent) #define endgrent (*__xdm_endgrent) #define getspnam (*__xdm_getspnam) #define endspent (*__xdm_endspent) #define getpwnam (*__xdm_getpwnam) #define endpwent (*__xdm_endpwent) #define crypt (*__xdm_crypt) #ifdef USE_PAM # define thepamhp (*__xdm_thepamhp) #endif #endif /* __GREET_H__ */
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
Altur Song Lyrics
10 hours ago | 13.27 KB
CC:T GPS Beacon
21 hours ago | 0.49 KB
R4 Moon SPI Screen With Wifi
Arduino | 1 day ago | 13.55 KB
Art school
1 day ago | 1.06 KB
Untitled
1 day ago | 6.00 KB
deforestation
2 days ago | 14.70 KB
Untitled
2 days ago | 0.32 KB
Untitled
2 days ago | 0.14 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!