Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for O_TRUNC (0.04 sec)

  1. src/main/java/jcifs/smb/SmbFile.java

        private static void setCreateDisposition(final Smb2CreateRequest req, final int flags) {
            if ((flags & SmbConstants.O_TRUNC) == O_TRUNC && (flags & SmbConstants.O_CREAT) == O_CREAT) {
                req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE_IF);
            } else if ((flags & SmbConstants.O_TRUNC) == O_TRUNC) {
                req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFile.java

        // create if the file does not exist
        static final int O_CREAT = 0x0010;
        // fail if the file exists
        static final int O_EXCL = 0x0020;
        // truncate if the file exists
        static final int O_TRUNC = 0x0040;
    
        // share access
        /**
         * When specified as the {@code shareAccess} constructor parameter,
         * other SMB clients (including other threads making calls into jCIFS)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
Back to top