Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153514313
D16525.id46079.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16525.id46079.diff
View Options
Index: head/sys/compat/freebsd32/freebsd32_misc.c
===================================================================
--- head/sys/compat/freebsd32/freebsd32_misc.c
+++ head/sys/compat/freebsd32/freebsd32_misc.c
@@ -3485,3 +3485,20 @@
return (kern_poll(td, uap->fds, uap->nfds, tsp, ssp));
}
+
+int
+freebsd32_sched_rr_get_interval(struct thread *td,
+ struct freebsd32_sched_rr_get_interval_args *uap)
+{
+ struct timespec ts;
+ struct timespec32 ts32;
+ int error;
+
+ error = kern_sched_rr_get_interval(td, uap->pid, &ts);
+ if (error == 0) {
+ CP(ts, ts32, tv_sec);
+ CP(ts, ts32, tv_nsec);
+ error = copyout(&ts32, uap->interval, sizeof(ts32));
+ }
+ return (error);
+}
Index: head/sys/compat/freebsd32/syscalls.master
===================================================================
--- head/sys/compat/freebsd32/syscalls.master
+++ head/sys/compat/freebsd32/syscalls.master
@@ -591,8 +591,9 @@
331 AUE_NULL NOPROTO { int sched_yield (void); }
332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); }
333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); }
-334 AUE_NULL NOPROTO { int sched_rr_get_interval (pid_t pid, \
- struct timespec *interval); }
+334 AUE_NULL STD { int freebsd32_sched_rr_get_interval ( \
+ pid_t pid, \
+ struct timespec32 *interval); }
335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); }
336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \
uint32_t offset1, uint32_t offset2, \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 1:52 PM (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31982948
Default Alt Text
D16525.id46079.diff (1 KB)
Attached To
Mode
D16525: Some fixes for compat32.
Attached
Detach File
Event Timeline
Log In to Comment