File tree 6 files changed +21
-13
lines changed
6 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 31
31
contents : read # to fetch code (actions/checkout)
32
32
33
33
name : macOS
34
- runs-on : macos-13
34
+ runs-on : macos-14
35
35
strategy :
36
36
fail-fast : true
37
37
matrix :
@@ -217,10 +217,10 @@ jobs:
217
217
max-parallel : 4
218
218
matrix :
219
219
target :
220
- - { toolchain: stable, os: macos-13 }
221
- - { toolchain: beta, os: macos-13 }
222
- - { toolchain: nightly, os: macos-13 }
223
- - { toolchain: 1.71.0, os: macos-13 }
220
+ - { toolchain: stable, os: macos-14 }
221
+ - { toolchain: beta, os: macos-14 }
222
+ - { toolchain: nightly, os: macos-14 }
223
+ - { toolchain: 1.71.0, os: macos-14 }
224
224
runs-on : ${{ matrix.target.os }}
225
225
steps :
226
226
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 13
13
if [ " $OS " = " windows" ]; then
14
14
: " ${TARGET?The TARGET environment variable must be set.} "
15
15
rustup set profile minimal
16
- rustup update --force $toolchain -" $TARGET "
17
- rustup default $toolchain -" $TARGET "
16
+ rustup update --force " $toolchain -$TARGET "
17
+ rustup default " $toolchain -$TARGET "
18
18
else
19
19
rustup set profile minimal
20
- rustup update --force $toolchain
21
- rustup default $toolchain
20
+ rustup update --force " $toolchain "
21
+ rustup default " $toolchain "
22
22
fi
23
23
24
24
if [ -n " $TARGET " ]; then
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ fn test_apple(target: &str) {
179
179
let mut cfg = ctest_cfg ( ) ;
180
180
cfg. flag ( "-Wno-deprecated-declarations" ) ;
181
181
cfg. define ( "__APPLE_USE_RFC_3542" , None ) ;
182
+ cfg. define ( "PRIVATE" , None ) ;
182
183
183
184
headers ! { cfg:
184
185
"aio.h" ,
Original file line number Diff line number Diff line change @@ -256,10 +256,10 @@ COPYFILE_STATE_SRC_FD
256
256
COPYFILE_STATE_SRC_FILENAME
257
257
COPYFILE_STATE_STATUS_CB
258
258
COPYFILE_STATE_STATUS_CTX
259
- COPYFILE_STATE_XATTRNAME
260
259
COPYFILE_STATE_WAS_CLONED
261
- COPYFILE_VERBOSE
260
+ COPYFILE_STATE_XATTRNAME
262
261
COPYFILE_UNLINK
262
+ COPYFILE_VERBOSE
263
263
COPYFILE_XATTR
264
264
CR0
265
265
CR1
@@ -440,6 +440,9 @@ F_LOG2PHYS
440
440
F_LOG2PHYS_EXT
441
441
F_NOCACHE
442
442
F_NODIRECT
443
+ F_OFD_GETLK
444
+ F_OFD_SETLK
445
+ F_OFD_SETLKW
443
446
F_PEOFPOSMODE
444
447
F_PREALLOCATE
445
448
F_PUNCHHOLE
@@ -1969,19 +1972,19 @@ posix_spawn_file_actions_t
1969
1972
posix_spawnattr_destroy
1970
1973
posix_spawnattr_get_qos_class_np
1971
1974
posix_spawnattr_getarchpref_np
1975
+ posix_spawnattr_getbinpref_np
1972
1976
posix_spawnattr_getflags
1973
1977
posix_spawnattr_getpgroup
1974
1978
posix_spawnattr_getsigdefault
1975
1979
posix_spawnattr_getsigmask
1976
1980
posix_spawnattr_init
1977
1981
posix_spawnattr_set_qos_class_np
1978
1982
posix_spawnattr_setarchpref_np
1983
+ posix_spawnattr_setbinpref_np
1979
1984
posix_spawnattr_setflags
1980
1985
posix_spawnattr_setpgroup
1981
1986
posix_spawnattr_setsigdefault
1982
1987
posix_spawnattr_setsigmask
1983
- posix_spawnattr_getbinpref_np
1984
- posix_spawnattr_setbinpref_np
1985
1988
posix_spawnattr_t
1986
1989
posix_spawnp
1987
1990
preadv
Original file line number Diff line number Diff line change @@ -3413,6 +3413,10 @@ pub const F_GLOBAL_NOCACHE: ::c_int = 55;
3413
3413
pub const F_NODIRECT : :: c_int = 62 ;
3414
3414
pub const F_LOG2PHYS_EXT : :: c_int = 65 ;
3415
3415
pub const F_BARRIERFSYNC : :: c_int = 85 ;
3416
+ // See https://github.com/apple/darwin-xnu/blob/main/bsd/sys/fcntl.h
3417
+ pub const F_OFD_SETLK : :: c_int = 90 ; /* Acquire or release open file description lock */
3418
+ pub const F_OFD_SETLKW : :: c_int = 91 ; /* (as F_OFD_SETLK but blocking if conflicting lock) */
3419
+ pub const F_OFD_GETLK : :: c_int = 92 ; /* Examine OFD lock */
3416
3420
pub const F_PUNCHHOLE : :: c_int = 99 ;
3417
3421
pub const F_TRIM_ACTIVE_FILE : :: c_int = 100 ;
3418
3422
pub const F_SPECULATIVE_READ : :: c_int = 101 ;
You can’t perform that action at this time.
0 commit comments