Searched defs:fname (Results 76 - 100 of 399) sorted by relevance

1234567891011>>

/external/ltp/testcases/kernel/syscalls/lstat/
H A Dlstat01.c126 char fname[255], lname[255], symlnk[255], buf[255]; variable
185 sprintf(fname, "tfile_%d", getpid());
186 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) {
189 fname, errno, strerror(errno));
192 fname, errno, strerror(errno));
196 if (symlink(fname, symlnk) == -1) {
198 fname, symlnk, errno, strerror(errno));
202 } else if (strcmp(buf, fname) != 0) {
205 fname, buf);
/external/ltp/testcases/kernel/syscalls/open/
H A Dopen04.c44 static char fname[40]; variable
60 TEST(open(fname, O_RDWR | O_CREAT, 0777));
90 sprintf(fname, "open04.%d", mypid);
92 first = fd = open(fname, O_RDWR | O_CREAT, 0777);
98 unlink(fname);
106 sprintf(fname, "open04.%d.%d", ifile, mypid);
107 fd = open(fname, O_RDWR | O_CREAT, 0777);
124 sprintf(fname, "open04.%d.%d", ifile, mypid);
126 unlink(fname);
H A Dopen05.c43 static char fname[20]; variable
75 TEST(open(fname, O_RDWR));
130 sprintf(fname, "file.%d", getpid());
132 fd = open(fname, O_RDWR | O_CREAT, 0700);
139 unlink(fname);
/external/ltp/testcases/kernel/syscalls/read/
H A Dread04.c62 char fname[255]; variable
84 if ((rfild = open(fname, O_RDONLY)) == -1) {
129 sprintf(fname, "tfile_%d", getpid());
131 if ((fild = creat(fname, 0777)) == -1) {
133 " : %s", fname, errno, strerror(errno));
148 unlink(fname);
/external/ltp/testcases/kernel/syscalls/readlink/
H A Dreadlink02.c125 char fname[255], buf[255], symlnk[255]; variable
183 sprintf(fname, "./tfile_%d", getpid());
184 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) {
187 fname, errno, strerror(errno));
191 fname, errno, strerror(errno));
194 if (symlink(fname, symlnk) == -1) {
196 fname, symlnk, errno, strerror(errno));
/external/ltp/testcases/kernel/syscalls/rename/
H A Drename02.c126 char fname[255], mname[255]; variable
143 TEST(rename(fname, mname));
148 fname, mname, TEST_ERRNO,
152 fname, mname, TEST_RETURN);
158 SAFE_TOUCH(cleanup, fname, 0700, NULL);
179 sprintf(fname, "./tfile_%d", getpid());
181 SAFE_TOUCH(cleanup, fname, 0700, NULL);
H A Drename08.c83 char fname[255]; variable
93 fname, (char *)-1, EFAULT},
96 (char *)-1, fname, EFAULT},
164 sprintf(fname, "./tfile_%d", getpid());
166 SAFE_TOUCH(cleanup, fname, 0700, NULL);
H A Drename13.c76 char fname[255], mname[255]; variable
108 TEST(rename(fname, mname));
111 tst_resm(TFAIL, "rename(%s, %s) failed", fname, mname);
123 if (stat(fname, &buf1) == -1) {
125 "%s in rename()", fname);
166 sprintf(fname, "./tfile_%d", getpid());
169 SAFE_TOUCH(cleanup, fname, 0700, NULL);
171 if (stat(fname, &buf1) == -1) {
173 "in rename()", fname);
182 if (link(fname, mnam
[all...]
/external/ltp/testcases/kernel/syscalls/stat/
H A Dstat05.c126 char fname[255]; variable
143 * Call stat(2) with F_CLRALF argument on fname
145 TEST(stat(fname, &statter));
149 tst_resm(TFAIL, "stat(%s, &statter) failed", fname);
153 fname, TEST_RETURN);
174 sprintf(fname, "tfile_%d", getpid());
175 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) {
178 fname, errno, strerror(errno));
182 tst_resm(TWARN | TERRNO, "close(%s) failed", fname);
/external/ltp/testcases/kernel/syscalls/statfs/
H A Dstatfs01.c126 char fname[255]; variable
143 TEST(statfs(fname, &stats));
148 fname);
151 fname, TEST_RETURN);
173 sprintf(fname, "tfile_%d", getpid());
174 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) {
177 fname, errno, strerror(errno));
H A Dstatfs03.c66 char fname[30] = "testfile"; variable
127 sprintf(fname, "%s.%d", fname, getpid());
128 if (mkdir(fname, 0444) == -1) {
131 sprintf(path, "%s/%s", fname, fname);
/external/ltp/testcases/kernel/syscalls/symlink/
H A Dsymlink02.c125 char fname[255], symlnk[255]; variable
152 TEST(symlink(fname, symlnk));
157 fname, symlnk, TEST_ERRNO,
188 sprintf(fname, "tfile_%d", getpid());
189 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) {
192 fname, errno, strerror(errno));
197 fname, errno, strerror(errno));
/external/ltp/testcases/kernel/syscalls/unlink/
H A Dunlink05.c126 char fname[255]; variable
153 TEST(unlink(fname));
158 fname, TEST_ERRNO, strerror(TEST_ERRNO));
161 fname, TEST_RETURN);
199 sprintf(fname, "tfile_%d", getpid());
200 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) {
203 fname, errno, strerror(errno));
207 fname, errno, strerror(errno));
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/
H A D16-1.c42 char fname[NAMESIZE]; local
56 sprintf(fname, "/tmp/pts_mq_open_16_1_%d", getpid());
57 unlink(fname);
58 fd = open(fname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR);
64 write(fd, fname, sizeof(int));
65 unlink(fname);
/external/mesa3d/src/mesa/main/
H A Ddlopen.h66 _mesa_dlsym(void *handle, const char *fname) argument
73 u.v = dlsym(handle, fname);
75 u.v = (void *) GetProcAddress(handle, fname);
/external/ppp/pppd/plugins/radius/
H A Dradattr.c70 char fname[512]; local
75 slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ifname);
76 fp = fopen(fname, "w");
78 warn("radattr plugin: Could not open %s for writing: %m", fname);
90 dbglog("RADATTR plugin wrote %d line(s) to file %s.", cnt, fname);
106 char fname[512]; local
108 slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ifname);
109 (void) remove(fname);
[all...]
/external/protobuf/benchmarks/
H A Dgenerate_datasets.cc83 std::string fname = file_prefix + name + file_suffix; local
84 writer.open(fname.c_str());
88 std::cerr << "Wrote dataset: " << fname << "\n"; local
/external/strace/tests/
H A Dfutimesat.c72 char *const fname = tail_memdup(proto_fname, sizeof(proto_fname)); local
73 const kernel_ulong_t kfname = (uintptr_t) fname;
98 fname[sizeof(proto_fname) - 1] = '+';
100 fname[sizeof(proto_fname) - 1] = '\0';
101 printf("futimesat(AT_FDCWD, %p, NULL) = %s\n", fname, errstr);
104 k_futimesat(kfdcwd, f8ill_ptr_to_kulong(fname), 0);
106 (uintmax_t) f8ill_ptr_to_kulong(fname), errstr);
H A Dgetdents.c42 static const char fname[] = variable
103 assert(!creat(fname, 0600));
131 assert(!unlink(fname));
H A Doverflowuid.c35 read_int_from_file(const char *const fname, int *const pvalue) argument
37 const int fd = open(fname, O_RDONLY);
H A Dredirect-fds.c39 check_fd(int fd, const char *fname) argument
41 const int should_be_closed = (fname[0] == '\0');
52 if (stat(fname, &st_fn))
H A Dsendfile.c73 static const char fname[] = "sendfile-tmpfile"; local
74 int reg_in = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0600);
76 perror_msg_and_fail("open: %s", fname);
77 if (unlink(fname))
78 perror_msg_and_fail("unlink: %s", fname);
80 perror_msg_and_fail("ftruncate: %s", fname);
H A Dstruct_flock.c99 char fname[] = TEST_SYSCALL_STR "_XXXXXX"; local
102 if (mkstemp(fname))
103 perror_msg_and_fail("mkstemp: %s", fname);
104 if (unlink(fname))
105 perror_msg_and_fail("unlink: %s", fname);
H A Dutimensat.c73 char *const fname = tail_memdup(proto_fname, sizeof(proto_fname)); local
74 const kernel_ulong_t kfname = (uintptr_t) fname;
100 fname[sizeof(proto_fname) - 1] = '+';
102 fname[sizeof(proto_fname) - 1] = '\0';
103 printf("utimensat(AT_FDCWD, %p, NULL, 0) = %s\n", fname, errstr);
106 k_utimensat(kfdcwd, f8ill_ptr_to_kulong(fname), 0, 0);
108 (uintmax_t) f8ill_ptr_to_kulong(fname), errstr);
H A Dxutimes.c73 char *const fname = tail_memdup(proto_fname, sizeof(proto_fname)); local
74 const kernel_ulong_t kfname = (uintptr_t) fname;
87 fname[sizeof(proto_fname) - 1] = '+';
89 fname[sizeof(proto_fname) - 1] = '\0';
90 printf("%s(%p, NULL) = %s\n", TEST_SYSCALL_STR, fname, errstr);
93 k_utimes(f8ill_ptr_to_kulong(fname), 0);
95 (uintmax_t) f8ill_ptr_to_kulong(fname), errstr);

Completed in 397 milliseconds

1234567891011>>