will be returned and errno will have been set to an appropriate error.
.SH ERRORS
.TP
-.B ENOKEY
-No matching key was found.
+.B EACCES
+The keyring wasn't available for modification by the user.
+.TP
+.B EINTR
+The request was interrupted by a signal.
+.TP
+.B EDQUOT
+The key quota for this user would be exceeded by creating this key or linking
+it to the keyring.
.TP
.B EKEYEXPIRED
An expired key was found, but no replacement could be obtained.
.TP
-.B EKEYREVOKED
-A revoked key was found, but no replacement could be obtained.
-.TP
.B EKEYREJECTED
The attempt to generate a new key was rejected.
.TP
+.B EKEYREVOKED
+A revoked key was found, but no replacement could be obtained.
+.TP
.B ENOMEM
Insufficient memory to create a key.
.TP
-.B EINTR
-The request was interrupted by a signal.
-.TP
-.B EDQUOT
-The key quota for this user would be exceeded by creating this key or linking
-it to the keyring.
-.TP
-.B EACCES
-The keyring wasn't available for modification by the user.
+.B ENOKEY
+No matching key was found.
.SH LINKING
Although this is a Linux system call, it is not present in
.I libc