Add linux-specific core.sys.linux.file module#1677
Add linux-specific core.sys.linux.file module#1677DmitryOlshansky merged 1 commit intodlang:masterfrom
core.sys.linux.file module#1677Conversation
|
I believe this should be |
|
BTW, unless you specifically need advisory-only locks, we already have definitions for fcntl locks, also exposed via |
|
Makefiles and file lists need to be modified when adding new modules. See all occurrences of an existing module name for an example, e.g. |
Thanks, I got fooled by the Updated with moved location and updated |
src/core/sys/linux/sys/file.d
Outdated
| /// Unlock | ||
| enum LOCK_UN = 0x08; | ||
| /// Atomic update | ||
| enum __LOCK_ATOMIC = 0x16; |
There was a problem hiding this comment.
This one isn't in my file.h. Is it Debian-specific?
There was a problem hiding this comment.
I think this one is only implemented in the GNU Hurd kernel.
There was a problem hiding this comment.
Hmm, I got it from mine (Ubuntu's) file.h, but I don't see it on glibc's upstream file.h, so I'll remove it.
Thanks and good catch!
This adds core.sys.linux.file module which contains flock function definition and values of the parameters to pass.
|
Updated with |
|
Auto-merge toggled on |
|
Looks good apart from horrible windows makefiles... but that's separate problem. |
|
thx! |
This adds core.sys.linux.file module which contains
flock function definition and values of the parameters
to pass.