Searched refs:dir (Results 1 - 25 of 31) sorted by relevance

12

/seL4-test-master/projects/musllibc/src/dirent/
H A Dtelldir.c4 long telldir(DIR *dir) argument
6 return dir->tell;
H A Drewinddir.c6 void rewinddir(DIR *dir) argument
8 LOCK(dir->lock);
9 lseek(dir->fd, 0, SEEK_SET);
10 dir->buf_pos = dir->buf_end = 0;
11 dir->tell = 0;
12 UNLOCK(dir->lock);
H A Dseekdir.c6 void seekdir(DIR *dir, long off) argument
8 LOCK(dir->lock);
9 dir->tell = lseek(dir->fd, off, SEEK_SET);
10 dir->buf_pos = dir->buf_end = 0;
11 UNLOCK(dir->lock);
H A Dclosedir.c6 int closedir(DIR *dir) argument
8 int ret = close(dir->fd);
9 free(dir);
H A Dreaddir.c9 struct dirent *readdir(DIR *dir) argument
13 if (dir->buf_pos >= dir->buf_end) {
14 int len = __syscall(SYS_getdents, dir->fd, dir->buf, sizeof dir->buf);
19 dir->buf_end = len;
20 dir->buf_pos = 0;
22 de = (void *)(dir->buf + dir
[all...]
H A Dopendir.c11 DIR *dir; local
15 if (!(dir = calloc(1, sizeof *dir))) {
19 dir->fd = fd;
20 return dir;
H A Dfdopendir.c10 DIR *dir; local
20 if (!(dir = calloc(1, sizeof *dir))) {
25 dir->fd = fd;
26 return dir;
H A Dreaddir_r.c7 int readdir_r(DIR *restrict dir, struct dirent *restrict buf, struct dirent **restrict result) argument
13 LOCK(dir->lock);
15 de = readdir(dir);
17 UNLOCK(dir->lock);
24 UNLOCK(dir->lock);
/seL4-test-master/projects/musllibc/src/linux/
H A Dmount.c4 int mount(const char *special, const char *dir, const char *fstype, unsigned long flags, const void *data) argument
6 return syscall(SYS_mount, special, dir, fstype, flags, data);
/seL4-test-master/projects/musllibc/src/stdio/
H A Dtempnam.c13 char *tempnam(const char *dir, const char *pfx) argument
20 if (!dir) dir = P_tmpdir;
23 dl = strlen(dir);
32 memcpy(s, dir, dl);
/seL4-test-master/projects/musllibc/src/thread/
H A Dsynccall.c51 DIR dir = {0}; local
92 dir.fd = open("/proc/self/task", O_RDONLY|O_DIRECTORY|O_CLOEXEC);
93 if (dir.fd < 0) goto out;
106 while ((de = readdir(&dir))) {
148 rewinddir(&dir);
150 close(dir.fd);
/seL4-test-master/projects/musllibc/src/regex/
H A Dglob.c53 DIR *dir; local
73 dir = opendir(*d ? d : ".");
75 if (!dir) {
92 closedir(dir);
95 while (!(error = readdir_r(dir, &de_buf, &de)) && de) {
112 closedir(dir);
127 closedir(dir);
132 closedir(dir);
/seL4-test-master/tools/nanopb/examples/network_server/
H A Dserver.c36 DIR *dir = *(DIR**)field->pData; local
40 while ((file = readdir(dir)) != NULL)
58 rewinddir(dir);
/seL4-test-master/projects/util_libs/libplatsupport/src/plat/tk1/
H A Dgpio.c255 enum gpio_pin gpio, enum gpio_dir dir)
262 switch (dir) {
279 ZF_LOGF("GPIO: %d, invalid pin direction/interrupt %d", gpio, dir);
411 static int tegra_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
420 error = gpio_set_pad_mode(gpio_sys, id, GPIO_MODE, dir);
425 if (dir == GPIO_DIR_IN
426 || dir == GPIO_DIR_OUT_DEFAULT_HIGH || dir == GPIO_DIR_OUT_DEFAULT_LOW) {
427 error = gpio_set_direction(gpio_sys, id, dir);
432 gpio_set_interrupt_type(gpio_sys, id, dir);
254 gpio_set_interrupt_type(gpio_sys_t *gpio_sys, enum gpio_pin gpio, enum gpio_dir dir) argument
491 gpio_set_pad_mode(gpio_sys_t *gpio_sys, enum gpio_pin gpio, enum gpio_pad_mode mode, enum gpio_dir dir) argument
[all...]
H A Dmux_gpio_priv.h25 enum gpio_pin gpio, enum gpio_pad_mode mode, enum gpio_dir dir);
/seL4-test-master/tools/nanopb/generator/
H A Dprotoc-gen-nanopb.bat5 :: protoc --plugin=protoc-gen-nanopb=..../protoc-gen-nanopb.bat --nanopb_out=dir foo.proto
/seL4-test-master/projects/util_libs/libplatsupport/arch_include/arm/platsupport/
H A Dgpio.h81 int (*init)(gpio_sys_t *gpio_sys, gpio_id_t id, enum gpio_dir dir, gpio_t *gpio);
280 * @param[in] dir The direction of the pin
284 static inline int gpio_new(gpio_sys_t *gpio_sys, gpio_id_t id, enum gpio_dir dir, gpio_t *gpio) argument
301 return gpio_sys->init(gpio_sys, id, dir, gpio);
/seL4-test-master/projects/musllibc/src/passwd/
H A Dgetpw_r.c25 FIX(dir);
/seL4-test-master/tools/riscv-pk/pk/
H A Dfile.h32 ssize_t file_lseek(file_t* f, size_t ptr, int dir);
H A Dfile.c157 ssize_t file_lseek(file_t* f, size_t ptr, int dir) argument
159 return frontend_syscall(SYS_lseek, f->kfd, ptr, dir, 0, 0, 0, 0);
H A Dsyscall.c77 file_t* dir = file_get(dirfd);
78 if (dir == NULL)
80 return dir->kfd;
183 ssize_t sys_lseek(int fd, size_t ptr, int dir) argument
190 r = file_lseek(f, ptr, dir);
/seL4-test-master/projects/util_libs/libplatsupport/src/mach/exynos/
H A Dmux.c293 static int gpio_dir_get_intcon(enum gpio_dir dir) argument
295 switch (dir) {
396 static int exynos_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
410 if (dir == GPIO_DIR_IN) {
412 } else if (dir == GPIO_DIR_OUT) {
416 con = gpio_dir_get_intcon(dir);
/seL4-test-master/tools/nanopb/extra/
H A Dnanopb.mk5 NANOPB_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../)
/seL4-test-master/projects/util_libs/libplatsupport/src/plat/imx6/
H A Dgpio.c73 static int imx6_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
102 if (dir == GPIO_DIR_IN) {
/seL4-test-master/projects/musllibc/
H A DMakefile.muslc89 OBJ_DIRS = $(sort $(patsubst %/,%,$(dir $(ALL_LIBS) $(ALL_TOOLS) $(ALL_OBJS) $(GENH) $(GENH_INT))) obj/include)
229 git --git-dir=$(srcdir)/.git archive --format=tar.gz --prefix=$(patsubst %.tar.gz,%,$@)/ -o $@ $(patsubst musl-git-%.tar.gz,%,$@)
232 git --git-dir=$(srcdir)/.git archive --format=tar.gz --prefix=$(patsubst %.tar.gz,%,$@)/ -o $@ v$(patsubst musl-%.tar.gz,%,$@)

Completed in 191 milliseconds

12