History

ntsync: Return the fd from NTSYNC_IOC_CREATE_SEM.

Simplify the user API a bit by returning the fd as return value from the ioctl instead of through the argument pointer.

Elizabeth Figura committed 1 year ago

Commit d75abf21 parent def35da2 files · +3 −7Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/ntsync.h+1−2
@@ -11,12 +11,11 @@ · 10 unmodified lines
1111 #include <linux/types.h>
1212
1313 struct ntsync_sem_args {
14− __u32 sem;
1514 __u32 count;
1615 __u32 max;
1716 };
1817
19−#define NTSYNC_IOC_CREATE_SEM _IOWR('N', 0x80, struct ntsync_sem_args)
18+#define NTSYNC_IOC_CREATE_SEM _IOW ('N', 0x80, struct ntsync_sem_args)
2019
2120 #define NTSYNC_IOC_SEM_POST _IOWR('N', 0x81, __u32)
2221