Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
2b36a7dd
Commit
2b36a7dd
authored
31 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
POSIXized include files.
Added comments to declaration of EMPTY_CONNECTION.
parent
c536c91e
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server/internal-connections.c
+55
-24
55 additions, 24 deletions
src/server/internal-connections.c
with
55 additions
and
24 deletions
src/server/internal-connections.c
+
55
−
24
View file @
2b36a7dd
/*
* $Id: internal-connections.c,v 0.1
2
1993/
08/05 01:15:30
ceder Exp $
* $Id: internal-connections.c,v 0.1
3
1993/
10/10 16:49:22
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,19 +28,23 @@
* Abstract routines on the data type Connection.
*/
static
char
*
rcsid
=
"$Id: internal-connections.c,v 0.1
2
1993/
08/05 01:15:30
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: internal-connections.c,v 0.1
3
1993/
10/10 16:49:22
ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
#include
<stdio.h>
#include
<time.h>
#include
<setjmp.h>
#include
"exp.h"
#include
<kom-types
.h
>
#include
<server/smalloc
.h
>
#include
"s-string
.h
"
#include
"kom-types
.h
"
#include
"com.h"
#include
"connections.h"
#include
"internal-connections.h"
#include
"lyskomd.h"
#include
"config.h"
#include
"server/smalloc.h"
#include
"lyskomd.h"
#include
"log.h"
INTERNAL
Connection
*
all_connections
=
NULL
;
...
...
@@ -51,25 +55,52 @@ INTERNAL Session_no no_of_connection_attempts = 0;
INTERNAL
Connection
*
last_conn
=
NULL
;
INTERNAL
const
Connection
EMPTY_CONNECTION
=
((
Connection
){
0
,
NULL
,
NULL
,
((
Connection
){
0
,
/* magic */
NULL
,
/* prev */
NULL
,
/* next */
/* Things used by services.c */
(
Pers_no
)
0
,
(
Person
*
)
NULL
,
NO_TIME
,
(
Conf_no
)
0
,
EMPTY_STRING_i
,
(
u_char
)
0
,
EMPTY_STRING_i
,
EMPTY_STRING_i
,
EMPTY_STRING_i
,
EMPTY_STRING_i
,
EMPTY_STRING_i
,
FALSE
,
FALSE
,
(
Pers_no
)
0
,
/* pers_no */
(
Person
*
)
NULL
,
/* person */
NO_TIME
,
/* session_start */
(
Conf_no
)
0
,
/* cwc */
EMPTY_STRING_i
,
/* what_am_i_doing */
(
unsigned
char
)
0
,
/* ena_level */
EMPTY_STRING_i
,
/* username */
EMPTY_STRING_i
,
/* hostname */
EMPTY_STRING_i
,
/* ident_user */
EMPTY_STRING_i
,
/* client_name */
EMPTY_STRING_i
,
/* client_version */
FALSE
,
/* invisible */
FALSE
,
/* username_valid */
/* Used by server/connections.c */
(
struct
mux
*
)
NULL
,
'\0'
,
0
,
0
,
0
,
0
,
0
,
0
,
call_fnc_login_old
,
(
struct
mux
*
)
NULL
,
/* mux */
'\0'
,
/* protocol */
0
,
/* parse_pos */
0
,
/* fnc_parse_pos */
0
,
/* array_parse_pos */
0
,
/* struct_parse_pos */
0
,
/* string_parse_pos */
0
,
/* ref_no */
call_fnc_login_old
,
/* function */
/* Gather data... */
0
,
0
,
0
,
0
,
EMPTY_STRING_i
,
EMPTY_STRING_i
,
EMPTY_STRING_i
,
(
Misc_info
*
)
NULL
,
(
Local_text_no
*
)
NULL
,
DEFAULT_PRIV_BITS_i
,
NULL_CONF_TYPE_i
,
EMPTY_tm_i
,
0
,
/* num0 */
0
,
/* num1 */
0
,
/* num2 */
0
,
/* num3 */
EMPTY_STRING_i
,
/* c_string0 */
EMPTY_STRING_i
,
/* c_string1 */
EMPTY_STRING_i
,
/* string0 */
(
Misc_info
*
)
NULL
,
/* c_misc_info_p */
(
Local_text_no
*
)
NULL
,
/* c_local_text_no_p */
DEFAULT_PRIV_BITS_i
,
/* priv_bits */
NULL_CONF_TYPE_i
,
/* conf_type */
EMPTY_tm_i
,
/* time */
/* Protocol independent... */
EMPTY_STRING_i
,
0
,
FALSE
,
NO_TIME
,
0
});
EMPTY_STRING_i
,
/* unparsed */
0
,
/* first_to_parse */
FALSE
,
/* more_to_parse */
NO_TIME
,
/* last_request */
0
});
/* session_no */
static
int
no_of_allocated_connections
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment