mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
Remove the last remaining #ifndef SERENITY blocks.
This commit is contained in:
parent
2c6a3f1907
commit
6b88025dda
2 changed files with 0 additions and 10 deletions
|
@ -129,10 +129,6 @@ off_t FileDescriptor::seek(off_t offset, int whence)
|
||||||
break;
|
break;
|
||||||
case SEEK_CUR:
|
case SEEK_CUR:
|
||||||
newOffset = m_current_offset + offset;
|
newOffset = m_current_offset + offset;
|
||||||
#ifndef SERENITY
|
|
||||||
if (additionWouldOverflow(m_currentOffset, offset))
|
|
||||||
return -EOVERFLOW;
|
|
||||||
#endif
|
|
||||||
if (newOffset < 0)
|
if (newOffset < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -35,12 +35,6 @@ bool SynthFS::initialize()
|
||||||
root->m_metadata.size = 0;
|
root->m_metadata.size = 0;
|
||||||
root->m_metadata.mtime = mepoch;
|
root->m_metadata.mtime = mepoch;
|
||||||
m_inodes.set(RootInodeIndex, move(root));
|
m_inodes.set(RootInodeIndex, move(root));
|
||||||
|
|
||||||
#ifndef SERENITY
|
|
||||||
addFile(createTextFile("file", String("I'm a synthetic file!\n").toByteBuffer(), 0100644));
|
|
||||||
addFile(createTextFile("message", String("Hey! This isn't my bottle!\n").toByteBuffer(), 0100644));
|
|
||||||
addFile(createGeneratedFile("lunk", [] { return String("/home/andreas/file1").toByteBuffer(); }, 00120777));
|
|
||||||
#endif
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue