register inoptr ino;
register int16_t perm;
inoptr n_open();
- int getperm(), getmode(), isdevice(), d_open();
+ int getperm(), fuzix_getmode(), isdevice(), d_open();
int uf_alloc(), oft_alloc();
udata.u_error = 0;
goto cantopen;
}
- if (getmode(ino) == F_DIR &&
+ if (fuzix_getmode(ino) == F_DIR &&
(flag == FO_WRONLY || flag == FO_RDWR)) {
udata.u_error = EISDIR;
goto cantopen;
register int16_t j;
inoptr n_open();
inoptr newfile();
- int getperm(), getmode(), uf_alloc(), oft_alloc();
+ int getperm(), fuzix_getmode(), uf_alloc(), oft_alloc();
udata.u_error = 0;
parent = NULLINODE;
ino = n_open(name, &parent);
if (ino) {
i_deref(parent);
- if (getmode(ino) == F_DIR) {
+ if (fuzix_getmode(ino) == F_DIR) {
i_deref(ino);
udata.u_error = EISDIR;
goto nogood;
udata.u_error = EACCES;
goto nogood;
}
- if (getmode(ino) == F_REG) {
+ if (fuzix_getmode(ino) == F_REG) {
/* Truncate the file to zero length */
f_trunc(ino);
/* Reset any oft pointers */
inoptr parent2;
char *filename();
inoptr n_open();
- int ch_link(), getmode(), super();
+ int ch_link(), fuzix_getmode(), super();
udata.u_error = 0;
ifnot(ino = n_open(name1, NULLINOPTR))
return (-1);
- if (getmode(ino) == F_DIR && !super()) {
+ if (fuzix_getmode(ino) == F_DIR && !super()) {
udata.u_error = EPERM;
goto nogood;
}
char *filename();
/*-- inoptr i_open();--*/
inoptr n_open();
- int getmode(), ch_link(), super();
+ int fuzix_getmode(), ch_link(), super();
udata.u_error = 0;
ino = n_open(path, &pino);
return (-1);
}
- if (getmode(ino) == F_DIR && !super()) {
+ if (fuzix_getmode(ino) == F_DIR && !super()) {
udata.u_error = EPERM;
goto nogood;
}
{
register inoptr newcwd;
inoptr n_open();
- int getmode();
+ int fuzix_getmode();
udata.u_error = 0;
ifnot(newcwd = n_open(dir, NULLINOPTR))
return (-1);
- if (getmode(newcwd) != F_DIR) {
+ if (fuzix_getmode(newcwd) != F_DIR) {
udata.u_error = ENOTDIR;
i_deref(newcwd);
return (-1);
i_deref(sino);
return (-1);
}
- if (getmode(sino) != F_BDEV) {
+ if (fuzix_getmode(sino) != F_BDEV) {
udata.u_error = ENOTBLK;
goto nogood;
}
- if (getmode(dino) != F_DIR) {
+ if (fuzix_getmode(dino) != F_DIR) {
udata.u_error = ENOTDIR;
goto nogood;
}
ifnot(sino = n_open(spec, NULLINOPTR))
return (-1);
- if (getmode(sino) != F_BDEV) {
+ if (fuzix_getmode(sino) != F_BDEV) {
udata.u_error = ENOTBLK;
goto nogood;
}