Skip to content

Commit

Permalink
Merge pull request #1844 from ghaerr/ino
Browse files Browse the repository at this point in the history
[kernel,libc] Rename u_ino_t to ino_t
  • Loading branch information
ghaerr authored Apr 5, 2024
2 parents 96ed606 + c6b56dc commit 8b41c5b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion elks/include/arch/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

struct stat {
dev_t st_dev;
u_ino_t st_ino;
ino_t st_ino;
mode_t st_mode;
nlink_t st_nlink;
uid_t st_uid;
Expand Down
2 changes: 1 addition & 1 deletion elks/include/linuxmt/dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <linuxmt/limits.h>

struct dirent {
u_ino_t d_ino;
ino_t d_ino;
off_t d_offset;
unsigned short d_namlen;
char d_name[MAXNAMLEN+1];
Expand Down
1 change: 0 additions & 1 deletion elks/include/linuxmt/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ typedef __u16 dev_t;
typedef __u16 flag_t;
typedef __s32 cluster_t;

typedef __u32 u_ino_t;
typedef __u32 ino_t;

typedef __u16 pid_t;
Expand Down
2 changes: 1 addition & 1 deletion elkscmd/man/man5/dir.5
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ following structure defined in <dirent.h>:
.ta +5n +15n +15n
#define MAXNAMLEN 26 /* 14 for MINIX, 26 for FAT */
struct dirent {
u_ino_t d_ino; /* I-node number */
ino_t d_ino; /* I-node number */
unsigned short d_namlen;
char d_name[MAXNAMLEN+1]; /* File name */
};
Expand Down
6 changes: 3 additions & 3 deletions libc/misc/getcwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
static char * path_buf;
static size_t path_size;
static dev_t root_dev;
static u_ino_t root_ino;
static ino_t root_ino;
static struct stat st;

/* routine to find the step back down */
static char *
search_dir(dev_t this_dev, u_ino_t this_ino)
search_dir(dev_t this_dev, ino_t this_ino)
{
DIR * dp;
struct dirent * d;
Expand Down Expand Up @@ -76,7 +76,7 @@ static char *
recurser(void)
{
dev_t this_dev;
u_ino_t this_ino;
ino_t this_ino;

if( stat(path_buf, &st) < 0 ) return NULL;
this_dev = st.st_dev;
Expand Down

0 comments on commit 8b41c5b

Please sign in to comment.