Skip to contentSkip to conversation

More linux i386 syscalls definition

PATCH New Nicolas Collignon 1 participant 1 message Sep 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 More linux i386 syscalls definition

Hello

This patch adds syscall number (271 to 316) for i386 linux. I'm on the way to implement xxxxat() syscall variants (openat, mkdirat, chmodat ...).

Bye
Nicolas

Signature · 1 line
Person who say it cannot be done should not interrupt person doing it.

Index: linux-user/i386/syscall_nr.h
===================================================================
RCS file: /sources/qemu/qemu/linux-user/i386/syscall_nr.h,v retrieving revision 1.2

i386/syscall_nr.h +46 -0
diff -u -b -B -r1.2 syscall_nr.h
@@ -272,3 +272,49 @@
 #define TARGET_NR_clock_nanosleep	(TARGET_NR_timer_create+8)
 
 #define TARGET_NR_utimes		271
+#define TARGET_NR_fadvise64_64         272
+#define TARGET_NR_vserver		273
+#define TARGET_NR_mbind		274
+#define TARGET_NR_get_mempolicy	275
+#define TARGET_NR_set_mempolicy	276
+#define TARGET_NR_mq_open 		277
+#define TARGET_NR_mq_unlink		(TARGET_NR_mq_open+1)
+#define TARGET_NR_mq_timedsend	        (TARGET_NR_mq_open+2)
+#define TARGET_NR_mq_timedreceive	(TARGET_NR_mq_open+3)
+#define TARGET_NR_mq_notify		(TARGET_NR_mq_open+4)
+#define TARGET_NR_mq_getsetattr	(TARGET_NR_mq_open+5)
+#define TARGET_NR_kexec_load		283
+#define TARGET_NR_waitid		284
+
+#define TARGET_NR_add_key		286
+#define TARGET_NR_request_key	        287
+#define TARGET_NR_keyctl		288
+#define TARGET_NR_ioprio_set		289
+#define TARGET_NR_ioprio_get		290
+#define TARGET_NR_inotify_init	        291
+#define TARGET_NR_inotify_add_watch	292
+#define TARGET_NR_inotify_rm_watch	293
+#define TARGET_NR_migrate_pages	294
+#define TARGET_NR_openat		295
+#define TARGET_NR_mkdirat		296
+#define TARGET_NR_mknodat		297
+#define TARGET_NR_fchownat		298
+#define TARGET_NR_futimesat		299
+#define TARGET_NR_fstatat64		300
+#define TARGET_NR_unlinkat		301
+#define TARGET_NR_renameat		302
+#define TARGET_NR_linkat		303
+#define TARGET_NR_symlinkat		304
+#define TARGET_NR_readlinkat		305
+#define TARGET_NR_fchmodat		306
+#define TARGET_NR_faccessat		307
+#define TARGET_NR_pselect6		308
+#define TARGET_NR_ppoll		309
+#define TARGET_NR_unshare		310
+#define TARGET_NR_set_robust_list	311
+#define TARGET_NR_get_robust_list	312
+#define TARGET_NR_splice		313
+#define TARGET_NR_sync_file_range	314
+#define TARGET_NR_tee	                315
+#define TARGET_NR_vmsplice		316
+