2014-05-12 12:41:46 -04:00
|
|
|
/*
|
2020-08-17 16:05:03 -04:00
|
|
|
ISC License
|
|
|
|
|
|
|
|
Copyright (c) 2020, Antonio SJ Musumeci <trapexit@spawn.link>
|
2016-01-14 16:50:22 -05:00
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
2014-05-12 12:41:46 -04:00
|
|
|
*/
|
|
|
|
|
2017-06-28 21:17:47 -04:00
|
|
|
#include <fcntl.h>
|
2016-12-22 22:46:20 -05:00
|
|
|
|
2020-12-19 15:06:08 -05:00
|
|
|
|
2014-05-12 12:41:46 -04:00
|
|
|
namespace fs
|
|
|
|
{
|
2020-08-17 16:05:03 -04:00
|
|
|
int
|
|
|
|
getfl(const int fd_)
|
|
|
|
{
|
|
|
|
return ::fcntl(fd_,F_GETFL,0);
|
|
|
|
}
|
2019-01-25 07:03:46 -05:00
|
|
|
}
|