Skip to content

add major/minor/makedev on apple OSes#2937

Merged
bors merged 1 commit intorust-lang:masterfrom
SteveLauC:add-major-minor-makedev-on-apple-oses
Oct 3, 2022
Merged

add major/minor/makedev on apple OSes#2937
bors merged 1 commit intorust-lang:masterfrom
SteveLauC:add-major-minor-makedev-on-apple-oses

Conversation

@SteveLauC
Copy link
Contributor

This impl corresponds to the macros in sys/types.h:

#define major(x)        ((int32_t)(((u_int32_t)(x) >> 24) & 0xff))
#define minor(x)        ((int32_t)((x) & 0xffffff))
#define makedev(x, y)    ((dev_t)(((x) << 24) | (y)))

@rust-highfive
Copy link

r? @Amanieu

(rust-highfive has picked a reviewer for you, use r? to override)

@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 2, 2022

📌 Commit 11a1ffe has been approved by JohnTitor

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 2, 2022

⌛ Testing commit 11a1ffe with merge 198beb0...

@bors
Copy link
Contributor

bors commented Oct 3, 2022

☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: JohnTitor
Pushing 198beb0 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants