Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
99921601
Commit
99921601
authored
Jun 24, 2006
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc: misc cleanup.
parent
64e731a9
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1051 additions
and
1027 deletions
+1051
-1027
ChangeLog
x11vnc/ChangeLog
+3
-0
README
x11vnc/README
+1017
-1015
cleanup.c
x11vnc/cleanup.c
+1
-0
connections.c
x11vnc/connections.c
+1
-0
connections.h
x11vnc/connections.h
+1
-0
gui.c
x11vnc/gui.c
+1
-0
scan.c
x11vnc/scan.c
+4
-4
solid.c
x11vnc/solid.c
+1
-0
sslcmds.c
x11vnc/sslcmds.c
+3
-1
unixpw.c
x11vnc/unixpw.c
+3
-1
user.c
x11vnc/user.c
+6
-1
util.c
x11vnc/util.c
+1
-0
v4l.c
x11vnc/v4l.c
+1
-0
win_utils.c
x11vnc/win_utils.c
+1
-0
x11vnc.1
x11vnc/x11vnc.1
+1
-1
x11vnc.c
x11vnc/x11vnc.c
+2
-1
x11vnc_defs.c
x11vnc/x11vnc_defs.c
+1
-1
xwrappers.c
x11vnc/xwrappers.c
+3
-2
No files found.
x11vnc/ChangeLog
View file @
99921601
2006-06-23 Karl Runge <runge@karlrunge.com>
* x11vnc: misc cleanup.
2006-06-18 Karl Runge <runge@karlrunge.com>
* x11vnc: -grabkbd, -grabptr, -env options. under -unixpw +
WAIT let user add some options after his username (e.g. runge:3/4)
...
...
x11vnc/README
View file @
99921601
This source diff could not be displayed because it is too large. You can
view the blob
instead.
x11vnc/cleanup.c
View file @
99921601
...
...
@@ -11,6 +11,7 @@
#include "unixpw.h"
#include "sslcmds.h"
#include "sslhelper.h"
#include "connections.h"
/*
* Exiting and error handling routines
...
...
x11vnc/connections.c
View file @
99921601
...
...
@@ -34,6 +34,7 @@ void close_all_clients(void);
void
close_clients
(
char
*
str
);
void
set_client_input
(
char
*
str
);
void
set_child_info
(
void
);
int
cmd_ok
(
char
*
cmd
);
void
client_gone
(
rfbClientPtr
client
);
void
reverse_connect
(
char
*
str
);
void
set_vnc_connect_prop
(
char
*
str
);
...
...
x11vnc/connections.h
View file @
99921601
...
...
@@ -17,6 +17,7 @@ extern void close_all_clients(void);
extern
void
close_clients
(
char
*
str
);
extern
void
set_client_input
(
char
*
str
);
extern
void
set_child_info
(
void
);
extern
int
cmd_ok
(
char
*
cmd
);
extern
void
client_gone
(
rfbClientPtr
client
);
extern
void
reverse_connect
(
char
*
str
);
extern
void
set_vnc_connect_prop
(
char
*
str
);
...
...
x11vnc/gui.c
View file @
99921601
...
...
@@ -6,6 +6,7 @@
#include "remote.h"
#include "cleanup.h"
#include "xwrappers.h"
#include "connections.h"
#include "tkx11vnc.h"
...
...
x11vnc/scan.c
View file @
99921601
...
...
@@ -240,7 +240,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h,
}
return
0
;
}
if
(
db
)
fprintf
(
stderr
,
"shm_create simple %d %d
\t
%p %s
\n
"
,
w
,
h
,
xim
,
name
);
if
(
db
)
fprintf
(
stderr
,
"shm_create simple %d %d
\t
%p %s
\n
"
,
w
,
h
,
(
void
*
)
xim
,
name
);
xim
->
data
=
(
char
*
)
malloc
(
xim
->
bytes_per_line
*
xim
->
height
);
if
(
xim
->
data
==
NULL
)
{
rfbErr
(
"XCreateImage(%s) data malloc failed.
\n
"
,
name
);
...
...
@@ -349,7 +349,7 @@ void shm_delete(XShmSegmentInfo *shm) {
void
shm_clean
(
XShmSegmentInfo
*
shm
,
XImage
*
xim
)
{
int
db
=
0
;
if
(
db
)
fprintf
(
stderr
,
"shm_clean: called: %p
\n
"
,
xim
);
if
(
db
)
fprintf
(
stderr
,
"shm_clean: called: %p
\n
"
,
(
void
*
)
xim
);
X_LOCK
;
#if LIBVNCSERVER_HAVE_XSHM
if
(
shm
!=
NULL
&&
shm
->
shmid
!=
-
1
&&
dpy
)
{
...
...
@@ -360,11 +360,11 @@ void shm_clean(XShmSegmentInfo *shm, XImage *xim) {
if
(
xim
!=
NULL
)
{
if
(
!
raw_fb_back_to_X
)
{
/* raw_fb hack */
if
(
xim
->
bitmap_unit
!=
-
1
)
{
if
(
db
)
fprintf
(
stderr
,
"shm_clean: XDestroyImage %p
\n
"
,
xim
);
if
(
db
)
fprintf
(
stderr
,
"shm_clean: XDestroyImage %p
\n
"
,
(
void
*
)
xim
);
XDestroyImage
(
xim
);
}
else
{
if
(
xim
->
data
)
{
if
(
db
)
fprintf
(
stderr
,
"shm_clean: free xim->data %p %p
\n
"
,
xim
,
xim
->
data
);
if
(
db
)
fprintf
(
stderr
,
"shm_clean: free xim->data %p %p
\n
"
,
(
void
*
)
xim
,
(
void
*
)(
xim
->
data
)
);
free
(
xim
->
data
);
xim
->
data
=
NULL
;
}
...
...
x11vnc/solid.c
View file @
99921601
...
...
@@ -3,6 +3,7 @@
#include "x11vnc.h"
#include "win_utils.h"
#include "xwrappers.h"
#include "connections.h"
char
*
guess_desktop
(
void
);
void
solid_bg
(
int
restore
);
...
...
x11vnc/sslcmds.c
View file @
99921601
...
...
@@ -5,6 +5,7 @@
#include "cleanup.h"
#include "sslhelper.h"
#include "ssltools.h"
#include "connections.h"
#if LIBVNCSERVER_HAVE_FORK
#if LIBVNCSERVER_HAVE_SYS_WAIT_H
...
...
@@ -671,7 +672,8 @@ void sslEncKey(char *path, int mode) {
incert
=
1
;
}
if
(
incert
)
{
if
(
strlen
(
cert
)
+
strlen
(
line
)
<
2
*
sbuf
.
st_size
)
{
if
(
strlen
(
cert
)
+
strlen
(
line
)
<
2
*
(
size_t
)
sbuf
.
st_size
)
{
strcat
(
cert
,
line
);
}
}
...
...
x11vnc/unixpw.c
View file @
99921601
...
...
@@ -12,6 +12,8 @@ extern char *crypt(const char*, const char *);
#include "scan.h"
#include "cleanup.h"
#include "xinerama.h"
#include "connections.h"
#include "user.h"
#include <rfb/default8x16.h>
#if LIBVNCSERVER_HAVE_FORK
...
...
@@ -365,7 +367,7 @@ int su_verify(char *user, char *pass, char *cmd, char *rbuf, int *rbuf_size) {
#ifndef UNIXPW_SU
return
0
;
#else
int
i
,
j
,
status
,
fd
=
-
1
,
sfd
,
tfd
,
drain_size
=
4096
,
rsize
;
int
i
,
j
,
status
,
fd
=
-
1
,
sfd
,
tfd
,
drain_size
=
4096
,
rsize
=
0
;
int
slow_pw
=
1
;
char
*
slave
,
*
bin_true
=
NULL
,
*
bin_su
=
NULL
;
pid_t
pid
,
pidw
;
...
...
x11vnc/user.c
View file @
99921601
...
...
@@ -8,6 +8,11 @@
#include "unixpw.h"
#include "sslhelper.h"
#include "xwrappers.h"
#include "connections.h"
#include "inet.h"
#include "keyboard.h"
#include "cursor.h"
#include "remote.h"
void
check_switched_user
(
void
);
void
lurk_loop
(
char
*
str
);
...
...
@@ -1128,7 +1133,7 @@ int wait_for_client(int *argc, char** argv, int http) {
XImage
*
fb_image
;
int
w
=
640
,
h
=
480
,
b
=
32
;
int
w0
,
h0
,
i
,
chg_raw_fb
=
0
;
char
*
str
,
*
q
,
*
p
,
*
cmd
=
NULL
;
char
*
str
,
*
q
,
*
cmd
=
NULL
;
int
db
=
0
;
char
tmp
[]
=
"/tmp/x11vnc-find_display.XXXXXX"
;
int
tmp_fd
=
-
1
,
dt
=
0
;
...
...
x11vnc/util.c
View file @
99921601
...
...
@@ -2,6 +2,7 @@
#include "x11vnc.h"
#include "cleanup.h"
#include "win_utils.h"
struct
timeval
_mysleep
;
...
...
x11vnc/v4l.c
View file @
99921601
...
...
@@ -5,6 +5,7 @@
#include "scan.h"
#include "xinerama.h"
#include "screen.h"
#include "connections.h"
#if LIBVNCSERVER_HAVE_LINUX_VIDEODEV_H
#if LIBVNCSERVER_HAVE_SYS_IOCTL_H
...
...
x11vnc/win_utils.c
View file @
99921601
...
...
@@ -5,6 +5,7 @@
#include "winattr_t.h"
#include "cleanup.h"
#include "xwrappers.h"
#include "connections.h"
winattr_t
*
stack_list
=
NULL
;
int
stack_list_len
=
0
;
...
...
x11vnc/x11vnc.1
View file @
99921601
...
...
@@ -2,7 +2,7 @@
.TH X11VNC "1" "June 2006" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
version: 0.8.2, lastmod: 2006-06-
18
version: 0.8.2, lastmod: 2006-06-
23
.SH SYNOPSIS
.B x11vnc
[OPTION]...
...
...
x11vnc/x11vnc.c
View file @
99921601
...
...
@@ -143,6 +143,7 @@
#include "sslhelper.h"
#include "selection.h"
#include "pm.h"
#include "solid.h"
/*
* main routine for the x11vnc program
...
...
@@ -1470,7 +1471,7 @@ int main(int argc, char* argv[]) {
CHECK_ARGC
use_dpy
=
strdup
(
argv
[
++
i
]);
if
(
strstr
(
use_dpy
,
"WAIT"
))
{
extern
find_display
[];
extern
char
find_display
[];
if
(
strstr
(
use_dpy
,
"cmd=FINDDISPLAY-print"
))
{
fprintf
(
stdout
,
"%s"
,
find_display
);
exit
(
0
);
...
...
x11vnc/x11vnc_defs.c
View file @
99921601
...
...
@@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
int
xdamage_base_event_type
=
0
;
/* date +'lastmod: %Y-%m-%d' */
char
lastmod
[]
=
"0.8.2 lastmod: 2006-06-
18
"
;
char
lastmod
[]
=
"0.8.2 lastmod: 2006-06-
23
"
;
/* X display info */
...
...
x11vnc/xwrappers.c
View file @
99921601
...
...
@@ -4,6 +4,7 @@
#include "xrecord.h"
#include "keyboard.h"
#include "xevents.h"
#include "connections.h"
int
xshm_present
=
0
;
int
xtest_present
=
0
;
...
...
@@ -972,7 +973,7 @@ Display *XOpenDisplay_wr(char *display_name) {
}
d
=
XOpenDisplay
(
display_name
);
if
(
db
)
fprintf
(
stderr
,
"XOpenDisplay_wr: %s
0x%x
\n
"
,
display_name
,
d
);
if
(
db
)
fprintf
(
stderr
,
"XOpenDisplay_wr: %s
%p
\n
"
,
display_name
,
(
void
*
)
d
);
xauth_raw
(
0
);
...
...
@@ -981,7 +982,7 @@ Display *XOpenDisplay_wr(char *display_name) {
int
XCloseDisplay_wr
(
Display
*
display
)
{
int
db
=
0
;
if
(
db
)
fprintf
(
stderr
,
"XCloseDisplay_wr:
0x%x
\n
"
,
display
);
if
(
db
)
fprintf
(
stderr
,
"XCloseDisplay_wr:
%p
\n
"
,
(
void
*
)
display
);
return
XCloseDisplay
(
display
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment