errorcodes.c (302408) | errorcodes.c (362181) |
---|---|
1/* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 355 unchanged lines hidden (view full) --- 364 else { 365 return buf; 366 } 367} 368#elif defined(HAVE_STRERROR_R) 369/* glibc style */ 370 371/* BeOS has the function available, but it doesn't provide | 1/* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 355 unchanged lines hidden (view full) --- 364 else { 365 return buf; 366 } 367} 368#elif defined(HAVE_STRERROR_R) 369/* glibc style */ 370 371/* BeOS has the function available, but it doesn't provide |
372 * the prototype publically (doh!), so to avoid a build warning | 372 * the prototype publicly (doh!), so to avoid a build warning |
373 * we add a suitable prototype here. 374 */ 375#if defined(BEOS) 376const char *strerror_r(apr_status_t, char *, apr_size_t); 377#endif 378 379static char *native_strerror(apr_status_t statcode, char *buf, 380 apr_size_t bufsize) --- 63 unchanged lines hidden --- | 373 * we add a suitable prototype here. 374 */ 375#if defined(BEOS) 376const char *strerror_r(apr_status_t, char *, apr_size_t); 377#endif 378 379static char *native_strerror(apr_status_t statcode, char *buf, 380 apr_size_t bufsize) --- 63 unchanged lines hidden --- |