Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
6349196e
Commit
6349196e
authored
Jul 31, 2003
by
Per Cederqvist
Browse files
(isc_putc): Handle struct isc_scb_internal.
(isc_write): Handle struct isc_scb_internal.
parent
3bb04699
Changes
1
Show whitespace changes
Inline
Side-by-side
src/libraries/libisc-new/src/isc_stdout.c
View file @
6349196e
...
...
@@ -40,17 +40,20 @@
#include "s-string.h"
#include "isc.h"
#include "intern.h"
int
isc_putc
(
int
chr
,
struct
isc_scb
*
s
cb
)
struct
isc_scb
*
s
ession
)
{
struct
isc_scb_internal
*
scb
=
(
struct
isc_scb_internal
*
)
session
;
if
(
scb
->
state
!=
ISC_STATE_DISABLED
&&
scb
->
state
!=
ISC_STATE_RUNNING
)
return
EOF
;
while
(
scb
->
sendindex
==
sizeof
(
scb
->
sendbuf
))
isc_flush
(
s
cb
);
isc_flush
(
s
ession
);
return
scb
->
sendbuf
[
scb
->
sendindex
++
]
=
chr
;
}
...
...
@@ -58,7 +61,7 @@ isc_putc(int chr,
int
isc_write
(
struct
isc_scb
*
scb
,
isc_write
(
struct
isc_scb
*
session
,
const
void
*
buffer
,
size_t
length
)
{
...
...
@@ -66,6 +69,7 @@ isc_write(struct isc_scb * scb,
int
len
;
int
blen
;
int
clen
;
struct
isc_scb_internal
*
scb
=
(
struct
isc_scb_internal
*
)
session
;
if
(
scb
->
state
!=
ISC_STATE_DISABLED
&&
...
...
@@ -82,7 +86,7 @@ isc_write(struct isc_scb * scb,
/* Make room in sendbuf */
while
(
blen
==
0
)
{
isc_flush
(
scb
);
isc_flush
(
&
scb
->
pub
);
blen
=
sizeof
(
scb
->
sendbuf
)
-
scb
->
sendindex
;
}
...
...
Write
Preview
Supports
Markdown
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