Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * node-compress-commons
  3. *
  4. * Copyright (c) 2014 Chris Talkington, contributors.
  5. * Licensed under the MIT license.
  6. * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT
  7. */
  8. module.exports = {
  9. WORD: 4,
  10. DWORD: 8,
  11. EMPTY: Buffer.alloc(0),
  12. SHORT: 2,
  13. SHORT_MASK: 0xffff,
  14. SHORT_SHIFT: 16,
  15. SHORT_ZERO: Buffer.from(Array(2)),
  16. LONG: 4,
  17. LONG_ZERO: Buffer.from(Array(4)),
  18. MIN_VERSION_INITIAL: 10,
  19. MIN_VERSION_DATA_DESCRIPTOR: 20,
  20. MIN_VERSION_ZIP64: 45,
  21. VERSION_MADEBY: 45,
  22. METHOD_STORED: 0,
  23. METHOD_DEFLATED: 8,
  24. PLATFORM_UNIX: 3,
  25. PLATFORM_FAT: 0,
  26. SIG_LFH: 0x04034b50,
  27. SIG_DD: 0x08074b50,
  28. SIG_CFH: 0x02014b50,
  29. SIG_EOCD: 0x06054b50,
  30. SIG_ZIP64_EOCD: 0x06064B50,
  31. SIG_ZIP64_EOCD_LOC: 0x07064B50,
  32. ZIP64_MAGIC_SHORT: 0xffff,
  33. ZIP64_MAGIC: 0xffffffff,
  34. ZIP64_EXTRA_ID: 0x0001,
  35. ZLIB_NO_COMPRESSION: 0,
  36. ZLIB_BEST_SPEED: 1,
  37. ZLIB_BEST_COMPRESSION: 9,
  38. ZLIB_DEFAULT_COMPRESSION: -1,
  39. MODE_MASK: 0xFFF,
  40. DEFAULT_FILE_MODE: 33188, // 010644 = -rw-r--r-- = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
  41. DEFAULT_DIR_MODE: 16877, // 040755 = drwxr-xr-x = S_IFDIR | S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH
  42. EXT_FILE_ATTR_DIR: 1106051088, // 010173200020 = drwxr-xr-x = (((S_IFDIR | 0755) << 16) | S_DOS_D)
  43. EXT_FILE_ATTR_FILE: 2175008800, // 020151000040 = -rw-r--r-- = (((S_IFREG | 0644) << 16) | S_DOS_A) >>> 0
  44. // Unix file types
  45. S_IFMT: 61440, // 0170000 type of file mask
  46. S_IFIFO: 4096, // 010000 named pipe (fifo)
  47. S_IFCHR: 8192, // 020000 character special
  48. S_IFDIR: 16384, // 040000 directory
  49. S_IFBLK: 24576, // 060000 block special
  50. S_IFREG: 32768, // 0100000 regular
  51. S_IFLNK: 40960, // 0120000 symbolic link
  52. S_IFSOCK: 49152, // 0140000 socket
  53. // DOS file type flags
  54. S_DOS_A: 32, // 040 Archive
  55. S_DOS_D: 16, // 020 Directory
  56. S_DOS_V: 8, // 010 Volume
  57. S_DOS_S: 4, // 04 System
  58. S_DOS_H: 2, // 02 Hidden
  59. S_DOS_R: 1 // 01 Read Only
  60. };