mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix non-standard struct flock declaration.
This commit is contained in:
parent
8d2c585479
commit
3abad890ec
1 changed files with 1 additions and 3 deletions
|
@ -48,7 +48,7 @@ __BEGIN_DECLS
|
|||
|
||||
@include(pid_t.h)
|
||||
|
||||
struct _flock
|
||||
struct flock
|
||||
{
|
||||
short l_type; /* Type of lock; F_RDLCK, F_WRLCK, F_UNLCK. */
|
||||
short l_whence; /* Type of lock; F_RDLCK, F_WRLCK, F_UNLCK. */
|
||||
|
@ -57,8 +57,6 @@ struct _flock
|
|||
pid_t l_pid; /* Process ID of the process holding the lock; returned with F_GETLK. */
|
||||
};
|
||||
|
||||
typedef struct _flock flock;
|
||||
|
||||
int fcntl(int fd, int cmd, ...);
|
||||
int open(const char* path, int oflag, ...);
|
||||
#if defined(__SORTIX_SHOW_UNIMPLEMENTED)
|
||||
|
|
Loading…
Add table
Reference in a new issue