delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/30/06:17:36

Date: Tue, 30 May 2000 12:16:55 +0200 (MET DST)
From: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
To: djgpp AT delorie DOT com
Subject: mkdir and /dev/env/
Message-ID: <Pine.UW2.3.95.1000530121527.8071A-100000@bryggen.bgnett.no>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I am having troubles with mkdir() and and paths containing the
"/dev/env/FOO" syntax. 

With "set YAFC=\yafc", this code fails:

if (mkdir ("/dev/env/YAFC", S_IRUSR|S_IWUSR|S_IXUSR) != 0) 
  perror("");

The mode is '0400|0200|0100' = 0700 (octal)

Is that supposed to work?

Gisle V.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019