Skip to content

Commit

Permalink
[libgloss] Add _kill and _getpid to stub.c
Browse files Browse the repository at this point in the history
These stubs were missing from "libgloss/arc/stub.c" that is a building
block of libdw_uart.a.

This should resolve issue #259:
foss-for-synopsys-dwc-arc-processors/toolchain#259
  • Loading branch information
Shahab Vahedi committed Jan 13, 2023
1 parent 16c3b63 commit 3600e6b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions libgloss/arc/stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@ _close (int fd)
{
return 0;
}

int
_kill (int pid, int sig)
{
_exit (sig);
return -1;
}

int
_getpid (void)
{
return 1;
}

0 comments on commit 3600e6b

Please sign in to comment.