8183227: read/write APIs in class os shall return ssize_t

Reviewed-by: fparain, rehn
This commit is contained in:
Harold Seigel 2022-01-10 13:18:41 +00:00
parent 6613ce64d7
commit 4ff6720573
10 changed files with 34 additions and 35 deletions

View file

@ -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);
}
}