Skip to content

Commit

Permalink
Rename shm_open_anon_private to shm_open_anon
Browse files Browse the repository at this point in the history
  • Loading branch information
lassik committed Apr 17, 2019
1 parent ec9cdd4 commit 1dfc2e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions shm_open_anon.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ save_errno_and_close(int fd)

#ifdef IMPL_CLASSIC
int
shm_open_anon_private(void)
shm_open_anon(void)
{
char name[16];
int fd;
Expand All @@ -93,7 +93,7 @@ shm_open_anon_private(void)

#ifdef IMPL_DEV_SHM
int
shm_open_anon_private(void)
shm_open_anon(void)
{
char name[16];
int fd;
Expand All @@ -111,7 +111,7 @@ shm_open_anon_private(void)

#ifdef IMPL_SHM_MKSTEMP
int
shm_open_anon_private(void)
shm_open_anon(void)
{
char name[16];
int fd;
Expand All @@ -129,7 +129,7 @@ shm_open_anon_private(void)

#ifdef IMPL_SHM_ANON
int
shm_open_anon_private(void)
shm_open_anon(void)
{
return shm_open(SHM_ANON, 0, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion shm_open_anon.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int shm_open_anon_private(void);
int shm_open_anon(void);
2 changes: 1 addition & 1 deletion test_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fd_without_close_on_exec(int fd)
static int
shm_open_anon_shared(void)
{
return fd_without_close_on_exec(shm_open_anon_private());
return fd_without_close_on_exec(shm_open_anon());
}

static void *
Expand Down

0 comments on commit 1dfc2e6

Please sign in to comment.