DCL 3.7.4
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 45 of file _fcntl.cpp.

46{
47 STRTOMBS_ER(_path, path);
48 return creat(path, _mode);
49}
#define STRTOMBS_ER(str, mbs)
Definition __strumbs.h:33

◆ __open()

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

Definition at line 31 of file _fcntl.cpp.

32{
33 STRTOMBS_ER(_path, path);
34 va_list arglist;
35 va_start(arglist, _oflags);
36 mode_t mode = va_arg(arglist, mode_t);
37 va_end(arglist);
38 return open(path, _oflags, mode);
39}