mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8183227: read/write APIs in class os shall return ssize_t
Reviewed-by: fparain, rehn
This commit is contained in:
parent
6613ce64d7
commit
4ff6720573
10 changed files with 34 additions and 35 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -2836,7 +2836,7 @@ void jio_print(const char* s, size_t len) {
|
|||
jio_fprintf(defaultStream::output_stream(), "%.*s", (int)len, s);
|
||||
} else {
|
||||
// Make an unused local variable to avoid warning from gcc compiler.
|
||||
size_t count = ::write(defaultStream::output_fd(), s, (int)len);
|
||||
ssize_t count = os::write(defaultStream::output_fd(), s, (int)len);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue