DCL 4.0
Loading...
Searching...
No Matches
_fcntl.cpp File Reference
#include <dcl/Config.h>
#include <errno.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <dcl/_fcntl.h>
#include <dcl/Object.h>
#include <dcl/String.h>
#include "__strumbs.h"

Go to the source code of this file.

Functions

__DCL_BEGIN_NAMESPACE int __open (const String &_path, int _oflags,...)
int __creat (const String &_path, mode_t _mode)

Function Documentation

◆ __creat()

int __creat ( const String & _path,
mode_t _mode )

Definition at line 33 of file _fcntl.cpp.

34{
35 STRTOMBS_ER(_path, path);
36 return creat(path, _mode);
37}
#define STRTOMBS_ER(str, mbs)
Definition __strumbs.h:33

◆ __open()

__DCL_BEGIN_NAMESPACE int __open ( const String & _path,
int _oflags,
... )

Definition at line 23 of file _fcntl.cpp.

24{
25 STRTOMBS_ER(_path, path);
26 va_list arglist;
27 va_start(arglist, _oflags);
28 mode_t mode = va_arg(arglist, mode_t);
29 va_end(arglist);
30 return open(path, _oflags, mode);
31}