Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
7859bbb6
Commit
7859bbb6
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Created standard smblib return value constants (SMB_SUCCESS, SMB_ERR_*).
parent
ab3fd060
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/smblib/smbdefs.h
+19
-1
19 additions, 1 deletion
src/smblib/smbdefs.h
with
19 additions
and
1 deletion
src/smblib/smbdefs.h
+
19
−
1
View file @
7859bbb6
...
...
@@ -117,9 +117,27 @@
#define SMB_EMAIL 1
/* User numbers stored in Indexes */
/* Common smblib errors values */
#define SMB_SUCCESS 0
/* Successful result/return code */
#define SMB_FAILURE -1
/* Generic error (discouraged) */
/* Standard smblib errors values */
#define SMB_ERR_NOT_OPEN -100
/* Message base not open */
#define SMB_ERR_HDR_LEN -101
/* Invalid message header length (>64k) */
#define SMB_ERR_HDR_OFFSET -102
/* Invalid message header offset */
#define SMB_ERR_HDR_ID -103
/* Invalid header ID */
#define SMB_ERR_HDR_VER -104
/* Unsupported version */
#define SMB_ERR_HDR_FIELD -105
/* Missing header field */
#define SMB_ERR_NOT_FOUND -110
/* Item not found */
#define SMB_ERR_OPEN -200
/* File open error */
#define SMB_ERR_SEEK -201
/* File seek/setpos error */
#define SMB_ERR_LOCK -202
/* File lock error */
#define SMB_ERR_READ -203
/* File read error */
#define SMB_ERR_WRITE -204
/* File write error */
#define SMB_ERR_TIMEOUT -205
/* File operation timed-out */
#define SMB_ERR_FILE_LEN -206
/* File length invalid */
#define SMB_ERR_MEM -300
/* Memory allocation error */
#define SMB_DUPE_MSG 1
/* Duplicate message detected by smb_addcrc() */
/* Time zone macros for when_t.zone */
#define DAYLIGHT 0x8000
/* Daylight savings is active */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment