Skip to content

Instantly share code, notes, and snippets.

@Noitidart
Created September 25, 2014 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Noitidart/2c53244c2d65acec518a to your computer and use it in GitHub Desktop.
Save Noitidart/2c53244c2d65acec518a to your computer and use it in GitHub Desktop.
/*add this on line 483*/

 // fcntl command values
  INT_CONSTANT(F_GETLK),
  INT_CONSTANT(F_SETLK),
  INT_CONSTANT(F_SETLKW),
  
 // flock type values
  INT_CONSTANT(F_RDLCK),
  INT_CONSTANT(F_WRLCK),
  INT_CONSTANT(F_UNLCK),
  
/*add this on line 599*/

  // Defining |flock|.
  { "OSFILE_SIZEOF_FLOCK", INT_TO_JSVAL(sizeof (struct flock)) },
  { "OSFILE_OFFSETOF_FLOCK_L_START", INT_TO_JSVAL(offsetof (struct flock, l_start)) },
  { "OSFILE_OFFSETOF_FLOCK_L_LEN", INT_TO_JSVAL(offsetof (struct flock, l_len)) },
  { "OSFILE_OFFSETOF_FLOCK_L_PID", INT_TO_JSVAL(offsetof (struct flock, l_pid)) },
  { "OSFILE_OFFSETOF_FLOCK_L_TYPE", INT_TO_JSVAL(offsetof (struct flock, l_type)) },
  { "OSFILE_OFFSETOF_FLOCK_L_WHENCE", INT_TO_JSVAL(offsetof (struct flock, l_whence)) },
  
@Noitidart
Copy link
Author

README

Path for: Mozilla - Firefox :: OSFileconstants.cpp

Rev1

  • Copy pasted

Rev2

  • Removed the dirent stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment