Skip to content

Commit

Permalink
Modernize file/directory API with Pharo compatible permissions/symlink
Browse files Browse the repository at this point in the history
TODO: fill those information...
  • Loading branch information
nicolas-cellier-aka-nice committed Nov 8, 2019
1 parent d57e52e commit 3c82cdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions platforms/Mac_OS/plugins/FilePlugin/sqMacDirectory.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ sqInt dir_Delimitor(void) {
sqInt dir_Lookup(char *pathString, sqInt pathStringLength, sqInt index,
/* outputs: */
char *name, sqInt *nameLength, sqInt *creationDate, sqInt *modificationDate,
sqInt *isDirectory, squeakFileOffsetType *sizeIfFile) {
sqInt *isDirectory, squeakFileOffsetType *sizeIfFile, sqInt *posixPermissions, sqInt *isSymlink) {
/* Lookup the index-th entry of the directory with the given path, starting
at the root of the file system. Set the name, name length, creation date,
creation time, directory flag, and file size (if the entry is a file).
Expand Down Expand Up @@ -310,7 +310,7 @@ sqInt dir_Lookup(char *pathString, sqInt pathStringLength, sqInt index,
sqInt dir_Lookup(char *pathString, sqInt pathStringLength, sqInt index,
/* outputs: */
char *name, sqInt *nameLength, sqInt *creationDate, sqInt *modificationDate,
sqInt *isDirectory, squeakFileOffsetType *sizeIfFile) {
sqInt *isDirectory, squeakFileOffsetType *sizeIfFile, sqInt *posixPermissions, sqInt *isSymlink) {
/* Lookup the index-th entry of the directory with the given path, starting
at the root of the file system. Set the name, name length, creation date,
creation time, directory flag, and file size (if the entry is a file).
Expand Down
4 changes: 2 additions & 2 deletions platforms/Mac_OS/plugins/FilePlugin/sqMacUnixFileInterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static int maybeOpenDir(char *unixPath)
sqInt
dir_Lookup(char *pathString, sqInt pathStringLength, sqInt index,
/* outputs: */ char *name, sqInt *nameLength, sqInt *creationDate, sqInt *modificationDate,
sqInt *isDirectory, squeakFileOffsetType *sizeIfFile)
sqInt *isDirectory, squeakFileOffsetType *sizeIfFile, sqInt *posixPermissions, sqInt *isSymlink)
{
/* Lookup the index-th entry of the directory with the given path, starting
at the root of the file system. Set the name, name length, creation date,
Expand Down Expand Up @@ -287,7 +287,7 @@ dir_Lookup(char *pathString, sqInt pathStringLength, sqInt index,
sqInt
dir_EntryLookup(char *pathString, sqInt pathStringLength, char* nameString, sqInt nameStringLength,
/* outputs: */ char *name, sqInt *nameLength, sqInt *creationDate, sqInt *modificationDate,
sqInt *isDirectory, squeakFileOffsetType *sizeIfFile)
sqInt *isDirectory, squeakFileOffsetType *sizeIfFile, sqInt *posixPermissions, sqInt *isSymlink)
{
/* Lookup the given name in the given directory,
Set the name, name length, creation date,
Expand Down

0 comments on commit 3c82cdc

Please sign in to comment.