readwrite.c (302408) | readwrite.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 --- 373 unchanged lines hidden (view full) --- 382 if (rv != APR_SUCCESS) { 383 file_unlock(thefile); 384 return rv; 385 } 386 } 387 388#ifdef HAVE_FDATASYNC 389 if (fdatasync(thefile->filedes)) { | 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 --- 373 unchanged lines hidden (view full) --- 382 if (rv != APR_SUCCESS) { 383 file_unlock(thefile); 384 return rv; 385 } 386 } 387 388#ifdef HAVE_FDATASYNC 389 if (fdatasync(thefile->filedes)) { |
390#elif defined(F_FULLFSYNC) 391 if (fcntl(thefile->filedes, F_FULLFSYNC)) { |
|
390#else 391 if (fsync(thefile->filedes)) { 392#endif 393 rv = apr_get_os_error(); 394 } 395 396 file_unlock(thefile); 397 --- 129 unchanged lines hidden --- | 392#else 393 if (fsync(thefile->filedes)) { 394#endif 395 rv = apr_get_os_error(); 396 } 397 398 file_unlock(thefile); 399 --- 129 unchanged lines hidden --- |