File: gfs_mkdir.3.html

package info (click to toggle)
gfarm 2.7.20%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,880 kB
  • sloc: ansic: 188,235; sh: 43,469; cpp: 9,442; java: 6,866; makefile: 3,519; perl: 2,412; python: 1,449; ruby: 965; php: 807; sql: 173; xml: 51; csh: 2
file content (71 lines) | stat: -rw-r--r-- 3,094 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gfs_mkdir</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
<a name="gfs-mkdir.3"></a><div class="titlepage"></div>
<div class="refnamediv">
<a name="name"></a><h2>Name</h2>
<p>gfs_mkdir — create a directory</p>
</div>
<div class="refsynopsisdiv">
<a name="synopsis"></a><h2>Synopsis</h2>
<div class="funcsynopsis">
<pre class="funcsynopsisinfo">
#include &lt;gfarm/gfarm.h&gt;
</pre>
<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
<tr>
<td><code class="funcdef"><b class="fsfunc">gfarm_error_t gfs_mkdir</b>(</code></td>
<td>
<var class="pdparam">gfarm_url</var>, </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>
<var class="pdparam">mode</var><code>)</code>;</td>
<td> </td>
</tr>
</table>
<div class="paramdef-list">
<code>const char * <var class="pdparam">gfarm_url</var></code>;<br><code>gfarm_mode_t <var class="pdparam">mode</var></code>;</div>
<div class="funcprototype-spacer"> </div>
</div>
</div>
<div class="refsect1">
<a name="description"></a><h2>DESCRIPTION</h2>
<p><code class="function">gfs_mkdir()</code> attempts to create a directory named
<em class="parameter"><code>gfarm_url</code></em>.</p>
<p><em class="parameter"><code>mode</code></em> speficies the permissions to use.
It is modified by the process's <code class="varname">umask</code> in the usual
way: the permissions of the created file are
<span class="emphasis"><em>(</em></span><em class="parameter"><code>mode</code></em><span class="emphasis"><em> &amp;
~umask)</em></span>.</p>
</div>
<div class="refsect1">
<a name="return-values"></a><h2>RETURN VALUES</h2>
<div class="variablelist"><dl class="variablelist">
<dt><span class="term"><code class="constant">GFARM_ERR_NO_ERROR</code></span></dt>
<dd><p>The function terminated successfully.</p></dd>
<dt><span class="term"><code class="constant">GFARM_ERR_NO_MEMORY</code></span></dt>
<dd><p>Insufficient memory was available.</p></dd>
<dt><span class="term"><code class="constant">GFARM_ERR_ALREADY_EXISTS</code></span></dt>
<dd><p><em class="parameter"><code>gfarm_url</code></em> already exists (not necessarily
as a directory).  This includes the case where
<em class="parameter"><code>gfarm_url</code></em> is a symbolic link, dangling or
not.</p></dd>
<dt><span class="term"><code class="constant">GFARM_ERR_NO_SUCH_OBJECT</code></span></dt>
<dd><p>The parent directory of <em class="parameter"><code>gfarm_url</code></em> does
not exist.</p></dd>
<dt><span class="term"><code class="constant">GFARM_ERR_NOT_A_DIRECTORY</code></span></dt>
<dd><p>A component of the path prefix is not a directory.</p></dd>
<dt><span class="term">Others</span></dt>
<dd><p>An error except the above occurred.  The reason is shown by
<span class="citerefentry"><span class="refentrytitle">gfarm_error_string</span>(3)</span>.</p></dd>
</dl></div>
</div>
</div></body>
</html>