Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main(void)
size_t size = 1024 * 4 * 1024;
int fd;

snprintf(tmpfname, sizeof(tmpfname), "pts_mmap_1_2_%d", getpid());
snprintf(tmpfname, sizeof(tmpfname), "/pts_mmap_1_2_%d", getpid());

/* Create shared object */
shm_unlink(tmpfname);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_1-1"
#define SHM_NAME "/posixtest_1-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <stdio.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_11-1"
#define SHM_NAME "/posixtest_11-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <errno.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_13-1"
#define SHM_NAME "/posixtest_13-1"
#define BUF_SIZE 8

int main(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_14-2"
#define SHM_NAME "/posixtest_14-2"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <errno.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_15-1"
#define SHM_NAME "/posixtest_15-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <unistd.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_16-1"
#define SHM_NAME "/posixtest_16-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <unistd.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_17-1"
#define SHM_NAME "/posixtest_17-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <unistd.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_18-1"
#define SHM_NAME "/posixtest_18-1"

/* execution bits is undefined */
#define MOD_FLAGS (S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH) /* -w?rw?r-? */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_20-1"
#define SHM_NAME "/posixtest_20-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_20-2"
#define SHM_NAME "/posixtest_20-2"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_20-3"
#define SHM_NAME "/posixtest_20-3"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <unistd.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_21-1"
#define SHM_NAME "/posixtest_21-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <unistd.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_22-1"
#define SHM_NAME "/posixtest_22-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <unistd.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_25-1"
#define SHM_NAME "/posixtest_25-1"
#define SHM_SZ 16

int main(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <stdio.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_26-1"
#define SHM_NAME "/posixtest_26-1"
#define CREATION_MODE S_IRUSR|S_IWUSR
#define OPEN_MODE S_IRGRP

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_26-2"
#define SHM_NAME "/posixtest_26-2"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_28-1"
#define SHM_NAME "/posixtest_28-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_28-2"
#define SHM_NAME "/posixtest_28-2"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_28-3"
#define SHM_NAME "/posixtest_28-3"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <string.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_32-1"
#define SHM_NAME "/posixtest_32-1"

/** Set the euid of this process to a non-root uid */
static int set_nonroot()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <string.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_34-1"
#define SHM_NAME "/posixtest_34-1"

/** Set the euid of this process to a non-root uid */
static int set_nonroot()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <errno.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_38-1"
#define SHM_NAME "/posixtest_38-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <errno.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_41-1"
#define SHM_NAME "/posixtest_41-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <fcntl.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_8-1"
#define SHM_NAME "/posixtest_8-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <errno.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_1-1"
#define SHM_NAME "/posixtest_1-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <errno.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_11-1"
#define SHM_NAME "/posixtest_11-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <errno.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_2-1"
#define SHM_NAME "/posixtest_2-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "posixtest.h"

#define BUF_SIZE 8
#define SHM_NAME "posixtest_3-1"
#define SHM_NAME "/posixtest_3-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <errno.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_5-1"
#define SHM_NAME "/posixtest_5-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <fcntl.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_6-1"
#define SHM_NAME "/posixtest_6-1"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <string.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_9-1"
#define SHM_NAME "/posixtest_9-1"
#define BUF_SIZE 8

int main(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <string.h>
#include "posixtest.h"

#define SHM_NAME "posixtest_9-1"
#define SHM_NAME "/posixtest_9-1"

int main(void)
{
Expand Down