Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
703d7ec4
Commit
703d7ec4
authored
Oct 10, 1993
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
POSIXized include files.
parent
511dcde5
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
299 additions
and
330 deletions
+299
-330
src/server/conference.c
src/server/conference.c
+20
-18
src/server/connections.c
src/server/connections.c
+28
-25
src/server/dbck-cache.c
src/server/dbck-cache.c
+28
-31
src/server/dbck.c
src/server/dbck.c
+12
-14
src/server/disk-end-of-atomic.c
src/server/disk-end-of-atomic.c
+9
-7
src/server/isc-malloc.c
src/server/isc-malloc.c
+5
-6
src/server/isc-parse.c
src/server/isc-parse.c
+5
-7
src/server/kom-types.c
src/server/kom-types.c
+5
-11
src/server/log.c
src/server/log.c
+3
-4
src/server/logII.c
src/server/logII.c
+3
-2
src/server/membership.c
src/server/membership.c
+19
-22
src/server/memory.c
src/server/memory.c
+8
-8
src/server/mux-parse.c
src/server/mux-parse.c
+9
-15
src/server/mux.c
src/server/mux.c
+9
-10
src/server/prot-a-output.c
src/server/prot-a-output.c
+8
-9
src/server/prot-a-parse.c
src/server/prot-a-parse.c
+6
-10
src/server/ram-output.c
src/server/ram-output.c
+5
-10
src/server/ram-parse.c
src/server/ram-parse.c
+12
-22
src/server/regex-match.c
src/server/regex-match.c
+12
-11
src/server/send-async.c
src/server/send-async.c
+8
-11
src/server/session.c
src/server/session.c
+18
-15
src/server/simple-cache.c
src/server/simple-cache.c
+34
-33
src/server/string-malloc.c
src/server/string-malloc.c
+5
-6
src/server/text-garb.c
src/server/text-garb.c
+12
-8
src/server/text.c
src/server/text.c
+16
-15
No files found.
src/server/conference.c
View file @
703d7ec4
/*
* $Id: conference.c,v 0.
19
1993/
08/05 00:13:25
ceder Exp $
* $Id: conference.c,v 0.
20
1993/
10/10 17:03:43
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,31 +28,33 @@
* All atomic calls that deals with conferences.
*/
static
char
*
rcsid
=
"$Id: conference.c,v 0.
19
1993/
08/05 00:13:25
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: conference.c,v 0.
20
1993/
10/10 17:03:43
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <time.h>
#include <ctype.h>
#include <stdlib.h>
#include "lyskomd.h"
#include <kom-types.h>
#include <services.h>
#include "manipulate.h"
#include <kom-errno.h>
#include <server/smalloc.h>
#include "cache.h"
#include <stdio.h>
#include <time.h>
#include <setjmp.h>
#include "kom-types.h"
#include "log.h"
#include <config.h>
#include "services.h"
#include "s-string.h"
#include "cache.h"
#include "misc-types.h"
#include "s-collat-tabs.h"
#include "manipulate.h"
#include "server/smalloc.h"
#include "config.h"
#include "parser.h"
#include "com.h"
#include "connections.h"
#include "send-async.h"
#include <debug.h>
#include <parser.h>
#include "internal-connections.h"
#include "internal-services.h"
#include "kom-errno.h"
#include "lyskomd.h"
#include "debug.h"
#include "send-async.h"
/*
* Defined in conference.c. This will go away when we use regexp-matching.
* This is only temporary. +++***
...
...
src/server/connections.c
View file @
703d7ec4
/*
* $Id: connections.c,v 0.2
4
1993/
08/05 00:14:10
ceder Exp $
* $Id: connections.c,v 0.2
5
1993/
10/10 17:03:49
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -30,47 +30,50 @@
* Created by Willf|r 31/3-90. Mostly written by ceder.
*/
static
char
*
rcsid
=
"$Id: connections.c,v 0.2
4
1993/
08/05 00:14:10
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: connections.c,v 0.2
5
1993/
10/10 17:03:49
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <errno.h>
#include <stdio.h>
#include <setjmp.h>
#include <sys/types.h>
#include <sys/file.h>
#include <string.h>
#include <sys/stat.h>
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#include <string.h>
#else
#include <time.h>
#endif
#endif
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
#include "s-string.h"
#include <kom-types.h>
#include "lyskomd.h"
#include <config.h>
#include <debug.h>
#include "end-of-atomic.h"
#include "log.h"
#include <services.h>
#include "misc-types.h"
#include "kom-types.h"
#include "debug.h"
#include "isc-interface.h"
#include <kom-errno.h>
#include "com.h"
#include "connections.h"
#include "prot-a-parse.h"
#include "prot-a-output.h"
#include "prot-a.h"
#include <server/smalloc.h>
#include "internal-connections.h"
#include "prot-a-parse-arg.h"
#include "
isc-parse
.h"
#include "
cache
.h"
#include "se
nd-async
.h"
#include "
log
.h"
#include "
lyskomd
.h"
#include "se
rvices
.h"
#include "mux.h"
#include "isc-parse.h"
#include "prot-a.h"
#include "server/smalloc.h"
#include "end-of-atomic.h"
#include "mux-parse.h"
#include "internal-connections.h"
#include "send-async.h"
#include "cache.h"
#include "rfc931.h"
#include "tmp-difftime.h"
IscMaster
*
kom_server_mcb
=
NULL
;
Connection
*
active_connection
=
NULL
;
...
...
src/server/dbck-cache.c
View file @
703d7ec4
/*
* $Id: dbck-cache.c,v 0.1
1
1993/
01/16 23:16:17
ceder Exp $
* $Id: dbck-cache.c,v 0.1
2
1993/
10/10 17:03:55
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -32,47 +32,44 @@
* Also save time as a time_t instead of a struct tm.
*/
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.1
1
1993/
01/16 23:16:17
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.1
2
1993/
10/10 17:03:55
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
/*
* All functions that can fail sets kom_errno to a suitable value
* if they fail.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/file.h>
#ifndef SEEK_END
#include <fcntl.h>
#endif
#ifndef SEEK_END
#include <unistd.h>
#include <errno.h>
#endif
#include <stdlib.h>
#include <time.h>
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
#ifdef TIME_SYNC
# include <sys/resource.h>
#endif
#include
<kom-errno
.h
>
#include
<kom
-types.h
>
#include "
s-collat-tab
s.h"
#include
<server/smalloc
.h
>
#include
"exp
.h
"
#include
"misc
-types.h
"
#include "
kom-type
s.h"
#include
"kom-errno
.h
"
#include "cache.h"
#include <debug.h>
#include "tmp-limits.h"
#include "debug.h"
#include "server/smalloc.h"
#include "log.h"
#include "lyskomd.h"
#include
<parser
.h
>
#include
"kom-memory
.h
"
#include "ram-parse.h"
#include "log.h"
#include "ram-output.h"
#include "com.h"
#include "connections.h"
#include "send-async.h"
#include "memory.h"
#include "dbck-cache.h"
#ifdef TIME_SYNC
# include <sys/resource.h>
#endif
#define EXPORT
#include "tmp-limits.h"
/*
* All functions that can fail sets kom_errno to a suitable value
* if they fail.
*/
Person
*
pers_arr
[
MAX_CONF
];
Conference
*
conf_arr
[
MAX_CONF
];
...
...
src/server/dbck.c
View file @
703d7ec4
/*
* $Id: dbck.c,v 0.1
2
1993/
01/16 23:16:22
ceder Exp $
* $Id: dbck.c,v 0.1
3
1993/
10/10 17:04:00
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,24 +28,24 @@
* Author: Per Cederqvist.
*/
static
char
*
rcsid
=
"$Id: dbck.c,v 0.1
2
1993/
01/16 23:16:22
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: dbck.c,v 0.1
3
1993/
10/10 17:04:00
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <kom-types.h>
#include <config.h>
#include "cache.h"
#include "log.h"
#include "misc-types.h"
#include "kom-types.h"
#include "tmp-limits.h"
#include "lyskomd.h"
#include "log.h"
#include "server/smalloc.h"
#include "misc-parser.h"
#include <server/smalloc.h>
#include <debug.h>
#include "cache.h"
#include "config.h"
#include "debug.h"
#include "dbck-cache.h"
/* This is set to TRUE if init_cache finds out that the last part of the
...
...
@@ -74,8 +74,6 @@ typedef struct {
static
const
Person_scratchpad
EMPTY_PERSON_SCRATCHPAD
=
{
0
};
#include "tmp-limits.h"
static
Person_scratchpad
*
person_scratchpad
[
MAX_CONF
];
#ifdef DEBUG
...
...
src/server/disk-end-of-atomic.c
View file @
703d7ec4
/*
* $Id: disk-end-of-atomic.c,v 0.
8
1993/
01/16 23:16:26
ceder Exp $
* $Id: disk-end-of-atomic.c,v 0.
9
1993/
10/10 17:04:05
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -36,18 +36,20 @@
* to forget old texts.
*/
static
char
*
rcsid
=
"$Id: disk-end-of-atomic.c,v 0.
8
1993/
01/16 23:16:26
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: disk-end-of-atomic.c,v 0.
9
1993/
10/10 17:04:05
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <stddef.h>
#include <kom-types.h>
#include <server/smalloc.h>
#include "text-garb.h"
#include "misc-types.h"
#include "kom-types.h"
#include "end-of-atomic.h"
#include "cache.h"
#include "server/smalloc.h"
#include "config.h"
#include "text-garb.h"
#include "disk-cache.h"
#include "cache.h"
#include "end-of-atomic.h"
long
end_of_atomic
(
Bool
idle
)
...
...
src/server/isc-malloc.c
View file @
703d7ec4
/*
* $Id: isc-malloc.c,v 1.
2
1993/
01/16 23:16:39
ceder Exp $
* $Id: isc-malloc.c,v 1.
3
1993/
10/10 17:04:10
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -29,17 +29,16 @@
* how many allocated blocks there are.
*/
static
char
*
rcsid
=
"$Id: isc-malloc.c,v 1.
2
1993/
01/16 23:16:39
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: isc-malloc.c,v 1.
3
1993/
10/10 17:04:10
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <stdio.h>
#include <stddef.h>
#include <s
erver/smalloc
.h>
#include "log.h"
#include <s
tdio
.h>
#include "exp.h"
#include "isc-malloc.h"
#include "server/smalloc.h"
static
int
no_of_allocated_blocks
=
0
;
...
...
src/server/isc-parse.c
View file @
703d7ec4
/*
* $Id: isc-parse.c,v 0.
4
1993/
01/16 23:16:42
ceder Exp $
* $Id: isc-parse.c,v 0.
5
1993/
10/10 17:04:14
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -26,16 +26,14 @@
* Generic parse routines.
*/
static
char
*
rcsid
=
"$Id: isc-parse.c,v 0.
4
1993/
01/16 23:16:42
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: isc-parse.c,v 0.
5
1993/
10/10 17:04:14
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <setjmp.h>
#include <string.h>
#include <s
tdio
.h>
#include "lyskomd.h"
#include
<
kom-types.h
>
#include <s
etjmp
.h>
#include
"
kom-types.h
"
#include "com.h"
#include "connections.h"
#include "isc-parse.h"
...
...
src/server/kom-types.c
View file @
703d7ec4
/*
* $Id: kom-types.c,v 0.
5
1993/
01/16 23:16:4
8 ceder Exp $
* $Id: kom-types.c,v 0.
6
1993/
10/10 17:04:1
8 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -43,19 +43,13 @@
* email: bellman@Lysator.LiU.SE
*/
static
char
*
rcsid
=
"$Id: kom-types.c,v 0.
5
1993/
01/16 23:16:4
8 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: kom-types.c,v 0.
6
1993/
10/10 17:04:1
8 ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <stdio.h>
#include <kom-types.h>
#include <config.h>
#define EXPORT
#include "exp.h"
#include "kom-types.h"
#include "config.h"
EXPORT
const
Conf_list_old
EMPTY_CONF_LIST_OLD
=
EMPTY_CONF_LIST_OLD_i
;
...
...
src/server/log.c
View file @
703d7ec4
/*
* $Id: log.c,v 0.
6
1993/
01/16 23:16:52
ceder Exp $
* $Id: log.c,v 0.
7
1993/
10/10 17:04:23
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,15 +28,14 @@
* File created by ceder 1990-05-25.
*/
static
char
*
rcsid
=
"$Id: log.c,v 0.
6
1993/
01/16 23:16:52
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: log.c,v 0.
7
1993/
10/10 17:04:23
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "log.h"
/*
...
...
src/server/logII.c
View file @
703d7ec4
/*
* $Id: logII.c,v 0.
2
199
1/09
/1
5
1
0:31:29 linus
Exp $
* $Id: logII.c,v 0.
3
199
3/10
/1
0
1
7:04:28 ceder
Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,10 +28,11 @@
* File created by ceder 1990-05-25.
*/
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
enum
{
...
...
src/server/membership.c
View file @
703d7ec4
/*
* $Id: membership.c,v 0.1
1
1993/
01/16 23:16:57
ceder Exp $
* $Id: membership.c,v 0.1
2
1993/
10/10 17:04:34
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -29,39 +29,36 @@
* (The person/conf relation).
*/
static
char
*
rcsid
=
"$Id: membership.c,v 0.11 1993/01/16 23:16:57 ceder Exp $"
;
#define DEBUG_MARK_AS_READ
static
char
*
rcsid
=
"$Id: membership.c,v 0.12 1993/10/10 17:04:34 ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <setjmp.h>
#include "misc-types.h"
#include "kom-types.h"
#include "services.h"
#include "server/smalloc.h"
#include "lyskomd.h"
#include <kom-types.h>
#include <services.h>
#include "manipulate.h"
#include <server/smalloc.h>
#include "cache.h"
#include "log.h"
#include "minmax.h"
#include "com.h"
#include "isc-interface.h"
#include "connections.h"
#include "send-async.h"
#include <kom-errno.h>
#include "internal-connections.h"
#define DEBUG_MARK_AS_READ
#include "kom-errno.h"
#include "manipulate.h"
#include "cache.h"
#include "send-async.h"
#include "minmax.h"
#ifdef DEBUG_MARK_AS_READ
# include <stdio.h>
# include <string.h>
# include "ram-output.h"
#include "log.h"
#include "ram-output.h"
#endif
/*
* Copy all information that ACTPERS is authorized to know about ORIG_P's
* membership in all conferences to CENSOR_P.
...
...
src/server/memory.c
View file @
703d7ec4
/*
* $Id: memory.c,v 0.
9
1993/
01/16 23:17:01
ceder Exp $
* $Id: memory.c,v 0.
10
1993/
10/10 17:04:39
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,24 +28,24 @@
* These functions should be used instead of smalloc/srealloc.
*/
static
char
*
rcsid
=
"$Id: memory.c,v 0.
9
1993/
01/16 23:17:01
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: memory.c,v 0.
10
1993/
10/10 17:04:39
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <kom-types.h>
#include <stdio.h>
#include <string.h>
#include <server/smalloc.h>
#include "memory.h"
#include "exp.h"
#include "lyskomd.h"
#include "kom-types.h"
#include "kom-memory.h"
#include "server/smalloc.h"
#include "log.h"
#include "lyskomd.h"
static
int
person_cnt
=
0
;
static
int
conference_cnt
=
0
;
static
int
text_stat_cnt
=
0
;
EXPORT
Person
*
alloc_person
(
void
)
...
...
src/server/mux-parse.c
View file @
703d7ec4
/*
* $Id: mux-parse.c,v 0.
9
1993/
01/16 23:17:12
ceder Exp $
* $Id: mux-parse.c,v 0.
10
1993/
10/10 17:04:43
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -27,29 +27,23 @@
* This is a hack. Clean this mess up with lacgen.
*/
static
char
*
rcsid
=
"$Id: mux-parse.c,v 0.
9
1993/
01/16 23:17:12
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: mux-parse.c,v 0.
10
1993/
10/10 17:04:43
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include "lyskomd.h"
#include <stdio.h>
#include <setjmp.h>
#include "s-string.h"
#include
<
kom-types.h
>
#include
"
kom-types.h
"
#include "com.h"
#include "connections.h"
#include "isc-interface.h"
#include "mux.h"
#include <server/smalloc.h>
#include <setjmp.h>
#include <string.h>
#include <stdio.h>
#include "mux-parse.h"
#include "minmax.h"
#include "config.h"
#include "log.h"
#include "minmax.h"
#include "mux.h"
#include "mux-parse.h"
jmp_buf
mux_parse_env
;
...
...
src/server/mux.c
View file @
703d7ec4
/*
* $Id: mux.c,v 0.
9
1993/
01/16 23:17:15
ceder Exp $
* $Id: mux.c,v 0.
10
1993/
10/10 17:04:47
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -26,27 +26,26 @@
** mux.c
*/
static
char
*
rcsid
=
"$Id: mux.c,v 0.
9
1993/
01/16 23:17:15
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: mux.c,v 0.
10
1993/
10/10 17:04:47
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <setjmp.h>
#include "isc-interface.h"
#include "s-string.h"
#include "
lyskomd
.h"
#include
<
kom-types.h
>
#include "
misc-types
.h"
#include
"
kom-types.h
"
#include "com.h"
#include "connections.h"
#include "isc-interface.h"
#include "mux.h"
#include
<
server/smalloc.h
>
#include
"
server/smalloc.h
"
#include "lyskomd.h"
extern
_printf
(
int
(
*
sputc
)(
int
chr
),
const
char
*
fmt
,
va_list
AP
);
/*
** MUX support functions
*/
...
...
src/server/prot-a-output.c
View file @
703d7ec4
/*
* $Id: prot-a-output.c,v 0.1
2
1993/
01/16 23:17:23
ceder Exp $
* $Id: prot-a-output.c,v 0.1
3
1993/
10/10 17:04:52
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,21 +28,20 @@
* Written by ceder 1990-07-13
*/
static
char
*
rcsid
=
"$Id: prot-a-output.c,v 0.1
2
1993/
01/16 23:17:23
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: prot-a-output.c,v 0.1
3
1993/
10/10 17:04:52
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);