ReactOS
0.4.16-dev-1093-g93e9710
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
niwrite.c
Go to the documentation of this file.
1
/* @(#)niwrite.c 1.7 09/06/30 Copyright 1986, 2001-2009 J. Schilling */
2
/*
3
* Non interruptable write
4
*
5
* Copyright (c) 1986, 2001-2009 J. Schilling
6
*/
7
/*
8
* The contents of this file are subject to the terms of the
9
* Common Development and Distribution License, Version 1.0 only
10
* (the "License"). You may not use this file except in compliance
11
* with the License.
12
*
13
* See the file CDDL.Schily.txt in this distribution for details.
14
*
15
* When distributing Covered Code, include this CDDL HEADER in each
16
* file and include the License file CDDL.Schily.txt from this distribution.
17
*/
18
19
#include "
schilyio.h
"
20
21
EXPORT
ssize_t
22
_niwrite
(
f
,
buf
,
count
)
23
int
f
;
24
void
*
buf
;
25
size_t
count
;
26
{
27
ssize_t
ret
;
28
int
oerrno =
geterrno
();
29
30
if
((
ret
= (
ssize_t
)
count
) < 0) {
31
seterrno
(
EINVAL
);
32
return
((
ssize_t
)-1);
33
}
34
while
((
ret
=
write
(
f
,
buf
,
count
)) < 0 &&
geterrno
() ==
EINTR
) {
35
/*
36
* Set back old 'errno' so we don't change the errno visible
37
* to the outside if we did not fail.
38
*/
39
seterrno
(oerrno);
40
}
41
return
(
ret
);
42
}
EINVAL
#define EINVAL
Definition:
acclib.h:90
EINTR
#define EINTR
Definition:
acclib.h:80
write
#define write
Definition:
acwin.h:97
geterrno
EXPORT int geterrno()
Definition:
geterrno.c:34
count
GLuint GLuint GLsizei count
Definition:
gl.h:1545
f
GLfloat f
Definition:
glext.h:7540
buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition:
glext.h:7751
f
#define f
Definition:
ke_i.h:83
_niwrite
EXPORT ssize_t _niwrite(int f, void *buf, size_t count)
Definition:
niwrite.c:22
ssize_t
int ssize_t
Definition:
rosdhcp.h:48
schilyio.h
seterrno
EXPORT int seterrno(int err)
Definition:
seterrno.c:34
EXPORT
Definition:
spec2def.c:21
ret
int ret
Definition:
wcstombs-tests.c:31
sdk
tools
mkisofs
schilytools
libschily
stdio
niwrite.c
Generated on Mon May 5 2025 06:15:19 for ReactOS by
1.9.6