source: npl/system/klibc/patches/mips-update-archfcntl-h.patch @ aafe99e

perl-5.22
Last change on this file since aafe99e was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.5 KB
  • usr/include/arch/mips/klibc/archfcntl.h

    From: Ben Hutchings <ben@decadent.org.uk>
    Date: Sun, 05 Oct 2014 01:08:21 +0100
    Subject: [klibc] MIPS: Update archfcntl.h
    Bug-Debian: https://bugs.debian.org/763049
    Forwarded: http://www.zytor.com/pipermail/klibc/2016-January/003879.html
    
    Update usr/include/arch/mips/archfcntl.h from kernel headers:
    
    - Add definitions of O_PATH, O_TMPFILE
    - Update value of O_SYNC to include __O_SYNC
    - Add definitions of F_{SET,GET}OWN_EX, F_GETOWNER_UIDS,
      F_OFD_{GETLK,SETLK,SETLKW}, F_OWNER_{TID,PID,PGRP}
    
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    a b  
    1919#define O_WRONLY        0x0001
    2020#define O_RDWR          0x0002
    2121#define O_APPEND        0x0008
    22 #define O_SYNC          0x0010
    2322#define O_NONBLOCK      0x0080
    2423#define O_CREAT         0x0100
    2524#define O_TRUNC         0x0200
     
    2726#define O_NOCTTY        0x0800
    2827#define FASYNC          0x1000
    2928#define O_LARGEFILE     0x2000
     29#define O_SYNC          0x4010
    3030#define O_DIRECT        0x8000
    3131#define O_DIRECTORY     0x10000
    3232#define O_NOFOLLOW      0x20000
    3333#define O_NOATIME       0x40000
    3434#define O_CLOEXEC       0x80000
     35#define O_PATH          0x200000
     36#define O_TMPFILE       0x410000
    3537
    3638#define O_NDELAY        O_NONBLOCK
    3739
     
    5355#define F_SETLK64       34
    5456#define F_SETLKW64      35
    5557
     58#define F_SETOWN_EX     15
     59#define F_GETOWN_EX     16
     60
     61#define F_GETOWNER_UIDS 17
     62
     63#define F_OFD_GETLK     36
     64#define F_OFD_SETLK     37
     65#define F_OFD_SETLKW    38
     66
     67#define F_OWNER_TID     0
     68#define F_OWNER_PID     1
     69#define F_OWNER_PGRP    2
     70
     71struct f_owner_ex {
     72        int     type;
     73        pid_t   pid;
     74};
     75
    5676#define FD_CLOEXEC      1
    5777
    5878#define F_RDLCK         0
Note: See TracBrowser for help on using the repository browser.