Bug 2784 - the macro syscall0 et.al. no longer defined
Summary: the macro syscall0 et.al. no longer defined
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Nurdin Premji
URL:
Keywords:
Depends on:
Blocks: 2654
  Show dependency treegraph
 
Reported: 2006-06-16 14:08 UTC by Andrew Cagney
Modified: 2006-06-17 21:57 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-06-16 14:08:42 UTC
In previous linux releases, the macro syscall0, syscall1, ... were all available
(defined in linux/unistd.h from memory) for use when declaring non-standard
system call interfaces such as tkill et.l.

In FC-6 that is no longer available, instead syscall(2) should be used.
The documentation should be updated to reflect this.
Comment 1 Nurdin Premji 2006-06-16 14:19:30 UTC
Bug created at bugzilla.redhat.com under Fedora Core devel glibc

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=195668
Comment 2 Nurdin Premji 2006-06-16 14:21:20 UTC
Index: ./frysk-core/common/ChangeLog
2006-06-15  Nurdin Premji  <npremji@redhat.com>

	* Makefile.rules (AM_CFLAGS): Added frysk-imports include files.

Index: ./frysk-core/frysk/pkglibexecdir/ChangeLog
2006-06-15  Nurdin Premji  <npremji@redhat.com>

	* funit-child.c: Added #include <linux.syscall.h> and <unistd.h>.
	* funit-exec.c: Ditto.
	* funit-syscallint.c: Ditto.
	* funit-threadexit.c: Ditto.
	* funit-threads.c: Ditto.

Index: ./frysk-core/prog/ChangeLog
2006-06-15  Nurdin Premji  <npremji@redhat.com>

	* kill/detach.c: Add #include <linux.syscall.h> and <unistd.h>.
	* kill/suspend.c: Ditto.
	1 Jan 1970 00:00:00 -0000

Index: ./frysk-imports/tests/ChangeLog
2006-06-15  Nurdin Premji  <npremji@redhat.com>

	* frysk2595/ptrace_after_exec.c: Added #include <linux.syscall.h>
	and <sys/syscall>.
	* frysk2595/ptrace_after_exec_of_thread.c: Ditto.
	* frysk2595/ptrace_after_forked_thread_exits.c: Ditto.
	* frysk2595/ptrace_before_forked_thread_exits.c: Ditto.
	* frysk2595/ptrace_peek_wrong_thread.c: Ditto.
	* process/multi_child_exec.c: Ditto.
	* process/multi_child_parent_exec.c: Ditto.
	* process/multi_parent_exec.c: Ditto.
	* process/single_exec.c: Ditto.
	* Makefile.am (AM_CFLAGS): Add -I$(top_srcdir)/include.

Index: ./frysk-sys/frysk/sys/ChangeLog
2006-06-15  Nurdin Premji  <npremji@redhat.com>

	* cni/Poll.cxx: Add #include <linux.syscall> and <unistd.h>
	* cni/Signal.cxx: Ditto.
	* cni/Tid.cxx: Ditto.